Integration .call
Reach any endpoint of a connected account, with your token filled in.
- Action class
- None
- Approval
- Runs on its own
- Emits
Integration.called- Sites
- 2 sites
- Price
- Free
POST https: //api.sb/ {your-domain}/ integrations/ call
Sends one request to any endpoint of a connected account, with your token filled in on the server. The hub’s definition of Integration.call.
Inputs
| Name | Type | Default | Meaning |
|---|---|---|---|
integration | Integration | Required | The Integration to call through. |
method | string | Required | The HTTP method; GET runs at once. |
path | string | Required | The upstream path, inside the Integration’s grants. |
body | json | null | The request body. Unset for a GET, which sends none. |
Outputs
| Field | Type | What null means |
|---|---|---|
status | integer | Never null once the request leaves the platform: the answering API’s own HTTP status, passed through unchanged. |
body | json | The answer carried no body, as on a 204. |
integration | Integration | Never null. |
Effects
- Action class
None: no approval rule names it, so it runs within its seat’s Permissions and Limits
- Modes
try: Sends aGETas is, since it changes nothing; any other method runs the account’s own validate-only path where one exists, and changes nothing.send: Returns a pending Action: aGETsettles at once, any other method after its delay window.do: Waits for the answer and returns its status and body unchanged.
- Idempotency
Only with a key: the same
Idempotency-Keyand input return the first Action, and the same key with other input returns409. The key never leaves the platform: aPOSTretried after a timeout replays the first Action instead of posting twice.- Saved or shared
The Action keeps the method, the path and the status that came back. The token never appears in the Action, a log or the response.
- Emits
Integration.calledwith{ integration,method, path, status } - Performed by
- Price
Free on your own account: the platform charges nothing for the call.
On each Venue
| Site | Fields | Formats |
|---|---|---|
| Google Analytics | None. | None. |
| Google Business Profile | None. | None. |
Google Analytics
Through Google Analytics.
Google Business Profile
Through Google Business Profile.
What try does
| Account | What try does |
|---|---|
| Google Analytics | Reads run for real, because a report changes nothing; try stores no rows, builds no audience and marks no event. |
| Google Business Profile | Returns the update or the answer as it will show on your profile; nothing posts. |
Refuses when
This call has no refusals of its own. Every call through an account can also meet the shared account refusals: grant-missing, needs-reauth, account-not-connected, over-mandate, quota-reached, venue-rejected.
When it waits
| Fact | Value |
|---|---|
send returns | For any method but GET, a pending Action, reason:, while its delay window runs; a GET returns done at once. |
| Delivered by | Integration.called |
Example
How many followers does my X account have right now?To retry, send the same Idempotency-Key: the retry returns the first answer for $0. A new key reads again.
Test values
A sk_test_ key answers these the same way every time, at $0 (every test value).
| Test value | Always returns | What it is for |
|---|---|---|
int_test_needs_reauth | Refuses with needs-reauth | Every call through it answers as if the account had ended the sign-in, so your reconnect path runs. |
int_test_x | Refuses with grant-missing | It holds only the post-and-reply grant, so a call to change follows refuses before it leaves the platform. |
maxCost: | Refuses with max-cost | Any priced call with a maxCost of 0.0001 is refused before it spends: the price is above the cap. |
rate-limited.test | Refuses with rate-limited | Any call naming this hostname answers 429 with Retry-After, so your retry logic runs. |
sources-busy.test | Refuses with sources-busy | Any call naming this hostname answers 503 as if every route were busy, and nothing is spent. |
Used by
- Workflows: Index the site · Search readout
- Agent tasks: Message test
- Integrations: Google Analytics · Google Business Profile