> For the complete documentation index, see [llms.txt](https://docs.ibexa.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ibexa.ai/developers/rest-api/login/logout.md).

# Logout

Logout by revoking the provided refresh token.

Requires a valid access token. This endpoint invalidates the given refresh token so it can no longer be used to obtain new access tokens. The operation is idempotent — calling it with an already-revoked or non-existent token will still return 204.

Clients should also discard the access token locally after calling this endpoint.

```json
{"openapi":"3.1.0","info":{"title":"Ibexa Agentic Marketing Platform","version":"0.1.0"},"security":[{"OAuth2PasswordBearer":[]}],"components":{"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/login/access-token"}}}},"schemas":{"RefreshTokenRequestSchema":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Opaque refresh token"}},"type":"object","required":["refresh_token"],"title":"RefreshTokenRequestSchema","description":"Request schema for refresh token endpoint."}}},"paths":{"/api/v1/logout":{"post":{"tags":["login","public"],"summary":"Logout","description":"Logout by revoking the provided refresh token.\n\nRequires a valid access token. This endpoint invalidates the given refresh token\nso it can no longer be used to obtain new access tokens. The operation is\nidempotent — calling it with an already-revoked or non-existent token will still\nreturn 204.\n\nClients should also discard the access token locally after calling this endpoint.","operationId":"login-logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequestSchema"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"401":{"description":"User not authenticated","content":{"application/json":{}}},"403":{"description":"User lacks permission","content":{"application/json":{}}}}}}}}
```
