Do you need this?
Two kinds of apps exist, and the difference is only where the app shows up:
Pick API and webhooks when your app pulls or pushes data on its own (a CRM sync, an analytics import, an enrichment tool that reads contacts). Pick workflows when a workspace should be able to decide, per workflow, to send something to your app at a particular step (“when this form is submitted, send the event to App”). The portal shows a preview of the step before you turn it on, and you can change your mind later: turning it on for an approved app is a change request (you get the signing secret and can define actions right away; workspaces see the app once the request is approved), turning it off applies immediately.
Running the step POSTs the inputs the workspace mapped to your endpoint, signed with your app’s action signing secret. Nothing is sent to workspaces that have not installed the app, and deliveries stop on their own when a workspace uninstalls it.
Declare an action
An action has:
Declare up to 20 actions per app and 30 inputs per action. The workspace maps each input from its workflow fields (
{{email}}, {{deal.amount}}, a literal) in the step’s panel; required inputs must be mapped before the workflow can be activated, and a run whose required input renders empty for that contact fails the step without calling you.
An input’s description is the help text under its box in the step’s panel. Use it to say what to enter and where to find it (“The event name your Halo trigger listens for”); without one, the panel shows a generic hint for the type.
Dropdowns
When the value is one of a set, declare the input with"type": "select" and the workspace picks it from a searchable list instead of typing it. The choices come from one of two places:
- A fixed list,
options: up to 100 choices, each{ "value": "high", "label": "High priority" }or just"high". Use it for values that are the same in every workspace. - Listed by your app,
options_url: an HTTPS URL on a public host. Use it for values that live in the workspace’s own account in your app: its workflows, lists, custom fields.
options_url, signed with your action signing secret exactly like a delivery. One request at a time: an opening while a request is in flight, or within a couple of seconds of the last one, reuses that request instead of sending another. Answer with the choices as they are now (an event created in your app a moment ago included); Orbit shows the previous answer until yours arrives and never keeps one beyond that:
X-Orbit-Event: workflow.action_options and X-Orbit-Input naming the input. One URL can serve every input: switch on input.key. Answer within 8 seconds with that workspace’s choices:
value(text or a number, at most 200 characters) is what the delivery’sinputscarries.labelis what the list shows and defaults to the value;descriptionis optional. The panel shows up to 500 choices and searches them.- When you cannot list choices for this workspace (no account in your app is linked to this
team_id, say), answer a4xxwith{ "error": "Connect Orbit in YourApp to pick a workflow" }. The panel shows your message under the dropdown. Any other failure shows “App: the app answered status”. - The panel also lets the workspace switch a dropdown to a
{{field}}template (“Use a field”) for a value that differs per contact, and choices are not re-checked when the step runs. Treat a select’s value like any input: if the choice no longer exists in your app, answer the delivery with a4xxthat says so.
Turning an action off keeps the steps workspaces built; they fail with “the app turned off Action” until it is on again. Deleting it does the same, for good.
The delivery
Each run of the step is onePOST to your endpoint:
team_id is the workspace that installed your app (the same id GET /api/v1/me and the webhook envelope carry), so you can look up the right account. inputs holds every declared input, typed as declared; an optional input the workspace left unmapped is null. Use contact.id with GET /api/v1/contacts/:id for anything beyond what was mapped.
Headers:
Verify the signature exactly as for webhooks, with the action signing secret instead of the webhook secret. The secret is shown once when you turn the feature on and can be rotated from the portal; rotate it before you change your verification, as deliveries use the new secret from the next run.
Your response
- A
2xxmeans the step succeeded. A JSON body with anoutputsobject ({ "outputs": { "cometly_event_id": "evt_9" } }) is kept with the run and available to later steps; values are strings, numbers or booleans, at most 50 keys. 408,425,429, any5xx, a timeout (20 seconds) or a connection error is retried up to three times with backoff, like any destination step.- Any other
4xxis treated as your app refusing the call: the step fails at once with your response text in the run’s error, and is not retried.
For workspaces and agents
In the editor, installed apps’ actions appear under Installed apps in the add-step menu once the app is installed; each step’s panel shows your inputs with the workspace’s field picker, and your dropdowns forselect inputs. Over the API and MCP, GET /api/v1/workflows/schema lists them under app_actions, and a workflow node with "type": "destination", "provider": "app_action" and config { app_id, action_id, action_key, inputs: { "<input key>": "<template>" } } uses one. The schema shows a fixed list’s options and marks an input your app lists with "dynamic_options": true; the options_url itself, like the endpoint, is never shown to workspaces.
Webhooks
Tell your app what happened in a workspace
Workflows API
Build and run workflows from code