Documentation Index
Fetch the complete documentation index at: https://docs.readingsteps.uk/llms.txt
Use this file to discover all available pages before exploring further.
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:| Scope | Description |
|---|---|
read | Read access to user data |
write | Write access to user data |
admin | Administrative access (requires approval) |
Error Handling
Common Errors
| Error Code | Description |
|---|---|
invalid_request | The request is missing a required parameter |
invalid_client | Client authentication failed |
invalid_grant | The provided authorization code is invalid |
invalid_scope | The requested scope is invalid |
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
