Create an API key
/api-keysMints a new API key for the installed organization and returns it. This is the only way to create an API key programmatically — the raw key is returned once in this response; store it securely.
A new key owns no numbers until you assign channels to it (see Assign a channel to an API key) and, by default, has no explicit expiry (valid_until: -1). Organizations are capped at a fixed number of active keys; exceeding it returns 409 api_key_limit_reached.
Blooio Apps (OAuth) only. Requires the apikeys:manage scope. API-key and dashboard authentication are rejected with 403 oauth_token_required.
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Body parameters
JSONnameoptionalstringHuman-readable label for the key.
typeoptionalstringOptional key type/category tag.
valid_untiloptionalinteger | nullExpiry time (epoch milliseconds). Pass null or -1 (or omit) for a key that never expires.
Returns
dataoptionalApiKeyAn organization API key. The api_key field is the secret bearer value — it is returned in full by the create and list endpoints and must be stored securely.
dataoptionalApiKeyAn organization API key. The api_key field is the secret bearer value — it is returned in full by the create and list endpoints and must be stored securely.
api_keyoptionalstringThe secret key value (prefixed api_). Send it as Authorization: Bearer <api_key> on API requests.
nameoptionalstring | nullHuman-readable label for the key.
typeoptionalstring | nullOptional key type/category tag.
created_atoptionalinteger | nullCreation time (epoch milliseconds).
valid_untiloptionalintegerExpiry time (epoch milliseconds), or -1 when the key never expires.
blockedoptionalbooleanWhether the key is blocked (suspended).
deprecatedoptionalbooleanWhether the key has been deprecated (revoked).
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X POST https://api.blooio.com/v4/api-keys \{ "data": { "api_key": "sk_live_a1b2c3d4", "name": "Jane Doe", "type": "string", "created_at": 0, "valid_until": 0, "blocked": false, "deprecated": false }}