Skip to main content
POST
/
v1
/
agents
Create AI agent
curl --request POST \
  --url https://api.craftcx.com/v1/agents \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My OpenClaw Agent",
  "type": "custom",
  "external_id": "agent_123"
}
'
{
  "id": "pfh0haxfpzowht3oi213cqos",
  "name": "My OpenClaw Agent",
  "type": "custom",
  "external_id": "agent_123",
  "created_at": 1756692778077
}

Body

application/json
name
string
required

Display name for the AI agent.

Minimum string length: 1
Example:

"My OpenClaw Agent"

type
enum<string>
required

Agent type. Only custom agents are supported for now.

Available options:
custom
Example:

"custom"

external_id
string
required

Your stable external ID from the source system for this AI agent.

Minimum string length: 1
Example:

"agent_123"

Response

Created AI agent

id
string
required

CraftCX AI Agent ID.

Example:

"pfh0haxfpzowht3oi213cqos"

name
string
required

Display name for the AI agent.

Example:

"My OpenClaw Agent"

type
enum<string>
required

Agent type.

Available options:
custom
Example:

"custom"

external_id
string
required

Your stable external ID from the source system for this AI agent.

Example:

"agent_123"

created_at
number
required

Created at as epoch timestamp (ms).

Example:

1756692778077