Skip to main content
POST

Authorizations

X-BRONTO-API-KEY
string
header
required

Body

application/json
name
string
required

The name of the API key to create

Required string length: 1 - 255
Example:

"Production API Key"

roles
object
required

A list of api key role ids

Example:
ttl
integer<int64>

The time to live for the API key in seconds, defaults to no expiry

Required range: 0 <= x <= 70000000
Example:

31536000

Response

API keys is created successfully

id
string<uuid>

The unique identifier for the API key

name
string

The name of the API key

Example:

"Production API Key"

api_key
string

The first 8 characters of the API key. Note its not possible to retrieve the key after creation time.

Example:

"2ad85149"

roles
object

A list of api key role ids

Example:
tags
object

A map of key value pairs associated with this log

Example:
expires_at
integer<int64>

The expiration time of the API key, expressed as a Unix timestamp. If not set, the key never expires.

Example:

1757000000

metadata
object

Common metadata attached to all persisted resources.