Get a Batch definition and activity history

GET/v1/batch-jobs/{batchJobId}

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
batchJobIdpathstringYes
Query parameters
None.

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Batch detailsapplication/json
FieldTypeRequiredDescription
jobobjectYes
job.idstringYesUnique identifier.
job.userIdstringYesUser ID.
job.organizationIdstringNo
job.createdByUserIdstringNo
job.namestringYesHuman-readable name.
job.descriptionstringYesHuman-readable description.
job.targetKindthread_run | metronome_run | evaluation_run | agent_optimization | project_ticket_actionYes
job.targetResourceIdstringNo
job.targetVersionIdstringNo
job.definitionobjectYesNative target definition. A Thread Batch may reference an existing thread with threadId (or targetResourceId), or create a new thread when released by providing message and optional agentId, environmentId/computerId, projectId, title, attachments, skills, reasoning effort, and cost boundaries.
job.startPolicymanual | stay_on_shelf | when_capacity_availableYesmanual is a one-shot shelf job started explicitly; stay_on_shelf is also started explicitly but returns to the bottom of its shelf after every successful execution; when_capacity_available is automatically released by the scheduler when runtime capacity permits.
job.statusheld | queued | dispatching | running | succeeded | failed | cancelledYesCurrent lifecycle status.
job.queueLanestringYes
job.priorityintegerYes
job.positionintegerYes
job.maxAttemptsintegerYes
job.attemptCountintegerYes
job.executionGenerationintegerYes
job.availableAtstringYes
job.waitReasonstringNo
job.nativeResourceTypestringNo
job.nativeResourceIdstringNo
job.sourceProjectIdstringNo
job.sourceTicketIdstringNo
job.permissionSetstringYes
job.idempotencyKeystringNo
job.leaseOwnerstringNo
job.leaseExpiresAtstringNo
job.heartbeatAtstringNo
job.lastErrorstringNo
job.metadataobjectYesFree-form metadata object.
job.createdAtstringYesISO 8601 timestamp.
job.updatedAtstringYesISO 8601 timestamp.
job.queuedAtstringNo
job.startedAtstringNoISO 8601 timestamp.
job.completedAtstringNoISO 8601 timestamp.
eventsobject[]Yes
events[].idstringYesUnique identifier.
events[].batchJobIdstringYes
events[].eventTypestringYes
events[].fromStatusheld | queued | dispatching | running | succeeded | failed | cancelledNo
events[].toStatusheld | queued | dispatching | running | succeeded | failed | cancelledNo
events[].actorTypeuser | scheduler | systemYes
events[].actorIdstringNo
events[].messagestringYesMessage text.
events[].detailsobjectYes
events[].createdAtstringYesISO 8601 timestamp.
attemptsobject[]Yes
attempts[].idstringYesUnique identifier.
attempts[].batchJobIdstringYes
attempts[].executionGenerationintegerYes
attempts[].attemptNumberintegerYes
attempts[].workerIdstringNo
attempts[].statusrunning | succeeded | failed | deferredYesCurrent lifecycle status.
attempts[].nativeResourceTypestringNo
attempts[].nativeResourceIdstringNo
attempts[].errorClassificationtransient | permanentNo
attempts[].errorMessagestringNo
attempts[].startedAtstringYesISO 8601 timestamp.
attempts[].completedAtstringNoISO 8601 timestamp.
attempts[].metadataobjectYesFree-form metadata object.
404Batch job not found or inaccessible
None.
Get a Batch definition and activity history
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow