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

# Response headers

> Find the job URL, identify a request and distinguish request throttling from monthly allowance exhaustion.

## Inspect a response

This request reads usage and prints headers without saving a document.

```bash theme={null}
curl -sS -D - -o /dev/null "$DOCKILN_URL/v1/usage" \
  -H "Authorization: Bearer $DOCKILN_API_KEY"
```

| Header | Where to use it |
| - | - |
| `X-Request-Id` | Identify an individual API request when investigating an error. In the review build, use the [request log lookup](https://docs.dockiln.io/api-reference/inspect-redacted-request-metadata.md) when logging is enabled. |
| `X-RateLimit-Remaining` | Requests remaining in the workspace's current minute after an authenticated request passes the limiter. |
| `Retry-After` | Seconds to wait after a rate-limit response. Monthly quota exhaustion can also return **429**. Read the error and the monthly reset time in usage. |
| `Location` | Relative job path on an accepted document submission. Resolve it against the same DocKiln origin. |
| `Content-Type` | Identifies a JSON job receipt, JSON Base64 envelope or generated binary format. |
| `Content-Disposition` | Binary file responses specify an attachment filename. |
| `Cache-Control` | Authenticated file downloads use `private, no-store`. |

## Keep job and request identifiers separate

Poll the job URL to check progress. Each poll receives its own request ID. Save that request ID if the poll fails, alongside the stable job ID. For binary responses, inspect the status and [response mode](https://docs.dockiln.io/misc/varying-responses.md) before writing a file.


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