Skip to content

Create workflow connection

POST
/api/admin/workflow/connections
curl --request POST \
--url https://example.com/api/admin/workflow/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Camunda Production", "baseUrl": "https://camunda.example.com/api", "callbackBaseUrl": "https://cmbox.example.com", "auth": { "type": "bearer", "token": "secret-token", "username": "admin", "password": "example", "apiKey": "example", "headerName": "X-API-Key" } }'

Creates a new workflow connection

Media typeapplication/json
object
name
required

Human-readable connection name

string
Example
Camunda Production
baseUrl
required

Base URL of the workflow engine API

string format: uri
Example
https://camunda.example.com/api
callbackBaseUrl
required

Base URL for CM Box callbacks

string format: uri
Example
https://cmbox.example.com
auth
required
object
type
required

Authentication type

string
Allowed values: bearer basic api_key none
Example
bearer
token

Bearer token (for type: bearer)

string
Example
secret-token
username

Username (for type: basic)

string
Example
admin
password

Password (for type: basic)

string
apiKey

API key (for type: api_key)

string
headerName

Header name for API key (default: X-API-Key)

string
Example
X-API-Key

Connection created successfully

Media typeapplication/json
object
id
required

Unique connection identifier

string
name
required

Human-readable connection name

string
baseUrl
required

Base URL of the workflow engine API

string format: uri
callbackBaseUrl
required

Base URL for CM Box callbacks

string format: uri
auth
required
object
type
required

Authentication type

string
Allowed values: bearer basic api_key none
token

Bearer token (for type: bearer)

string
username

Username (for type: basic)

string
password

Password (for type: basic)

string
apiKey

API key (for type: api_key)

string
headerName

Header name for API key (default: X-API-Key)

string
Example
{
"id": "camunda-prod",
"name": "Camunda Production",
"baseUrl": "https://camunda.example.com/api",
"callbackBaseUrl": "https://cmbox.example.com",
"auth": {
"type": "bearer",
"token": "secret-token",
"username": "admin",
"headerName": "X-API-Key"
}
}

Invalid request body

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}

Connection with this ID already exists

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}

Internal server error

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}