Skip to main content

Endpoint

POST https://api.apifycloud.io/api/v1/oauth/revoke

Authentication

Bearer token required. Scope: oauth:revoke

Request body

  • token (string, required) access token to revoke
{
  "token": "eyJhbGciOi..."
}

Response

Returns success even if token is invalid or already revoked.
{
  "data": {},
  "meta": {
    "timestamp": "2026-02-18T00:00:00.000Z"
  }
}

Errors

  • 400 invalid_request missing token or invalid JSON body
  • 401 unauthorized invalid auth context
  • 403 forbidden missing scope
  • 429 rate_limit_exceeded
  • 500 server_error

Example

curl -X POST "https://api.apifycloud.io/api/v1/oauth/revoke" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{"token":"{token_to_revoke}"}'