# Act on every member

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

POST `/v1/collections/{id}/actions`

Pause, resume, refresh or switch analysis for every live member Tracker at once.

- Shared members: a Collection holds no state, so the action writes through to each Tracker, for all its Collections. Pausing "Competitors" also pauses a creator you track for "Influencers".
- Finding them: every answer lists them in `trackers_in_other_collections` (for `refresh`, in the Run result and the estimate).
- Free actions: `pause`, `resume` and `intelligence` are free, answer at once and are not Runs.
- Active limit: `resume` resumes nothing when the batch would pass the active-Tracker limit.
- Refresh: `refresh` runs every member's cycle now, paused ones included, as one Run with one item per member.
- Refresh failures: failed members are uncharged, some failing makes the Run partial, all failing makes it failed and free.

## Price

Free, except `refresh`: one cycle per member refreshed, 6 credits for a creator, 30 credits for an advertiser, plus 20 credits per new video on members with analysis on.

Supports `estimate=true`: the reply is the price in Credits and whether it would be `cached`, with no Run created and nothing charged.

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | path | `string` | Required | — | Collection id. |
| `wait` | query | `integer` min 0; max 120 | Optional | `30` | Seconds to hold the response open before handing back a running Run to poll. Default 30, max 120. A POST may send it in the body instead; different values in both places are a 400. Only `refresh` waits; the other actions answer at once. |
| `estimate` | query | `boolean` | Optional | — | `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. Nothing is charged. Only `true` or `false`, else a 400. A POST may send it in the body instead; different values in both places are a 400. |
| `max_credits` | query | `integer` min 0 | Optional | — | Most Credits the call may cost. A higher quote is a 402 `max_credits_exceeded`, no Run. Where `x-price.max_credits` is null, the Run stops at it and settles `partial`. |
| `Idempotency-Key` | header | `string` | Optional | — | 1-255 printable ASCII characters. The same key and payload returns the original Run (202 while running); a different payload or operation is a 409 `idempotency_conflict`. |

## Request body

`application/json`

object

- `action` string required one of `pause`, `resume`, `refresh`, `intelligence` `pause` or `resume` every member; `refresh` runs every member's cycle now (a paid Run); `intelligence` switches analysis of new videos on or off for every member.
- `intelligence` boolean Required with `intelligence`: true switches analysis on, false off.
- `wait` number value 0 to 120 Default `30` Seconds to hold the response open before returning a running Run to poll. Default 30, max 120.
- `estimate` boolean `true` returns `{ estimate_credits, cached }`, creates no Run and charges nothing.

## Responses

### 200 OK

`pause`, `resume`, `intelligence`: `{ action, collection, trackers, changed_tracker_ids, trackers_in_other_collections }`. `refresh`: the Run envelope `{ run, result, trackers_in_other_collections }`; with `estimate=true`, `{ estimate_credits, trackers, per_tracker_credits, trackers_in_other_collections }`. With `estimate=true` the free actions answer `{ estimate_credits: 0, cached, trackers_in_other_collections }` and change nothing: the way to see what a pause would reach before making it.

any of 3 shapes

- Option 1 object
  - `action` string required one of `pause`, `resume`, `intelligence` The action applied.
  - `collection` object required A named set of Trackers of one kind. Holds no state: pausing, analysis and cycles belong to each Tracker.
    - `id` string required
    - `name` string required Unique per Customer, regardless of case.
    - `kind` string required one of `creator`, `hashtag`, `sound`, `advertiser`, `keyword`, `video` What every member is. Fixed at creation. `video` is deprecated: existing Video Collections keep working, new ones are refused with 400 `kind_deprecated`.
    - `member_count` integer required Live (active or paused) member Trackers.
    - `created_at` string required
    - `updated_at` string required
  - `trackers` array of object required Every live member, as it now is.
    - `id` string required
    - `kind` string required one of `creator`, `hashtag`, `sound`, `advertiser`, `keyword`, `video` `video` is deprecated (ADR 0024): existing Video Trackers keep working, new ones are refused with 400 `kind_deprecated`.
    - `platform` string required `meta` or `tiktok` for an advertiser Tracker.
    - `target` string required
    - `intelligence` boolean required Whether each new video (or Ad) the cycle finds is analysed.
    - `state` string required one of `active`, `paused`, `deleted`
    - `last_cycle_at` string required nullable
    - `last_run_id` string required nullable
    - `created_at` string required
    - `updated_at` string required
    - `coverage` string one of `library_regions_only`, `partial` `GET /v1/trackers/{id}`. TikTok advertiser: `library_regions_only` when its latest observation found no Ads in the TikTok ad library, which holds only Ads delivered in the EU/EEA, Switzerland, the UK and Turkey. Google advertiser: `partial` when it runs more Ads than a cycle lists. Keyword on Instagram or Facebook: `partial`, their search being a best-effort index. Absent otherwise.
    - `coverage_note` string The regions the TikTok ad library covers, beside `coverage`.
    - `focus` object The Tracker's Focus: which Videos are relevant to you. Terms are stored lowercased. Absent when it has none.
      - `text` string required
      - `must_mention` array of string required
  - `changed_tracker_ids` array of string required Members this call changed. One already in the asked-for state is left alone.
  - `trackers_in_other_collections` array of object required Members also in other Collections.
    - `tracker_id` string required
    - `platform` string required
    - `target` string required
    - `state` string required one of `active`, `paused`
    - `collections` array of object required The other Collections it sits in. This one is left out.
      - `id` string required
      - `name` string required
- Option 2 object The envelope every charged operation answers with: `{ run }` while the Run is running (plus `poll_url` on the 202), joined by `result` once it completes or `error` once it fails.
  - `run` object required Every charged operation creates a Run; the envelope is the same inline or polled.
    - `id` string required
    - `kind` string required What was run, e.g. `video_lookup`.
    - `status` string required one of `running`, `completed`, `partial`, `failed` `partial` keeps the completed items and charges for them, up to what the Balance covers; `failed` charges nothing.
    - `created_at` string required RFC 3339.
    - `completed_at` string required nullable Null while the Run is still running.
    - `charge_credits` integer required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.
    - `list_price_credits` integer required The full price of the work asked for, in Credits. Equal to `charge_credits` unless the Run charged for only part of it.
    - `cached` boolean required True when a stored result answered without a fresh fetch.
    - `progress` object A running Research's `stage` and counts so far, such as `analysed` of `shortlisted`; a count is absent until known. Absent once the Run settles and on other kinds.
      - `stage` string required one of `keywords`, `searching`, `reading_creators`, `filtering`, `analysing`, `writing_digest`
      - `keywords` integer value at least 0
      - `creators` integer value at least 0
      - `creators_read` integer value at least 0
      - `searches` integer value at least 0
      - `found` integer value at least 0
      - `judged` integer value at least 0
      - `kept` integer value at least 0
      - `dropped_off_topic` integer value at least 0
      - `dropped_unsure` integer value at least 0
      - `shortlisted` integer value at least 0
      - `analysed` integer value at least 0
      - `updated_at` string required
  - `result` object required What a Collection refresh did. One item per member at `GET /v1/runs/{id}/items`.
    - `collection_id` string required
    - `collection_name` string required
    - `requested` integer required Live members when the refresh started.
    - `refreshed` integer required Members whose cycle completed, and the only ones charged.
    - `failed` integer required
    - `change_reports` integer required Change Reports the refresh produced; read them per Tracker.
    - `trackers_in_other_collections` array of object required
      - `tracker_id` string required
      - `platform` string required
      - `target` string required
      - `state` string required one of `active`, `paused`
      - `collections` array of object required The other Collections it sits in. This one is left out.
        - `id` string required
        - `name` string required
    - `waived_credits` number Only when analysis surcharges passed the Balance: the part not charged. The charge stops at the Balance.
  - `trackers_in_other_collections` array of object required
    - `tracker_id` string required
    - `platform` string required
    - `target` string required
    - `state` string required one of `active`, `paused`
    - `collections` array of object required The other Collections it sits in. This one is left out.
      - `id` string required
      - `name` string required
- Option 3 object Returned instead of a Run when `estimate=true`. Nothing is charged; some operations add members.
  - `estimate_credits` integer required What the call would be charged, in Credits.
  - `cached` boolean required Whether a stored result can already answer. It does not change the price.

### 202 Accepted

`refresh` still running: `{ run, trackers_in_other_collections }`. Poll `GET /v1/runs/{id}`.

object

Still running. Poll `poll_url` (`GET /v1/runs/{id}`), waiting the 202's `Retry-After` seconds between polls.

- `run` object required Every charged operation creates a Run; the envelope is the same inline or polled. Its fields are on [Poll or re-read a run](https://www.shortsintel.com/docs/reference/runs/get-run#response-200).
- `poll_url` string required format `uri` Absolute URL of `GET /v1/runs/{id}`, the body's copy of the `Location` header (for MCP). Present only while `running`.
- `trackers_in_other_collections` array of object required
  - `tracker_id` string required
  - `platform` string required
  - `target` string required
  - `state` string required one of `active`, `paused`
  - `collections` array of object required The other Collections it sits in. This one is left out.
    - `id` string required
    - `name` string required

202 · Example

```json
{
  "run": {
    "id": "run_8f2c1ad04b",
    "kind": "collection_refresh",
    "status": "running",
    "created_at": "2026-09-08T09:14:02.418Z",
    "completed_at": null,
    "charge_credits": 0,
    "list_price_credits": 0,
    "cached": false
  },
  "poll_url": "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b",
  "trackers_in_other_collections": [
    {
      "tracker_id": "trk_4b1e90c7aa",
      "platform": "tiktok",
      "target": "someone",
      "state": "active",
      "collections": [
        {
          "id": "col_51b0a9e2f7",
          "name": "Influencers"
        }
      ]
    }
  ]
}
```

### 400 Bad Request

`invalid_request` — an unknown `action`, `intelligence` without `intelligence: true|false`, or `refresh` on a Collection with no members.

Code: `invalid_request`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 401 Unauthorized

Codes: `missing_authorization`, `invalid_key`, `key_revoked`, `key_expired`, `invalid_token`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 402 Payment Required

`insufficient_balance` — `refresh` only, checked against one cycle per member before any work starts.

Code: `insufficient_balance`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 404 Not Found

Code: `not_found`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 409 Conflict

`tracker_limit_exceeded` — `resume` would pass the active-Tracker limit. Nothing is resumed. Or: `idempotency_conflict` — the same Idempotency-Key with a different payload.

Codes: `tracker_limit_exceeded`, `idempotency_conflict`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 422 Unprocessable Content

`unsupported_kind` — `refresh` on a Collection of a kind with no cycle yet (video). Nothing is run or charged.

Code: `unsupported_kind`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 429 Too Many Requests

`rate_limit_exceeded` or `concurrency_limit_exceeded`, with `Retry-After`.

Codes: `rate_limit_exceeded`, `concurrency_limit_exceeded`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

## Related guides

This call creates a Run. With `wait` it holds the response open until the Run finishes or the wait runs out, then answers with the finished result or `202` and the running Run. Poll [`GET /v1/runs/{id}`](https://www.shortsintel.com/docs/reference/runs/get-run) until it settles; re-reading a Run is free.

- [Runs](https://www.shortsintel.com/docs/concepts/runs): How a call becomes a Run, waiting inline, polling and free re-reads.

## Request samples

curl:

```bash
curl -X POST "https://www.shortsintel.com/v1/collections/col_7d20e1b5c4/actions?wait=30" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"pause"}'
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/collections/col_7d20e1b5c4/actions?wait=30",
  {
    method: "POST",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      "action": "pause"
    }),
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.post(
    "https://www.shortsintel.com/v1/collections/col_7d20e1b5c4/actions?wait=30",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
        "Content-Type": "application/json",
    },
    json={
        "action": "pause",
    },
)
response.raise_for_status()

