Skip to content

List keys

GEThttps://sandbox-api.tryflume.ai/partner/v1/keys

Returns your partner keys and their status. It never returns a secret.

Guide: Rotate keys

Request

Headers

HeaderRequiredDescription
X-Flume-Partner-KeyYesYour 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 objects

    Every key, newest first.

    ShowHide the 7 fields of keys
    • key_idstring

      The key's id. Use it to revoke the key.

    • prefixstring

      The start of the key. Safe to log.

    • labelstring or null

      The name you gave the key.

    • statusenum

      ACTIVE, EXPIRING (replaced, and working until expires_at), REVOKED or EXPIRED.

    • When the key was issued, in UTC.

    • last_used_atstring or null

      When the key was last used, in UTC.

    • expires_atstring or null

      When a replaced key stops working, in UTC.

Errors

Every error uses one envelope. Branch on error.code.

StatusCodeMeaning
401EMBED_TOKEN_INVALIDYou sent an Authorization header and no X-Flume-Partner-Key. Flume read the call as one from its own iframe.
401PARTNER_KEY_INVALIDThe partner key is missing, unknown, revoked, expired, or from the other environment. On live, also a platform Flume has not enabled yet.
422VALIDATION_FAILEDA 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.
500INTERNALSomething failed on Flume's side.