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

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

API key serializer for product-level API keys.

name
string
Maximum string length: 255
product
string<uuid>
is_active
boolean

Response

201 - application/json

API key serializer for product-level API keys.

id
string<uuid>
required
key
string | null
required

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

created_at
string<date-time>
required
name
string
Maximum string length: 255
product
string<uuid>
is_active
boolean