POST
/
api
/
v1
/
automations
/
rules
Create Automation Rule
curl --request POST \
  --url http://localhost:8080/api/v1/automations/rules \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "created_at": "2025-08-28T10:00:00Z",
  "updated_at": "2025-08-28T10:00:00Z",
  "name": "Auto-assign urgent tickets",
  "description": "Automatically assign high priority tickets to senior agents",
  "type": "new_conversation",
  "events": [
    "conversation.message.incoming"
  ],
  "enabled": true,
  "weight": 100,
  "execution_mode": "all",
  "rules": {}
}'
{
  "status": "success",
  "data": {
    "id": 1,
    "created_at": "2025-08-28T10:00:00Z",
    "updated_at": "2025-08-28T10:00:00Z",
    "name": "Auto-assign urgent tickets",
    "description": "Automatically assign high priority tickets to senior agents",
    "type": "new_conversation",
    "events": [
      "conversation.message.incoming"
    ],
    "enabled": true,
    "weight": 100,
    "execution_mode": "all",
    "rules": {}
  }
}

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Body

application/json

Automation rule details

The body is of type object.

Response

200
application/json

Rule created successfully

The response is of type object.