---
docId: doc_18b561e4aea941b6a304d6323fcd5a17
title: Get processing
description: "Checks the processing status of a file connected to an agent."
api:
  group: agentes/archivos
  auth: bearer
  operations:
    - operationId: getAgentFileJob
      method: GET
      path: '/v1/agents/{agentId}/files/{fileId}/jobs/{uploadId}'
      postmanName: Get processing
---

<script>
  import { Ways } from '$lib/components';
</script>

# Get processing

Check whether a file connected to the agent has finished processing. Use the `uploadId` from the `202` response or the file’s `latestUploadId`, and poll every few seconds until `terminal` is `true`.

Returns the same data as [Get processing](/api-reference/files/processing), using the agent’s permissions: you only need to be able to read the agent and the file must be connected. [Create a file](/api-reference/files/create) returns this URL as `statusUrl` when you send `attachment`.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/agents/$AGENT_ID/files/$FILE_ID/jobs/$UPLOAD_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.agents.files.job("agent_123", "file_123", "upload_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `agentId` | string | Agent id | ✓ |
| `fileId` | string | File id | ✓ |
| `uploadId` | string | The processing (`uploadId` from the `202` response, or the file's `latestUploadId`) | ✓ |

## Response

```json
{
  "status": "success",
  "data": {
    "fileId": "fH3kL9mQ2xR7",
    "uploadId": "up_4Tn8Vb2Kc1",
    "status": "parsing",
    "terminal": false,
    "hasUsableContent": false,
    "activeVersionId": null,
    "error": null,
    "createdAt": "2026-11-01T10:00:00.000Z",
    "updatedAt": "2026-11-01T10:00:09.000Z",
    "moderation": {
      "status": "pending",
      "reasonCode": null,
      "message": null,
      "checkedAt": null,
      "policyVersion": null
    },
    "trigger": "create",
    "result": null
  }
}
```

The fields and failure reasons are listed in [Get processing](/api-reference/files/processing#response-fields).

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `403` | `RESOURCE_NOT_ACCESSIBLE` | You can't read the agent. |
| `404` | `AGENT_NOT_FOUND` | The agent doesn't exist or belongs to another workspace. |
| `404` | `RESOURCE_NOT_ACCESSIBLE` | The file isn't connected to this agent, or that processing doesn't exist. |
| `410` | `JOB_GONE` | The processing is old and is no longer stored. |

The ones that apply to all operations are in [common errors](/api-reference/files#common-errors).

## Notes

- New content becomes available at `ready`. The agent uses it if the connection is active, without another publication.
- In the [SDK](/sdk), use `await platic.agents.files.waitForJob(agentId, fileId, uploadId)` to wait automatically until `terminal` is `true` (it returns the job even if it fails).
- A file created with `attachment` is connected paused and activates on its own when processing ends in `ready` (see [activation on completion](/api-reference/files#activate-on-ready)).
- From an AI agent, the tool is [`get_agent_file_job`](/mcp/tools#files).
