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

200 OK
{
  "tokenId": "0192a7f3-6f70-7182-9d93-0f1a2b3c4d5e",
  "revokedAt": "2026-09-03T09:00:00.000Z"
}

Errors

StatusCodeReasonWhenChannels
401invalid_credentialsThe API key or personal access token is missing, malformed, unknown, revoked or expired.All
403forbiddenThe credential may not make this call here. details.reason says why.All
409project_archivedThe key's project is archived.All
422validation_failedA field is wrong, and details names each one at its path.All
429rate_limitedToo many requests for this route's budget.All
500internal_errorMapier failed on its side, and has been alerted.All
503service_busyMapier is busy and did nothing with this request. details.retryAfter says how many seconds to wait.All
503upstream_unavailableThe channel did not take the command, or gave no answer Mapier could use.All