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

# Async jobs

> Track work that a 202 response queues.

Some operations take too long to finish within a single request, such as bulk imports and refreshing campaign post metrics. These endpoints return **`202 Accepted`** with a `jobId`:

```json theme={null}
{
  "success": true,
  "mode": "queued",
  "queued": 42,
  "jobId": "9d3f0b8e-…"
}
```

Poll [`GET /api/v2/tasks/{id}`](https://docs.creatorcore.co/api-reference/tasks/get-a-background-task) with that ID until `status` is `completed` or `failed`:

```json theme={null}
{
  "success": true,
  "task": {
    "id": "9d3f0b8e-…",
    "type": "bulk_refresh_campaign_posts",
    "status": "processing",
    "result": null
  }
}
```

| `status` | Meaning |
| - | - |
| `pending` | Queued, not yet started |
| `processing` | Running |
| `completed` | Finished. `result` holds output that depends on the task type. |
| `failed` | The task failed |

> [!TIP]
>
> Poll every few seconds with backoff. Each poll counts toward your key's [rate limit](https://docs.creatorcore.co/guides/rate-limits.md).

Some campaign refresh endpoints also offer a `…/refresh/status` URL that summarizes progress for the campaign.


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