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

API proxies

Regenerate an API proxy token

POST
/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}/regenerate-token

Issue a new token for an API proxy and answer it once. The previous token stops working within a minute. No request body.

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 the resources belong to

api_proxy_id*string

The API proxy; it must be yours or shared with the workspace

Formatuuid

Query Parameters

region*string

Data region of the API proxy

Value in"besg""usnv"

Response Body

The API proxy with its new token

application/json
  1. response

The API proxy with its new token

connection_id*string

The connection the proxy forwards to

Formatuuid
api_proxy_id*string

The API proxy

Formatuuid
api_proxy_name*string

The name of the API proxy

app_type*string

The app the proxy fronts

created_by*integer

The user who created the proxy

created_time*string

When the proxy was created

last_modified_by*integer

The user who last changed it

last_modified_time*string

When it was last changed

api_proxy_token*string

The new token, shown once. It replaces the previous token.

Regenerate an API proxy token
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/api-proxy/497f6eca-6276-4993-bfeb-53cbbbba6f08/regenerate-token?region=besg'
{  "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",  "api_proxy_id": "5d6e7f80-9a0b-4c1d-8e2f-3a4b5c6d7e8f",  "api_proxy_name": "Salesforce proxy",  "app_type": "salesforce",  "created_by": 1042,  "created_time": "Thu, 01 Oct 2026 09:12:44 GMT",  "last_modified_by": 1042,  "last_modified_time": "Thu, 01 Oct 2026 09:12:44 GMT",  "api_proxy_token": "Sal14vJofWyng01XMObTm6lO6rDljwaLjMo-CSiS0xAphug-Kz4tgkP3nZjrv0UQORt0A"}