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

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

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓
fileIdstringFile id✓
uploadIdstringThe 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

Statusdetails.codeWhen
403RESOURCE_NOT_ACCESSIBLEYou can't read the agent.
404AGENT_NOT_FOUNDThe agent doesn't exist or belongs to another workspace.
404RESOURCE_NOT_ACCESSIBLEThe file isn't connected to this agent, or that processing doesn't exist.
410JOB_GONEThe 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 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).
  • From an AI agent, the tool is get_agent_file_job.