OAuth Tokens API
HTTP Requests for handling Access Token, ID Token, and Refresh Tokens
Last updated
HTTP Requests for handling Access Token, ID Token, and Refresh Tokens
Last updated
If Cotter's SDK doesn't support auto renewal, or if you you need to renew the tokens manually, you can make an HTTP request to Cotter's Server to renew the tokens using a refresh_token
.
POST
https://www.cotter.app/api/v0/token/<YOUR API KEY ID>
Getting new access_token
and id_token
using refresh_token
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Note that this returns a new refresh_token
and invalidates the old refresh_token
Name | Type | Description |
---|---|---|
API_KEY_ID
string
Your API_KEY_ID
Content-type
string
application/json
API_KEY_ID
string
Your API_KEY_ID
grant_type
string
Grant type is refresh_token
refresh_token
string
Your refresh_token