Skip to content

Create service​

POST
/services

Create a one-click / custom service

Authorizations​

bearerAuth

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

TypeHTTP (bearer)

Request Body​

JSON
{
"type": "string",
"name": "string",
"description": "string",
"project_uuid": "string",
"environment_name": "string",
"environment_uuid": "string",
"server_uuid": "string",
"destination_uuid": "string",
"instant_deploy": false
}

Responses​

Service created successfully.
application/json
JSON
{
"uuid": "string",
"domains": [
"string"
]
}

Playground​

Authorization
Body
JSON
{
type
:
string
name
:
string
description
:
string
project_uuid
:
string
environment_name
:
string
environment_uuid
:
string
server_uuid
:
string
destination_uuid
:
string
instant_deploy
:
false

Samples​

Bruno
POST https://app.coolify.io/api/v1/services

Headers
authorization: Bearer Token
content-type: application/json

Body
{
  "type": "string",
  "name": "string",
  "description": "string",
  "project_uuid": "string",
  "environment_name": "string",
  "environment_uuid": "string",
  "server_uuid": "string",
  "destination_uuid": "string",
  "instant_deploy": false
}
cURL
curl https://app.coolify.io/api/v1/services \
  --request POST \
  --header 'Authorization: Bearer Token' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "string",
  "name": "string",
  "description": "string",
  "project_uuid": "string",
  "environment_name": "string",
  "environment_uuid": "string",
  "server_uuid": "string",
  "destination_uuid": "string",
  "instant_deploy": false
}'
JavaScript
fetch('https://app.coolify.io/api/v1/services', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer Token',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    type: 'string',
    name: 'string',
    description: 'string',
    project_uuid: 'string',
    environment_name: 'string',
    environment_uuid: 'string',
    server_uuid: 'string',
    destination_uuid: 'string',
    instant_deploy: false
  })
})
PHP
$ch = curl_init("https://app.coolify.io/api/v1/services");

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer Token', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
  'type' => 'string',
  'name' => 'string',
  'description' => 'string',
  'project_uuid' => 'string',
  'environment_name' => 'string',
  'environment_uuid' => 'string',
  'server_uuid' => 'string',
  'destination_uuid' => 'string',
  'instant_deploy' => false
]));

curl_exec($ch);

curl_close($ch);
Python
requests.post("https://app.coolify.io/api/v1/services",
    headers={
      "Authorization": "Bearer Token",
      "Content-Type": "application/json"
    },
    json={
      "type": "string",
      "name": "string",
      "description": "string",
      "project_uuid": "string",
      "environment_name": "string",
      "environment_uuid": "string",
      "server_uuid": "string",
      "destination_uuid": "string",
      "instant_deploy": false
    }
)
Powered by VitePress OpenAPI