# Long-running operations

Long-running requests answer `202 Accepted` with a `Location` header that points to
`/api/v1/operations/{id}` and an `Operation` object. Poll it until `status` is `succeeded` or `failed`. Operation types
are `storyboard.preview` and `film.comments_apply`; more may follow within v1.

The operation also reports its end in the event feed (`operation.completed`), so you can follow it there instead of
polling. See [Operations](/api/operations) for the object and the endpoint.

```http Start
HTTP/1.1 202 Accepted
Location: /api/v1/operations/op_4d9b2e7a1c6f3d8b5e0a2c7f9b4d1e6a
```

```sh Poll
curl https://api.cream-ai.de/api/v1/operations/op_4d9b2e7a1c6f3d8b5e0a2c7f9b4d1e6a \
  -H "Authorization: Bearer $MINT_API_KEY"
```
