Create an org API key
POST/v1/orgs/:org_id/api-keys
Mints a new org-scoped cxh_key_* key. Callers must set expires_at, grace_period_days, and (when expiring) the notification email + lead time explicitly. The plaintext secret is returned exactly once in the response.
Request
Responses
- 200
- 400
- 401
- 403
- 409
- 422
Successful Response
Malformed request. error.code: BAD_REQUEST.
Authentication required. error.code: AUTHENTICATION_REQUIRED.
Permission denied
Name collision
Validation error