Skip to main content
POST
/
security
/
keys
Create
curl --request POST \
  --url https://app.coolify.io/api/v1/security/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "private_key": "<string>"
}'
{
  "uuid": "<string>"
}

Authorizations

Authorization
string
header
required

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Body

application/json
private_key
string
required
name
string
description
string

Response

The created private key's UUID.

uuid
string
I