Logout Endpoint
Revokes the Sanctum token used for the current request.
- Endpoint:
/api/v1/logout - Method:
POST - Authentication: Partner token and user bearer token.
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Partner token. |
Authorization | Bearer <token> | Yes | User token to revoke. |
Accept | application/json | Yes |
Sample Response
{
"result": 1,
"message": "Logged out Successfully."
}
Only the current access token is deleted. Other active tokens for the same user remain valid.