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

# Verify jobs

> Use your secret key to fetch a job server-side and download the fixed output file.

Client-side gating keeps customers honest, but you should verify the job server-side before fulfilling an order.

## Fetch a job

```bash theme={null}
GET https://api.filecheck.io/jobs/{jobId}
GET https://api.filecheck.io/jobs/{jobId}?expand=runs   # full pipeline detail
```

Authenticate with your secret key:

```bash theme={null}
curl https://api.filecheck.io/jobs/{jobId} \
  -H "Authorization: Bearer sk_live_…"
```

## Verify before fulfilling

1. Confirm the job exists and belongs to the expected Workflow.
2. Confirm it reached a terminal status where `canProceed` is `true`.
3. Read `files[n].outputRef` to download the auto-fixed file.

<Warning>
  Never call this endpoint from the browser. The secret key is server-side only. See [Authentication](/api-reference/authentication).
</Warning>

<Note>
  Prefer not to poll? Configure [webhooks](/server/webhooks) to receive results as they complete.
</Note>
