---
title: "Get Background Task"
method: GET
path: "/api/v1/background-task/{task_id}"
tags: ["Background Task"]
---

# Get Background Task

`GET /api/v1/background-task/{task_id}`

Get a background task by ID.

## Path parameters

- `task_id` string, required — The QueueBackgroundTask's ID.

## Response `200`

- BackgroundTaskOut
  - `data` object, required
  - `id` string, required — The QueueBackgroundTask's ID.
  - `status` 'running' | 'finished' | 'failed', required
  - `task` 'endpoint.replay' | 'endpoint.recover' | 'application.stats' | 'message.broadcast' | 'sdk.generate' | 'event-type.aggregate' | 'application.purge_content' | 'endpoint.bulk-replay', required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

[API](https://skmtc.net/svix/apis/svix-api.md) · [All operations](https://skmtc.net/svix/apis/svix-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/svix/svix-api/versions/16dbcc056c48/schema)
