Run Metronome

POST/v1/metronomes/{metronomeId}/runs

Queue a workflow execution for the saved Metronome definition.

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
metronomeIdpathstringYesMetronome workflow ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
inputobjectNo
inputsobjectNo
idempotencyKeystringNo
maxAttemptsintegerNo
timeoutMsintegerNo
attachedProjectIdstringNo
attachedTicketIdstringNo
pinnedAgentVersionsobjectNoExact Agent version IDs keyed by Agent ID. A successful run must invoke every pin.
queueWhenCapacityUnavailablebooleanNoConvert the requested run into a durable auto-start Batch when runtime capacity is full. Defaults to true on local appliances and false on cloud deployments.

What the API returns

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

201Metronome run queuedapplication/json
FieldTypeRequiredDescription
dataobjectNo
data.idstringNoUnique identifier.
data.metronomeIdstringNo
data.userIdstringNoUser ID.
data.organizationIdstringNo
data.createdByUserIdstringNo
data.triggerTypestringNo
data.versionIdstringNo
data.snapshotIdstringNoSnapshot ID.
data.runKindworkflow | node_test | slice_testNo
data.invocationSourcestringNo
data.executionSelectionobjectNo
data.effectModeexecute | previewNo
data.initiatedByUserIdstringNo
data.requestFingerprintstringNo
data.triggerEventIdstringNo
data.idempotencyKeystringNo
data.statusqueued | running | waiting_approval | paused | completed | failed | cancelledNoCurrent lifecycle status.
data.inputobjectNo
data.outputobjectNo
data.errorstringNo
data.startedAtstringNoISO 8601 timestamp.
data.queuedAtstringNo
data.nextAttemptAtstringNo
data.lockedAtstringNo
data.lockedBystringNo
data.attemptCountintegerNo
data.maxAttemptsintegerNo
data.timeoutMsintegerNo
data.attachedProjectIdstringNo
data.attachedTicketIdstringNo
data.completedAtstringNoISO 8601 timestamp.
data.createdAtstringNoISO 8601 timestamp.
data.updatedAtstringNoISO 8601 timestamp.
202A paused native run was prepared and accepted by the capacity-aware Batch queueapplication/json
FieldTypeRequiredDescription
dataobjectYes
data.idstringNoUnique identifier.
data.metronomeIdstringNo
data.userIdstringNoUser ID.
data.organizationIdstringNo
data.createdByUserIdstringNo
data.triggerTypestringNo
data.versionIdstringNo
data.snapshotIdstringNoSnapshot ID.
data.runKindworkflow | node_test | slice_testNo
data.invocationSourcestringNo
data.executionSelectionobjectNo
data.effectModeexecute | previewNo
data.initiatedByUserIdstringNo
data.requestFingerprintstringNo
data.triggerEventIdstringNo
data.idempotencyKeystringNo
data.statusqueued | running | waiting_approval | paused | completed | failed | cancelledNoCurrent lifecycle status.
data.inputobjectNo
data.outputobjectNo
data.errorstringNo
data.startedAtstringNoISO 8601 timestamp.
data.queuedAtstringNo
data.nextAttemptAtstringNo
data.lockedAtstringNo
data.lockedBystringNo
data.attemptCountintegerNo
data.maxAttemptsintegerNo
data.timeoutMsintegerNo
data.attachedProjectIdstringNo
data.attachedTicketIdstringNo
data.completedAtstringNoISO 8601 timestamp.
data.createdAtstringNoISO 8601 timestamp.
data.updatedAtstringNoISO 8601 timestamp.
batchJobobjectYes
batchJob.idstringYesUnique identifier.
batchJob.userIdstringYesUser ID.
batchJob.organizationIdstringNo
batchJob.createdByUserIdstringNo
batchJob.namestringYesHuman-readable name.
batchJob.descriptionstringYesHuman-readable description.
batchJob.targetKindthread_run | metronome_run | evaluation_run | agent_optimization | project_ticket_actionYes
batchJob.targetResourceIdstringNo
batchJob.targetVersionIdstringNo
batchJob.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.
batchJob.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.
batchJob.statusheld | queued | dispatching | running | succeeded | failed | cancelledYesCurrent lifecycle status.
batchJob.queueLanestringYes
batchJob.priorityintegerYes
batchJob.positionintegerYes
batchJob.maxAttemptsintegerYes
batchJob.attemptCountintegerYes
batchJob.executionGenerationintegerYes
batchJob.availableAtstringYes
batchJob.waitReasonstringNo
batchJob.nativeResourceTypestringNo
batchJob.nativeResourceIdstringNo
batchJob.sourceProjectIdstringNo
batchJob.sourceTicketIdstringNo
batchJob.permissionSetstringYes
batchJob.idempotencyKeystringNo
batchJob.leaseOwnerstringNo
batchJob.leaseExpiresAtstringNo
batchJob.heartbeatAtstringNo
batchJob.lastErrorstringNo
batchJob.metadataobjectYesFree-form metadata object.
batchJob.createdAtstringYesISO 8601 timestamp.
batchJob.updatedAtstringYesISO 8601 timestamp.
batchJob.queuedAtstringNo
batchJob.startedAtstringNoISO 8601 timestamp.
batchJob.completedAtstringNoISO 8601 timestamp.
queuedInBatchbooleanYes
Run Metronome
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow