linked_account_id header, and Refold resolves its stored credentials, so no app tokens go in your request. Read actions return data. Write actions change the connected app.
How actions work
You call actions from your backend over HTTP. Each call names the appslug, the action_id, and the linked account to run against.
- The app slug identifies the connector, for example
hubspot. - The action id identifies the operation, for example
get_contactorcreate_contact. - The
linked_account_idheader selects whose connection to use. Refold resolves the stored credentials for that account. - The request body holds the action’s parameters, one key per field in the action’s parameter schema.
- The response returns the result in the app’s native shape under
data, with an executionnode_status.
Every call uses the base URL
https://app.refold.ai, sends your API key in the x-api-key header, and sends the customer’s linked_account_id as a header. Keep your API key server-side. Never expose it in the browser.List available actions
Before you execute an action, confirm it exists for the app and get itsaction_id. List the actions a connected app supports with the List Actions endpoint.
cURL
Output
action_id is what you pass to fetch the action’s parameter schema and to execute it.
Execute a read action
A read action fetches data and changes nothing. Execute one with the Execute Action endpoint, passing theaction_id in the path and any parameters in the body.
cURL
Output
data. Read the fields you need straight from there.
Execute a write action
A write action creates, updates, or deletes a record in the connected app. The call is the same shape as a read, with a writeaction_id and the new values in the body.
cURL
Output
Single action or workflow
A single action call is the right tool when one operation does the job. Reach for a workflow when the job spans more than one step.| Use a single action when | Use a workflow when |
|---|---|
| You need one read or one write | You read, transform, then write in sequence |
| Your backend drives the logic | You fan out to several apps or actions |
| The call is synchronous and you want the result back | A trigger (event, webhook, or schedule) should start the run |
| No mapping or validation is needed | You map and validate data between systems (see Data mapping) |
A workflow is built once on the Platform and runs across all three Refold products. This page does not re-document workflow building. See Workflows overview.
See also
Sync data
Keep records aligned between your app and connected systems, one-way or two-way.
Data mapping
Transform and validate data as it moves between systems.
Execute Action API
Full request and response reference for executing an action.
Workflows overview
Orchestrate multi-step logic across apps and actions.