- You cannot revoke your only working key. Rotate first.
- Docs
- API reference
- Keys
- Revoke a key
Revoke a key
Code samples show live values. Live is in early access and not yet open to new partners: see Environments.
DELETE
https://sandbox-api.tryflume.ai/partner/v1/keys/{key_id}Revokes a partner key at once.
Guide: Rotate keys
Request
Headers
| Header | Required | Description |
|---|---|---|
X-Flume-Partner-Key | Yes | Your partner key. See Authentication and keys. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
key_id | string | The key to revoke, from GET /keys. |
This call takes no body.
Returns
204 with no body.
Errors
Every error uses one envelope. Branch on error.code.
| Status | Code | Meaning |
|---|---|---|
| 401 | EMBED_TOKEN_INVALID | You sent an Authorization header and no X-Flume-Partner-Key. Flume read the call as one from its own iframe. |
| 401 | PARTNER_KEY_INVALID | The partner key is missing, unknown, revoked, expired, or from the other environment. On live, also a platform Flume has not enabled yet. |
| 404 | NOT_FOUND | The thing does not exist, or is not this user's. A search id that is not a UUID also returns this code. |
| 409 | LAST_ACTIVE_KEY | This is your only working key. |
| 422 | VALIDATION_FAILED | A field is missing, unknown or has an unusable value. field names it as a dotted path. Some refusals carry the detail in details and leave field empty. |
| 500 | INTERNAL | Something failed on Flume's side. |