Skip to Content
Flows

Archive a flow

Permissionflows:deleteAdd-onFlowsAuthentication
DELETE
/flows/{id}

Soft-archives the flow.

Calls that already ran through it stay readable with the graph they used, and the member agents are untouched.

Blocked while a number still points at it

The request is rejected with 409 flow_in_use while any non-archived phone number still targets this flow. The error details list every blocking number — re-point them and retry.

Repeating DELETE after archive is an audited 204 no-op.

If-Match is optional: omitting it archives unconditionally, * accepts the current representation, and a stale strong tag returns 412 with the current ETag. Any request body returns 400 unexpected_body.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Response Body

Flow archived, or it was already archived.

Example Request
curl -X DELETE 'https://api.kejue.co/v1/flows/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty