# Cancel a job

`POST /v1/jobs/{id}/cancel`

Cancels a `queued` or `processing` job and refunds its reservation in full. Free.

## Headers

- `Authorization` (string, required): Bearer authentication of the form `Bearer <token>`, where the token is your API key (`sk-live-…` or `sk-test-…`).

## Request body

- `id` (string, required): The `job_…` id.

## Response

Returns the job with `status: canceled`.



## Errors

- 401 Unauthorized: The API key is missing or not valid (`invalid_api_key`).
- 404 Not found: No such resource on your account.
- 409 Conflict: The job already finished (`job_not_cancelable`).

## Example request

```bash
curl -X POST https://api-staging.talksign.co/v1/jobs/job_8c1d2e3f4a5b6c7d8e9f0a1b/cancel \
  -H "Authorization: Bearer $TALKSIGN_API_KEY"
```

## Example response

```json
{
  "id": "job_8c1d2e3f4a5b6c7d8e9f0a1b",
  "object": "job",
  "type": "sign_video",
  "status": "canceled"
}
```
