post/me/keys

Issue a new API key for my org

Headers

ParameterInTypeDescription
authorization
headerstring

Request body

Request example
{
  "name": "Default",
  "expires_in_days": 1
}

Responses

201Successful Response
Example · 201
{
  "raw_key": "<Raw Key>",
  "key_prefix": "<Key Prefix>",
  "key_id": "<Key Id>",
  "org_id": "<Org Id>",
  "name": "<Name>",
  "created_at": "<Created At>",
  "expires_at": "string"
}
422Validation Error
Example · 422
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "<Message>",
      "type": "<Error Type>"
    }
  ]
}

Code samples

Generated from the live OpenAPI spec. Replace $SAVITAR_API_KEY with a key from your dashboard.

curl -X POST "https://redactra-api-direct-yjxsqk46ja-el.a.run.app/me/keys" \
  -H "Authorization: Bearer $SAVITAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Default",
  "expires_in_days": 1
}'