Test Metronome trigger
POST
/v1/metronomes/{metronomeId}/triggers/testSubmit a sample trigger payload, record a matched trigger diagnostic, and start 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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| metronomeId | path | string | Yes | Metronome workflow ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| triggerType | string | No | — |
| payload | object | No | — |
| input | object | No | Deprecated alias for `payload`. |
| inputs | object | No | Deprecated alias for `payload`. |
| sourceEventId | string | No | — |
| source_event_id | string | No | Deprecated alias for `sourceEventId`. |
| summary | string | No | — |
| definition | object | No | — |
| definition.executionPolicy | object | No | — |
| definition.executionPolicy.placement | local_only | Yes | Requires on-prem PostgreSQL, filesystem artifacts, local scraping, local deployable Functions and explicit local inference. Unsupported node kinds and external API Functions fail closed. This placement contract does not replace operator-enforced network egress policy. |
| definition.nodes | object[] | No | — |
| definition.nodes[].id | string | No | Unique identifier. |
| definition.nodes[].type | string | No | — |
| definition.nodes[].position | object | No | — |
| definition.nodes[].data | object | No | — |
| definition.nodes[].data.kind | trigger | condition | approval | action | code | imagine | function | firecrawl | table | database | ticket | metronome | inference | loop | end | note | No | — |
| definition.nodes[].data.subtype | string | No | — |
| definition.nodes[].data.label | string | No | — |
| definition.nodes[].data.description | string | No | Human-readable description. |
| definition.nodes[].data.config | object | No | Kind-specific node configuration, versioned with the workflow. Thread (action) nodes opt into validated runtime results with outputMode=json_schema and a jsonOutputSchema (object or serialized JSON Schema), or the mutually exclusive jsonOutputSchemaFromInput naming one top-level field in the explicitly selected input. An input schema is validated before execution, removed from business input and retained with its fingerprint in the result receipt. The schema requires an object root, is limited to 64 KiB / 12 levels, and supports type, properties, required, additionalProperties (boolean), items, enum, numeric, string-length and array-length bounds, description and title. Unsupported keywords fail publication. maxValidationRetries is 0–2 (default 2). resultMode is inline (default) or artifact; outputKey defaults to data. Requires a Claw worker advertising json_schema_v1. Validated data comes from a dedicated runtime receipt, never assistant text. Failure retains Thread, usage and validation evidence without publishing partial data. Legacy outputMode=structured/json retains summary-parsing semantics until migrated. |
| definition.edges | object[] | No | — |
| definition.edges[].id | string | No | Unique identifier. |
| definition.edges[].source | string | No | — |
| definition.edges[].target | string | No | — |
| definition.edges[].sourceHandle | string | No | — |
| definition.edges[].targetHandle | string | No | — |
| definition.edges[].label | string | No | — |
| definition.executionRecoveryPolicy | object | No | — |
| definition.executionRecoveryPolicy.schemaVersion | computer_agents_metronome_recovery_policy_v1 | Yes | — |
| definition.executionRecoveryPolicy.enforcement | checkpointed | Yes | — |
| definition.executionRecoveryPolicy.inDoubtDefault | pause | Yes | — |
| definition.executionRecoveryPolicy.checkpointMaxBytes | integer | Yes | — |
| idempotencyKey | string | No | — |
| maxAttempts | integer | No | — |
| timeoutMs | integer | No | — |
| attachedProjectId | string | No | — |
| attachedTicketId | string | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Metronome trigger test startedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | string | No | — |
| data | object | No | — |
| data.run | object | No | — |
| data.run.id | string | No | Unique identifier. |
| data.run.metronomeId | string | No | — |
| data.run.userId | string | No | User ID. |
| data.run.organizationId | string | No | — |
| data.run.createdByUserId | string | No | — |
| data.run.triggerType | string | No | — |
| data.run.versionId | string | No | — |
| data.run.snapshotId | string | No | Snapshot ID. |
| data.run.runKind | workflow | node_test | slice_test | No | — |
| data.run.invocationSource | string | No | — |
| data.run.executionSelection | object | No | — |
| data.run.effectMode | execute | preview | No | — |
| data.run.initiatedByUserId | string | No | — |
| data.run.requestFingerprint | string | No | — |
| data.run.triggerEventId | string | No | — |
| data.run.idempotencyKey | string | No | — |
| data.run.status | queued | running | waiting_approval | paused | completed | failed | cancelled | No | Current lifecycle status. |
| data.run.input | object | No | — |
| data.run.output | object | No | — |
| data.run.error | string | No | — |
| data.run.startedAt | string | No | ISO 8601 timestamp. |
| data.run.queuedAt | string | No | — |
| data.run.nextAttemptAt | string | No | — |
| data.run.lockedAt | string | No | — |
| data.run.lockedBy | string | No | — |
| data.run.attemptCount | integer | No | — |
| data.run.maxAttempts | integer | No | — |
| data.run.timeoutMs | integer | No | — |
| data.run.attachedProjectId | string | No | — |
| data.run.attachedTicketId | string | No | — |
| data.run.completedAt | string | No | ISO 8601 timestamp. |
| data.run.createdAt | string | No | ISO 8601 timestamp. |
| data.run.updatedAt | string | No | ISO 8601 timestamp. |
| data.run.approvals | object[] | No | — |
| data.run.approvals[].id | string | Yes | Unique identifier. |
| data.run.approvals[].runId | string | Yes | — |
| data.run.approvals[].metronomeId | string | Yes | — |
| data.run.approvals[].nodeId | string | Yes | — |
| data.run.approvals[].approverUserId | string | Yes | — |
| data.run.approvals[].organizationId | string | No | — |
| data.run.approvals[].createdByUserId | string | No | — |
| data.run.approvals[].status | pending | approved | rejected | cancelled | Yes | Current lifecycle status. |
| data.run.approvals[].message | string | Yes | Message text. |
| data.run.approvals[].decisionByUserId | string | No | — |
| data.run.approvals[].decidedAt | string | No | — |
| data.run.approvals[].createdAt | string | No | ISO 8601 timestamp. |
| data.run.approvals[].updatedAt | string | No | ISO 8601 timestamp. |
| data.triggerEventId | string | No | — |