Get processing
SDK platic.agents.files.job()
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, using the agent’s permissions: you only need to be able to read the agent and the file must be connected. Create a file returns this URL as statusUrl when you send attachment.
Example
curl https://api.platic.ai/v1/agents/$AGENT_ID/files/$FILE_ID/jobs/$UPLOAD_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.agents.files.job("agent_123", "file_123", "upload_123"); 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
{
"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.
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.
Notes
- New content becomes available at
ready. The agent uses it if the connection is active, without another publication. - In the SDK, use
await platic.agents.files.waitForJob(agentId, fileId, uploadId)to wait automatically untilterminalistrue(it returns the job even if it fails). - A file created with
attachmentis connected paused and activates on its own when processing ends inready(see activation on completion). - From an AI agent, the tool is
get_agent_file_job.