Generate API Key

POST /api/v1/orgs/me/apikeys

Generates a new API key for the organization associated with the authenticated user.

application/json

Body Required

API Key Label

  • label string Required

Responses

  • 201 application/json

    API key generated successfully

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 400 application/json

    Invalid request data

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 401 application/json

    Unauthorized or Org ID not found

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 500 application/json

    Failed to generate API key

    Hide response attribute Show response attribute object
    • * string Additional properties
POST /api/v1/orgs/me/apikeys
curl \
 --request POST 'http://api.example.com/api/v1/orgs/me/apikeys' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"label":"string"}'
Request examples
{
  "label": "string"
}
Response examples (201)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (400)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (401)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (500)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}