Sign out: revoke this token
Revoke the personal access token that makes the call
POST/v1/personal-tokens/current/revoke
Revokes the personal access token that makes the call, at once. For a terminal
sign-in it ends the sign-in, its refresh token with it; with only a refresh
token left, POST /v1/cli/tokens/revoke does
the same. Any live token may call it, with no scope, and it is recorded as
revoked by its owner.
This route takes a personal access token
only. A project API key gets a 403 forbidden with
reason: "personal_token_required".
Example request
curl -X POST https://api.mapier.ai/v1/personal-tokens/current/revoke \
-H "Authorization: Bearer $MAPIER_TOKEN" \
-H "x-mapier-version: 2026-12-01"Response
{
"tokenId": "0192a7f3-6f70-7182-9d93-0f1a2b3c4d5e",
"revokedAt": "2026-09-03T09:00:00.000Z"
}Errors
| Status | Code | Reason | When | Channels |
|---|---|---|---|---|
| 401 | invalid_credentials | The API key or personal access token is missing, malformed, unknown, revoked or expired. | All | |
| 403 | forbidden | The credential may not make this call here. details.reason says why. | All | |
| 409 | project_archived | The key's project is archived. | All | |
| 422 | validation_failed | A field is wrong, and details names each one at its path. | All | |
| 429 | rate_limited | Too many requests for this route's budget. | All | |
| 500 | internal_error | Mapier failed on its side, and has been alerted. | All | |
| 503 | service_busy | Mapier is busy and did nothing with this request. details.retryAfter says how many seconds to wait. | All | |
| 503 | upstream_unavailable | The channel did not take the command, or gave no answer Mapier could use. | All |