POST /v2/providers/{provider_id}/actions/{action_id}/run
Run a provider action synchronously and return its outputs.
How to use
Select a compatible accessible connection and submit inputs matching this action. Omit connection_id only when supported by that action. This synchronous call can change a third-party system; do not automatically repeat an ambiguous write.
Authentication and permissions
Required permissions: connections.use. Resource and owner access checks also apply.
Prepare request.json
Save the example body below as request.json for the curl sample. Replace example IDs, node keys, and dynamic configuration with values for your organization; these are illustrative, not pre-existing resources.
{
"connection_id": "00000000-0000-4000-8000-000000000001",
"inputs": {
"ACTION_SPECIFIC_FIELD": "VALUE"
}
}Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Body for running a provider action; inputs is validated against the action's own schema.
Successful Response
Machine-readable response code, when provided.
Validation Error
curl --fail-with-body -sS \
"$STACKAI_BASE_URL/v2/providers/${PROVIDER_ID}/actions/${ACTION_ID}/run" \
-H "Authorization: Bearer $STACKAI_API_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json{
"response_code": "text",
"meta": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"data": {
"outputs": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
}Last updated
Was this helpful?

