Providers, connections, and actions
A provider describes an integration, an action describes an operation it can perform, and a connection is an authorized instance of that integration in your organization. A trigger descriptor explains an event source; reading it does not activate a trigger.
Discover before invoking
GET
/v2/providersand choose a returned provider ID.GET
/v2/providers/{provider_id}for its details.GET
/v2/providers/{provider_id}/actions, then GET the chosen/{action_id}for the actual input/output schema.GET
/v2/connections?provider_id=...and choose an accessible compatible connection. Aneeds_reconnectionstatus requires repair in StackAI.POST
/v2/providers/{provider_id}/actions/{action_id}/runwithconnection_idwhen required and the action-specificinputs.
{
"connection_id": "00000000-0000-4000-8000-000000000001",
"inputs": {"ACTION_SPECIFIC_FIELD": "VALUE_FROM_YOUR_APPLICATION"}
}The UUID and field above are placeholders, not a universally valid action request. Do not infer an action's inputs from its name. Omit connection_id only for actions whose contract supports that. The call is synchronous; inspect returned outputs and errors.
The public API lists existing connections; it does not define a connection-create operation in this contract. Establish or reconnect credentials through StackAI's supported connection flow. Users see only connections available through their roles/sharing; an empty list need not mean the organization has none.
Use the trigger list/detail routes to discover configuration requirements. There is no trigger-enable operation in this public catalog. Actions can send messages, update records, or otherwise change third-party systems, so use a test connection first and reconcile ambiguous failures before retrying.
Example: read a Linear issue before routing a request
Use a connected Linear account to retrieve an issue's title and status. This is a read operation; it does not create or change an issue. First establish a Linear connection in StackAI and confirm your key has connections.read and connections.use.
Discover the action's current contract and the connections available to you:
Choose a healthy Linear connection from the returned list. Save its ID as CONNECTION_ID, and choose an issue that account can read. The action requires issue_id, which can be an issue identifier such as ENG-123.
Create linear-issue.json with your actual connection and issue:
The result is inside data.outputs. For example, an excerpt can contain:
Use identifier, title, and status from the response to enrich your application's routing decision. The action returns additional issue fields; consult its discovered output schema. If the connection is missing, check sharing and organization access. If it needs reconnection, repair it in StackAI. If the issue is inaccessible, use an issue the connected Linear account can read.
Last updated
Was this helpful?

