Authentication
The ReadingSteps API uses OAuth 2.0 for authentication. All API requests require a valid access token.Getting Started
1. Create an API Key
Visit the Developer Portal to create your API key.2. Choose Your Authentication Method
We support two authentication methods:- OAuth 2.0 Authorization Code Flow (recommended for web apps)
- API Key (recommended for server-to-server applications)
OAuth 2.0 Authorization Code Flow
Step 1: Redirect to Authorization URL
Step 2: Exchange Code for Access Token
Response
API Key Authentication
For server-to-server applications, use your API key in the request header:Token Refresh
Access tokens expire after 1 hour. Use your refresh token to get a new one:Scopes
Available OAuth scopes:Error Handling
Common Errors
Example Error Response
Best Practices
- Store tokens securely (never in client-side code)
- Use HTTPS for all API calls
- Implement token refresh logic
- Revoke unused tokens
- Monitor token usage for suspicious activity
