Invoke Metronome function trigger

POST/v1/metronomes/{metronomeId}/triggers/function/{slug}

Invoke a published Metronome function trigger with a JSON payload and queue a workflow run.

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
slugpathstringYesFunction trigger slug configured on the workflow trigger node.
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
payloadobjectNo
sourceEventIdstringNo
idempotencyKeystringNo
maxAttemptsintegerNo
timeoutMsintegerNo
attachedProjectIdstringNo
attachedTicketIdstringNo

What the API returns

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

202Metronome function-trigger run queuedapplication/json
FieldTypeRequiredDescription
objectstringNo
dataobjectNo
data.runobjectNo
data.run.idstringNoUnique identifier.
data.run.metronomeIdstringNo
data.run.userIdstringNoUser ID.
data.run.organizationIdstringNo
data.run.createdByUserIdstringNo
data.run.triggerTypestringNo
data.run.versionIdstringNo
data.run.triggerEventIdstringNo
data.run.idempotencyKeystringNo
data.run.statusqueued | running | waiting_approval | paused | completed | failed | cancelledNoCurrent lifecycle status.
data.run.inputobjectNo
data.run.outputobjectNo
data.run.errorstringNo
data.run.startedAtstringNoISO 8601 timestamp.
data.run.queuedAtstringNo
data.run.nextAttemptAtstringNo
data.run.lockedAtstringNo
data.run.lockedBystringNo
data.run.attemptCountintegerNo
data.run.maxAttemptsintegerNo
data.run.timeoutMsintegerNo
data.run.attachedProjectIdstringNo
data.run.attachedTicketIdstringNo
data.run.completedAtstringNoISO 8601 timestamp.
data.run.createdAtstringNoISO 8601 timestamp.
data.run.updatedAtstringNoISO 8601 timestamp.
data.triggerEventIdstringNo
Invoke Metronome function trigger
Loading...
Response 202
Loading...
See the ACP quickstart and SDK flow