API Referenceauth
Refresh access token
Obtain a new access token using a refresh token. The refresh token may also be rotated.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
refresh_token*Refresh Token
Refresh token from previous authentication
Response Body
application/json
application/json
curl -X post "http://localhost:8000/api/v1/auth/refresh" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "eyJhbGciOiJSUzI1NiIs..." }'{
"access_token": "string",
"token_type": "Bearer",
"expires_in": 0,
"refresh_token": "string",
"id_token": "string",
"scope": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
