Creates a new API key for the specified organization. The secret is only returned once in the response and cannot be retrieved later.
Bearer authentication header of the form Bearer
CreateApiKeyRequest contains the data needed to create a new API key.
Human-readable name for the key (e.g., "Production", "Staging").
1 - 63Organization ID to create the key for. Pattern: org_[0-9a-hjkmnp-tv-z]{26}
^org_[0-9a-hjkmnp-tv-z]{26}$Expiration timestamp. If not set, the key does not expire. When set, must be in the future and within 1 year. Security note: Keys without expiration should be rotated periodically. timestamp.gt_now = true timestamp.within = 8760h0m0s
Success
CreateApiKeyResponse contains the newly created API key and its secret.
The created API key metadata.
The API key secret. This is only returned once and cannot be retrieved later. Format: ffy_{env}_{base32_uuid7}{base62_random}
78^ffy_(prod|test)_[A-Za-z0-9]+$"ffy_prod_01h2xcejqtf2nbrexx3vqjhp41KJ8f3mNpQrStUvWxYz0123456789ABCDEFGHIJKLmNo"