API proxies
API proxies
Regenerate an API proxy token
POST
Issue a new token for an API proxy and answer it once. The previous token stops working within a minute. No request body.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace the resources belong to
api_proxy_id*stringThe API proxy; it must be yours or shared with the workspace
Format
uuidregion*stringData region of the API proxy
Value in
"besg""usnv"The API proxy with its new token
application/json- response
The API proxy with its new token
connection_id*stringThe connection the proxy forwards to
Format
uuidapi_proxy_id*stringThe API proxy
Format
uuidapi_proxy_name*stringThe name of the API proxy
app_type*stringThe app the proxy fronts
created_by*integerThe user who created the proxy
created_time*stringWhen the proxy was created
last_modified_by*integerThe user who last changed it
last_modified_time*stringWhen it was last changed
api_proxy_token*stringThe new token, shown once. It replaces the previous 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"}