Create a new API key.
Create a new API key for the authenticated user. Requires a unique name per user per organization. The full composite API key (key_id.secret) is returned once in the response and cannot be retrieved again. Enforces MAX_ACCESS_KEYS_PER_USER limit (default 5, new table only).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
User-assigned label for the API key. Must be unique per user per organization. Must start with a letter (A-Z or a-z). After that, letters, digits, spaces, hyphens, and underscores are allowed. Leading and trailing whitespace is stripped by the server before saving.
1 - 128^[A-Za-z][A-Za-z0-9_ -]*$Expiration timestamp for the API key. Must be a future timestamp and cannot exceed 100 years from now. If not provided, defaults to 10 years from creation time.
Response
API key created successfully. The token field contains the full composite key_id.secret — this is the only time the secret is available.
Response object for standard API responses.