Skip to main content
POST
/
api
/
organizations
/
api-keys
/
cURL
curl --request POST \
  --url https://api.bedrock.orinlabs.org/api/organizations/api-keys/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "is_active": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "key": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "is_active": true
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

name
string
Maximum string length: 255
is_active
boolean

Response

201 - application/json
id
string<uuid>
required
read-only
key
string | null
required
read-only

Only show full key on creation. After that, show masked version.

created_at
string<date-time>
required
read-only
name
string
Maximum string length: 255
is_active
boolean