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

# Jobs

Backapp runs [Speech to Text](https://docs.backapp.dev/ai/speech-to-text.md), [Image to Image](https://docs.backapp.dev/ai/image-to-image.md), and [Text to Text](https://docs.backapp.dev/ai/text-to-text.md) as jobs. Text generation can run in the background or in the request. A job belongs to the app and user that submitted it. Use that app's headers and the same user's v2 access token for each request.

## Read a job

```bash theme={"dark"}
curl --fail-with-body --silent --show-error \
  "https://api.backapp.dev/v2/jobs/$BACKAPP_JOB_ID" \
  -H "X-App-Key: $BACKAPP_APP_KEY" \
  -H "X-App-Version: $BACKAPP_APP_VERSION" \
  -H "Authorization: Bearer $BACKAPP_ACCESS_TOKEN"
```

A successful lookup returns HTTP 200. A completed transcription has this shape:

```json theme={"dark"}
{
  "job_id": "67cf9b29-2660-444a-8c71-d41d4f9778e6",
  "operation": "speech_to_text",
  "status": "completed",
  "input": {"file_id": "3beac414-4ba1-4293-bdc2-efcb8de2ea82"},
  "result": {"text": "This is a test recording."},
  "error": null,
  "created_at": "2026-11-16T15:00:00Z",
  "finished_at": "2026-11-16T15:00:04Z"
}
```

Jobs move through `pending`, `processing`, `completed`, or `failed`. `result` is null until completion. Failed jobs include `error.code`, `error.message`, and `error.retryable`. Typical failure codes include `source_missing`, `audio_unreadable`, `audio_too_long`, and `provider_unavailable`. Missing, expired, or out-of-scope jobs return 404.

## List jobs

Call `GET /v2/jobs` for newest-first results. Optional query parameters are `operation` (`speech_to_text`, `image_to_image`, or `text_to_text`), `status`, `limit` (1–50, default 20), and `cursor`. The response contains `jobs` and `next_cursor`. Pass `next_cursor` as the next request's cursor, keeping the same filters. A null cursor marks the last page.

## Retry or delete a job

* Send `POST /v2/jobs/{job_id}/retry` when a failed job reports `error.retryable: true`. An accepted retry returns HTTP 202 with the same job ID. Access, usage, and active job limits apply again. Ineligible retries return 409. Retrying can incur another provider charge.
* Send `DELETE /v2/jobs/{job_id}` to remove the job and its stored result. Success returns HTTP 204. A provider call already running can finish and incur charges. Source and output files have their own [retention and deletion controls](https://docs.backapp.dev/files.md).

Operators can set job retention per app. The retention window starts when the job is created.


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