[Skip to content](https://coolify.io/docs/api-reference/api/operations/create-private-key#VPContent) Return to top Create[​](https://coolify.io/docs/api-reference/api/operations/create-private-key#create) ========================================================================================== POST /security/keys Create a new private key. Authorizations[​](https://coolify.io/docs/api-reference/api/operations/create-private-key#authorizations) ---------------------------------------------------------------------------------------------------------- bearerAuth Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token. Type HTTP (bearer) Request Body[​](https://coolify.io/docs/api-reference/api/operations/create-private-key#request-body) ------------------------------------------------------------------------------------------------------ application/json SchemaJSON JSON { "name": "string", "description": "string", "private\_key": "string" } Responses[​](https://coolify.io/docs/api-reference/api/operations/create-private-key#responses) ------------------------------------------------------------------------------------------------ 201400401422 The created private key's UUID. Content-Type application/json SchemaJSON JSON { "uuid": "string" } POST /security/keys Playground[​](https://coolify.io/docs/api-reference/api/operations/create-private-key#playground) -------------------------------------------------------------------------------------------------- Authorization bearerAuth Body Try it out Samples[​](https://coolify.io/docs/api-reference/api/operations/create-private-key#samples) -------------------------------------------------------------------------------------------- Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)