Contents

API reference

Flows

API reference descriptions are provided in English to preserve the exact published contract.

List Flows

GET /v1/accounts/{AC}/flows

Required scope: `templates:read`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
statusquery · string (max 32 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Create a local Flow draft

POST /v1/accounts/{AC}/flows

Required scope: `templates:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (6 fields)
Request body
NameTypeRequiredDescription
categoriesstring (max 64 chars)[]yes
definitionobjectyes
endpointMode"gateway" | "direct"
endpointUristring (uri, max 2048 chars)
namestring (max 256 chars)yes
wabaSidstring (WB… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Fetch a Flow

GET /v1/accounts/{AC}/flows/{FL}

Required scope: `templates:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Edit a Flow draft

PATCH /v1/accounts/{AC}/flows/{FL}

Required scope: `templates:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes
Request body (5 fields)
Request body
NameTypeRequiredDescription
categoriesstring (max 64 chars)[]
definitionobject
endpointMode"gateway" | "direct"
endpointUristring (uri, max 2048 chars)
namestring (max 256 chars)

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Clone a Flow definition into a new editable draft

POST /v1/accounts/{AC}/flows/{FL}/clone

Required scope: `templates:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes
Request body (1 fields)
Request body
NameTypeRequiredDescription
namestring (max 256 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Deprecate a Flow through Meta

POST /v1/accounts/{AC}/flows/{FL}/deprecate

Required scope: `templates:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Rotate the plaintext-signing secret for a gateway Flow endpoint

POST /v1/accounts/{AC}/flows/{FL}/endpoint/secret/rotate

Required scope: `templates:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List immutable Flow definition versions

GET /v1/accounts/{AC}/flows/{FL}/history

Required scope: `templates:read`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Publish a Flow through Meta

POST /v1/accounts/{AC}/flows/{FL}/publish

Required scope: `templates:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Flow endpoint and per-sender encryption-key readiness

GET /v1/accounts/{AC}/flows/{FL}/readiness

Required scope: `templates:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
FLpath · string (FL… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.