Skip to main content
POST
Publish and versions

Publish and versions

Publishes the draft as a new version, pauses and resumes the cadence, lists the published versions, restores an old version and counts how many debts the cadence takes. Available only to debt-collection workspaces (see Collection cadences).

Publish

integer
required
The lock_version of the draft you reviewed. If it changed since, the response is 409 and nothing is published.
string
Version note, up to 255 characters.
The first publication activates the cadence. Publishing again keeps the status: a paused cadence stays paused. A debt in the middle of a sequence finishes on the version it started; the new version applies from its next band entry.
Publishing is refused with 422 and the reasons in errors when, for example: there is no band; bands overlap; a band has no contact; a contact is outside its band; the channel is not available; the channel configuration is invalid (unpublished agent, archived campaign, WhatsApp template not approved, non-public webhook URL); a band’s first contact is not always.

Pause and resume

Pausing stops creating contacts at once; what is already in a campaign follows the campaign. Only resume sets the cadence back to active. A published cadence cannot be deleted: pause it.

Versions

Each version has the draft’s format, plus published_by_name (who published on the screen; null when published through the API with the environment token) and is_current. Restoring copies the chosen version into the draft (data.lock_version); nothing changes until you publish. A version of another cadence answers 404.

Impact

Counts, without creating contacts, how many debts of your portfolio enter the cadence: total, per band, outside the bands, already in a higher-priority cadence, and a histogram by delinquency. Uses the draft, or the version in force when there is no draft.
The impact goes through the whole portfolio: up to 10 calls per minute. Above that the response is 429.

Error responses