Authentication
Refresh Token
This endpoint is used to refresh the access token by providing the refresh token in the request body.
The refreshToken expires in 24 hour.
Request Body
- refreshToken (string, required): The refresh token used to obtain a new access token.
Response
- status (string): Indicates the status of the request, where "success" means the request was successful.
- data (object): Contains the new access token and refresh token.
- accessToken (string): The new access token.
- refreshToken (string): The new refresh token.
Request rules. You must send refreshToken in the body unless the request already carries Speak's refresh token session cookie, which only browser clients signed in through Speak's own web apps have. The server reads the body value first and falls back to that cookie, so an API integration that omits the field always gets a 404. This endpoint is rate limited to 5 requests per minute per IP address.
post/auth/refreshToken
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/auth/refreshToken
- Auth: API key in header x-speakai-key and API key in header x-access-token
Request body
Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.