Revoke an API key
DELETE/v1/api-keys/{id}Portal sign-in
The key stops working within a minute (API key checks are cached for up to 60 seconds). Revoking a revoked key succeeds too.
Authorization
Portal sign-in Authorization: Bearer $MA_ACCESS_TOKEN
Sign in to the portal and send its access token. Portal sign-in isn't available yet, so you can read this endpoint but not call it.
Parameters
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The ID the resource was listed or created with: a ULID for events and deliveries, a UUID for API keys, webhook endpoints and webhook subscriptions. An unknown or malformed ID, or another account’s, is
|
Responses
Done.
No body.
401 Unauthorized. No valid portal access token. API Gateway checks it before the API runs, so this body is API Gateway’s, not a Problem.
404 Not Found, code: not_found. Nothing with that ID or slug, or not yours.
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
429 Too Many Requests. Over the stage’s request throttle. API Gateway answers before the API does, so this body isn’t a Problem. Wait, then retry with backoff.