Automations · Sequences

Update sequence

Updates a sequence. Fields you leave out keep their current values.

PATCHhttps://api.pozy.ai/v1/sequences/{sequenceId}
updateSequence

Guide: Sequences

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
sequenceIdrequiredstring

Request body

application/json, optional

  • namestring
  • descriptionstring
  • stepsarray of object
    • orderintegerrequired
    • delayMinutesintegerrequired
    • messageobject
      1 child field
      • textstring
    • templateobject
      3 child fields
      • namestring
      • languagestring
      • variableMappingmap of object

        Keys are free-form; each value has these fields.

        2 child fields
        • fieldstring

          One of name, phone, email, company, custom.

        • customValuestring
  • exitOnReplyboolean
  • exitOnUnsubscribeboolean

Example

curl -X PATCH "https://api.pozy.ai/v1/sequences/67ea9094754757c09f3c81ba" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme",
  "description": "A short description",
  "steps": [
    {
      "order": 1,
      "delayMinutes": 1
    }
  ],
  "exitOnReply": true
}'

Response

200 on success

  • successboolean
  • sequenceobject
    8 child fields
    • idstring
    • namestring
    • descriptionstring
    • statusstring
    • stepsarray of object
    • exitOnReplyboolean
    • exitOnUnsubscribeboolean
    • updatedAtstring (date-time)
200 response
{
  "success": true,
  "sequence": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "name": "Acme",
    "description": "A short description",
    "status": "active",
    "steps": [
      {}
    ],
    "exitOnReply": true,
    "exitOnUnsubscribe": true,
    "updatedAt": "2026-10-02T09:00:00.000Z"
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Sequences