OAuth URLs

1.Authorize

GET: https://trainerday.com/oauth/authorize
Supported scopes: calendar:read calendar:write calendar:delete workout:read workout:write workout:delete athlete:read athlete:write

Params:

This endpoint is mostly used by the client to request an Authorization code that can then be exchanged for an access token.

2.Gaining an Access Token

POST: https://trainerday.com/oauth/token

Body:

Once you have the authorization code, you must make another request to obtain an access token. The authorization code is only valid for approximately 30 seconds.

3.Refresh Token

POST: https://trainerday.com/oauth/token

Body:

Refresh tokens are used as a way to gain a new access token after the original access token has expired.

4.Destroy Token

POST: https://trainerday.com/oauth/revoke

Body:

This endpoint is used to destroy an access token