Authentication
The Timelines Global API uses Bearer token authentication. Every request must include your API token in theAuthorization header.
Getting your API token
1
Sign in to Timelines Global
Go to app.timelines.global
2
Open API settings
Navigate to Integrations → Public API
3
Copy your token
Your token is displayed on this page. Click Copy to copy it.
Using your token
Include the token in theAuthorization header of every request:
Example request
Token security
Best practices
Use environment variables
Use environment variables
Never hardcode tokens in your source code. Use environment variables:
Don't commit tokens to Git
Don't commit tokens to Git
Add your environment files to
.gitignore:Rotate tokens if compromised
Rotate tokens if compromised
If you suspect your token has been exposed, generate a new one immediately from the API settings page.
Use server-side only
Use server-side only
Never expose your API token in client-side code (browsers, mobile apps). Always make API calls from your backend server.
Error responses
401 Unauthorized
If your token is missing or invalid:- Missing
Authorizationheader - Token copied incorrectly (check for extra spaces)
- Token has been regenerated
403 Forbidden
If your token is valid but lacks permission:- Attempting to access resources from another workspace
- Feature not available on your plan
Token scope
Your API token has access to:All operations are scoped to your workspace. You cannot access data from other Timelines Global accounts.

