Create an API key
When authenticated with an API key, this operation requires api-admin.
Authentication
AuthorizationBearer
Console user session or Mixlayer API key supplied as a Bearer token.
Path parameters
org_id
Organization ID
Request
This endpoint expects a nullable object.
expires_at
Expiration timestamp, which must be in the future. Omit or use null for
no expiration.
name
Human-readable key name. Whitespace is trimmed and the maximum length is 200 characters.
permissions
Permissions granted to the key. Defaults to inference and must contain
at least one permission.
Response
API key and its one-time secret
data
User-facing API key metadata with its one-time secret.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
500
Internal Server Error