Refresh token
POST
/api/v1/auth/refresh
const url = 'https://app.ayna.com/api/v1/auth/refresh';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"refresh_token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/auth/refresh \ --header 'Content-Type: application/json' \ --data '{ "refresh_token": "example" }'Get a new access token using a refresh token.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
RefreshTokenRequest
object
refresh_token
required
Refresh Token
Refresh token
string
Example generated
{ "refresh_token": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}