Skip to main content
POST
/
v1
/
manage
/
apikey
Create new API key
curl --request POST \
  --url https://api-v2.requesty.ai/v1/manage/apikey \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "monthly_limit": 123,
  "permissions": {
    "manage": "none",
    "completions": "none"
  }
}'
{
  "api_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "api_key": "<string>"
}
Create a new API key for your organization. The API key will be created with the specified name and monthly limit.
The API key string is only returned once upon creation. Make sure to save it securely as it cannot be retrieved later.

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
name
string
required
monthly_limit
number
permissions
object

Response

API key created successfully

api_key_id
string<uuid>
required
api_key
string
required