See Stacksync in action with a solution architect. Book a demo ↗
API proxies

API proxies

Create an API proxy

POST
/v1/workspaces/{workspace_id}/api-proxy

A proxy on an existing connection; its app is the connection's. The token is in this answer only. Send an Idempotency-Key to retry safely.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

Query Parameters

region*Regions

Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them

Value in"besg""usnv"

Header Parameters

Idempotency-Key?|

Makes the create retry-safe for 24 hours: a retry with the same key answers the resource the first call created, with the Idempotent-Replayed: true header, and creates nothing. 1 to 255 visible ASCII characters. The same key with a different request answers 422; while the first call still runs, 409.

Defaultnull

Request Body

application/json
  1. body
connection_id*Connection Id

The connection the proxy calls the app with; its app is the proxy's app

Formatuuid4
api_proxy_name?|

3 to 63 characters: a letter first, then letters, digits, spaces, _ and -; unique among the API proxies of the workspace in the region; generated when absent

Defaultnull
is_shared_with_workspace?Is Shared With Workspace
Defaultfalse
api_proxy_resource_id?|
Defaultnull
parent_folder_id?|

The folder to create the proxy in, the root when absent

Defaultnull
validate_only?Validate Only

Run every check of the write and answer 204 without writing: a refused write answers the error the write would

Defaultfalse

Response Body

OK

application/json
  1. response
connection_id*string|null
api_proxy_id*Api Proxy Id
api_proxy_name*Api Proxy Name
api_proxy_resource_id*|

Answered by GET /api-proxy/<api_proxy_id>; null in the list, whose core does not select it

app_type*App Type
connection_name*string|null
is_shared_with_workspace*Is Shared With Workspace

Every workspace member may use the proxy, not only its creator

max_objects_per_request*|

The workspace plan's limit of objects per proxied request; null in the list

parent_folder_id*|

The folder of the proxy; null at the root, and in the list

created_by*Created By
created_time*Created Time

HTTP date (RFC 9110), UTC

last_modified_by*Last Modified By
last_modified_time*Last Modified Time

HTTP date (RFC 9110), UTC

region*Regions
Value in"besg""usnv"
api_proxy_token*string|null
Create an API proxy
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/api-proxy?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "api_proxy_name": "Salesforce Proxy",  "connection_id": "6f1c2a9e-4b7d-4e3a-9c5f-2d8b1e7a4c60"}'
{  "connection_id": "<connection_id>",  "api_proxy_id": "<api_proxy_id>",  "api_proxy_name": "<api_proxy_name>",  "api_proxy_resource_id": "<api_proxy_resource_id>",  "app_type": "<app_type>",  "connection_name": "<connection_name>",  "is_shared_with_workspace": false,  "max_objects_per_request": 0,  "parent_folder_id": "<parent_folder_id>",  "created_by": 0,  "created_time": "<created_time>",  "last_modified_by": 0,  "last_modified_time": "<last_modified_time>",  "region": "besg",  "api_proxy_token": "<api_proxy_token>"}