Skip to main content
POST
/
v1
/
organizations
/
api_keys
Create Api Key
curl --request POST \
  --url https://api.example.com/v1/organizations/api_keys \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "expires_at_seconds": 123,
  "metadata": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Headers

Body

application/json
expires_at_seconds
integer | null
metadata
Metadata · object

Response

Successful Response