Trigger action
Trigger a one-off action and return the run that tracks it. The run is returned with status ongoing; the action itself is carried out asynchronously. Find available actions and their payload schemas with the actions endpoint.
curl -X POST "https://api.corma.io/v1/action-runs" \
-H "x-corma-api-key: $CORMA_OPEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"actionIdentifier": "string",
"payload": {
"key": null
}
}'Authorization
x-corma-api-keystringheaderrequiredColon-separated API key ID and secret:
API_KEY_ID:API_KEY_SECRET
Parameters
x-corma-idempotency-keystringheaderOptional client-generated key. Reusing the same key with an identical request replays the original response instead of enqueueing a duplicate task.
Body
actionIdentifierstringrequiredThe identifier of the action to trigger. Query the actions endpoint to get the list of available actions.
payloadmap of anyrequiredThe payload the action is triggered with. Must conform to the
payloadSchemareturned by actions for the chosen action.connectorIdstringThe 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.
Response
OK
idintegerrequiredIdentifies the run. Pass it as
actionRunIdto fetch this run again.statusenum<string>requiredOne of:ongoingcompletederroredsourceenum<string>requiredWhat triggered the run.
public_apiis a run this API triggered; the log also covers runs triggered from the web app.One of:public_apiweb_appcopilotactionIdentifierstringrequiredThe action that was triggered.
payloadmap of anyrequiredThe payload the run was triggered with.
errorMessagestring | nullrequiredtriggeredByUserEmbed | nullrequiredcreatedAtstring<date-time>requiredThe timestamp of when this resource was created. ISO 8601 format.
updatedAtstring<date-time>requiredThe timestamp of the last update to this resource. ISO 8601 format.
{
"id": -9007199254740991,
"status": "ongoing",
"source": "public_api",
"actionIdentifier": "string",
"payload": {
"key": null
},
"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-01-15T09:30:00Z",
"terminationDate": "2026-01-15T09:30:00Z"
},
"createdAt": "2026-01-15T09:30:00Z",
"updatedAt": "2026-01-15T09:30:00Z"
}