Avycenna

Sign out

Revoke the refresh token, ending the session. Clients should also delete the locally stored `access_token` and `refresh_token` after calling this endpoint.

POST
/api/v1/auth/logout

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/api/v1/auth/logout" \  -H "Content-Type: application/json" \  -d '{    "refresh_token": "string"  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}