data = response.json()
```

200 · `pause`, `resume`, `intelligence`: `{ action, collection, trackers, changed_tracker_ids, trackers_in_other_collections }`. `refresh`: the Run envelope `{ run, result, trackers_in_other_collections }`; with `estimate=true`, `{ estimate_credits, trackers, per_tracker_credits, trackers_in_other_collections }`. With `estimate=true` the free actions answer `{ estimate_credits: 0, cached, trackers_in_other_collections }` and change nothing: the way to see what a pause would reach before making it.

```json
{
  "action": "pause",
  "collection": {
    "id": "col_7d20e1b5c4",
    "name": "Competitors",
    "kind": "creator",
    "member_count": 4,
    "created_at": "2026-09-02T09:14:40.221Z",
    "updated_at": "2026-09-02T09:14:40.221Z"
  },
  "trackers": [
    {
      "id": "trk_4b1e90c7aa",
      "kind": "creator",
      "platform": "tiktok",
      "target": "someone",
      "intelligence": true,
      "state": "paused",
      "last_cycle_at": "2026-09-08T04:00:11.402Z",
      "last_run_id": "run_c07a41bb92",
      "created_at": "2026-09-01T11:20:03.118Z",
      "updated_at": "2026-09-08T04:00:11.402Z"
    }
  ],
  "changed_tracker_ids": [
    "trk_4b1e90c7aa"
  ],
  "trackers_in_other_collections": [
    {
      "tracker_id": "trk_4b1e90c7aa",
      "platform": "tiktok",
      "target": "someone",
      "state": "paused",
      "collections": [
        {
          "id": "col_51b0a9e2f7",
          "name": "Influencers"
        }
      ]
    }
  ]
}
```

200 · `refresh`, finished inside the wait budget. Partial: one of four members could not be fetched and was not charged.

```json
{
  "run": {
    "id": "run_8f2c1ad04b",
    "kind": "collection_refresh",
    "status": "partial",
    "created_at": "2026-09-08T09:14:02.418Z",
    "completed_at": "2026-09-08T09:14:04.930Z",
    "charge_credits": 150,
    "list_price_credits": 150,
    "cached": false
  },
  "result": {
    "collection_id": "col_7d20e1b5c4",
    "collection_name": "Competitors",
    "requested": 4,
    "refreshed": 3,
    "failed": 1,
    "change_reports": 1,
    "trackers_in_other_collections": [
      {
        "tracker_id": "trk_4b1e90c7aa",
        "platform": "tiktok",
        "target": "someone",
        "state": "active",
        "collections": [
          {
            "id": "col_51b0a9e2f7",
            "name": "Influencers"
          }
        ]
      }
    ]
  },
  "trackers_in_other_collections": [
    {
      "tracker_id": "trk_4b1e90c7aa",
      "platform": "tiktok",
      "target": "someone",
      "state": "active",
      "collections": [
        {
          "id": "col_51b0a9e2f7",
          "name": "Influencers"
        }
      ]
    }
  ]
}
```

200 · `refresh` with `estimate=true`: the price, no Run, no charge.

```json
{
  "estimate_credits": 24,
  "cached": false,
  "trackers": 4,
  "per_tracker_credits": 6,
  "trackers_with_analysis": 0,
  "note": "A member that cannot be refreshed is not charged, so the final charge is at or below this quote.",
  "trackers_in_other_collections": [
    {
      "tracker_id": "trk_4b1e90c7aa",
      "platform": "tiktok",
      "target": "someone",
      "state": "active",
      "collections": [
        {
          "id": "col_51b0a9e2f7",
          "name": "Influencers"
        }
      ]
    }
  ]
}
```

[Previous Remove a member](https://www.shortsintel.com/docs/reference/collections/remove-collection-member)
