Revoke a personal access token
Revokes the token immediately. Revoking a token that is already revoked also returns 204. A personal access token may call this only with its own ID, to revoke itself; any other ID returns 403.
/tokens/{id}Authorization
bearerAuth Send Authorization: Bearer <token> with one of: an app session access token from /auth/verify-otp or /auth/refresh; an OAuth access token from /oauth/token issued for the API origin (its scopes are its permissions); or a personal access token starting with optima_pat_ (see /docs/personal-access-tokens). Personal access tokens cannot create or list tokens, revoke other tokens, sign out, or delete or restore the account. Content routes need the permission of their layer: audio:read/audio:write for recordings, turns:read/turns:write for turns, contacts, source signals, and events, and insights:read/insights:write for suggestions and session summaries; search and recall need turns:read and insights:read. A request without the permission, or for an account whose layer is turned off, returns 403 FORBIDDEN. See /docs/authentication#scopes.
In: header
Path Parameters
uuidHeader Parameters
Send 1 to pin the documented API contract. If omitted, the latest version is selected.
"1"Value in
- "1"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "X-API-Version: 1"Create a personal access token POST
Creates a personal access token for scripts that act as you. The response contains the token once; it cannot be read again. `expires_in_days` is required: a number of days, or `null` for a token that never expires. A never-expiring token keeps working until you revoke it, sign out everywhere, or delete your account. Requires a signed-in Plum app; a personal access token cannot create tokens. An account can hold at most 20 active (unrevoked, unexpired) tokens; creating another returns 409 `TOKEN_LIMIT_REACHED`. See [Personal access tokens](/docs/personal-access-tokens).
List turns GET
Next Page