How it works
Every proxy call is account-scoped and runs through the execute-action endpoint:- You name the app and action in the URL: an app
slug(for example,hubspot) and anaction_id(for example,get_contact). - You pass the action’s parameters in the body. The fields come from the action’s parameter schema, not from raw provider API shapes.
- Refold injects credentials for the linked account named in the
linked_account_idheader, then forwards the call to the provider.
All calls use the base URL
https://app.refold.ai, send your API key in the x-api-key header, and send the customer’s linked_account_id as a header. The app credentials are stored against that linked account, so Refold knows which customer’s connection to use.Find the available actions
Before executing, list the actions an app exposes and inspect a given action’s parameters.cURL
Make a read call
A read action returns data in the provider’s native shape. Refold attaches the credentials, so the body holds only the action’s parameters.cURL
Output
Make a write call
A write action changes data in the customer’s connected app. The pattern is identical, only the action and parameters differ.cURL
Output
A
node_status of Success means Refold authenticated as the customer and the provider accepted the call.Custom actions for your own APIs
The actions above are the connectors Refold maintains. To proxy calls to an endpoint Refold doesn’t model, define a custom action (an API proxy) in the Console: give it fields, set the request method and URL, and reference it the same way as any other action.Create the action
In the Refold Console, go to Settings > Developer > API Proxies, click New Action, and give it a name and description.
Common errors
| Response | Cause | Fix |
|---|---|---|
404 “Action … not found” | The action_id or slug is wrong. | List actions for the app and use an exact action_id. |
| Credential or auth failure from the provider | The linked account is not connected, or its token expired. | Reconnect the app. Subscribe to the Connection Expired webhook to catch this. |
Next steps
Execute action API
Full request, parameters, and response shapes.
Action parameters
Inspect the schema for any action before you call it.
Run a workflow
Chain reads, transforms, and writes across apps.
Handle connection health
Catch expired connections before a proxy call fails.