Create task
Deprecated — use POST /action-runs instead, which takes the same body and returns the same shape. Enqueue a one-off registry task.
Headers
- Type: stringx
-corma -idempotency -key min length:1Optional client-generated key. Reusing the same key with an identical request replays the original response instead of enqueueing a duplicate task.
Body·
- Type: stringaction
Identifier requiredThe identifier of the action to trigger. Query the actions endpoint to get the list of available actions.
- Type: objectpayloadrequiredProperties: 1
The payload the action is triggered with. Must conform to the
payloadSchemareturned by actions for the chosen action. - Type: stringconnector
Id The connector the action runs on: an identifier connectors returns, or the id of its connection. It must connect the integration of the action. Omitted, the action runs on the only connector of that integration.
Responses
- Type:202
OK
- Type: stringaction
Identifier requiredThe action that was triggered.
- Type: stringFormat: date-timecreated
At requiredThe timestamp of when this resource was created. ISO 8601 format.
- Type: stringnullableerror
Message required - Type: integeridmin:-9007199254740991max:9007199254740991required
Identifies the run. Pass it as
actionRunIdto fetch this run again. - Type: objectpayloadrequiredProperties: 1
The payload the run was triggered with.
- Type: enumsourcerequired
What triggered the run.
public_apiis a run this API triggered; the log also covers runs triggered from the web app.valuespublic_apiweb_appcopilot - Type: enumstatusrequiredvaluesongoingcompletederrored
- Properties: 12Type: nullabletriggered
By required - Type: stringFormat: date-timeupdated
At requiredThe timestamp of the last update to this resource. ISO 8601 format.
HeadersHeaders: 1application/json
{
"id": -9007199254740991,
"status": "ongoing",
"source": "public_api",
"actionIdentifier": "string",
"payload": {
"additionalProperty": "anything"
},
"errorMessage": "string",
"triggeredBy": {
"id": "string",
"type": "employee",
"email": "string",
"personalEmail": "string",
"name": "string",
"idpStatus": "active",
"hrStatus": "active",
"jobKey": "string",
"countryCode": "string",
"departmentKey": "string",
"startDate": "2026-10-22T16:05:12.660Z",
"terminationDate": "2026-10-22T16:05:12.660Z"
},
"createdAt": "2026-10-22T16:05:12.660Z",
"updatedAt": "2026-10-22T16:05:12.660Z"
}