postApiV1ConnectorsByProviderProxy
postApiV1ConnectorsByProviderProxy<
ThrowOnError>(options:Options<PostApiV1ConnectorsByProviderProxyData,ThrowOnError>):RequestResult<PostApiV1ConnectorsByProviderProxyResponses,PostApiV1ConnectorsByProviderProxyErrors,ThrowOnError>
Defined in: src/client/sdk.gen.ts:856
Proxy a connector API call
Forwards a request to a connector’s upstream API server-side, minting the user’s connector token internally. Some upstreams (X, Slack) send no CORS headers, so the browser cannot call them directly. The provider comes from the path and must have a proxy policy; the request path is restricted to strict per-provider allowlists. A path on the read allowlist is forwarded as a GET (with query as the querystring) and minted with “read” access; a path on the provider’s separate write allowlist is forwarded as a POST (with body as the JSON payload) and minted with “write” access. Most providers (X) are read-only — they list no write paths. The upstream status code and JSON body are returned verbatim. Mint failures carry the same structured envelope as the mint endpoint: 412 connector_not_connected/scope_not_covered/invalid_grant include a connect_url.
Type Parameters
| Type Parameter | Default type |
|---|---|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
RequestResult<PostApiV1ConnectorsByProviderProxyResponses, PostApiV1ConnectorsByProviderProxyErrors, ThrowOnError>