- Docs
- API reference
- Keys
- List keys
List keys
Code samples show live values. Live is in early access and not yet open to new partners: see Environments.
GET
https://sandbox-api.tryflume.ai/partner/v1/keysReturns your partner keys and their status. It never returns a secret.
Guide: Rotate keys
Request
Headers
| Header | Required | Description |
|---|---|---|
X-Flume-Partner-Key | Yes | Your partner key. See Authentication and keys. |
This call takes no body.
Returns
200 with these fields. Every field is always present. A field with no value is null.
keysarray of objectsEvery key, newest first.
ShowHide the 7 fields of
keyskey_idstringThe key's id. Use it to revoke the key.
prefixstringThe start of the key. Safe to log.
labelstring or nullThe name you gave the key.
statusenumACTIVE,EXPIRING(replaced, and working untilexpires_at),REVOKEDorEXPIRED.created_atstringWhen the key was issued, in UTC.
last_used_atstring or nullWhen the key was last used, in UTC.
expires_atstring or nullWhen a replaced key stops working, in UTC.
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. |
| 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. |