POST
/
security
/
keys
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

Response

201
application/json

The created private key's UUID.

The response is of type object.