Create a workflow
The workflow is always created as a draft with no published version. It can only be triggered after activateWorkflow, which requires at least one node, an entryNodeId and a structurally valid graph.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
This operation declares no path, query, header or cookie parameters.
Request body
Bodyobjectrequired
- required
[ "profileId", "accountId", "name" ]
profileIdstringrequired- example
b1c2d3e4f5a6b7c8d9e0f1a2
accountIdstringrequired- example
c1d2e3f4a5b6c7d8e9f0a1b2
namestringrequired- example
New customer welcome flow
platformstringIf provided it must be the SAME as the platform of the account; on mismatch 400. If omitted it is derived from the account.
- example
whatsapp
descriptionstring- example
Auto-reply to the first message
nodesarray
May be left empty - the workflow is born as a draft and its graph is written later.
Array itemobject
- required
[ "id", "type" ]
idstringrequiredUNIQUE node id within the graph. THE CLIENT assigns it; this API does not generate it. Edges and entryNodeId refer to this value.
- example
trigger-1
typestringrequiredNode type. CONSTRAINED FREE TEXT, NOT a closed set. The durable runtime interprets the trigger/entry/start/noop, message/send_message and end/exit types; another type is accepted and can be stored but fails closed with unsupported_node_type in the triggered execution.
- example
message
textstringFor type=message or type=send_message, the body sent to the provider. If it is empty or missing while either of these two types runs, the execution ends as failed with message_text_missing; on other types it is an opaque field.
- example
Hi there!
edgesarray
Array itemobject
- required
[ "from", "to" ]
fromstringrequiredId of the source node.
- example
trigger-1
tostringrequiredId of the target node.
- example
message-1
entryNodeIdstringIf provided it MUST EXIST within nodes.
Original schema
{
"$ref": "#/components/schemas/CreateWorkflowDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
201Response schema
Response 201object
- required
[ "success", "workflow" ]
successbooleanrequired- enum
[ true ]
workflowobjectrequired
- required
[ "id", "profileId", "accountId", "platform", "name", "description", "status", "currentVersion", "nodeCount", "createdAt", "updatedAt", "nodes", "edges", "entryNodeId" ]
idstringrequired24 hex workflow id
- example
a1b2c3d4e5f6a7b8c9d0e1f2
profileIdstringrequired- example
b1c2d3e4f5a6b7c8d9e0f1a2
accountIdstringrequiredThe connected social account the graph is executed over.
- example
c1d2e3f4a5b6c7d8e9f0a1b2
platformstringrequiredDERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400. The account can be changed but the platform DOES NOT CHANGE.
- example
whatsapp
namestringrequired- example
New customer welcome flow
descriptionstringrequired- nullable
true- example
Auto-reply to the first message
statusstringrequireddraft: cannot be triggered, the graph is edited freely. active: can be triggered; editing the graph gets 409 (pause first). paused: new triggers are not accepted, the graph can be edited again.
- enum
[ "draft", "active", "paused" ]- example
draft
currentVersionnumberrequiredLIVE version number; null means the workflow was never activated. While status=active the graph of this version is EXACTLY the same as the working graph (a database constraint plus the activation/restore gates guarantee this together).
- nullable
true- minimum
1
nodeCountnumberrequiredNode count in the graph. NOT a part of the Zernio envelope, it is our addition: the trade-off between the list endpoint not carrying the graph (response size) and the client being able to answer "is this workflow empty" without making a separate call (the same decision as stepCount on sequences).
- minimum
0
createdAtstringrequired- format
date-time
updatedAtstringrequired- format
date-time
nodesarrayrequired
Nodes. Fields are stored and returned as they are; on message/send_message nodes the durable runtime interprets the text field as the provider body.
Array itemobject
- required
[ "id", "type" ]
idstringrequiredUNIQUE node id within the graph. THE CLIENT assigns it; this API does not generate it. Edges and entryNodeId refer to this value.
- example
trigger-1
typestringrequiredNode type. CONSTRAINED FREE TEXT, NOT a closed set. The durable runtime interprets the trigger/entry/start/noop, message/send_message and end/exit types; another type is accepted and can be stored but fails closed with unsupported_node_type in the triggered execution.
- example
message
textstringFor type=message or type=send_message, the body sent to the provider. If it is empty or missing while either of these two types runs, the execution ends as failed with message_text_missing; on other types it is an opaque field.
- example
Hi there!
edgesarrayrequired
Array itemobject
- required
[ "from", "to" ]
fromstringrequiredId of the source node.
- example
trigger-1
tostringrequiredId of the target node.
- example
message-1
entryNodeIdstringrequiredStart node of the graph. MUST EXIST within nodes (400). CANNOT be null while status=active.
- nullable
true
Original schema
{
"$ref": "#/components/schemas/WorkflowResponseDto"
}400Response schema
Response 400object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}401Authentication failed
Authentication failed
Response 401object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}403Permission denied
Permission denied
Response 403object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}404Response schema
Response 404object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}409Conflict
Conflict
Response 409object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}429Rate limit exceeded
Rate limit exceeded
Response 429object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Response headers
X-RateLimit-Limit
Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.
X-RateLimit-Limitinteger- minimum
1
Original schema
{
"type": "integer",
"minimum": 1
}X-RateLimit-Remaining
Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.
X-RateLimit-Remaininginteger- minimum
0
Original schema
{
"type": "integer",
"minimum": 0
}X-RateLimit-Reset
Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.
X-RateLimit-Resetinteger- format
int64- minimum
0
Original schema
{
"type": "integer",
"format": "int64",
"minimum": 0
}Retry-After
Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.
Retry-Afterinteger- minimum
1- maximum
86400
Original schema
{
"type": "integer",
"minimum": 1,
"maximum": 86400
}500Server error
Server error
Response 500object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}502Platform error
Platform error
Response 502object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}503Service unavailable
Service unavailable
Response 503object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Referenced schemas
Original local definitions used by this operation. Recursive and deeply nested references can be inspected here without expanding them repeatedly.
CreateWorkflowDto
#/components/schemas/CreateWorkflowDto
{
"type": "object",
"properties": {
"profileId": {
"type": "string",
"example": "b1c2d3e4f5a6b7c8d9e0f1a2"
},
"accountId": {
"type": "string",
"example": "c1d2e3f4a5b6c7d8e9f0a1b2"
},
"name": {
"type": "string",
"example": "New customer welcome flow"
},
"platform": {
"type": "string",
"example": "whatsapp",
"description": "If provided it must be the SAME as the platform of the account; on mismatch 400. If omitted it is derived from the account."
},
"description": {
"type": "string",
"example": "Auto-reply to the first message"
},
"nodes": {
"description": "May be left empty - the workflow is born as a draft and its graph is written later.",
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkflowNodeDto"
}
},
"edges": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkflowEdgeDto"
}
},
"entryNodeId": {
"type": "string",
"description": "If provided it MUST EXIST within nodes."
}
},
"required": [
"profileId",
"accountId",
"name"
]
}WorkflowNodeDto
#/components/schemas/WorkflowNodeDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "trigger-1",
"description": "UNIQUE node id within the graph. THE CLIENT assigns it; this API does not generate it. Edges and entryNodeId refer to this value."
},
"type": {
"type": "string",
"example": "message",
"description": "Node type. CONSTRAINED FREE TEXT, NOT a closed set. The durable runtime interprets the trigger/entry/start/noop, message/send_message and end/exit types; another type is accepted and can be stored but fails closed with unsupported_node_type in the triggered execution."
},
"text": {
"type": "string",
"example": "Hi there!",
"description": "For type=message or type=send_message, the body sent to the provider. If it is empty or missing while either of these two types runs, the execution ends as failed with message_text_missing; on other types it is an opaque field."
}
},
"required": [
"id",
"type"
]
}WorkflowEdgeDto
#/components/schemas/WorkflowEdgeDto
{
"type": "object",
"properties": {
"from": {
"type": "string",
"example": "trigger-1",
"description": "Id of the source node."
},
"to": {
"type": "string",
"example": "message-1",
"description": "Id of the target node."
}
},
"required": [
"from",
"to"
]
}WorkflowResponseDto
#/components/schemas/WorkflowResponseDto
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
},
"workflow": {
"$ref": "#/components/schemas/WorkflowDetailDto"
}
},
"required": [
"success",
"workflow"
]
}WorkflowDetailDto
#/components/schemas/WorkflowDetailDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "a1b2c3d4e5f6a7b8c9d0e1f2",
"description": "24 hex workflow id"
},
"profileId": {
"type": "string",
"example": "b1c2d3e4f5a6b7c8d9e0f1a2"
},
"accountId": {
"type": "string",
"example": "c1d2e3f4a5b6c7d8e9f0a1b2",
"description": "The connected social account the graph is executed over."
},
"platform": {
"type": "string",
"example": "whatsapp",
"description": "DERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400. The account can be changed but the platform DOES NOT CHANGE."
},
"name": {
"type": "string",
"example": "New customer welcome flow"
},
"description": {
"type": "string",
"nullable": true,
"example": "Auto-reply to the first message"
},
"status": {
"type": "string",
"enum": [
"draft",
"active",
"paused"
],
"example": "draft",
"description": "draft: cannot be triggered, the graph is edited freely. active: can be triggered; editing the graph gets 409 (pause first). paused: new triggers are not accepted, the graph can be edited again."
},
"currentVersion": {
"type": "number",
"nullable": true,
"minimum": 1,
"description": "LIVE version number; null means the workflow was never activated. While status=active the graph of this version is EXACTLY the same as the working graph (a database constraint plus the activation/restore gates guarantee this together)."
},
"nodeCount": {
"type": "number",
"minimum": 0,
"description": "Node count in the graph. NOT a part of the Zernio envelope, it is our addition: the trade-off between the list endpoint not carrying the graph (response size) and the client being able to answer \"is this workflow empty\" without making a separate call (the same decision as `stepCount` on sequences)."
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"nodes": {
"description": "Nodes. Fields are stored and returned as they are; on message/send_message nodes the durable runtime interprets the `text` field as the provider body.",
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkflowNodeDto"
}
},
"edges": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkflowEdgeDto"
}
},
"entryNodeId": {
"type": "string",
"nullable": true,
"description": "Start node of the graph. MUST EXIST within nodes (400). CANNOT be null while status=active."
}
},
"required": [
"id",
"profileId",
"accountId",
"platform",
"name",
"description",
"status",
"currentVersion",
"nodeCount",
"createdAt",
"updatedAt",
"nodes",
"edges",
"entryNodeId"
]
}ZumpoErrorDto
#/components/schemas/ZumpoErrorDto
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Human-readable message. UNSTABLE — do not branch on it.",
"example": "WhatsApp session window expired; use a template message."
},
"type": {
"type": "string",
"description": "Stable error category (does not change across versions).",
"enum": [
"invalid_request_error",
"authentication_error",
"permission_error",
"not_found",
"conflict",
"rate_limit_error",
"platform_error",
"platform_rejected",
"account_disconnected",
"media_error",
"api_error"
],
"example": "invalid_request_error"
},
"code": {
"type": "string",
"description": "Stable machine-readable code.",
"example": "whatsapp_window_expired"
},
"param": {
"type": "string",
"description": "Offending parameter, present only when relevant.",
"example": "body"
},
"docUrl": {
"type": "string",
"description": "https://docs.zumpo.io/errors/{code}",
"example": "https://docs.zumpo.io/errors/whatsapp_window_expired"
},
"requestId": {
"type": "string",
"description": "Support correlation id: req_ + 16 hex.",
"example": "req_7f3a9c2e1b8d4056"
},
"details": {
"type": "object",
"additionalProperties": true,
"description": "Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.",
"example": {
"created": [
{
"kind": "campaign",
"platformId": "120210000000000001"
},
{
"kind": "adSet",
"platformId": "120210000000000002"
}
]
}
}
},
"required": [
"error",
"type",
"code",
"docUrl",
"requestId"
]
}