> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Collection cadences

> Lists, creates, gets, deletes and reorders the workspace's cadences

# Collection cadences

Manages through the API the cadences you build on the **Cobrança › Régua** screen: who enters (filter), the delinquency bands and the contacts of each band (day, channel, time, condition). The rules are the same as the screen's. Available only to debt-collection workspaces (see [Debt collection portfolio](https://docs.talkover.ai/en/api-reference/portfolio/overview.md)).

> [!NOTE]
>
> Cadences must be enabled for your workspace. Without that, every call answers `404`. A workspace that is not debt collection answers `403`.

## How a cadence works

* A workspace has several cadences, in **priority** order. A debt belongs only to the first active cadence whose filter it matches.
* Each cadence has a **draft** and **published versions**. You edit the draft; publishing turns it into a new version that never changes.
* `status`: `draft` (never published), `active` or `paused`. Publishing again keeps the status: a paused cadence stays paused until you resume it.
* Today every cadence runs in **simulation** (`mode: simulate`): it plans the contacts but does not call or send. Real contacts are enabled by Talkover, cadence by cadence.

## Endpoints

| What it does | Call |
| - | - |
| Lists the cadences, in priority order | `GET /api/v1/cadences` |
| Creates a cadence (empty draft) | `POST /api/v1/cadences` |
| Gets a cadence: version in force, draft and filter fields | `GET /api/v1/cadences/{id}` |
| Deletes a never-published cadence | `DELETE /api/v1/cadences/{id}` |
| Reorders the priority | `PUT /api/v1/cadences/order` |
| [Saves or discards the draft](https://docs.talkover.ai/en/api-reference/portfolio/cadence-draft.md) | `PUT` / `DELETE /api/v1/cadences/{id}/draft` |
| [Publishes, pauses, resumes, lists and restores versions, computes the impact](https://docs.talkover.ai/en/api-reference/portfolio/cadence-lifecycle.md) | `POST /api/v1/cadences/{id}/publish` and others |
| [General rules and channels](https://docs.talkover.ai/en/api-reference/portfolio/cadence-settings.md) | `GET` / `PUT /api/v1/cadences/settings`, `GET /api/v1/cadences/channels` |

## Authentication

Use the environment token:

```bash theme={null}
Authorization: Bearer talq_your_environment_token_here
```

A user token (with `X-Environment-Id`) also works. To change cadences, the user needs the permission to manage campaigns in the workspace; without it, changes answer `403` and reads still work.

## Create a cadence

**name** `string` *required*

Cadence name, up to 120 characters.

```bash theme={null}
curl -X POST "https://app.talkover.ai/api/v1/cadences" \
  -H "Authorization: Bearer talq_your_environment_token_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Card · up to 90 days"}'
```

The response is `201` with the cadence in the get format. It goes to the end of the priority order.

## Get a cadence

```json theme={null}
{
  "success": true,
  "message": "",
  "data": {
    "cadence": { "id": "01a2…", "name": "Card · up to 90 days", "description": null, "status": "active", "mode": "simulate", "priority": 1 },
    "current": { "id": "01a2…", "number": 1, "lock_version": 3, "published_at": "2026-11-24T18:00:00+00:00", "note": null, "filter": { "root": "and", "groups": [] }, "agreement": { "pauses": false, "pause_days": null, "broken_returns": false }, "reply_pause_days": 1, "steps": [ … ] },
    "draft": null,
    "filter_fields": { "fixed": ["creditor", "amount_due", "…"], "custom": ["store_code"] }
  }
}
```

**current** `object`

The version in force, or `null` if the cadence was never published. Format in [Cadence draft](https://docs.talkover.ai/en/api-reference/portfolio/cadence-draft.md).

**draft** `object`

The draft, or `null` when no edit is in progress. Carries the `lock_version` you send when saving and publishing.

**filter\_fields** `object`

The fields the filter accepts: the fixed contract fields and up to 50 free keys seen in your debts.

## Reorder

**ids** `array` *required*

The ids of **all** the workspace's cadences, in the new order (the first gets priority 1).

An incomplete list or a repeated id answers `422`.

## Error responses

| Status | When |
| - | - |
| `401` | missing or invalid token |
| `403` | the workspace is not debt collection, or a user token without permission to change cadences |
| `404` | cadences not enabled for the workspace, or a cadence id from another workspace |
| `422` | invalid field (`errors` says which), deleting a published cadence (pause it instead), incomplete order |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.