For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST /v2/providers/{provider_id}/actions/{action_id}/run

Run Provider Action

post

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"
  }
}
Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Path parameters
provider_idstringRequired
action_idstringRequired
Body

Body for running a provider action; inputs is validated against the action's own schema.

connection_idstring · uuid · nullableOptional
Responses
200

Successful Response

application/json
response_codestring · nullableOptional

Machine-readable response code, when provided.

post/v2/providers/{provider_id}/actions/{action_id}/run
curl
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?