Skip to main content
POST
/
api
/
workflows
Create workflow
curl --request POST \
  --url https://api.agentixx.io/api/workflows \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-id: <api-key>' \
  --cookie better-auth.session_token= \
  --data '
{
  "name": "Customer Support Bot",
  "triggerType": "trigger.inbound_message"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>"
}

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-tenant-id
string
header
required

Tenant/workspace UUID. Required on all /api/* endpoints.

Body

application/json

Create a new workflow

name
string
required
Minimum string length: 1
triggerType
string

Response

Workflow created

id
string<uuid>
required
name
string
required
{key}
any