Intervals API Authentication
The Intervals API uses token-based authentication. Every Intervals user has a unique 11-character alphanumeric token that looks something like this: a6klj30flvc. Each person must manually enable his or her API token by going to the My Account -> API Access under the Options tab. There, they will be able to view, generate, revoke, and regenerate their token. Users cannot view other users' tokens, and this information is not accessible through the API.
Making Authenticated API Requests
Once the user has given you his or her authentication token, make your request in the same format as HTTP Basic Auth. This user token will serve as the username (the password can be filled with an arbitrary string like "X"). An example is below.
Assume your user token is a6klj30flvc and your arbitrary password string is X. The combined string would be a6klj30flvc:X (base64 encoded as YTZrbGozMGZsdmM6WA== for the Authorization header). To get a timer list, your request would look something like this:
GET /timer/ HTTP/1.0
Authorization: Basic YTZrbGozMGZsdmM6WA==
Or using cURL:
curl -H 'Accept: application/json' -u a6klj30flvc:X https://api.myintervals.com/timer/
Intervals API 1.0
This documentation is meant to serve as an introduction to getting started with the API.
API Discussion Forum
Looking for help? Want to share ideas and collaborate with others?
» Contribute to the API discussion forum.