API key refresh
An API key can be "refreshed" using this endpoint, which is handy if you need extended access to the API after the key expires. Refreshing an API key involves invalidating the current key and creating a new key that has the same properties. All that is needed is its refresh token, provided when creating the key for the first time through the website, and the ID of the organisation that owns the key. After sending these details to this endpoint, a new API key and refresh token will be sent back for you to use.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/token/refresh" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string", "organisation_id": "string" }'{ "access_token": "string", "refresh_token": "string", "expires_at": "2023-07-05 00:00:00"}