Skip to main content
POST
/
v1
/
sectors
curl -X POST https://api.whatabot.app/api/v1/sectors \
  -H "X-Api-Key: wh_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Sales", "workspaceId": "workspace-uuid"}'
Sectors are used as transfer targets — when a flow reaches a Transfer node, the conversation is routed to a specific sector.
X-Api-Key
string
required
Your API key (prefixed with wh_).

Body

name
string
required
Sector name (e.g. “Sales”, “Support”).
workspaceId
string
required
Workspace UUID.

Payload examples

{
  "name": "Sales",
  "workspaceId": "550e8400-e29b-41d4-a716-446655440000"
}
curl -X POST https://api.whatabot.app/api/v1/sectors \
  -H "X-Api-Key: wh_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Sales", "workspaceId": "workspace-uuid"}'