Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Maximum string length: 120
Example:

"CI pipeline"

scopes
string[]
required

Granted scopes (least-privilege). Must be a subset of the caller.

Example:
environment
enum<string>
default:live
Available options:
live,
test
expiresAt
string<date-time>

ISO-8601 expiry; omit for a non-expiring key.

Response

Key created; token returned once.

token
string
required

The full secret token. Store it now - it is never retrievable again.

Example:

"mb_live_7Fq2Ka9Lm3Xb0ZpH_Ej3VcCSRq0qZHbFbi7GQwD… "

apiKey
object
required