# Airtable

> Secure, streamlined access to the Airtable API for your team.

Source: https://docs.stacksync.com/api-proxy/airtable

## Overview

The Stacksync Airtable API Proxy provides centralized access to Airtable APIs through a single HTTPS endpoint.\
You authenticate with your Stacksync service token. Stacksync manages the underlying Airtable OAuth connection.

Use it for on‑demand operational tasks and low‑volume reads/writes.\
For continuous, high‑volume sync, use Stacksync Syncs instead.

Operations:

* [Pass Through](#pass-through)
* Attachements

## Pass Through

The Airtable Pass Through operation is the primary way to interact with Airtable through the Stacksync API Proxy. It lets you invoke any Airtable API endpoint that supports your configured authentication by specifying the full Airtable URL, HTTP method, and optional request body.

Use this operation for all Airtable use cases, including working with bases, tables, records, views, and custom fields, as well as newly released endpoints. Authentication and routing are managed by Stacksync, so your services, scripts, and internal tools can call Airtable securely with a single integration pattern, without embedding Airtable credentials or implementing authentication flows in each system.

```bash
curl -X [GET | POST | PUT | PATCH | DELETE] \
  https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
  -H "Authorization: Bearer your_api_proxy_service_token" \
  -d 'Optional'
```

### Example request

### Read records from a table

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```bash
    curl -X GET "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view" \
      -H "Authorization: Bearer your_api_proxy_service_token"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view"

    headers = {
        "Authorization": "Bearer your_api_proxy_service_token",
    }

    response = requests.get(url, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view";

    fetch(url, {
      method: "GET",
      headers: {
        Authorization: "Bearer your_api_proxy_service_token",
      },
    })
      .then((r) => r.json())
      .then((json) => console.log(json))
      .catch((e) => console.error(e));
    ```
  </Tab>
</Tabs>

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```bash
    curl -X GET "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view" \
      -H "Authorization: Bearer your_api_proxy_service_token"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view"

    headers = {
        "Authorization": "Bearer your_api_proxy_service_token",
    }

    response = requests.get(url, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view";

    fetch(url, {
      method: "GET",
      headers: {
        Authorization: "Bearer your_api_proxy_service_token",
      },
    })
      .then((r) => r.json())
      .then((json) => console.log(json))
      .catch((e) => console.error(e));
    ```
  </Tab>
</Tabs>

### Example response

```json
{
  "records": [
    {
      "id": "recXXXXXXXXXXXXXX",
      "createdTime": "2023-07-28T15:01:14.000Z",
      "fields": {
        "Name": "Sample Record 1",
        "Status": "In Progress",
        "Email": "sample1@example.com",
        "Amount": 1000,
        "Due Date": "2024-07-31",
        "Tags": ["Important", "Client"]
      }
    },
    {
      "id": "recYYYYYYYYYYYYYY",
      "createdTime": "2024-07-28T15:19:21.000Z",
      "fields": {
        "Name": "Sample Record 2",
        "Status": "Completed",
        "Email": "sample2@example.com",
        "Amount": 4000,
        "Due Date": "2024-07-25",
        "Tags": ["Important", "Partner"]
      }
    }
  ],
  "offset": "itrXXXXXXXXXXXXXX"
}
```

## Attachements

Airtable provides signed URLs for attachments that expire after approximately 2 hours. This endpoint solves that problem by providing persistent URLs that automatically redirect to fresh Airtable-signed URLs.

This is to be used along a Stacksync syncs, more details [here](/two-way-sync/connectors/airtable/attachments-fields).

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```bash
    curl -X GET "https://eu.api-proxy.stacksync.com/v1/airtable_attachment?dt=eyJiYXNlX2lXUGdEIiwgInBhdGgiOiAiIn0=" \
      -H "Authorization: Bearer your_api_proxy_service_token"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view"

    headers = {
        "Authorization": "Bearer your_api_proxy_service_token",
    }

    response = requests.get(url, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view";

    fetch(url, {
      method: "GET",
      headers: {
        Authorization: "Bearer your_api_proxy_service_token",
      },
    })
      .then((r) => r.json())
      .then((json) => console.log(json))
      .catch((e) => console.error(e));
    ```
  </Tab>
</Tabs>

The API proxy will then:

* Fetch the current attachment URL from Airtable
* Redirect you to the updated link automatically

# Attio

> Secure, streamlined access to the Attio API for your team.

Source: https://docs.stacksync.com/api-proxy/attio

## Overview

The Stacksync Attio API Proxy provides centralized access to Attio APIs through a single HTTPS endpoint.\
You authenticate with your Stacksync service token. Stacksync manages the underlying Attio OAuth connection.

Use it for on‑demand operational tasks and low‑volume reads/writes.\
For continuous, high‑volume sync, use Stacksync Syncs instead.

Operations:

* [Pass Through](#pass-through)

## Pass Through

Use the Attio Pass Through operation when you need flexible, low‑level access to the Attio API beyond what the higher‑level proxy endpoints provide. It is a good fit for advanced or less common use cases, such as working with newly released endpoints, niche resources, or operations that are not yet modeled as first‑class methods in Stacksync.

Because authentication and routing are handled by Stacksync, your services, scripts, and internal tools can call Attio securely using a single integration pattern, without embedding Attio credentials or managing OAuth flows in each system.

```bash
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Get Attio Objects

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X GET https://eu.api-proxy.stacksync.com/v1/proxy/https://api.attio.com/v2/objects \
            -H "Authorization: Bearer your_api_proxy_service_token" \
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.attio.com/v2/objects"

    headers = {
        "Authorization": "Bearer your_api_proxy_service_token",
    }

    response = requests.get(url, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.attio.com/v2/objects";

    fetch(url, {
      method: "GET",
      headers: {
        Authorization: "Bearer your_api_proxy_service_token",
      },
    })
      .then((r) => r.json())
      .then((json) => console.log(json))
      .catch((e) => console.error(e));
    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"data": [
		{
			"api_slug": "subscriptions",
			"created_at": "2024-07-27T16:08:23.773000000Z",
			"id": {
				"object_id": "fdfcc8f8-8c1e-4ad0-b20e-1b4930b8a1cb",
				"workspace_id": "0d9fb69e-fa23-46c7-8816-8fa0d32ee4e2"
			},
			"plural_noun": "Subscriptions",
			"singular_noun": "Subscription"
		},
		{
			"api_slug": "people",
			"created_at": "2024-07-22T17:54:44.560000000Z",
			"id": {
				"object_id": "5bef7430-3f17-40d7-b88c-02bcbcb658ca",
				"workspace_id": "25d9671a-b1f1-48d8-81a2-6a214e8b04bd"
			},
			"plural_noun": "People",
			"singular_noun": "Person"
		}
	]
}
```

# HubSpot

> The simplest HubSpot API you have ever seen!

Source: https://docs.stacksync.com/api-proxy/hubspot

### Overview

The Stacksync HubSpot API Proxy provides secure, centralized access to HubSpot APIs through a single HTTPS endpoint.\
You authenticate with your Stacksync service token. Stacksync manages the underlying HubSpot connection.

Use it for on‑demand operational tasks, admin actions, and low‑volume reads/writes.\
For continuous, high‑volume sync, use Stacksync Syncs instead.

Operations:

* [Get records](#get)
* [Add a custom field](#add-a-custom-field-to-a-hubspot-object)
* [Pass Through](#pass-through)

## Get

Retrieve the details of up to 100 records in a single request. The number of records returned matches the number of `ids` provided.

You can optionally specify a `fields` array to control which properties are returned for each record. If `fields` is omitted or an empty array (`"fields": []`), all available fields for each record are included in the response.

<Callout type="info">
  Supported objects:

  * Companies
  * Contacts
  * Deals
  * Feedback submissions
  * Line items
  * Products
  * Quotes
  * Discounts
  * Fees
  * Taxes
  * Tickets
  * Goals
  * Custom objects

  Planned:

  * Owners
  * Associations
  * Audit Logs
  * Pipelines
  * Stages
</Callout>

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/get/Contact \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"ids": ["227400", "264150"], "fields": ["firstname"]}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = "Contact"

    url = f"https://eu.api-proxy.stacksync.com/v1/object/get/{object_name}"

    data = {
        "data": {
            "ids": ["227400", "227386"],
            "fields": ["firstname"],
        }
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        "Authorization": f"Bearer {api_proxy_service_token}",
        "Content-Type": "application/json",
    }

    response = requests.post(url, json=data, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = "Contact";
    const url = `https://eu.api-proxy.stacksync.com/v1/object/get/${objectName}`;

    const data = {
      data: {
        ids: ["227386", "227400"],
        fields: ["firstname"],
      },
    };

    const apiProxyServiceToken = "your_api_proxy_service_token";

    const headers = {
      Authorization: `Bearer ${apiProxyServiceToken}`,
      "Content-Type": "application/json",
    };

    fetch(url, {
      method: "POST",
      headers: headers,
      body: JSON.stringify(data),
    })
      .then((response) => response.json())
      .then((json) => console.log(json))
      .catch((error) => console.error(error));

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"archived": false,
			"createdAt": "2024-01-31T13:17:43.128Z",
			"id": "227400",
			"properties": {
				"createdate": "2024-01-31T13:17:43.128Z",
				"firstname": null,
				"hs_object_id": "227400",
				"lastmodifieddate": "2024-02-02T15:05:54.183Z"
			},
			"updatedAt": "2024-02-02T15:05:54.183Z"
		},
		{
			"archived": false,
			"createdAt": "2024-01-31T13:17:43.128Z",
			"id": "227386",
			"properties": {
				"createdate": "2024-01-31T13:17:43.128Z",
				"firstname": null,
				"hs_object_id": "227386",
				"lastmodifieddate": "2024-01-31T13:28:37.746Z"
			},
			"updatedAt": "2024-01-31T13:28:37.746Z"
		}
	]
}
```

### Add a custom field to a HubSpot object

Add a custom field (property) to a HubSpot object. Both standard and custom objects are supported.

Required request body parameters:

* **`name`** – Internal property name used by the API.
* **`label`** – Human‑readable label displayed in the HubSpot UI.
* **`type`** – Underlying data type of the property (for example, string, number, date).
* **`fieldType`** – How the property is rendered in HubSpot (for example, text input, dropdown).
* **`groupName`** – Property group to which the property will belong.

Each `type` supports one or more valid `fieldType` values. Using an incompatible combination will cause the request to fail. For the full list of supported types, fieldTypes, and valid combinations, refer to the HubSpot property settings [documentation](https://developers.hubspot.com/docs/api/crm/properties#property-type-and-fieldtype-values).

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/<object_name> \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"name": "field_name", "label": "field_label", "type": "string", "fieldType": "text", "groupName": "companyinformation"}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    headers = {
        "Authorization": "Bearer your_api_proxy_service_token",
        "Content-Type": "application/json",
    }

    json_data = {
        "data": {
            "name": "field_name",
            "label": "field_label",
            "type": "string",
            "fieldType": "text",
            "groupName": "companyinformation",
        }
    }

    response = requests.post(
        "https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/<object_name>",
        headers=headers,
        json=json_data,
    )
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    fetch("https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/<object_name>", {
      method: "POST",
      headers: {
        Authorization: "Bearer your_api_proxy_service_token",
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        data: {
          name: "field_name",
          label: "field_label",
          type: "string",
          fieldType: "text",
          groupName: "companyinformation",
        },
      }),
    });
    ```
  </Tab>
</Tabs>

Example Response Body:

```json
{
    "data": {
	"archived": false,
	"calculated": false,
	"createdAt": "2024-01-11T23:43:00.066Z",
	"createdUserId": "46192612",
	"description": "",
	"displayOrder": -1,
	"externalOptions": false,
	"fieldType": "text",
	"formField": false,
	"groupName": "companyinformation",
	"hasUniqueValue": false,
	"hidden": false,
	"label": "StacksyncID",
	"modificationMetadata": {
		"archivable": true,
		"readOnlyDefinition": false,
		"readOnlyValue": false
	},
	"name": "enumeration",
	"options": [],
	"type": "string",
	"updatedAt": "2024-01-11T23:43:00.066Z",
	"updatedUserId": "46192612"
   },
   "message": "Custom field added successfully"
}
```

Example requests for different field types for the HubSpot Company object:

<Tabs items="[&#x22;String&#x22;,&#x22;Enumeration&#x22;]">
  <Tab value="String">
    ```
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/company \
            -H "Authorization: Bearer *****" \
            -H "Content-Type: application/json" \
            -d '{
                    "data": {
                        "name": "custom_field",
                        "label": "Custom Field", 
                        "type": "string",  
                        "fieldType": "text",
                        "groupName": "companyinformation"
                    }
                }'
    ```
  </Tab>

  <Tab value="Enumeration">
    For enumeration, the options property is required. The options property is a list of objects with the following properties:

    * `label` (required) The display name of the option.
    * `value` (required) The value of the option which will be used internally.
    * `description` (optional) A text description for the option.
    * `hidden` (optional) If true, the property won't be visible and can't be used in forms.

    ```
    data {
    	...
    	"type": "enumeration",
    	"options": [
    	    {
    		"label": "Option A",
    		"description": "Choice number one",
    		"value": "A",
    		"hidden": false
    	    },
    	    {
    	        "label": "Option B",
    		"description": "Choice number two",
    		"value": "B",
    		"hidden": false
    	    }
    	]
    	...
    }
    ```

    Example of full cURL request:

    ```
    curl -X POST 

    https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/company \
            -H "Authorization: Bearer ******" \
            -H "Content-Type: application/json" \
            -d '{
    	"data": {
    		"name": "custom_field",
    		"label": "Custom Field",
    		"type": "enumeration",
    		"fieldType": "select",
    		"groupName": "companyinformation",
    		"options": [
    			{
    			    "label": "Option A",
    			    "description": "Choice number one",
    			    "value": "A",
    			    "displayOrder": 1,
    			    "hidden": false
    			},
    			{
    			    "label": "Option B",
    			    "description": "Choice number two",
    			    "value": "B",
    			    "displayOrder": 2,
    			    "hidden": false
    			}
    		]
    		}
    	}
    }'
    ```
  </Tab>
</Tabs>

### Pass Through

Make a request to any HubSpot API which supports OAuth by providing the URL, Request Method and the Request Body.Use the Pass Through operation to invoke any HubSpot API endpoint that supports OAuth authentication by specifying the full URL, HTTP method, and optional request body.

<Callout type="info">
  HubSpot’s developer documentation clearly indicates which endpoints are compatible with OAuth access tokens: [https://developers.hubspot.com/docs/api/overview](https://developers.hubspot.com/docs/api/overview)

  <img src="/https/docs.stacksync.com/images/api-proxy/hubspot-api-endpoint-oauth-badge.webp" alt="HubSpot API docs for POST /crm/v3/objects/companies/batch/archive, with the &#x22;OAuth&#x22; badge highlighted next to &#x22;Private apps&#x22;." width="922" height="100" loading="lazy" decoding="async" />
</Callout>

When you call this operation, Stacksync sends a request to the target HubSpot URL using the method and body you provide. The request body is optional and may be omitted for methods such as `GET` or `DELETE`.

```bash
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

#### Create a new HubSpot Contact

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/objects/contacts/batch/create \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"inputs": [{"properties":{	"email": "john@company.com"}}]}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/objects/contacts/batch/create"

    api_proxy_service_token = "your_api_proxy_service_token"

    data = {
        "inputs": [
            {
                "properties": {
                    "email": "john@company.com"
                }
            }
        ]
    }

    headers = {
        "Authorization": f"Bearer {api_proxy_service_token}",
        "Content-Type": "application/json",
    }

    response = requests.post(url, json=data, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/objects/contacts/batch/create";

    const apiProxyServiceToken = "your_api_proxy_service_token";

    const data = {
      inputs: [
        {
          properties: {
            email: "john@company.com",
          },
        },
      ],
    };

    const headers = {
      Authorization: `Bearer ${apiProxyServiceToken}`,
      "Content-Type": "application/json",
    };

    fetch(url, {
      method: "POST",
      headers: headers,
      body: JSON.stringify(data),
    })
      .then((response) => response.json())
      .then((json) => console.log(json))
      .catch((error) => console.error(error));

    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"completedAt": "2024-02-12T02:18:24.961Z",
	"results": [
		{
			"archived": false,
			"createdAt": "2024-02-12T02:18:24.748Z",
			"id": "441751",
			"properties": {
				"createdate": "2024-02-12T02:18:24.748Z",
				"email": "john@company.com",
				"hs_all_contact_vids": "441751",
				"hs_email_domain": "company.com",
				"hs_is_contact": "true",
				"hs_is_unworked": "true",
				"hs_lifecyclestage_lead_date": "2024-02-12T02:18:24.748Z",
				"hs_marketable_status": "false",
				"hs_marketable_until_renewal": "false",
				"hs_object_id": "441751",
				"hs_object_source": "INTEGRATION",
				"hs_object_source_id": "1749998",
				"hs_object_source_label": "INTEGRATION",
				"hs_pipeline": "contacts-lifecycle-pipeline",
				"lastmodifieddate": "2024-02-12T02:18:24.748Z",
				"lifecyclestage": "lead"
			},
			"updatedAt": "2024-02-12T02:18:24.748Z"
		}
	],
	"startedAt": "2024-02-12T02:18:24.720Z",
	"status": "COMPLETE"
}
```

#### Get the schema / columns of a standard HubSpot object

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```
    curl -X GET 
    https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/properties/<object_name> \
    -H "Authorization: Bearer your_api_proxy_service_token" \
    ```
  </Tab>

  <Tab value="Python">
    ```
    import requests

    # Parameters
    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/properties/<object_name>"
    headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    }

    # Send GET request
    response = requests.get(url, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```
    // Parameters
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/properties/<object_name>";
    const headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    };

    // Send GET request
    fetch(url, { method: 'GET', headers: headers })
        .then(response => response.json())
        .then(data => console.log(data))
        .catch(error => console.error('Error:', error));

    ```
  </Tab>
</Tabs>

#### Get the schema / columns of custom Hubspot objects

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```
    curl -X GET 
    https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/schemas \
    -H "Authorization: Bearer your_api_proxy_service_token"
    ```
  </Tab>

  <Tab value="Python">
    ```
    import requests

    # Set up the URL and headers
    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/schemas"
    headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    }

    # Execute the GET request
    response = requests.get(url, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```
    // Define the URL and headers
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/schemas";
    const headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    };

    // Perform the GET request
    fetch(url, { method: 'GET', headers: headers })
        .then(response => response.json())
        .then(data => console.log(data))
        .catch(error => console.error('Error:', error));

    ```
  </Tab>
</Tabs>

# Quick Start

Source: https://docs.stacksync.com/api-proxy

The Stacksync API Proxy is a unified, secure gateway that simplifies how you interact with third-party SaaS APIs like Salesforce, Airtable, and Attio.

Instead of building complex custom integrations, handling OAuth tokens, refresh flows, API rate limits, and bulk operation logic, you send requests to Stacksync's standardized endpoints. We handle the complexity and forward the request to your destination app, returning the response directly to you.

<YouTube id="vJ1FGQiGt2I" title="Video" />

## Why the API Proxy is useful

* **No auth or token hassle:** Connect once with OAuth and use a single stable service token instead of managing app-specific tokens, refresh logic, or rotating secrets for every API.
* **Future‑proof**: When an external API changes auth or versions, you update the connection in Stacksync instead of touching every app and script that calls it.
* **Secure by design**: Stacksync stores and rotates underlying app credentials, so you never pass raw SaaS keys around in your app or copy them into scripts.
* **Consistent calls across tools**: Call `https://<region>.api-proxy.stacksync.com/v1/proxy/...` for any supported app instead of learning each vendor’s base URLs, versions, and quirks.

## When to use it

* You’re doing **one‑off or low‑volume operations** (triggering workflows, special updates, admin actions) that don’t warrant a full continuous Stacksync Sync. If you need to read or write large volumes of data, use Stacksync Syncs instead so Stacksync can handle data movement, retries, and rate limits at scale.
* You want to call your SaaS APIs (e.g. Airtable, Salesforce, HubSpot, etc.) from a backend service **without managing each API’s auth yourself**.
* You’re building internal tools (Retool, low‑code, custom dashboards) that just need a simple HTTP endpoint and a bearer token.

<Callout type="info">
  Use Stacksync Syncs when you need ongoing, high‑volume, data synchronization; \
  Use the Stacksync API Proxy only when you need direct, on‑demand, low-volum API access.
</Callout>

## Regions

Depending on your region, you can use

🇪🇺 `https://eu.api-proxy.stacksync.com/`&#x20;

🇺🇸  `https://us.api-proxy.stacksync.com/`

Get started in minutes and route Salesforce, Airtable, HubSpot, and more through the Stacksync API Proxy:

<CoverCards>
  <CoverCard title="Salesforce" href="/https/docs.stacksync.com/api-proxy/salesforce" image="/images/api-proxy/salesforce-api-proxy-card.webp" />

  <CoverCard title="HubSpot" href="/https/docs.stacksync.com/api-proxy/hubspot" image="/images/api-proxy/hubspot-api-proxy-card.webp" />

  <CoverCard title="Attio" href="/https/docs.stacksync.com/api-proxy/attio" image="/images/api-proxy/attio-api-proxy-card.webp" />

  <CoverCard title="Pipedrive" href="/https/docs.stacksync.com/api-proxy/pipedrive" image="/images/api-proxy/pipedrive-api-proxy-card.webp" />

  <CoverCard title="Airtable" href="/https/docs.stacksync.com/api-proxy/airtable" image="/images/api-proxy/airtable-api-proxy-card.webp" />
</CoverCards>

# Pipedrive

> Secure, streamlined access to the Pipedrive API for your team.

Source: https://docs.stacksync.com/api-proxy/pipedrive

## Overview

The Stacksync Pipedrive API Proxy provides centralized access to Pipedrive APIs through a single HTTPS endpoint.\
You authenticate with your Stacksync service token. Stacksync manages the underlying Pipedrive OAuth connection.

Use it for on‑demand operational tasks and low‑volume reads/writes.\
For continuous, high‑volume sync, use Stacksync Syncs instead.

Operations:

* [Pass Through](#pass-through)

## Pass Through

The Pipedrive Pass Through operation is the primary way to interact with Pipedrive through the Stacksync API Proxy. It lets you invoke any Pipedrive API endpoint that supports OAuth by specifying the full Pipedrive URL, HTTP method, and optional request body.\
\
Use this operation for all Pipedrive use cases, including working with core CRM objects, custom fields, and newly released endpoints. Authentication and routing are managed by Stacksync, so your services, scripts, and internal tools can call Pipedrive securely with a single integration pattern, without embedding Pipedrive credentials or implementing the OAuth flow in each system.

```bash
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Read Deal Object Data

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X GET https://eu.api-proxy.stacksync.com/v1/proxy/https://api.pipedrive.com/api/v2/deals \
            -H "Authorization: Bearer your_api_proxy_service_token" \
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.pipedrive.com/api/v2/deals"

    headers = {
        "Authorization": "Bearer your_api_proxy_service_token",
    }

    response = requests.get(url, headers=headers)
    print(response.json())
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url =
      "https://eu.api-proxy.stacksync.com/v1/proxy/https://api.pipedrive.com/api/v2/deals";

    fetch(url, {
      method: "GET",
      headers: {
        Authorization: "Bearer your_api_proxy_service_token",
      },
    })
      .then((r) => r.json())
      .then((json) => console.log(json))
      .catch((e) => console.error(e));
    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"additional_data": {
		"next_cursor": null
	},
	"data": [
		{
			"add_time": "2023-07-28T15:01:14Z",
			"channel": null,
			"channel_id": "1",
			"close_time": null,
			"creator_user_id": 21725832,
			"currency": "USD",
			"custom_fields": {
				"602f3785a3745bd31ed7cfce2be32aeafa99ae92": null,
				"b7e99a09aa681bbf5e17e6275c2cac4df14b622d": null,
				"b9e386b59b4016c602a13078ce7bd355af7fa60a": null,
				"cb6aed1d25e684ecfaf7f7289a59ff4b5dbbc4f7": null,
				"f52877bbb7ada88b5c9e724d16e218f73de9c740": null
			},
			"expected_close_date": "2024-07-31",
			"id": 24,
			"is_deleted": false,
			"label_ids": [
				27,
				28
			],
			"local_close_date": null,
			"local_lost_date": null,
			"local_won_date": null,
			"lost_reason": null,
			"lost_time": null,
			"org_id": 2,
			"origin": "ManuallyCreated",
			"origin_id": null,
			"owner_id": 21725832,
			"person_id": 1,
			"pipeline_id": 1,
			"probability": null,
			"stage_change_time": "2024-07-31T18:24:43Z",
			"stage_id": 5,
			"status": "open",
			"title": "Demo Deal 1",
			"update_time": "2024-08-05T09:27:54Z",
			"value": 0.0,
			"visible_to": 3,
			"won_time": null
		},
		{
			"add_time": "2024-07-28T15:19:21Z",
			"channel": null,
			"channel_id": "1",
			"close_time": null,
			"creator_user_id": 21725832,
			"currency": "USD",
			"custom_fields": {
				"602f3785a3745bd31ed7cfce2be32aeafa99ae92": null,
				"b7e99a09aa681bbf5e17e6275c2cac4df14b622d": null,
				"b9e386b59b4016c602a13078ce7bd355af7fa60a": null,
				"cb6aed1d25e684ecfaf7f7289a59ff4b5dbbc4f7": null,
				"f52877bbb7ada88b5c9e724d16e218f73de9c740": null
			},
			"expected_close_date": "2024-07-25",
			"id": 25,
			"is_deleted": false,
			"label_ids": [
				27,
				28
			],
			"local_close_date": null,
			"local_lost_date": null,
			"local_won_date": null,
			"lost_reason": null,
			"lost_time": null,
			"org_id": 2,
			"origin": "ManuallyCreated",
			"origin_id": null,
			"owner_id": 21725832,
			"person_id": 1,
			"pipeline_id": 1,
			"probability": null,
			"stage_change_time": "2024-07-28T15:38:45Z",
			"stage_id": 2,
			"status": "open",
			"title": "Demo Deal 2",
			"update_time": "2024-08-05T09:27:54Z",
			"value": 4000.0,
			"visible_to": 3,
			"won_time": null
		}
	],
	"success": true
}
```

# Salesforce

> The most straightforward way to access the Salesforce API for your team.

Source: https://docs.stacksync.com/api-proxy/salesforce

<YouTube id="vJ1FGQiGt2I" title="Salesforce API proxy, get started in seconds without having to set up a connected app in Salesforce. No code required!" />

### Overview

The Stacksync Salesforce API Proxy provides secure, streamlined access to the Salesforce APIs without requiring you to manage Connected Apps, OAuth flows, or API-specific quirks.\
Once configured, you can perform common Salesforce operations (insert, update, upsert, delete, query, and metadata access) through a single, consistent HTTPS endpoint using your Stacksync service token.

Operations:

* [Insert records](#insert)
* [Upsert records](#upsert) (tries to update a record and inserts it if it is not found)
* [Update records](#update)
* [Delete records](#delete)
* [Get records](#get)
* [Make an SOQL query](#soql)
* [Describe Salesforce instance](#describe)
* [Describe object](#describe)
* [Create a custom field into a Salesforce object](#add-a-custom-field-to-a-salesforce-object)
* [Pass Through](#pass-through)
* [Get Country List](#get-country-list)

### Insert

Insert up to 10,000 records in a single request.\
You provide the field values for each record, and the API Proxy returns a per-record result indicating success or failure.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/insert/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data":[{"name": "John Doe"},{"name": "Jane Smith"}]}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'
    url = f"https://eu.api-proxy.stacksync.com/v1/object/insert/{object_name}"

    data ={
    "data" :
             [
                {
                    'name': 'John Doe',
                    'site': 'example.com'
                },
                {
                    'name': 'Jane Smith',
                    'site': 'example.com'
                }
            ]
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = 'Account';
    const url = `https://eu.api-proxy.stacksync.com/v1/object/insert/${objectName}`;

    const data ={
    data:
         [
          {
            name: 'John Doe',
            site: 'johndoe@example.com'
          },
          {
            name: 'Jane Smith',
            site: 'janesmith@example.com'
          }
        ]
    };

    const apiProxyServiceToken = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });
      
    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"errors": [],
			"id": "0010600002BpRZDAA3",
			"success": true
		},
		{
			"errors": [],
			"id": "0010600002BpRZEAA3",
			"success": true
		}
	]
}
```

### Upsert

Create or update a single Salesforce record in an idempotent way, based on a matching key. The `match_key` can be the record `Id` or any other field you designate as a unique identifier.

If the key does not match an existing record, a new record is created. If it matches exactly one record, that record is updated. If it matches multiple records, the operation fails to avoid ambiguous updates.

Use this operation when you want to safely handle “create‑or‑update” logic without building separate lookup and write steps.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/upsert/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data":[{"name":"Jon Doe"}],"match_key":"name"}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'

    url = f"https://eu.api-proxy.stacksync.com/v1/object/upsert/{object_name}"

    data = {
            "data": 
                    [
                            {
                                    "name": "Jon Doe", 
                                    "site": "example.com"
                            }
                    ],
            "match_key": "name"
        }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const object_name = 'Account';
    const url = `https://eu.api-proxy.stacksync.com/v1/object/upsert/${object_name}`;

    const data ={
    data:
            [
                {
                    name: 'Jon Doe',
                    "site": "example.com"
                }
            ],
    match_key: "name"
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
        'Authorization': `Bearer ${apiProxyServiceToken}`,
        'Content-Type': 'application/json'
    };

    fetch(url, {
        method: 'POST',
        headers: headers,
        body: JSON.stringify(data)
    })
        .then(response => response.json())
        .then(data => {
         console.log(data);
        })
        .catch(error => {
         console.error(error);
        });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{	
			"errors": [],
			"id": "0010600002BpLWtAAN",
			"success": true
		}
	]
}
```

### Update

Modify existing Salesforce records in bulk. This operation lets you update up to 10,000 records per request and overwrites the specified fields with the new values you provide.

It is designed for controlled bulk changes, such as correcting attributes, updating ownership, or propagating new values from another system, with per‑record success and error reporting.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/update/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data":[{"id": "0010600002BpLWtAAN", "name": "John Doe"}, {"id": "0010600002BpLWuAAN", "name": "Jane Smith"}]}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'

    url = f"https://eu.api-proxy.stacksync.com/v1/object/update/{object_name}"

    data ={
     "data": 
            [
                {
                    'id': '0010600002BpLWtAAN',
                    'name': 'John Doe',
                    'site': 'www.example.com'
                },
                {
                    'id': '0010600002BpLWuAAN',
                    'name': 'Jane Smith',
                    'site': 'www.example.com'
                }
            ]
    }
    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = 'Account';
    const url = `https://eu.api-proxy.stacksync.com/v1/object/update/${objectName}`;

    const data ={
    data:
            [
                {
                    id: '0010600002BpLWtAAN',
                    name: 'John Doe',
                    site: 'www.example.com'
                },
                {
                    id: '0010600002BpLWuAAN',
                    name: 'Jane Smith',
                    site: 'www.example.com'
                }
            ]
    };

    const apiProxyServiceToken = 'your_api_proxy_service_token';

    const headers = {
        'Authorization': `Bearer ${apiProxyServiceToken}`,
        'Content-Type': 'application/json'
    };

    fetch(url, {
        method: 'POST',
        headers: headers,
        body: JSON.stringify(data)
    })
    .then(response => response.json())
    .then(data => {
     console.log(data);
    })
    .catch(error => {
     console.error(error);
    });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"errors": [],
			"id": "0010600002BpLWtAAN",
			"success": true
		},
		{
			"errors": [],
			"id": "0010600002BpLWuAAN",
			"success": true
		}
	]
}
```

### Delete

Remove Salesforce records in bulk by their Ids. This endpoint allows you to delete up to 10,000 records per request and returns a result for each Id indicating whether the delete succeeded or failed.

Use this operation for operational clean‑up, testing environments, and data hygiene tasks, where you need auditable, large‑scale deletions via a single, secure API call.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/delete \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"ids":["0010600002BpLWtAAN","0010600002BpLWuAAN"]}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = f"https://eu.api-proxy.stacksync.com/v1/object/delete"

    data ={
     "data": 
        {
            "ids" : ["0010600002BpLWtAAN","0010600002BpLWuAAN"]
        }
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = 'https://eu.api-proxy.stacksync.com/v1/object/delete';
    const data ={
    data :
        {
            ids : ['0010600002BpLWtAAN','0010600002BpLWuAAN']
        }
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
         "data": [
                  {
                     "id" : "0010600002BpLWtAAN",
                     "success" : true,
                     "errors" : [ ]
                  },
                  {
                     "id" : "0010600002BpLWuAAN",
                     "success" : true,
                     "errors" : [ ]
                  }
         ]
}
```

### Get

Retrieve full or partial representations of Salesforce records by Id. You can request up to 10,000 records in a single call and optionally specify the list of fields to return.

If no fields are provided, all fields available to the connected Salesforce user are returned. This operation is ideal when you need record‑level detail for downstream processing, enrichment, or troubleshooting.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/get/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"ids": ["0010600002BpLWuAAN", "0010600002BpLWtAAN"], "fields": ["Name"]}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'

    url = f"https://eu.api-proxy.stacksync.com/v1/object/get/{object_name}"

    data ={
    "data":
          {
             "ids" : ["0010600002BpLWuAAN", "0010600002BpLWtAAN"],
             "fields" : ["Name"]
          }
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const object_name = 'Account';
    const url = `https://eu.api-proxy.stacksync.com/v1/object/get/${object_name}`;

    const data ={
    data:
        {
          ids: ["0010600002BpLWuAAN", "0010600002BpLWtAAN"],
          fields: ["Name"]
        }
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"Id": "0010600002BpLWuAAN",
			"Name": "John Doe",
			"attributes": {
				"type": "Account",
				"url": "/https/docs.stacksync.com/services/data/v57.0/sobjects/Account/0010600002BpLWuAAN"
			}
		},
		{
			"Id": "0010600002BpLWtAAN",
			"Name": "Jane Smith",
			"attributes": {
				"type": "Account",
				"url": "/https/docs.stacksync.com/services/data/v57.0/sobjects/Account/0010600002BpLWtAAN"
			}
		}
	]
}
```

### SOQL

Execute a SOQL (Salesforce Object Query Language) query against your Salesforce instance through the Stacksync API Proxy.\
SOQL lets you select specific fields from one or more Salesforce objects, filter records with conditions, and control ordering and limits, similar to how you would use SQL against a relational database.&#x20;

Use this operation when you need to:

* Power reports, dashboards, or internal tools that read Salesforce data on demand or low-volume, otherwise using Stacksync Syncs is recommended.
* Retrieve targeted subsets of data (for example, “all open Opportunities over a certain amount”) without loading full objects.
* Implement application logic that depends on Salesforce state, such as routing, enrichment, or eligibility checks.

You provide the SOQL query string, and the API Proxy executes it using the managed Salesforce connection and returns the query results in a standard JSON format. \[

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/soql \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": "SELECT Id, Name, Email FROM Contacts"}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = f"https://eu.api-proxy.stacksync.com/v1/object/soql"

    data = {
        'data': 'SELECT Id, Name, Email FROM contacts'
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = "https://eu.api-proxy.stacksync.com/v1/object/soql";

    const data = {
      data: "SELECT Id, Name, Email FROM contacts",
    };

    const api_proxy_service_token = "your_api_proxy_service_token";

    const headers = {
      "Authorization": `Bearer ${apiProxyServiceToken}`,
      "Content-Type": "application/json",
    };

    fetch(url, {
      method: "POST",
      headers: headers,
      body: JSON.stringify(data),
    })
      .then((response) => response.json())
      .then((data) => {
        console.log(data);
      })
      .catch((error) => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

### Describe Salesforce Instance

Retrieve metadata about your Salesforce instance, including the list of available objects and their high‑level characteristics.

This operation is useful for discovery and tooling scenarios, such as generating config, inspecting available objects before building integrations, or validating that required objects exist in a given org.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/describe \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = f"https://eu.api-proxy.stacksync.com/v1/describe"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = "https://api-proxy.stacksync.com/v1/describe";
    const api_proxy_service_token = "your_api_proxy_service_token";

    const headers = {
      "Authorization": `Bearer ${apiProxyServiceToken}`,
      "Content-Type": "application/json",
    };

    fetch(url, {
      method: "POST",
      headers: headers
    })
      .then((response) => response.json())
      .then((data) => {
        console.log(data);
      })
      .catch((error) => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

### Describe Object

Retrieve detailed metadata for a specific Salesforce object, including field definitions and attributes.

Use this operation when you need to understand the structure of an object (such as required fields, data types, and constraints) before building or adjusting integrations and data flows.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/describe/{object_name} \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = "Account"

    url = f"https://eu.api-proxy.stacksync.com/v1/describe/{object_name}"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = "Account";
    const url = `https://eu.api-proxy.stacksync.com/v1/describe/${objectName}`;

    const apiProxyServiceToken = "your_api_proxy_service_token";

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });
      
    ```
  </Tab>
</Tabs>

### Add a custom field to a Salesforce object

Add a custom field to a Salesforce object. Standard and custom objects are supported.

This operation is suited for automated provisioning and configuration, where you want infrastructure or integration pipelines to manage Salesforce schema changes in a controlled, repeatable way.

The required request body parameters are:&#x20;

* `type` the type of the custom field you wish to create&#x20;
* `name` the name of the custom field you wish to create
* `label` the label associated to the custom field you wish to create

`type` can be any of the field types presented [here](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_field_types.htm)

Unless otherwise noted, all fields are creatable, filterable, and nullable.

Some optional parameters may be required depending on the `type`, \
(eg: `length` is required when creating a custom field of type `Text`)

Learn more about the API behavior [here](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm).

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"name": "field_name", "type": "field_type", "label": "field_label"}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    headers = {
        'Authorization': 'Bearer your_api_proxy_service_token',
        'Content-Type': 'application/json',
    }

    json_data = {
        'data': {
            'name': 'field_name',
            'type': 'field_type',
            'label': 'field_label'
        },
    }

    response = requests.post(
        'https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name}',
        headers=headers,
        json=json_data,
    )
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    fetch('https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name}'
      method: 'POST',
      headers: {
        'Authorization': 'Bearer your_api_proxy_service_token',
        'Content-Type': 'application/json'
      },
      // body: '{"data": {"field_name": "field_name", "field_type": "field_type"}}',
      body: JSON.stringify({
        'data': {
          'field_name': 'field_name',
          'field_type': 'field_type'
        }
      })
    });
    ```
  </Tab>
</Tabs>

Example Response Body:&#x20;

```json
{
    "data": {
        "errors": [],
        "id": "01N7R00000FlUGDUA3",
        "infos": [],
        "success": true,
        "warnings": []
    },
    "msg": "custom field added successfully"
}
```

Example requests for different field types:

<Tabs items="[&#x22;Text&#x22;,&#x22;Picklist field&#x22;]">
  <Tab value="Text">
    ```
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer *****" \
            -H "Content-Type: application/json" \
            -d '{"data": 
                    {"name": "field_name", 
                    "type": "Text", 
                    "label": "list_field", 
                    "length":100}}'
    ```
  </Tab>

  <Tab value="Picklist field">
    Example:

    ```
    curl -X POST 

    https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer ******" \
            -H "Content-Type: application/json" \
            -d '{
    	"data": {
    		"name": "picklistField",
    		"type": "Picklist",
    		"label": "picklistField",
    		"valueSet": {
    			"restricted": false,
    			"valueSetDefinition": {
    				"sorted": false,
    				"value": [
    					{
    						"fullName": "Option1",
    						"default": false
    					},
    					{
    						"fullName": "Option2",
    						"default": false
    					},
    					{
    						"fullName": "Option3",
    						"default": false
    					}
    				]
    			}
    		}
    	}
    }'
    ```
  </Tab>
</Tabs>

## Pass Through

Invoke any Salesforce REST API endpoint via the Stacksync API Proxy. You provide the full Salesforce URL, HTTP method, and optional request body, and the proxy forwards the request using the managed Salesforce connection.

Use this operation when you need capabilities that are not yet covered by the higher‑level endpoints (insert, update, delete, etc.), while still benefiting from centralized authentication, logging, and access control.

```
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Get Account Record

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X GET https://eu.api-proxy.stacksync.com/v1/proxy/https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL \
            -H "Authorization: Bearer your_api_proxy_service_token"        
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.com/v1/proxy/https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}'
    }

    response = requests.get(url, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = `https://eu.api-proxy.stacksync.com/v1/proxy/https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL`;

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`
    };

    fetch(url, {
      method: 'GET',
      headers: headers
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"AccountNumber": "CD355118",
	"AccountSource": null,
	"Active__c": "Yes",
	"AnnualRevenue": 5600000000.0,
	"BillingAddress": {
		"city": "New York",
		"country": "test",
		"geocodeAccuracy": null,
		"latitude": 12.699999997,
		"longitude": 12.8,
		"postalCode": "123",
		"state": "NY",
		"street": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA"
	},
	"BillingCity": "New York",
	"BillingCountry": "test",
	"BillingGeocodeAccuracy": null,
	"BillingLatitude": 12.699999997,
	"BillingLongitude": 12.8,
	"BillingPostalCode": "123",
	"BillingState": "NY",
	"BillingStreet": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA",
	"CleanStatus": "Pending",
	"CreatedById": "0057S000000WzYEQA0",
	"CreatedDate": "2022-10-28T08:44:59.000+0000",
	"CustomerPriority__c": "High",
	"DandbCompanyId": null,
	"Description": "World's third largest oil and gas company.",
	"DunsNumber": null,
	"Fax": "(212) 842-5501",
	"Id": "0017S00000GYoL3QAL",
	"Industry": "Energy",
	"IsDeleted": false,
	"Jigsaw": null,
	"JigsawCompanyId": null,
	"LastActivityDate": null,
	"LastModifiedById": "0057S000000WzYEQA0",
	"LastModifiedDate": "2024-01-25T11:28:30.000+0000",
	"LastReferencedDate": "2024-02-12T01:58:55.000+0000",
	"LastViewedDate": "2024-02-12T01:58:55.000+0000",
	"MasterRecordId": null,
	"NaicsCode": null,
	"NaicsDesc": null,
	"Name": "Dickenson plc 2",
	"NumberOfEmployees": 145000,
	"NumberofLocations__c": 34.0,
	"OperatingHoursId": null,
	"OwnerId": "0057S000000WzYEQA0",
	"Ownership": "Public",
	"ParentId": null,
	"Phone": "12",
	"PhotoUrl": "/services/images/photo/0017S00000GYoL3QAL",
	"Rating": "Hot",
	"SLAExpirationDate__c": "2023-05-24",
	"SLASerialNumber__c": "6654",
	"SLA__c": "Platinum",
	"ShippingAddress": {
		"city": "Paris",
		"country": "France",
		"geocodeAccuracy": null,
		"latitude": null,
		"longitude": null,
		"postalCode": "75251",
		"state": "q",
		"street": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA"
	},
	"ShippingCity": "Paris",
	"ShippingCountry": "France",
	"ShippingGeocodeAccuracy": null,
	"ShippingLatitude": null,
	"ShippingLongitude": null,
	"ShippingPostalCode": "75251",
	"ShippingState": "q",
	"ShippingStreet": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA",
	"Sic": "4437",
	"SicDesc": null,
	"Site": "resr",
	"SystemModstamp": "2024-01-25T11:28:31.000+0000",
	"TickerSymbol": "UOS",
	"Tradestyle": null,
	"Type": "Customer - Direct",
	"UpsellOpportunity__c": "Yes",
	"Website": "http://www.uos.com",
	"YearStarted": null,
	"aaaa__c": null,
	"api_token_test__c": null,
	"attributes": {
		"type": "Account",
		"url": "/https/docs.stacksync.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL"
	},
	"encrypted_test__c": "XXXXXXXXXX",
	"formula_test__c": 5600145000.0,
	"geolocation_test__Latitude__s": 12.0,
	"geolocation_test__Longitude__s": 32.0,
	"geolocation_test__c": {
		"latitude": 12.0,
		"longitude": 32.0
	},
	"multipick_list__c": "string;string;12.541",
	"percent_test__c": 5.0,
	"picklisttestnow__c": null,
	"randomfield__c": null,
	"rich_text_test__c": null,
	"rollup_test__c": 720000.0,
	"test_custom_string5__c": "test",
	"time_test__c": "00:15:00.000Z",
	"url_test__c": "www.google.com"
}
```

### Get Country List

Retrieves the list of countries configured in your Salesforce org's Address Settings. This is useful for populating country dropdowns or validating country data in your application.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/country_list \
            -H "Authorization: Bearer your_api_proxy_service_token"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = "Account"

    url = f"https://eu.api-proxy.stacksync.com/v1/country_list"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}'
    }

    response = requests.post(url, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = "Account";
    const url = `https://eu.api-proxy.stacksync.com/v1/country_list`;

    const apiProxyServiceToken = "your_api_proxy_service_token";

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`
    };

    fetch(url, {
      method: 'POST',
      headers: headers
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });
      
    ```
  </Tab>
</Tabs>

Example response:

```json
  {                                                                                                                                                                                                                                        
    "data": [                                                                                                                                                                                                                              
      {                                                                                                                                                                                                                                    
        "label": "United States",                                                                                                                                                                                                          
        "iso_code": "US"                                                                                                                                                                                                                   
      },                                                                                                                                                                                                                                   
      {                                                                                                                                                                                                                                    
        "label": "United Kingdom",                                                                                                                                                                                                         
        "iso_code": "GB"                                                                                                                                                                                                                   
      },                                                                                                                                                                                                                                   
      {                                                                                                                                                                                                                                    
        "label": "France",                                                                                                                                                                                                                 
        "iso_code": "FR"                                                                                                                                                                                                                   
      }                                                                                                                                                                                                                                    
    ],                                                                                                                                                                                                                                     
  }  
```

# Ask API

> Ask a question and get an answer written from the Stacksync docs, over HTTP

Source: https://docs.stacksync.com/docs-for-ai/ask-api

The Ask API answers a question in plain language using the Stacksync documentation. It's the same assistant as **Ask AI** on this site: it searches the docs, answers only from what it finds, and links to the pages it used. Use it from scripts, support bots or agents that don't support [MCP](/docs-for-ai/mcp-server).

### Request

Send a `POST` request with the question as JSON (3 to 2,000 characters). No API key is needed.

```bash
curl -X POST https://docs.stacksync.com/api/ask \
  -H "Content-Type: application/json" \
  -d '{"question": "How do I connect Salesforce?"}'
```

### Response

The answer is returned as Markdown (`text/markdown`), with absolute links to the docs pages it's based on:

```markdown
To connect Salesforce, you authorize it from the Create Sync page. This follows [Authorize Salesforce](https://docs.stacksync.com/connectors/salesforce/authorize-salesforce).

1. In Stacksync, open the **Create Sync** page and select **Salesforce**.
2. ...
```

To get JSON instead, send `Accept: application/json`:

```bash
curl -X POST https://docs.stacksync.com/api/ask \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"question": "How do I connect Salesforce?"}'
```

```json
{
  "question": "How do I connect Salesforce?",
  "answer": "To connect Salesforce, you authorize it from the Create Sync page..."
}
```

### Errors

| Status | Meaning                                                                                                                                                                                |
| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`  | The body isn't `{"question": "..."}`, or the question is shorter than 3 or longer than 2,000 characters                                                                                |
| `503`  | The assistant is temporarily unavailable. Use the [MCP server](/docs-for-ai/mcp-server)'s `search` and `get_page` tools, or the [Markdown pages](/docs-for-ai#markdown-pages), instead |

<Callout type="info">
  Answers are generated by AI from the documentation and can be incomplete. For anything critical, check the linked pages, or contact [Stacksync support](https://www.stacksync.com/contact).
</Callout>

# Docs for AI Agents

> Give AI assistants and agents the Stacksync documentation as Markdown, through llms.txt, MCP or a question API

Source: https://docs.stacksync.com/docs-for-ai

The Stacksync documentation is built to be read by AI assistants and agents as well as people. Every page is available as clean Markdown, and the whole site can be searched and queried from your AI assistant.

| What you need                                                                                            | Use                                        |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| Let an AI assistant (Claude, ChatGPT, Cursor, VS Code…) search and read the documentation while it works | [Docs MCP server](/docs-for-ai/mcp-server) |
| Let an AI assistant build and manage syncs, workflows and Genies in your Stacksync workspace             | [Stacksync MCP](/mcp)                      |
| Get an answer to a question, written from the docs, from a script or agent                               | [Ask API](/docs-for-ai/ask-api)            |
| Give a model the docs as context                                                                         | [`llms.txt` and `llms-full.txt`](#llmstxt) |
| Read one page as Markdown                                                                                | [Markdown pages](#markdown-pages)          |
| Call the Stacksync API from an agent or a script                                                         | [API reference](#api-reference)            |

### llms.txt

Two files follow the [llms.txt](https://llmstxt.org) standard:

* [`/llms.txt`](https://docs.stacksync.com/llms.txt): an index of every page, with its title, description and a link to its Markdown, grouped by section. Start here when an agent needs to find the right page.
* [`/llms-full.txt`](https://docs.stacksync.com/llms-full.txt): the full content of every page in one Markdown file, for loading the whole documentation into a model's context or a retrieval index.

```bash
curl https://docs.stacksync.com/llms.txt
```

### Markdown pages

Every docs page is also available as Markdown. Add `.md` to its URL:

```bash
curl https://docs.stacksync.com/two-way-sync/quick-start.md
```

The home page is at `/index.md`.

Agents can also request any page URL with an `Accept: text/markdown` header and get Markdown instead of HTML:

```bash
curl -H "Accept: text/markdown" https://docs.stacksync.com/two-way-sync/quick-start
```

Each page's Markdown starts with its title, description and source URL, followed by the content. Every HTML page also links to its Markdown version with `<link rel="alternate" type="text/markdown">`.

<Callout type="info">
  You can also copy any page as Markdown, or open it in ChatGPT or Claude, from the buttons under the page title.
</Callout>

### API reference

The [API Reference](/api-reference) documents every operation of the Stacksync API on its own page, also available as Markdown with `.md`, and in llms.txt, search and the Docs MCP server like every other page. The whole API is one OpenAPI 3.1 document, [`/openapi.json`](https://docs.stacksync.com/openapi.json); [For AI agents](/api-reference/for-ai-agents) sums up its rules on one screen.

### Crawlers

[`robots.txt`](https://docs.stacksync.com/robots.txt) allows AI crawlers to index, quote and train on the docs (`Content-Signal: ai-train=yes, search=yes, ai-input=yes`), and [`sitemap.xml`](https://docs.stacksync.com/sitemap.xml) lists every page.

# Docs MCP Server

> Connect Claude, ChatGPT, Cursor and other AI assistants to the Stacksync documentation

Source: https://docs.stacksync.com/docs-for-ai/mcp-server

The Docs MCP server lets your AI assistant search, read and ask questions about the Stacksync documentation while it works. It is public and requires no sign-in or API key. The server uses the [Model Context Protocol](https://modelcontextprotocol.io) over streamable HTTP.

```
https://docs.stacksync.com/api/mcp
```

<Callout type="info">
  The Docs MCP server reads the **documentation** only. To let your assistant build and manage two-way syncs, workflows and Genies in your Stacksync workspace, connect the [Stacksync MCP](/mcp). Connect both, and your assistant looks up how Stacksync works here and carries out the work through the Stacksync MCP.
</Callout>

## Connect your AI assistant

<Tabs items="[&#x22;Claude&#x22;,&#x22;Claude Code&#x22;,&#x22;ChatGPT&#x22;,&#x22;Codex&#x22;,&#x22;Cursor&#x22;,&#x22;VS Code&#x22;,&#x22;Windsurf&#x22;,&#x22;Gemini CLI&#x22;,&#x22;Other&#x22;]">
  <Tab value="Claude">
    In Claude on the web or desktop, open **Customize → Connectors**, select **+ Add**, then **Add custom connector**. Name the connector `Stacksync Docs` and enter the server URL `https://docs.stacksync.com/api/mcp`.
  </Tab>

  <Tab value="Claude Code">
    ```bash
    claude mcp add --transport http stacksync-docs https://docs.stacksync.com/api/mcp
    ```
  </Tab>

  <Tab value="ChatGPT">
    Open **Settings → Apps → Advanced settings** and turn on **Developer mode**. Select **Create app**, name it `Stacksync Docs`, enter the server URL `https://docs.stacksync.com/api/mcp` and select no authentication.
  </Tab>

  <Tab value="Codex">
    ```bash
    codex mcp add stacksync-docs --url https://docs.stacksync.com/api/mcp
    ```
  </Tab>

  <Tab value="Cursor">
    [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=stacksync-docs\&config=eyJ1cmwiOiJodHRwczovL2RvY3Muc3RhY2tzeW5jLmNvbS9hcGkvbWNwIn0=), or add the server to `~/.cursor/mcp.json`:

    ```json
    {
      "mcpServers": {
        "stacksync-docs": {
          "url": "https://docs.stacksync.com/api/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab value="VS Code">
    ```bash
    code --add-mcp '{"name":"stacksync-docs","type":"http","url":"https://docs.stacksync.com/api/mcp"}'
    ```

    Or add the server to `.vscode/mcp.json` in your project:

    ```json
    {
      "servers": {
        "stacksync-docs": {
          "type": "http",
          "url": "https://docs.stacksync.com/api/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab value="Windsurf">
    In the Cascade panel, open the **…** menu, select **Open MCP config file** (`mcp_config.json`) and add:

    ```json
    {
      "mcpServers": {
        "stacksync-docs": {
          "serverUrl": "https://docs.stacksync.com/api/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab value="Gemini CLI">
    ```bash
    gemini mcp add --transport http stacksync-docs https://docs.stacksync.com/api/mcp
    ```
  </Tab>

  <Tab value="Other">
    Any MCP client that supports streamable HTTP connects with the server URL `https://docs.stacksync.com/api/mcp`. No authentication is required.
  </Tab>
</Tabs>

## What your assistant can do

* **Search the documentation** and get the best-matching pages, with their sections and Markdown links (`search`).
* **Read any page** in full as Markdown (`get_page`), or list every page (`list_pages`). API Reference pages return the operation: its path, parameters, request body, answers, a curl example and its errors.
* **Ask a question** and get an answer written from the documentation, with links to its sources (`ask`). It is the same assistant as **Ask AI** on this site, and is also available without MCP through the [Ask API](/docs-for-ai/ask-api).

Example requests:

* *"Using the Stacksync docs, how do I set up a two-way sync between Salesforce and PostgreSQL?"*
* *"Search the Stacksync docs for the Salesforce OAuth error and explain how to resolve it."*
* *"Read the Stacksync API Proxy quick start and write a Python script that lists HubSpot contacts through it."*
* *"Using the Stacksync API reference, write a script that lists the queues of my workspace."*

# Queues

Source: https://docs.stacksync.com/queues

<Callout type="info">
  Coming Soon!
</Callout>

# Security

> Security features for Stacksync workspaces. MFA, SSO, SCIM, and SAML.

Source: https://docs.stacksync.com/authentication/security

Read more:

<Cards>
  <Card title="SSO" href="/https/docs.stacksync.com/authentication/security/sso" />
</Cards>

<Cards>
  <Card title="SCIM" href="/https/docs.stacksync.com/authentication/security/scim" />
</Cards>

<Cards>
  <Card title="MFA" href="/https/docs.stacksync.com/authentication/security/mfa" />
</Cards>

# MFA

> Required MFA (Multi-Factor Authentication) for all users in a workspace. This enhances workspace security for users and logins.

Source: https://docs.stacksync.com/authentication/security/mfa

MFA (Multi-Factor Authentication) can be enabled for your workspace. Enabling MFA will immediately require MFA for all workspace collaborators. They will be logged out and prompted to set up MFA at their next login.

To activate MFA, go to **Workspace Settings** → **Security**, then toggle **MFA** on.

<figure>
  <img src="/https/docs.stacksync.com/images/security-and-other-resources/workspace-security-mfa-toggle.webp" alt="Stacksync workspace settings Security section with the &#x22;Multi Factor Authentication (MFA)&#x22; toggle under Status, switched off." width="1600" height="338" loading="lazy" decoding="async" />

  <figcaption><p>MFA (Multi-Factor Authentication) in Stacksync Workspace settings.</p></figcaption>
</figure>

# SCIM

> Activate SCIM for your Stacksync workspace (System for Cross-domain Identity Management)

Source: https://docs.stacksync.com/authentication/security/scim

[Contact us](https://www.stacksync.com/contact) to activate SCIM for your workspace. This feature is part of our Enterprise plan.

Currently, Stacksync supports Okta and Azure Entra ID. We can add support for other identity providers on short notice.

SCIM stands for System for Cross-domain Identity Management. It is an open standard that automates the exchange of user identity information between IT systems and identity domains. SCIM simplifies granting access to cloud-based applications for people and groups.

# Azure Entra ID

Source: https://docs.stacksync.com/authentication/security/sso/azure-entra-id

This guide will walk you through setting up automatic user provisioning between Azure Entra ID (formerly Azure Active Directory) and Stacksync.

## Overview

By the end of this guide, you will have:

* ✅ SAML-based Single Sign-On configured
* ✅ Automatic user provisioning via SCIM
* ✅ Role-based access control
* ✅ Users automatically created/updated/deactivated in Stacksync

**Estimated time:** 30–45 minutes

***

## Prerequisites

Before you begin, ensure you have:

* [ ] **Azure Entra ID admin access** with at least **Cloud Application Administrator** role
* [ ] **Stacksync owner account**
* [ ] Your company's **email domain** (e.g., `acme.com`)
* [ ] List of users who should have access

***

## Part 1: Create Enterprise Application in Azure

### Step 1.1: Navigate to Enterprise Applications

1. Sign in to the **Azure Portal**: [https://portal.azure.com](https://portal.azure.com)
2. In the search bar at the top, type **"Microsoft Entra ID"** and select it
3. In the left sidebar, click **Enterprise applications**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-enterprise-applications-new-application.webp" alt="Azure Entra ID Enterprise applications list with the &#x22;New application&#x22; button highlighted." width="1600" height="484" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.2: Create New Application

1. Click **+ New application** (top left)
2. Click **+ Create your own application**
3. Enter the application name: **stacksync-example**
4. Select: **"Integrate any other application you don't find in the gallery (non-gallery)"**
5. Click **Create**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-create-own-application-non-gallery.webp" alt="Azure &#x22;Create your own application&#x22; panel named stacksync-example, &#x22;Integrate any other application&#x22; (Non-gallery) selected, and Create." width="1600" height="800" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Wait a few seconds for Azure to create the application.

***

## Part 2: Configure SAML Single Sign-On

### Step 2.1: Start SAML Setup

1. In your **stacksync-example** enterprise application, click **Single sign-on** in the left sidebar
2. Click the **SAML** tile

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-single-sign-on-saml-method.webp" alt="Azure stacksync-example Single sign-on page with the &#x22;SAML&#x22; sign-on method tile highlighted." width="1600" height="511" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.2: Download Azure Metadata

**Before** configuring anything, download your Azure metadata file:

1. Scroll down to section **"3. SAML Certificates"**
2. Under **"Token signing certificate"**, click **Edit** (pencil icon on the right)
3. Click the **three dots menu (...)** next to the Active certificate
4. Select **"Download federated certificate XML"** from the dropdown menu
5. Save the file (e.g., `AzureMetadata.xml`)

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-download-federated-certificate-xml.webp" alt="Azure SAML Signing Certificate panel with the &#x22;...&#x22; menu open and &#x22;Download federated certificate XML&#x22; highlighted." width="1600" height="750" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.3: Configure SSO in your workspace

The SSO configuration should only be done once per company domain. All domains will be connected under the same SSO configuration.

1. Navigate to your workspace settings
2. Choose Azure AD (Entra ID) as your identity provider
3. Upload the federated certificate XML file you downloaded from Azure in the step above
4. You can choose **Restrict login to SSO only for this domain**. This ensures users with this domain can only log in via the SSO flow.
5. Click **Continue**.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-sso-azure-metadata-upload.webp" alt="Stacksync Workspace Settings SCIM & SSO: Identity Provider &#x22;Azure AD (Entra ID)&#x22;, metadata XML uploaded, restrict-domain checkbox." width="1600" height="544" loading="lazy" decoding="async" />

  <figcaption />
</figure>

6. You should now see a page with all the necessary info to continue the setup in Azure.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-current-sso-configuration-azure.webp" alt="Stacksync &#x22;Current SSO configuration&#x22; showing azure_ad provider, Connection Name, Entity ID, ACS URL and Sign-In URL for Azure setup." width="1565" height="297" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

### Step 2.4: Configure Basic SAML Settings

Once you have completed the SSO configuration in your workspace, you can continue with the setup in Azure:

1. Go back to your Azure SAML setup page
2. Click **Edit** on section **"1. Basic SAML Configuration"**
3. Fill in the values **provided by Stacksync support**:

**Identifier (Entity ID):**

```
urn:auth0:stacksync:companydomain-com-sso-azure-ad
```

*(Use the exact value from the above step)*

**Reply URL (Assertion Consumer Service URL):**

```
https://auth.stacksync.com/login/callback?connection=companydomain-com-sso-azure-ad
```

*(Use the exact value from the above step)*

**Sign on URL (optional):**

```
https://stacksync.com/login
```

4. Click **Save**
5. Close the panel by clicking **X**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-basic-saml-configuration-panel.webp" alt="Azure Basic SAML Configuration panel with Identifier (Entity ID) and Reply URL (ACS URL) fields filled in and the Save button highlighted." width="1600" height="777" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.5: Configure the email claim

This is needed because some emails could have uppercase letters, which can cause the SSO login to fail.

1. Edit the Attributes & Claims section

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-attributes-claims-edit.webp" alt="Azure stacksync-example SAML-based Sign-on page with the &#x22;Edit&#x22; button on the Attributes & Claims section highlighted." width="1108" height="770" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Click on the user.mail claim to start editing it

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-email-claim-user-mail.webp" alt="Azure Attributes & Claims list with the emailaddress claim mapped to user.mail highlighted under Additional claims." width="853" height="577" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Change the source to **Transformation** (this opens a side panel).
4. In the **Transformation** dropdown, choose `ToLowercase()`.
5. In the **Attribute name** dropdown, choose `user.mail`.
6. Click **Add**, then click **Save** on the main page.

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-email-claim-tolowercase-transformation.webp" alt="Azure Manage claim with Source &#x22;Transformation&#x22; and a Manage transformation panel set to ToLowercase() on attribute user.mail." width="1600" height="682" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 3: Set Up Automatic User Provisioning (SCIM)

### Step 3.1: Generate an API token for your workspace

1. In your Stacksync workspace settings, scroll down to "Stacksync Workspace API Key"
2. Create an API key for SCIM use.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-generate-workspace-api-key.webp" alt="Stacksync Workspace Settings with Key Name &#x22;SCIM API KEY&#x22; entered and the &#x22;Generate new API key&#x22; button highlighted." width="1532" height="446" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-workspace-api-key-preview.webp" alt="Stacksync &#x22;Workspace API Key Preview&#x22; dialog showing the generated key with a copy icon and a Close button." width="507" height="266" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.2: Enable Automatic Provisioning

1. In your **Stacksync** enterprise application, click **Provisioning** in the left sidebar
2. Click **+ New configuration** (at the top).
3. On the "New provisioning configuration" page:
   * **Select authentication method:** Bearer authentication (default)
   * **Tenant URL:** Paste the URL provided by Stacksync support.

```
https://api.stacksync.com/v1/workspaces/[your-workspace-id]/scim/v2
```

* **Secret Token:** Paste the token that you generated in your workspace

4. Click **Test connection**
   * You should see: ✅ "Connection test for 'stacksync-example' was successful"
5. Click **Create** (bottom left)

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-scim-provisioning-bearer-token.webp" alt="Azure New provisioning configuration with Bearer authentication, Stacksync SCIM Tenant URL and Secret token, a successful test, and Create." width="1600" height="774" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 4: Create App Roles for Stacksync

App roles define which permission level users have in Stacksync (`viewer` or `editor`).

### Step 4.1: Navigate to App Registrations

1. In the Azure Portal search bar, type: **"App registrations"**
2. Click **App registrations**
3. Click the **"View all applications in directory"** button
4. Find and click **stacksync-example**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-app-registrations-view-all.webp" alt="Azure App registrations page with the &#x22;View all applications in the directory&#x22; button highlighted." width="1600" height="389" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.2: Create "viewer" Role

1. In the left sidebar, click **App roles**
2. Click **+ Create app role**

Fill in:

* **Display name:** `viewer`
* **Allowed member types:** Users/Groups
* **Value:** `viewer`
* **Description:** `Viewer with read-only access`
* **Do you want to enable this app role?** ✅ Checked

3. Click **Apply**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-create-viewer-app-role.webp" alt="Azure stacksync-example App roles with a &#x22;Create app role&#x22; panel for a &#x22;viewer&#x22; role (Users/Groups, read-only access) and Apply." width="1600" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.3: Create "editor" Role

1. Click **+ Create app role** again

Fill in:

* **Display name:** `editor`
* **Allowed member types:** Users/Groups
* **Value:** `editor`
* **Description:** `Editor with standard access`
* **Do you want to enable this app role?** ✅ Checked

2. Click **Apply**

***

## Part 5: Configure Attribute Mappings

### Step 5.1: Access Attribute Mappings

1. Go back to **Enterprise applications** → **stacksync-example**
2. Click **Provisioning** in the left sidebar
3. Under **Attribute Mappings**, click **Provision Microsoft Entra ID Users**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-attribute-mapping-provision-users.webp" alt="Azure Attribute mapping page for stacksync-example with &#x22;Provision Microsoft Entra ID Users&#x22; highlighted." width="1421" height="515" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 5.2: Add Roles Mapping

1. Scroll to the bottom and click **Add New Mapping**

Fill in:

* **Mapping type:** Expression
* **Expression:**

```
  SingleAppRoleAssignment([appRoleAssignments])
```

* **Target attribute:** `roles[primary eq "True"].value`
* **Default value if null:** `viewer`
* **Apply this mapping:** Always
* **Match objects using this attribute:** No

2. Click **OK**
3. Click **Save** at the top

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-roles-expression-attribute-mapping.webp" alt="Azure Edit Attribute with Expression SingleAppRoleAssignment([appRoleAssignments]), default &#x22;viewer&#x22;, target roles[primary eq &#x22;True&#x22;].value." width="792" height="1019" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 6: Start Provisioning

### Step 6.1: Enable Provisioning

1. Go back to the main **Provisioning** page (Preview)
2. Click **Start provisioning**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-start-provisioning.webp" alt="Azure stacksync-example provisioning Overview page with the &#x22;Start provisioning&#x22; button highlighted." width="1600" height="763" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Azure will now start provisioning users. The initial sync takes **5–10 minutes**.

***

## Part 7: Assign Roles to Users

### Step 7.1: Assign a Role to a User

1. Go to **Users and groups** in the left sidebar
2. Click **+ Add user/group**
3. Under **Users**, click **None Selected**
4. Select a user
5. Click **Select**
6. Under **Select a role**, click **None Selected**
7. Choose either **viewer** or **editor**
8. Click **Select**
9. Click **Assign**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-add-assignment-select-user.webp" alt="Azure Add Assignment for stacksync-example with the Users panel open and the user test_2 selected." width="1600" height="809" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-add-assignment-select-editor-role.webp" alt="Azure Add Assignment &#x22;Select a role&#x22; panel listing editor, User and viewer, with &#x22;editor&#x22; and the Select button highlighted." width="1600" height="804" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Repeat this for each user, assigning them the appropriate role.

***

## Part 8: Test the Setup

### Step 8.1: Test Provisioning

1. Go to **Provisioning** → **Provision on demand** (if available)
2. Select a test user (you'll need to search for the user)
3. Click **Provision**
4. Verify the user is successfully created in your Stacksync workspace

***

## Troubleshooting

### Users Not Provisioning

**Check:**

* Provisioning Status is **On**
* Users are **assigned** to the Stacksync application
* Users have a **role assigned** (viewer or editor)
* User has an email address
* Wait 10–40 minutes for the initial sync

**View logs:**

* Go to **Provisioning** → **View provisioning logs**

### Wrong Role Assigned

**Check:**

* Role is assigned correctly in **Users and groups**
* Roles attribute mapping includes default value `viewer`
* App roles display names are lowercase: `viewer`, `editor` (not `Viewer`, `Editor`)

# SSO

> Manage all your user logins with your SSO (Single Sign On).

Source: https://docs.stacksync.com/authentication/security/sso

[Contact us](https://www.stacksync.com/contact) to activate SSO for your workspace. This feature is part of our Enterprise plan.

Currently, Stacksync supports Okta and Azure Entra ID. We can add support for other identity providers on short notice.

# OKTA Stacksync

> SCIM setup instructions

Source: https://docs.stacksync.com/authentication/security/sso/okta-stacksync

This guide will walk you through setting up automatic user provisioning between Okta and Stacksync.

## Overview

By the end of this guide, you will have:

* ✅ SAML-based Single Sign-On configured
* ✅ Automatic user provisioning via SCIM
* ✅ Role-based access control
* ✅ Users automatically created/updated/deactivated in Stacksync

**Estimated time:** 30–45 minutes

## Prerequisites

Before you begin, ensure you have:

* Okta admin access
* Stacksync owner account
* Your company's email domain (e.g., `acme.com`)
* List of users who should have access

## Supported Features

The following SAML 2.0 features are supported:

| Feature                         | Supported |
| ------------------------------- | --------- |
| SP-initiated SSO                | Yes       |
| IdP-initiated SSO               | Yes       |
| Just-In-Time (JIT) Provisioning | Yes       |
| Single Logout (SLO)             | No        |

## SCIM Provisioning Features

The following SCIM 2.0 provisioning features are supported:

| Feature                | Supported |
| ---------------------- | --------- |
| Push New Users         | Yes       |
| Push Profile Updates   | Yes       |
| Push User Deactivation | Yes       |
| Reactivate Users       | Yes       |
| Push Groups            | No        |
| Import Users           | No        |
| Import Groups          | No        |
| Sync Password          | No        |

## SCIM Attributes

The following user attributes are supported for SCIM provisioning operations:

| Attribute  | Required | Immutable | Description                                       |
| ---------- | -------- | --------- | ------------------------------------------------- |
| userName   | Yes      | No        | User's unique identifier (typically email)        |
| email      | Yes      | Yes       | User's email address (cannot be changed via SCIM) |
| givenName  | No       | No        | User's first name                                 |
| familyName | No       | No        | User's last name                                  |
| roles      | Yes      | No        | User's role: `viewer` or `editor`                 |

> **Note:** The `email` attribute is immutable. Once a user is created, their email address cannot be updated through SCIM. To change a user's email, you must deactivate the existing user and create a new one with the updated email.

## Additional Features

| Feature              | Supported |
| -------------------- | --------- |
| Force Authentication | No        |
| Encrypted Assertions | No        |
| Signed Requests      | Yes       |

## Notes

* **SP-initiated SSO**: Users can initiate login from the Stacksync login page by entering their email address. They will be redirected to Okta for authentication.
* **IdP-initiated SSO**: Users can initiate login directly from their Okta dashboard by clicking the Stacksync app tile.
* **SCIM Provisioning**: Automatic user lifecycle management including creation, updates, and deactivation. Each workspace requires a separate SCIM app configuration.
* **Role-Based Access Control**: Users can be assigned `viewer` or `editor` roles through Okta group membership.

## Important Notes

* You will create **one** "Stacksync - SSO" app for your entire organization
* You will create **one** "Stacksync - SCIM" app **per workspace**
* If you have multiple workspaces (e.g., dev, staging, production), you must set up a separate SCIM app for each
* Each workspace has independent RBAC enforcement

## Part 1: Configure SAML Single Sign-On

The SSO configuration connects your Okta organization to Stacksync. You only need to complete this once for your entire organization.

### Step 1.1: Add the Stacksync SSO App

1. Sign in to your Okta Admin Console
2. Navigate to **Applications** → **Applications**
3. Click **Browse App Catalog**
4. Search for and select **Stacksync - SSO**
5. Click **Add Integration**

### Step 1.2: Configure Application Settings

1. In the application setup form, enter:
   * **Organization Domain:** Your company domain with dashes instead of dots (e.g., `acme-com` for `acme.com`)
2. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-stacksync-sso-general-settings.webp" alt="Okta &#x22;Add Stacksync - SSO&#x22; General Settings form with Application label, Organization Domain and a Done button." width="1045" height="555" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.3: Retrieve SAML Configuration URLs

1. Navigate to the **General** tab
2. Scroll down to **App Embed Link**
3. Copy and save the embed link
4. Navigate to the **Sign On** tab
5. Copy and save the **Metadata URL**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-app-embed-link.webp" alt="Okta App Embed Link section with the Stacksync embed URL highlighted." width="728" height="477" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-sign-on-saml-metadata-url.webp" alt="Okta Sign On tab for the SAML 2.0 app with the Metadata URL under Metadata details highlighted and a Copy link." width="1025" height="842" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.4: Configure SSO in Stacksync

> **Note:** The SSO configuration should only be done once per company domain. All workspaces will share the same SSO configuration.

1. Navigate to your Stacksync workspace settings
2. Select **Okta** as your identity provider
3. Upload the SAML metadata or enter the metadata URL from Step 1.3
4. (Optional) Enable **Restrict login to SSO only for this domain** to require SSO authentication for all users with your domain
5. Click **Continue**

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-sso-okta-metadata-url.webp" alt="Stacksync Workspace Settings SCIM & SSO with Identity Provider &#x22;Okta&#x22;, Okta SAML Metadata URL field, restrict-domain checkbox and Continue." width="1182" height="706" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You should now see a confirmation page with all the necessary information to complete the setup.

## Part 2: Set Up Automatic User Provisioning (SCIM)

The SCIM configuration enables automatic user provisioning. You must complete this for each Stacksync workspace.

### Step 2.1: Add the Stacksync SCIM App

1. In your Okta Admin Console, navigate to **Applications** → **Applications**
2. Click **Browse App Catalog**
3. Search for and select **Stacksync - SCIM**
4. Click **Add Integration**
5. Enter your **Workspace ID** when prompted
6. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-stacksync-scim-general-settings.webp" alt="Okta &#x22;Add Stacksync - SCIM&#x22; General Settings form with Application label, Workspace ID &#x22;1234&#x22; and a Done button." width="1054" height="557" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.2: Generate a Workspace API Key

1. Navigate to your Stacksync workspace settings
2. Scroll down to **Stacksync Workspace API Key**
3. Click **Create API Key**
4. Save the generated API key securely

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-generate-scim-api-key-okta.webp" alt="Stacksync Workspace Settings with Key Name &#x22;SCIM API KEY&#x22; and the &#x22;Generate new API key&#x22; button highlighted, for Okta SCIM." width="1600" height="460" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-scim-api-key-preview-okta.webp" alt="Stacksync &#x22;Workspace API Key Preview&#x22; dialog with the generated key highlighted, a copy icon and a Close button." width="508" height="262" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.3: Enable API Integration

1. Return to your Okta Admin Console
2. Open the Stacksync SCIM application you created
3. Navigate to the **Provisioning** tab
4. Click **Configure API Integration**
5. Check **Enable API Integration**
6. Paste your API key from Step 2.2
7. Click **Test API Credentials**
8. Verify that you see a success message
9. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-enable-api-integration-token.webp" alt="Okta Provisioning Integration with &#x22;Enable API integration&#x22; checked, the API Token field and &#x22;Test API Credentials&#x22; highlighted." width="1021" height="694" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.4: Configure Provisioning Settings

1. After saving, the page will display additional options
2. Click **Edit** in the **To App** section
3. Enable the following options:
   * Create Users
   * Update User Attributes
   * Deactivate Users
4. Disable **Set password when creating new users**
5. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-edit.webp" alt="Okta Provisioning &#x22;To App&#x22; settings for Stacksync with the Edit button highlighted above Create, Update and Deactivate Users." width="1034" height="907" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-enable-users.webp" alt="Okta Provisioning to App with Create Users, Update User Attributes and Deactivate Users enabled, set password unchecked, and Save." width="1015" height="806" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Part 3: Configure Role Attribute Mappings

App roles define which permission level users have in Stacksync (viewer or editor).

### Step 3.1: Access the Profile Editor

1. In the **Provisioning** tab, scroll down to **Attribute Mappings**
2. Click **Go to Profile Editor**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-attribute-mappings-profile-editor.webp" alt="Okta Stacksync Attribute Mappings section with the &#x22;Go to Profile Editor&#x22; button highlighted." width="803" height="425" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.2: Add the Roles Attribute

1. Click **+ Add Attribute**
2. Fill in the following fields:
   * **Data type:** string array
   * **Display name:** roles
   * **Variable name:** roles
   * **External name:** roles
   * **External namespace:** `urn:ietf:params:scim:schemas:core:2.0:User`
   * **Description:** SCIM role attribute for Stacksync app
   * **Enum:** Enabled
   * **Attribute members:** `viewer`, `editor`
   * **Attribute required:** Yes
   * **Attribute type:** Group
   * **Group Priority:** Use Group Priority
3. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-profile-editor-add-attribute.webp" alt="Okta Profile Editor for the Stacksync app user with the &#x22;Add Attribute&#x22; button highlighted under Attributes." width="1046" height="560" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-roles-attribute.webp" alt="Okta Add Attribute dialog for a &#x22;roles&#x22; string array with enum members Viewer/viewer and Editor/editor, Group type, Use Group Priority." width="1449" height="959" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.3: Configure Role Mapping Expression

1. Return to your SCIM application
2. Under **Attributes**, click **Mappings**
3. Switch to the **Okta User to Stacksync** tab
4. Find the **roles** attribute in the mapping list
5. Add the following expression:

   ```
   isMemberOfGroupName("Stacksync editors") ? {"editor"} : {"viewer"}
   ```
6. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-profile-editor-mappings-button.webp" alt="Okta Profile Editor Attributes list with the &#x22;Mappings&#x22; button highlighted." width="1015" height="288" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-user-to-stacksync-mappings.webp" alt="Okta Stacksync User Profile Mappings with the &#x22;Okta User to Stacksync&#x22; tab highlighted and user fields mapped to Stacksync attributes." width="1011" height="578" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-roles-mapping-expression.webp" alt="Okta mapping row with an isMemberOfGroupName(&#x22;Stacksync editors&#x22;) expression mapped to the Stacksync &#x22;roles&#x22; attribute." width="941" height="205" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Part 4: Create Groups and Assign Users

### Step 4.1: Create Stacksync Groups

1. Navigate to **Directory** → **Groups**
2. Click **Add Group**
3. Create two groups:
   * **Stacksync Editors** — Users with editor permissions
   * **Stacksync Viewers** — Users with read-only permissions

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-groups-add-group.webp" alt="Okta Directory Groups page with the &#x22;Add group&#x22; button highlighted." width="1536" height="480" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.2: Add Users to Groups

1. Open each group you created
2. Click **Assign People**
3. Select the users who should have that access level
4. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-stacksync-editors-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1473" height="729" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.3: Assign Groups to the Application

1. Return to your Stacksync SCIM application
2. Navigate to the **Assignments** tab
3. Click **Assign** → **Assign to Groups**
4. Select **Stacksync Editors**
5. In the assignment dialog, set the **roles** field to `editor` by clicking the override text and choosing the radio button `editor`
6. Click **Save and Go Back**
7. Repeat for **Stacksync Viewers**, setting the **roles** field to `viewer`
8. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-stacksync-app-assign-groups.webp" alt="Okta Stacksync application Assignments tab with the &#x22;Assign&#x22; dropdown and &#x22;Groups&#x22; filter highlighted." width="1390" height="837" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-group-assignment-roles-override.webp" alt="Okta group assignment form showing the roles expression with the &#x22;Override&#x22; link highlighted." width="623" height="410" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-group-assignment-editor-role.webp" alt="Okta group assignment roles override with &#x22;Editor&#x22; checked instead of Viewer, and &#x22;Save and Go Back&#x22;." width="622" height="229" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! 🎉

## Troubleshooting

### Common Issues

### User not provisioned to Stacksync

* Verify the API key is correct in the Provisioning settings
* Check that the user is assigned to the Stacksync SCIM application
* Ensure the user has a valid role assigned (viewer or editor)

### Role not updating

* Verify the role mapping expression is correct
* Check that the user is in the correct Okta group (Stacksync Editors or Stacksync Viewers)
* Try removing and re-adding the user to the group

### SSO login fails

* Verify the Metadata URL is correct in Stacksync settings
* Check that the user's email domain matches the configured SSO domain
* Ensure the user is assigned to the Stacksync SSO application

### API credentials test fails

* Verify the Workspace ID is correct
* Regenerate the API key in Stacksync workspace settings
* Ensure you're using the correct workspace

### Support

For additional assistance, contact Stacksync support at [support@stacksync.com](mailto:support@stacksync.com)

# OKTA

> SSO and SCIM for OKTA

Source: https://docs.stacksync.com/authentication/security/sso/okta

<Callout type="info">
  The Stacksync Okta app is currently under review by Okta. Until the app is published on the Okta Marketplace, here is a guide to synchronize your Okta users automatically into Stacksync by creating the SCIM app yourself.

  This setup takes \~10 minutes.
</Callout>

<Callout type="info">
  SSO is part of the Stacksync Enterprise plan. Contact us at [sso@stacksync.com](mailto:sso@stacksync.com) to set it up.
</Callout>

Notes:

* This setup must be implemented by an Okta **admin**.
* The SCIM integration is associated with a unique Stacksync workspace. If you have multiple workspaces (such as dev, staging, and prod), you will need to set up an SCIM app for each workspace. Each workspace has independent RBAC enforcement.

## SSO (SAML) setup instructions

1. On your Okta homepage, go to the admin section.

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-my-apps-admin-button.webp" alt="Okta My Apps homepage with the &#x22;Admin&#x22; button highlighted in the top bar." width="1600" height="169" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. In the Applications section, create an app integration of type SAML 2.0.

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-create-app-integration.webp" alt="Okta Applications page with the &#x22;Create App Integration&#x22; button highlighted." width="856" height="592" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-new-app-integration-saml.webp" alt="Okta &#x22;Create a new app integration&#x22; dialog with sign-in method &#x22;SAML 2.0&#x22; selected and a Next button." width="1474" height="843" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Set the app name to `Stacksync`. You can also add the Stacksync app logo (download the file below).

<FileDownload name="stacksync_logo.png" href="/https/docs.stacksync.com/images/home/stacksync-app-logo.webp" kind="image" size="21KB" />

4. Configure your SAML settings with:
   1. Single sign-on URL: `https://auth.stacksync.com/login/callback?connection=<sso_id_provided_by_stacksync_team_for_you>`
   2. Audience URI: `urn:auth0:stacksync:<sso_id_provided_by_stacksync_team_for_you>`
   3. Application username: `Email`
   4. Update application username on `Create and update`
   5. Attribute Statements:
      1. name=`emails`
      2. name format=`Basic`
      3. value=`user.email`<br />

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-saml-settings-email-attribute.webp" alt="Okta SAML Settings with Stacksync Single sign-on URL, Audience URI, Application username &#x22;Email&#x22; and attribute email = user.email." width="630" height="720" loading="lazy" decoding="async" />

           <figcaption />
         </figure>
   6. You can skip the `Feedback` section and click `Finish`
      1. Send the following details to `sso@stacksync.com`:

         1. `Identity Provider Single Sign-On URL` at the top of the SAML setup instructions page.<br />

            <figure>
              <img src="/https/docs.stacksync.com/images/home/okta-view-saml-setup-instructions.webp" alt="Okta sso_connection_demo app Sign On tab with the &#x22;View SAML setup instructions&#x22; button highlighted." width="1558" height="912" loading="lazy" decoding="async" />

              <figcaption />
            </figure>

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-identity-provider-sso-url.webp" alt="Okta &#x22;How to Configure SAML 2.0&#x22; page with the Identity Provider Single Sign-On URL highlighted." width="1547" height="411" loading="lazy" decoding="async" />

           <figcaption />
         </figure>

         `2. SAML Signing Certificates` for `SHA2`

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-saml-sha2-certificate-download.webp" alt="Okta SAML Signing Certificates with the SHA-2 Actions menu open, showing &#x22;View IdP metadata&#x22; and &#x22;Download certificate&#x22;." width="1508" height="824" loading="lazy" decoding="async" />

           <figcaption />
         </figure>

         1. Once we have received the above information, we will activate SSO and you’re all set!

## SCIM setup instructions

1. On the General page of the SAML app you just created, enable SCIM provisioning.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-app-settings-enable-scim.webp" alt="Okta sso_connection_demo General tab App Settings with Edit and the &#x22;SCIM&#x22; provisioning option highlighted." width="1600" height="702" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Go to the Stacksync Workspace Settings page at `https://app.stacksync.com` to find the information needed for the next steps.
   1. Find your Stacksync `workspace_id` on top of the page.

      <figure>
        <img src="/https/docs.stacksync.com/images/home/stacksync-settings-workspace-id.webp" alt="Stacksync Settings Workspace Details with the &#x22;Workspace Id&#x22; field (2610) highlighted." width="1016" height="384" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   2. Generate a `workspace_api_key` at the bottom of the same page. **Only the owner** of the Stacksync workspace can create workspace API keys.

      <figure>
        <img src="/https/docs.stacksync.com/images/home/stacksync-workspace-api-key-section.webp" alt="Stacksync Settings page with the &#x22;Stacksync Workspace API Key&#x22; section highlighted: Key Name field and &#x22;Generate new API key&#x22; button." width="1600" height="683" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
3. Go back to your SAML app on the Provisioning page. Fill in the following parameters:
   1. **Base URL:** `https://api.stacksync.com/v1/workspaces/<your_stacksync_workspace_id>/scim/v2/`
   2. **API Token:** `Bearer <your_stacksync_workspace_api_key>`<br />

      <figure>
        <img src="/https/docs.stacksync.com/images/home/okta-scim-connection-bearer-auth.webp" alt="Okta SCIM Connection: Stacksync base URL, unique identifier &#x22;email&#x22;, provisioning actions checked, HTTP Header Bearer authorization." width="1526" height="906" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
4. Allow your SCIM app to create, update, and deactivate users. Stacksync users never use passwords to connect to Stacksync. Therefore, the `Sync Password` feature should be disabled.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-sync-password.webp" alt="Okta Provisioning to App with Create Users, Update User Attributes and Deactivate Users enabled and Sync Password unchecked." width="1501" height="910" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Go to the Profile Editor and add a new attribute `roles` to the app. This is a standard SCIM attribute with the following fields:
   1. Data type: `string array`
   2. Display name: `roles`
   3. Variable name: `roles`
   4. External name: `roles`
   5. External namespace: `urn:ietf:params:scim:schemas:core:2.0:User`
   6. Description: `SCIM role attribute for Stacksync app`
   7. Enum: `true`
   8. Attribute member: `viewer` and `editor`
   9. Attribute required: `true`
   10. Attribute type: `Group`
   11. Group Priority: Use `Group Priority`<br />

       <figure>
         <img src="/https/docs.stacksync.com/images/home/okta-add-roles-attribute.webp" alt="Okta Add Attribute dialog for a &#x22;roles&#x22; string array with enum members Viewer/viewer and Editor/editor, Group type, Use Group Priority." width="1449" height="959" loading="lazy" decoding="async" />

         <figcaption />
       </figure>
6. Go to Directory/Groups and create two groups: `Stacksync Editors` and `Stacksync Viewers`. Each group will be assigned a different role in Stacksync (`editor` and `viewer`).<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-directory-groups-add-group.webp" alt="Okta Directory Groups page with the &#x22;Add group&#x22; button highlighted, used to create Stacksync Editors and Viewers groups." width="1577" height="493" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. Assign the people you want to give access to Stacksync to the Stacksync groups you just created.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-stacksync-editors-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1473" height="729" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. Go back to your application and, under `Assignments`, assign these two groups to the application. Make sure you select the right role for each group. You can ignore the other fields. Stacksync does not read them.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-sso-app-assign-groups.webp" alt="Okta sso_connection_demo app Assignments tab with the &#x22;Assign&#x22; dropdown and &#x22;Groups&#x22; filter highlighted." width="1185" height="733" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

That's it! 🎉

# What is Stacksync?

> The only integration cloud built for real-time

Source: https://docs.stacksync.com/

## Glad to see you here! 👋

[Stacksync](https://www.stacksync.com) is a no-code tool that makes it easy to sync data between your enterprise systems and databases using real-time, two-way sync.

<YouTube id="lG7O_FYsM5w" title="Stacksync demo in 2 minutes!" />

CRM integrations are complex, costly, and hard to maintain. Stacksync reduces implementation delays from months to minutes, cuts costs by 10x, and removes complexity from enterprise system integrations and CRM feature development.

Stacksync is a real-time, bidirectional data sync tool for CRMs (e.g., Salesforce, HubSpot, or SAP) and databases (e.g., PostgreSQL or Google BigQuery). Edits made in your CRM instantly update your database, and vice versa.

To set up a sync, you connect the two apps in one click and select the tables to sync. That’s it!

Get started with the resources below.

<CoverCards size="large">
  <CoverCard title="Two-Way Sync" href="/https/docs.stacksync.com/two-way-sync/quick-start" image="/images/home/two-way-sync-card.webp" />

  <CoverCard title="Workflow Automation" href="/https/docs.stacksync.com/agentic-workflows" image="/images/home/workflow-automation-card.webp" />

  <CoverCard title="Security and Other Resources" href="/https/docs.stacksync.com/security-and-other-resources" image="/images/home/security-resources-card.webp" />

  <CoverCard title="API Proxy" href="/https/docs.stacksync.com/api-proxy" image="/images/home/api-proxy-card.webp" />
</CoverCards>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-website-desktop-mockup.webp" alt="Two desktop monitors showing the Stacksync website: &#x22;Two-way sync at scale in real time&#x22; and &#x22;Connectors for every system&#x22;." width="1600" height="941" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### With Stacksync, you can:

* Maintain a single source of truth across your CRM and databases with minimal effort
* Simplify integrations between your CRM and backend
* Push insights from your data warehouse (e.g., Google BigQuery or Snowflake) to your CRM in real time
* Use Stacksync for real-time updates like:
  * Lead scoring in your CRM
  * Website visit counts over the last few hours or days directly in your CRM
  * Google Analytics insights on your Salesforce contacts
* Improve campaign management in your CRM as campaigns roll out
* Make your Sales and Marketing teams happy by delivering the CRM features they need in hours, not years. 🎉

Stacksync is a pioneer of the composable CDP movement. We make your backend and data warehouse the source of truth. You can work with data in any system without worrying about consistency issues. We’ve got you covered. 💪🏼

👉 If you’re ready to step up data adoption in your organization, as many of our customers already have (from startups to multinationals), [let's get started](/start-here/quick-start)!

# Acceptable Use Policy (AUP)

Source: https://docs.stacksync.com/legal/acceptable-use-policy-aup

## Stacksync Workspace & Cloud Identity Acceptable Use Policy <a href="#stacksync-workspace-and-cloud-identity-acceptable-use-policy" id="stacksync-workspace-and-cloud-identity-acceptable-use-policy" />

Last modified: October 31, 2025.

Use of the Services is subject to this Acceptable Use Policy ("AUP").

If not defined here, capitalized terms have the meaning stated in the applicable contract ("Agreement") between the customer, reseller, or other authorized user ("You") and Stacksync.

You agree not to, and not to allow third parties or Your End Users to, use the Services:

* to generate or facilitate unsolicited bulk commercial “spamming” operations;
* to violate, or encourage the violation of, the legal rights of others;
* to engage in, promote, or encourage illegal activity, including child sexual exploitation, child abuse, or terrorism or violence that can cause death, serious harm, or injury to individuals or groups of individuals;
* for any unlawful, invasive, infringing, defamatory, or fraudulent purpose including Non-consensual Explicit Imagery (NCEI), violating intellectual property rights of others, phishing, or creating a pyramid scheme;
* to distribute viruses, worms, Trojan horses, corrupted files, hoaxes or other items of a destructive or deceptive nature;
* to gain unauthorized access to, disrupt, or impair the use of the Services, or the equipment used to provide the Services, by customers, authorized resellers, or other authorized users;
* to alter, disable, interfere with or circumvent any aspect of the Services, Software, or the equipment used to provide the Services;
* to test or reverse-engineer the Services in order to find limitations or vulnerabilities, or to evade filtering capabilities;
* to grant multiple individuals access to an individual End User Account other than via the delegation and sharing features provided within the Services;
* to create End User Accounts assigned to business functions rather than to human beings for the purpose of sharing data within or outside of the domain;
* to use or resell End User Accounts, or parts thereof, as added into a commercial product offered to third parties (without the consent of Stacksync). It is also forbidden to do so in order to benefit from bulk discounts obtained from the common use of the same billing entity between different otherwise distinct business entities or companies;
* to process data of any kind without consent if such consent is required by applicable laws and regulations (You are solely responsible for ensuring compliance with all applicable laws and regulations in the relevant jurisdiction(s));
* to use the Services, or any interfaces provided with the Services, to access any other Stacksync product or service in a manner that violates the terms of service of such other Stacksync product or service.

Your failure to comply with the AUP may result in suspension or termination, or both, of the Services pursuant to the Agreement. You are solely responsible for any data you or your End Users transmit, process, or store through the Services. Stacksync will not be liable for, and You agree to indemnify and hold Stacksync harmless from, any claims, damages, or losses arising from the content, nature, or legality of such data or its transfer.

# Data Processing Addendum (DPA)

Source: https://docs.stacksync.com/legal/data-processing-addendum-dpa

Updated March 2, 2024.

This Data Processing Addendum ("DPA") is incorporated into and forms part of the terms and conditions of the Stacksync Terms and Conditions, Service Consumption Tables, or other agreement under which Stacksync Inc. ("Stacksync") provides services to Customer ("Agreement") executed between the party identified as the "Customer" and Stacksync. This DPA is supplemental to the Agreement and sets out the roles and obligations that apply when Stacksync processes Personal Data on behalf of Customer in connection with Customer's use of Stacksync’s services ("Services"). If there is any conflict between the Agreement and this DPA, the terms of this DPA will prevail to the extent of such conflict. Any capitalized terms not defined in this DPA will have the meanings given to them in the Agreement.

1\. Definitions. For the purpose of this DPA:

1.1 "controller", "processor", "data subject", "personal data" and "processing" (and "process") will have the meanings given in EU/UK Data Protection Law;

1.2 "Applicable Data Protection Law" means all worldwide data protection and privacy laws and regulations applicable to the Personal Data in question, including, where applicable, EU/UK Data Protection Law, US Data Protection Law, Serbian Data Protection Law, Canadian Data Protection Law, and the Swiss DPA;

1.3 “Breach” means an accidental or unlawful destruction, loss, alteration, or unauthorised disclosure or access that is in violation of Stacksync’s security obligations under this Agreement by Stacksync or its agents of which Stacksync becomes aware. Breach will not include an unsuccessful Breach, which is one that results in no unauthorized access to Personal Data or to any Stacksync equipment or facilities storing the Personal Data, and could include (without limitation) pings and other broadcast attacks of firewalls or edge servers, port scans, unsuccessful log-on attempts, denial of service attacks, packet sniffing (or other unauthorized access to traffic data that does not result in access beyond headers) or similar incidents;

1.4 "Canadian Data Protection Law" means: (i) the Personal Information Protection and Electronic Documents Act S.C. 2000, c. 5; (ii) applicable provincial law; (iii) any and all applicable data protection laws made under, pursuant to or that apply in conjunction with any of (i) or (ii); in each case as may be amended or superseded from time to time;

1.5 “Data Privacy Framework” means the EU-US Data Privacy Framework, the UK extension to the EU-US Data Privacy Framework, and the Swiss-US Data Privacy Framework self-certification program operated by the US Department of Commerce;

1.6 “Data Privacy Principles” means the Data Privacy Framework principles (as supplemented by the Supplemental Principles);

1.7 "EU/UK Data Protection Law" means: (i) Regulation 2016/679 of the European Parliament and of the Council on the protection of natural persons with regard to the Processing of Personal Data and on the free movement of such data (General Data Protection Regulation) (the "EU GDPR"); (ii) the EU GDPR as saved into United Kingdom law by virtue of section 3 of the United Kingdom's European Union (Withdrawal) Act 2018 (the "UK GDPR"); (iii) the EU e-Privacy Directive (Directive 2002/58/EC); and (iv) any and all applicable national data protection laws made under, pursuant to or that apply in conjunction with any of (i), (ii) or (iii); in each case as may be amended or superseded from time to time;

1.8 "US Data Protection Law" means: (i) the California Consumer Privacy Act of 2018, including as amended by the California Privacy Rights Act of 2020, codified at Cal. Civ. Code §1798.100 et seq., upon the CPRA’s enforcement date of July 1, 2023 (together with its implementing regulations) (“CPRA”); (ii) the Virginia Consumer Data Protection Act; (iii) the Colorado Privacy Act; (iv) the Connecticut Personal Data Privacy and Online Monitoring Act; (v) the Utah Consumer Privacy Act; (vi) the Iowa Consumer Data Protection Act; (vii) the Indiana Consumer Data Protection Act; (viii) the Tennessee Information Protection Act; (ix) the Montana Consumer Data Privacy Act; (x) the Texas Data Privacy and Security Act; (xi) the Oregon Consumer Privacy Act; (xii) the Delaware Personal Data Privacy Act; and (xiii) any and all applicable comprehensive state data protection laws and regulations that are or are not yet in effect as of the Effective Date; in each case as may be amended or superseded from time to time;

1.9 "Serbian Data Protection Law" means: Law on Personal Data Protection (Zakon o zaštiti podataka o ličnosti; Official Gazette of the Republic of Serbia, no 87/2018). In the case of a transfer of Personal Data to a Non-Adequate Country, by entering into this DPA, the Customer is entering into the Serbian Standard Contractual Clauses (“Serbian SCCs”) as adopted by the "Serbian Commissioner for Information of Public Importance and Personal Data Protection", published at [https://www.poverenik.rs/images/stories/dokumentacija-nova/podzakonski-akti/Klauzulelat.docx](https://www.poverenik.rs/images/stories/dokumentacija-nova/podzakonski-akti/Klauzulelat.docx) to provide an adequate level of protection. References to the Standard Contractual Clauses in this DPA will include the Serbian SCCs. Information required to complete Appendices 1 to 8 of the Serbian SCCs for the purpose of governing the transfer of Personal Data to a Non-Adequate Country can be found in this DPA and accompanying appendices;

1.10 “Supplemental Principles” will have the meaning given in the Data Privacy Framework;

1.11 "Standard Contractual Clauses" means: (i) where the EU GDPR or Swiss DPA applies, the contractual clauses annexed to the European Commission's Implementing Decision 2021/914 of 4 June 2021 on standard contractual clauses for the transfer of Personal Data to third countries pursuant to Regulation (EU) 2016/679 of the European Parliament and of the Council ("EU SCCs"); and (ii) where the UK GDPR applies, standard data protection clauses adopted pursuant to or permitted under Article 46 of the UK GDPR ("UK SCCs"); and (iii) where Serbian Data Protection Law applies, the Serbian SCCs; and

1.12 "Swiss DPA" means the revised Swiss Federal Act on Data Protection enacted on September 25, 2020, and effective on September 1, 2023, as may be amended or superseded from time to time.

2\. Relationship of the parties: Customer instructs Stacksync to process the personal data described in Annex I (the "Personal Data") on its behalf. In respect of such processing, Customer will be the controller (or, where Customer is instructing Stacksync on behalf of a third party controller, a processor on behalf of that controller) and Stacksync will be a processor (or, where Customer is a processor on behalf of a third party controller, Stacksync will be a subprocessor to Customer). Each party will comply with the obligations that apply to it under Applicable Data Protection Law.

3\. Purpose limitation: Stacksync will process Personal Data for the purposes described in Annex I and strictly in accordance with the documented instructions of Customer (which instructions, where Customer is a processor, will reflect the instructions of its controller) (the "Permitted Purpose"), except where otherwise required by law(s) that are not incompatible with Applicable Data Protection Law. In no event will Stacksync process Personal Data for its own purposes or those of any third party. Stacksync will immediately inform Customer (who, where Customer is a processor, will inform its controller) if it becomes aware that such processing instructions infringe Applicable Data Protection Law.

4\. Cross-border transfer mechanisms:

4.1 Order of precedence: To the extent Customer’s use of the Services requires an onward transfer mechanism to lawfully transfer personal data from a jurisdiction to Stacksync located outside of that jurisdiction (“Transfer Mechanism”), the terms set forth in this Section 4 will apply. In the event the Services are covered by more than one Transfer Mechanism, the transfer of Personal Data will be subject to a single Transfer Mechanism, as applicable, and in accordance with the following order of precedence: (i) the Data Privacy Framework as set forth in Section 4.2 (Data Privacy Framework) of this DPA; (ii) Standard Contractual Clauses as set forth in Section 4.3 (Standard Contractual Clauses) of this DPA; and, if neither (i) nor (ii) is applicable, then (iii) other applicable data Transfer Mechanisms permitted under Applicable Data Protection Law.

4.2 Data Privacy Framework: To the extent Stacksync processes any Personal Data via the services subject to EU/UK Data Protection Law and/or Swiss DPA, Stacksync represents that it is self-certified under the Data Privacy Framework and complies with the Data Privacy Principles when processing any such Personal Data. To the extent that Customer is either located in the United States of America and is self-certified under the Data Privacy Framework or subject to EU/UK Data Protection Law and/or Swiss DPA, Stacksync further agrees to (i) provide at least the same level of protection to any Personal Data as required by the Data Privacy Principles; (ii) notify Customer in writing, without undue delay, if its self-certification to the Data Privacy Framework is withdrawn, terminated, revoked, or otherwise invalidated; and (iii) upon written notice, work with Customer to take reasonable and appropriate steps to stop and remediate any unauthorized processing of Personal Data.

4.3 Standard Contractual Clauses: For cross-border data transfers that are subject to Standard Contractual Clauses, the Standard Contractual Clauses will be deemed entered into, and incorporated into this DPA by this reference, and completed as follows:

4a. in relation to Personal Data that is protected by the EU GDPR, the EU SCCs will apply completed as follows:

(i) Module Two will apply to the extent that Customer is a controller of Personal Data, and Module Three will apply to the extent that Customer is a processor of Personal Data on behalf of a third party controller;

(ii) in Clause 7, the optional docking clause will not apply;

(iii) in Clause 9, Option 2 will apply, and the time period for prior notice of subprocessor changes will be as set out in Clause 8 of this DPA;

(iv) in Clause 11, the optional language will not apply;

(v) in Clause 17, Option 1 will apply, and the EU SCCs will be governed by Republic of Ireland law;

(vi) in Clause 18(b), disputes will be resolved before the courts of the Republic of Ireland;

(vii) Annex I of the EU SCCs will be deemed completed with the information set out in Annex I to this DPA;

(viii) Annex II of the EU SCCs will be deemed completed with the information set out in Annex II to this DPA; and

(ix) Annex III of the EU SCCs will be deemed completed with the information set out in Annex III to this DPA.

4b. in relation to Personal Data that is protected by the UK GDPR, the UK SCCs will apply completed as follows:

(i) for so long as Customer and Stacksync are lawfully permitted to rely on the EU SCCs for transfers of Personal Data from the United Kingdom subject to completion of a “UK Addendum to the EU Standard Contractual Clauses” (“UK Addendum”) issued by the Information Commissioner’s Office under s.119A(1) of the Data Protection Act 2018, then:

A. The EU SCCs, completed as set out above in Section 4.3(a) of this DPA will also apply to transfers of such Personal Data, subject to sub-clauses (B) and (C) below;

B. The UK Addendum will be deemed executed between the transferring Customer and Stacksync, and the EU SCCs will be deemed amended as specified by the UK Addendum in respect of the transfer of such Personal Data; and

C. The optional illustrative indemnification clause will not apply.

(ii) if Customer and Stacksync are no longer permitted to rely on the EU SCCs and the UK Addendum, then the Customer and Stacksync will cooperate in good faith to implement appropriate safeguards for transfers of such Personal Data as required or permitted by the UK GDPR without undue delay;

4c. in relation to Personal Data that is protected by the Swiss DPA, the EU SCCs will apply as set out in 4.3(a), amended as follows:

(i) references to ‘Regulation (EU) 2016/679’ in the EU SCCs will be deemed to refer to the Swiss DPA;

(ii) references to specific articles of ‘Regulation (EU) 2016/679’ will be deemed replaced with the equivalent article or section of the Swiss DPA;

(iii) references to ‘EU’, ‘Union’ and ‘Member State’ will be deemed replaced with ‘Switzerland’;

(iv) references to the ‘competent supervisory authority’ and ‘competent courts’ are replaced with the ‘Swiss Federal Data Protection Information Commissioner’ and ‘applicable courts of Switzerland’ (as applicable);

(v) in Clause 17, the EU SCCs will be governed by the laws of Switzerland; and

(vi) in Clause 18(b), disputes will be resolved before the competent courts of Switzerland.

4d. in the event that any provision of the Agreement (including this DPA) contradicts, directly or indirectly, the Standard Contractual Clauses, the Standard Contractual Clauses will prevail.

5\. Onward transfers: Stacksync will not participate in (nor permit any subprocessor to participate in) any other cross-border transfers of Personal Data (whether as an exporter or an importer of Personal Data) unless it has taken such measures as are necessary to ensure the transfer is in compliance with Applicable Data Protection Law. Without prejudice to the foregoing, Customer consents to cross-border transfers of Personal Data where Stacksync has implemented a transfer solution compliant with Applicable Data Protection Law.

6\. Confidentiality of processing: Stacksync will take appropriate measures to ensure the confidentiality of Personal Data as outlined in the Agreement.

7\. Security: Stacksync will implement appropriate technical and organisational measures to protect the Personal Data from a Breach. Such measures will have regard to the state of the art, the costs of implementation and the nature, scope, context and purposes of processing as well as the risk of varying likelihood and severity for the rights and freedoms of natural persons. Such measures will include, as appropriate:

(a) the pseudonymisation and encryption of Personal Data;

(b) the ability to ensure the ongoing confidentiality, integrity, availability and resilience of processing systems and services;

(c) the ability to restore the availability and access to Personal Data in a timely manner in the event of a physical or technical incident;

(d) a process for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures for ensuring the security of the processing;

(e) at a minimum, such measures will include the measures identified in Annex II.

8\. Subprocessing: Stacksync will not subcontract any processing of the Personal Data to a third party subprocessor without the prior written consent of Customer, which consent, where Customer is a processor, will reflect the instructions of its controller. Notwithstanding this, Customer consents to Stacksync engaging third party subprocessors to process the Personal Data provided that: (i) Stacksync provides at least 5 days' prior written notice of the addition or removal of any subprocessor (including details of the processing it performs or will perform), which will also include posting detail of such addition or removal at the following URL:&#x20;

[https://docs.stacksync.com/security-and-other-resources/security/subprocessors](/security-and-other-resources/security/subprocessors); and (ii) Stacksync imposes data protection terms on any subprocessor it appoints that protect the Personal Data, in substance, to the same standard provided for by this DPA. A list of approved subprocessors as of the date of this DPA is attached at Annex III, and Stacksync will maintain and provide updated copies of this list to Customer when it adds or removes subprocessors in accordance with this Section. If Customer refuses to consent to Stacksync's appointment of a third party subprocessor on reasonable grounds relating to the protection of the Personal Data, then either Stacksync will not appoint the subprocessor or Customer may elect to suspend or terminate the Agreement.

9\. Cooperation and data subjects' rights: Stacksync will provide all reasonable and timely assistance to Customer (at Customer's expense) to enable Customer (or, where Customer is a processor, its controller) to respond to: (i) any request from a data subject to exercise any of its rights under Applicable Data Protection Law (including its rights of access, correction, objection, erasure and data portability, as applicable); and (ii) any other correspondence, enquiry or complaint received from a data subject, regulator or other third party in connection with the processing of Personal Data. In the event that any such request, correspondence, enquiry or complaint is made directly to Stacksync, Stacksync will (unless prohibited by applicable law) promptly inform Customer (who, where Customer is a processor, will in turn inform its controller) providing full details of the same.

10\. Data Protection Impact Assessment: Stacksync will provide Customer with all such reasonable and timely assistance (at Customer’s expense) as Customer may require in order to enable it (or, where Customer is a processor, to enable its controller) to conduct a data protection impact assessment in accordance with Applicable Data Protection Law including, if necessary, assistance to Customer (or, where Customer is a processor, its controller) to consult with its relevant data protection authority.

11\. Breach notification: Upon becoming aware of a Breach, Stacksync will inform Customer (who, where Customer is a processor, will in turn inform its controller) without undue delay and will provide all such timely information and cooperation as Customer may require in order for Customer (or, where Customer is a processor, its controller) to fulfil its data breach reporting obligations under (and in accordance with the timescales required by) Applicable Data Protection Law. Stacksync will further take all such measures and actions as are necessary to remedy or mitigate the effects of the Breach and will keep Customer informed of all material developments in connection with the Breach.

12\. Deletion or return of Data: After a written request by Customer or the termination or expiration of the Agreement, Stacksync will destroy or return to Customer all Personal Data in its possession or control. This requirement will not apply to the extent that Stacksync: (i) is required by any applicable law to retain some or all Personal Data; and/or (ii) retains Personal Data in its backup systems until the backups have been overwritten or expunged in accordance with Stacksync’s backup policy; provided that, in the event of either (i) or (ii), Stacksync will isolate and protect Personal Data from any further processing except to the extent required until deletion is possible. Until Personal Data is deleted or returned, Stacksync will continue to ensure compliance with its security and privacy obligations in the Agreement and this DPA.

13\. Audit: Customer (and, where Customer is a processor, its controller) acknowledges that Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer (and, where Customer is a processor, its controller), which report(s) will be subject to the confidentiality provisions of the Agreement. Stacksync will also respond to any written audit questions submitted to it by Customer and meet by teleconference or in person (at Customer’s expense) to address follow up questions (and, where Customer is a processor, its controller), provided that Customer (and, where Customer is a processor, its controller) will not exercise this right more than once per year, except if and when required by instruction of a competent data protection authority.

14\. Processing in accordance with US Data Protection law:

14.1 Processing Of Personal Data: Customer appoints Stacksync as a processor (or, where Customer is a processor, Customer appoints Stacksync as a sub-processor) to process Personal Data only for the Business Purposes (as defined by CPRA) listed in Customer’s instructions under Annex I. Processing by Stacksync is outlined in Annex I that sets out the processing instructions to which Stacksync is bound, including the nature and purpose of the processing, the type of Personal Data subject to the processing, and the duration of the processing. Stacksync will adhere to Customer instructions as outlined in Section 3 and Annex I, and Stacksync will assist Customer in meeting its obligations under US Data Protection Law. Stacksync will comply with all applicable sections of US Data Protection Law, including providing the same level of protection for Personal Data as US Data Protection Law requires Customer to provide. Taking into account the nature of processing and the information available to Stacksync, Stacksync will assist Customer by:

(a) taking appropriate technical and organizational measures, insofar as this is possible, for the fulfillment of the controller's obligation to respond to data subject rights requests as outlined in Section 9;

(b) helping Customer meet its obligations in relation to the security of processing Personal Data and in relation to the notification of a breach of the security of the system as outlined in Section 7, Section 11, and Annex II;

(c) providing information to Customer necessary to enable Customer to conduct and document any data protection assessments as outlined in Section 10. Customer and Stacksync are each responsible for only the measures allocated to them;

(d) ensuring that each person processing Personal Data is subject to a duty of confidentiality with respect to Personal Data as outlined in Annex II; and

(e) after providing Customer an opportunity to object, engaging any subprocessor pursuant to a written contract in accordance with Section 8 that requires the subprocessor to meet the obligations of Stacksync with respect to Personal Data.

14.2 Security measures: Taking into account the context of processing, Customer and Stacksync will implement appropriate technical and organizational measures to ensure a level of security appropriate to the risk and establish a clear allocation of the responsibilities between them to implement the measures as outlined in Annex II.

14.3 Deletion or return of Personal Data: Stacksync will delete or return all Personal Data to Customer at the end of the provision of services as outlined in Section 12.

14.4 Audit rights: Stacksync grants Customer the right to take reasonable and appropriate steps to help ensure that Stacksync uses Personal Data consistent with US Data Protection Law and to stop and remediate unauthorized use of Personal Data. Stacksync will, upon the reasonable request of Customer, make available to Customer all information in its possession necessary to demonstrate Stacksync's compliance as outlined in Section 13. Stacksync will allow an audit of Stacksync's policies and technical and organizational measures in support of the obligations under US Data Protection Law and will provide a report of the audit to Customer upon request as outlined in Section 13.

14.5 Restrictions On Processing Personal Data: Stacksync is prohibited from: (i) processing Personal Data for any purposes but for the Business Purposes unless otherwise expressly permitted by US Data Protection Law; (ii) processing Personal Data for any additional commercial purpose (other than the Business Purposes) including in the servicing of a different business unless otherwise expressly permitted by US Data Protection Law; (iii) processing Personal Data outside the direct business relationship between Customer and Stacksync unless otherwise expressly permitted by US Data Protection Law; (iv) Selling or Sharing (as both are defined by CPRA) Personal Data; (v) combining Personal Data with Personal Data that it receives from, or on behalf of, another person or persons, or collects from its own interaction with a data subject unless otherwise expressly permitted by US Data Protection Law; or (vi) processing the Personal Data for any other purpose except as permitted by this DPA.

14.6 Inability To Comply With US Data Protection Law: Stacksync shall notify Customer after Stacksync determines that it no longer can meet its obligations under this DPA or US Data Protection Law. In the event of Stacksync’s inability to meet its obligations, Customer may, in its discretion; (i) take reasonable and appropriate steps to stop and remediate any unauthorized use of Personal Data; or (ii) terminate the Agreement.

14.7 Certification: Stacksync certifies that it understands and will comply with the restrictions set forth in this Section 14.

15\. System Data: Notwithstanding anything to the contrary in this Agreement, Stacksync may collect System Data and use such data internally to develop, improve, support, and operate its products and services. Stacksync’s use of System Data will comply with applicable data protection law. Stacksync may not share any System Data that includes Personal Data with a third party except to the extent the System Data is aggregated and anonymized such that Customer and Customer’s users cannot be identified.

16\. Local implementation agreement: If and when necessary to accommodate laws, regulations, and/or local business requirements in a particular country outside the United States, European Union, the European Economic Area and their member states, Switzerland and the United Kingdom, the parties may enter into a Local Implementation Addendum covering additional requirements under such laws that are not already addressed in the Agreement or this DPA.

17\. Personnel background checks: Prior to engaging any employee or contractor who may receive access to Personal Data, Stacksync will conduct a criminal history background check (modified as appropriate to comply with applicable law in countries outside the United States) covering the three-year period prior to the employment commencement date of such employee.

18\. Construction; Interpretation: This DPA is not a standalone agreement and is only effective if an Agreement is in effect between Stacksync and Customer. This DPA is part of the Agreement and is governed by its terms and conditions, including limitations of liability set forth therein. This DPA and the Agreement are the complete and exclusive statement of the mutual understanding of the parties and supersede and cancel all previous written and oral agreements and communications relating to the subject matter hereof. Headings contained in this DPA are for convenience of reference only and do not form part of this DPA.

19\. Severability: If any provision of this DPA is adjudicated invalid or unenforceable, this DPA will be amended to the minimum extent necessary to achieve, to the maximum extent possible, the same legal and commercial effect originally intended by the parties. To the extent permitted by applicable law, the parties waive any provision of law that would render any clause of this DPA prohibited or unenforceable in any respect.

20\. Amendment; Enforcement of rights: No modification of or amendment to this DPA, nor any waiver of any rights under this DPA, will be effective unless in writing signed by the parties to this DPA. The failure by either party to enforce any rights under this DPA will not be construed as a waiver of any rights of such party. This DPA may not be construed to create any right or cause of action on behalf of a third party, except to the minimum extent required available to data subjects under Applicable Data Protection Law.

21\. Assignment: This DPA may be assigned only in connection with a valid assignment pursuant to the Agreement. If the Agreement is assigned by a party in accordance with its terms, this DPA will be automatically assigned by the same party to the same assignee.

22\. Governing Law: This DPA will be governed by and construed in accordance with the laws of the jurisdiction governing the Agreement unless otherwise required by EU/UK Data Protection Law or Applicable Data Protection Law, in which case this DPA will be governed by the laws outlined in the relevant section of this DPA.

23\. Counterparts: This DPA may be executed and delivered by facsimile or electronic signature and in two or more counterparts, each of which will be deemed an original, but all of which together will constitute one and the same instrument.

24\. Supplementary terms to Standard Contractual Clauses

24.1 Documentation and compliance: For the purposes of Clause 8.9 the review and audit provisions in this DPA will apply.

24.2 Notification and transparency:

For purposes of Clause 8.3 – Modules 2 and 3 and Clause 15.1(a), the parties agree and acknowledge that it may not be possible for Stacksync to make the appropriate communications to data subjects and accordingly, Customer will (following notification by Stacksync) have the option to be the party who makes any communication to the data subject, and Stacksync will provide the level of assistance set out in this DPA.

24.3 Liability: For the purposes of Clause 12(a), the liability of the parties will be limited in accordance with the limitation of liability provisions in the Agreement. 

24.4 Signatories: Notwithstanding the fact that the Standard Contractual Clauses are incorporated herein by reference without being signed directly, Stacksync and Customer each agrees that their execution of the Agreement is deemed to constitute its execution of the Standard Contractual Clauses, and that it is duly authorized to do so on behalf of, and to contractually bind, the data exporter or data importer (as applicable) accordingly.

## Annex I

## Data Processing Description

This Annex I forms part of the DPA and describes the processing that the processor will perform on behalf of the controller.

A. LIST OF PARTIES

Controller(s) / Data exporter(s): \[Identity and contact details of the controller(s) /data exporter(s) and, where applicable, of its/their data protection officer and/or representative in the European Union]

| 1. | Name:                                                            | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| -- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|    | Address:                                                         | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|    | Contact person’s name, position and contact details:             | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|    | Activities relevant to the data transferred under these Clauses: | Stacksync will process Customer personal data in order to facilitate the data transfer and synchronization of data between Customer’s data sources such as databases, data warehouses and business apps in a unidirectional or bidirectional data flow. The frequency and retention periods for which personal data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security) |
|    | Role (controller/processor):                                     | Controller/processor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

Processor(s) / Data importer(s): \[Identity and contact details of the processor(s) /data importer(s), including any contact person with responsibility for data protection]

| 1. | Name:                                                                     | Stacksync Inc.                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|    | Address:                                                                  | 2611, 1007 N Orange St. 4th Floor , Wilmington, DE, New Castle, US, 19801                                                                                                                                                                                                                                                                                                                                                                                      |
|    | 2611, 1007 N Orange St. 4th Floor , Wilmington, DE, New Castle, US, 19801 | Data Protection Officer (DPO): Ruben Burdin; [privacy@stacksync.com](mailto:privacy@stacksync.com); [DPO@stacksync.com](mailto:DPO@stacksync.com)                                                                                                                                                                                                                                                                                                              |
|    | Activities relevant to the data transferred under these Clauses:          | Stacksync will process Customer personal data in order to facilitate the data transfer and synchronization of data between Customer’s data sources such as databases, data warehouses and business apps in a unidirectional or bidirectional data flow. The frequency and retention periods for which personal data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/](/) |
|    | Role (controller/processor):                                              | Processor/Sub-processor                                                                                                                                                                                                                                                                                                                                                                                                                                        |

В. DESCRIPTION OF TRANSFER

| Categories of data subjects whose Personal Data is transferred:                                                                                                                                                                                                                                                                                                                                                            | <p>Customer’s employees and consultants who use Stacksync’s Service.</p><p>Individuals whose Personal Data is stored in Customer’s data sources and processed by Stacksync.</p>                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Categories of Personal Data transferred:                                                                                                                                                                                                                                                                                                                                                                                   | <p>Stacksync may have access to Personal Data of Customer’s employees and consultants who use Stacksync’s Service.</p><p>Stacksync may have access to Personal Data of individuals whose Personal Data is stored in Customer’s data sources.</p><p>The types of Personal Data processed are determined by Customer and may include without limitation: Name, Email address, Physical address, IP-address and other online identifiers, Date of birth, Telephone/mobile number, Location Data.</p> |
| Sensitive data transferred (if applicable) and applied restrictions or safeguards that fully take into consideration the nature of the data and the risks involved, such as for instance strict purpose limitation, access restrictions (including access only for staff having followed specialised training), keeping a record of access to the data, restrictions for onward transfers or additional security measures: | As above                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| The frequency of the transfer (e.g. whether the data is transferred on a one-off or continuous basis):                                                                                                                                                                                                                                                                                                                     | <p>Duration of<br />account/agreement<br />life-cycle</p>                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Nature of the processing:                                                                                                                                                                                                                                                                                                                                                                                                  | The data processing activities carried out by Stacksync under the Agreement                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Purpose(s) of the data transfer and further processing:                                                                                                                                                                                                                                                                                                                                                                    | Stacksync will process Customer Personal Data in order to facilitate migration of data from Customer’s data sources into Customer’s data warehouse.                                                                                                                                                                                                                                                                                                                                               |
| The period for which the Personal Data will be retained, or, if that is not possible, the criteria used to determine that period:                                                                                                                                                                                                                                                                                          | The frequency and retention periods for which Personal Data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/](/)                                                                                                                                                                                                                                                                                            |
| For transfers to (sub-) processors, also specify subject matter, nature and duration of the processing:                                                                                                                                                                                                                                                                                                                    | As outlined at [https://docs.stacksync.com/security-and-other-resources/security/subprocessors](/security-and-other-resources/security/subprocessors)                                                                                                                                                                                                                                                                                                                                             |

C. COMPETENT SUPERVISORY AUTHORITY

| Identify the competent supervisory authority/ies in accordance (e.g. in accordance with Clause 13 SCCs) | Irish Supervisory Authority (DPC) |
| ------------------------------------------------------------------------------------------------------- | --------------------------------- |

## Annex II

## Technical and Organisational Security Measures

Description of the technical and organisational measures implemented by the processor(s) / data importer(s) (including any relevant certifications) to ensure an appropriate level of security, taking into account the nature, scope, context and purpose of the processing, and the risks for the rights and freedoms of natural persons.

| Measure                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Measures of pseudonymisation and encryption of Personal Data                                                                                                           | <p>Technical and Organizational Security Measures</p><p>Description of the technical and organisational security measures implemented by Stacksync in accordance with Applicable Data Protection Law:</p><p>Stacksync security measures can be found on Stacksync's website at <a href="/https/docs.stacksync.com/security-and-other-resources/security/overview-security">[https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security)</a></p><p>Security measures include:</p><p>Transport layer security</p><ul><li>All data is transmitted to or from Stacksync over an encrypted protocol using industry-standard cryptographic protocols (TLS 1.2+)</li><li>Stacksync redirects unencrypted requests (HTTP) to an encrypted protocol (HTTPS)</li></ul><p>Physical & Environmental Security</p><p>The Stacksync services are hosted in Microsoft Azure, Google Cloud Platform (GCP), and Amazon Web Services (AWS), OVH and Scaleway. Hosting providers maintain physical & environmental security protections including:</p><ul><li>Physical access is restricted to approved employees based on the principle of least privilege</li><li>Multi-factor authentication when approved personnel access facilities</li><li>Closed Circuit Television Camera (CCTV) video recording of access points</li><li>Fire detection and suppression systems</li><li>Redundant infrastructure for power, networking, and cooling</li></ul><p>Logical Access controls</p><p>Logical access to the Stacksync services is restricted to employees based on the principle of least privilege. All access is formally approved and requires multi-factor authentication.</p><p>Access is removed in the event of employee termination or if the employee changes roles and no longer requires access, as well as being reviewed on a quarterly basis.</p> |
| Measures for ensuring ongoing confidentiality, integrity, availability and resilience of processing systems and services                                               | See previous section that outlines our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring the ability to restore the availability and access to Personal Data in a timely manner in the event of a physical or technical incident          | See previous section that outlines our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Processes for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures in order to ensure the security of the processing | Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Measures for user identification and authorisation                                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Measures for the protection of data during transmission                                                                                                                | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Measures for the protection of data during storage                                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Measures for ensuring physical security of locations at which Personal Data are processed                                                                              | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Measures for ensuring events logging                                                                                                                                   | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Measures for ensuring system configuration, including default configuration                                                                                            | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Measures for internal IT and IT security governance and management                                                                                                     | Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Measures for certification/assurance of processes and products                                                                                                         | Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Measures for ensuring data minimisation                                                                                                                                | <p>Processing of Customer Data</p><p>Data pipes for each customer are managed separately within the host environment. Stacksync does not store Customer Data, other than while in transit, except as described in <a href="/https/docs.stacksync.com/security-and-other-resources/security/overview-security">[https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security)</a>.</p><p>Stacksync does not control the host physical infrastructure. Stacksync relies on the fault-tolerant nature of Microsoft Azure, GCP and AWS across multiple availability zones, and can redeploy the platform to another region in case of catastrophic failure.</p><p>Except as described at <a href="/https/docs.stacksync.com/security-and-other-resources/security/overview-security">[https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security)</a>, Stacksync will process Customer Data within the region specified by Customer during configuration of the data pipe. Current geographic regions supported by Stacksync are found here: <a href="/https/docs.stacksync.com/security-and-other-resources/security/overview-security">[https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security)</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Measures for ensuring data quality                                                                                                                                     | Based on the nature of the Stacksync services, Stacksync is a data pipeline, so the accuracy of the Personal Data depends on whether or not Customer has provided accurate information                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Measures for ensuring limited data retention                                                                                                                           | Except as described at [https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security) Stacksync does not store Customer Data, other than while in transit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Measures for ensuring accountability                                                                                                                                   | Stacksync has a Data Protection Officer and a Chief Information Security Officer (the CTO, if CISO is not appointed).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Measures for allowing data portability and ensuring erasure                                                                                                            | Except as described at [https://docs.stacksync.com/security-and-other-resources/security/overview-security](/security-and-other-resources/security/overview-security) Stacksync does not store Customer Data, other than while in transit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

For transfers to (sub-) processors, also describe the specific technical and organisational measures to be taken by the (sub-) processor to be able to provide assistance to the controller (and, for transfers from a processor to a sub-processor, to the data exporter).

| Measure              | Description                                                                                                                                                   |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Contractual language | Stacksync ensures that its subprocessors are subject to equivalent terms                                                                                      |
| Due Diligence        | Stacksync conducts due diligence on third parties, including necessary privacy and security reviews, such as privacy threshold and privacy impact assessments |

## Annex III

## List of Subprocessors

Stacksync’s current list of subprocessors may be found at [https://docs.stacksync.com/security-and-other-resources/security/subprocessors](/security-and-other-resources/security/subprocessors)

# Global Employee and Applicant Privacy Notice

> Privacy notice for our recruiting activities and HR efforts.

Source: https://docs.stacksync.com/legal/global-employee-and-applicant-privacy-notice

Last updated: February 25, 2023.

## Permission to process personal data by Stacksync <a href="#permission-to-process-personal-data-by-stacksync" id="permission-to-process-personal-data-by-stacksync" />

By submitting an application for an open position with Stacksync, whether via our career page or via external platforms such as Indeed, LinkedIn, or Xing, you express your interest in taking up work with us. In this context, you transmit personal data, which we will use and store exclusively for your job search and application process.

This data privacy statement refers exclusively to data collected as part of the online application process. It explains how we handle your personal data.

## The controller <a href="#the-controller" id="the-controller" />

The controller under data protection law is:

Stacksync SA

1 rte d’Eguechaudens

1030 Bussigny, Vaud, Switzerland

Commercial register entry number: HRB 211731

Registration Court: Lausanne Local Court

Data Protection Officer contact: [dpo@stacksync.com](mailto:dpo@stacksync.com)

## Personal data collected as part of the application process <a href="#personal-data-collected-as-part-of-the-application-process" id="personal-data-collected-as-part-of-the-application-process" />

Personal data means any information concerning the personal or material circumstances of an identified or identifiable individual. This includes information such as, for example, your name, address, telephone number, and date of birth. It also includes data relating to your career history by reference to which a specific individual can be identified with reasonable effort. However, information which cannot be (in)directly associated with your real-life identity is not personal data.

In particular, the following data is collected during this process:

* Name (first and last names)
* Email address
* Phone number
* LinkedIn profile (optional)
* Channel through which you found us
* Any information typically detected by senses (e.g., audio conversations)

Furthermore, you can choose to send us expressive documents such as a cover letter, your CV and reference letters. These may contain additional personal data such as date of birth, address, etc.

## How does the Company collect data? <a href="#how-does-the-company-collect-data" id="how-does-the-company-collect-data" />

1. The Company mainly collects and records your personal data from you. You will provide this information directly to your managers or local Human Resources contact, or enter it into our systems, through your participation in HR processes, emails and instant messages you send, or through verbal information which is recorded electronically or manually. In addition, further information about you will come from your managers, Human Resources, or occasionally your colleagues.
2. We also obtain some information from third parties: for example, references from a previous employer, medical reports from external professionals, information from tax authorities, benefit providers or where we employ a third party to carry out a background check (where permitted by applicable law) or occasionally from customers.
3. In some circumstances, data is collected indirectly from monitoring devices or by other means (for example, building and location access control and monitoring systems, CCTV, telephone logs and recordings, instant message logs and email and Internet access logs), if and to the extent permitted by applicable laws. In these circumstances, the data may be collected by the Company or a third party provider of the relevant service. This type of data is generally not accessed on a routine basis but access is possible.
4. Some data may be obtained from publicly accessible sources.
5. In the event that particular information is required by contract or statute, this will be indicated at the time of collection. We will also let you know if there are consequences to not providing the requested information. Failure to provide some information will mean that we cannot carry out certain HR processes. For example, if you do not provide us with your bank details, we will not be able to pay you. In some cases, it may mean that we are unable to continue with your employment or engagement as the Company will not have the personal data we believe to be necessary for the effective and efficient administration and management of our relationship with you.

## Use of your personal data <a href="#use-of-your-personal-data" id="use-of-your-personal-data" />

During the application process, your personal data will be stored, evaluated, processed or forwarded internally within Stacksync. Only authorized HR staff and/or staff involved in the application process have access to your data. The personal data is stored, as a rule, exclusively for the purpose of filling the vacancy for which you have applied.

The data may be used and processed for statistical purposes (e.g. reporting). Any conclusions drawn will not be related to individual persons.

If you are employed at Stacksync, your personal data are collected and processed for various business purposes, in accordance with applicable laws and any applicable collective bargaining agreements. We have set out in this Notice the purposes we may use your personal data for. Data may occasionally be used for purposes not obvious to you where the circumstances warrant such use (e.g., in investigations or disciplinary proceedings). We may, where we think it is necessary, provide you with additional information in relevant HR policies to ensure that you understand how your personal data may be used.

## Rights of data subjects <a href="#rights-of-data-subjects" id="rights-of-data-subjects" />

If Stacksync as the controller processes personal data, you as the data subject have certain rights under Chapter III of the EU General Data Protection Regulation (GDPR), depending on the legal basis and the purpose of the processing, in particular the right of access (article 15 of the GDPR) and the rights to rectification (article 16 of the GDPR), erasure (article 17 of the GDPR), restriction of processing (article 18 of the GDPR), and data portability (article 20 of the GDPR), as well as the right to object (article 21 of the GDPR). If the personal data is processed with your consent, you have the right to withdraw this consent under article 7 III of the GDPR. To assert your rights as a data subject in relation to the data processed for the purpose of operating this recruitment website, please refer to Stacksync’s Data Protection Officer (see above).

## Personal data storage <a href="#personal-data-storage" id="personal-data-storage" />

Your data will be stored for a period of 12 months after the application process has been concluded. This is usually done to fulfill legal requirements and/or to defend ourselves against any claims arising from legal provisions. After this period, we are obligated to delete or anonymize your data. In case of anonymization, the data will only be available to us in the form of so-called metadata, without any direct personal reference, for statistical analysis (for example, share of male and/or female applicants, number of applications per specified period of time, etc.).

Furthermore, we reserve the right to store your data for 36 months after the application process has been concluded for the purpose of adding it to our Talent Pool in order to identify any other vacancies that may be of interest to you. This includes, for example, applications for apprenticeships or internships. By accepting the data privacy statement, you consent to any further storage of your data as well as its inclusion in our Talent Pool.

Should you be offered and accept a position with us during the application process, we will store the personal data collected as part of the application process for at least the duration of your employment.

You will not be notified directly when your data has been deleted.

## Concluding provisions <a href="#concluding-provisions" id="concluding-provisions" />

Stacksync reserves the right to adjust this data privacy statement at any point in time to ensure that it is in line with the current legal requirements at all times, or in order to accommodate changes in the services offered, for example when new services are introduced. In this case, the new data privacy statement applies to any later visit of this recruitment website or any later job application.

If you have any questions, feel free to contact us at [privacy@stacksync.com](mailto:privacy@stacksync.com).

# Privacy Notice

Source: https://docs.stacksync.com/legal/privacy-notice

Last updated: January 10, 2023.

Stacksync Inc. ("Stacksync") respects your right to privacy. This Privacy Notice explains who we are, how we collect, store, share, and use personal data about you, and how you can exercise your privacy rights. This Privacy Notice applies to personal data that we collect, including through our website at [www.stacksync.com](https://www.stacksync.com/), within our product(s), and on other websites that Stacksync operates and that link to this policy (collectively, "Websites").

If you have any questions or concerns about our use of your personal data, please contact us using the contact details provided at the bottom of this Privacy Notice. This Privacy Notice is inspired by the documentation of industry peers and best practices (such as Fivetran Inc.).

## What personal data does Stacksync collect and why?

Broad Categories of personal data collected:

| Broad Categories Collected                | Examples                                                                                                                                                      |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Identifiers                               | Name, contact information, and other personal data that can directly or indirectly identify a consumer                                                        |
| Select Information in Customer Records    | Name, contact information, company information.                                                                                                               |
| Commercial Purchasing Information         | Records of products and services purchased                                                                                                                    |
| Internet or Network Activity              | <p>Browsing history,</p><p>search history,</p><p>information regarding a consumer’s interaction with an Internet Web site, application, or advertisement.</p> |
| Information Typically Detected by Senses  | Audio information (call recordings)                                                                                                                           |
| Employment Information                    | Role, title, and other relevant employer information                                                                                                          |
| Inferences Drawn from other Personal Data | Buying intent, and other relevant information to market or provide the services                                                                               |

The personal data that we may collect about you broadly falls into the following categories of sources:

* Information that you provide voluntarily. Certain parts of our Website may ask you to provide personal data voluntarily: for example, we may ask you to provide your contact details in order to register an account with us, for technical support, to subscribe to marketing communications from us, to register for an event, to access content, and/or to submit inquiries to us. The personal data that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal data. If you decide not to provide some information voluntarily, you may still use our Websites, though your access to some functionality and areas of our Websites may be restricted.
* Information that we collect automatically. When you visit our Website, we may collect certain information automatically from your device. In some countries, including countries in the European Economic Area, this information may be considered personal data under applicable data protection laws. Specifically, the information we collect automatically may include information like your IP address, device type, unique device identification numbers, browser-type, broad geographic location (e.g. country or city-level location), and other technical information. We may also collect information about how your device has interacted with our Website, including the pages accessed and links clicked. Collecting this information enables us to better understand the visitors who come to our Website, where they come from, and what content on our Website is of interest to them. We use this information for our internal analytics purposes and to improve the quality and relevance of our Website to our visitors. Some of this information may be collected using cookies and similar tracking technology, as explained further under the heading “Cookies and similar tracking technology” below.
* Information that we obtain from third-party sources. From time to time, we may receive personal data about you from third-party sources (including, but not limited to, lead generation providers, partners, content syndication providers, third-party enrichment tools, and meeting maker vendors), but only where we have checked that these third parties either have your consent or are otherwise legally permitted or required to disclose your personal data to us. The types of information we collect from third parties include name, contact information, title and/or role within your organization, internet activity, and company data. We use the information we receive from these third parties to market our services to you.

Sensitive Personal Data

We may collect sensitive personal data, or special category personal data, from customers as a part of providing our services. We do not use sensitive personal data for any other commercial purpose. We do not sell sensitive personal data. We do not share sensitive personal data for online advertising.

Who does Stacksync share my personal data with?

We may disclose your personal data to the following categories of recipients:

* to our group companies and third-party service providers who provide data processing services to us (for example, to support the delivery of, provide functionality on, or help to enhance the security of our Website), or who otherwise process personal data for purposes that are described in this Privacy Notice or notified to you when we collect your personal data. A list of our current subprocessors is available here: [https://docs.stacksync.com/security-and-other-resources/security/subprocessors](/security-and-other-resources/security/subprocessors);
* to our partners, who we may share with in connection with, selling or distributing our products and services, or engaging in joint marketing activities, in accordance with your expressed marketing preferences.
* to any competent law enforcement body, regulatory, government agency, court or other third party where we believe disclosure is necessary (i) as a matter of applicable law or regulation, (ii) to exercise, establish or defend our legal rights, or (iii) to protect your vital interests or those of any other person;
* to an actual or potential buyer (and its agents and advisers) in connection with any actual or proposed purchase, merger or acquisition of any part of our business, provided that we inform the buyer it must use your personal data only for the purposes disclosed in this Privacy Notice;
* to any other person with your consent to the disclosure.

Third parties we share with for a business purpose (in the last 12 months):

| Broad Categories Collected                | Types of third parties we share with             |
| ----------------------------------------- | ------------------------------------------------ |
| Identifiers                               | Group companies, service providers, and partners |
| Select Information in Customer Records    | Group companies, service providers, and partners |
| Commercial Purchasing Information         | Group companies, service providers, and partners |
| Internet or Network Activity              | Group companies, service providers, and partners |
| Information Typically Detected by Senses  | Group companies, service providers, and partners |
| Employment Information                    | Group companies, service providers, and partners |
| Inferences Drawn from other Personal Data | Group companies, service providers, and partners |

Third parties we share with for a commercial purpose (including sale/online advertising in the past 12 months):

| Broad Categories Collected                | Types of third parties we share with                              |
| ----------------------------------------- | ----------------------------------------------------------------- |
| Identifiers                               | Group companies, partners, and any other person with your consent |
| Select Information in Customer Records    | Group companies, partners, and any other person with your consent |
| Commercial Purchasing Information         | Group companies, partners, and any other person with your consent |
| Internet or Network Activity              | Group companies, partners, and any other person with your consent |
| Information Typically Detected by Senses  | Group companies, partners, and any other person with your consent |
| Employment Information                    | Group companies, partners, and any other person with your consent |
| Inferences Drawn from other Personal Data | Group companies, partners, and any other person with your consent |

## Legal basis for processing personal data

Our legal basis for collecting and using the personal data described above will depend on the personal data concerned and the specific context in which we collect it.

However, we will normally collect personal data from you only (i) where we need the personal data to perform a contract with you, (ii) where the processing is in our legitimate interests and not overridden by your rights, or (iii) where we have your consent to do so. In some cases, we may also have a legal obligation to collect personal data from you or may otherwise need the personal data to protect your vital interests or those of another person.

If we ask you to provide personal data to comply with a legal requirement or to perform a contract with you, we will make this clear at the relevant time and advise you whether the provision of your personal data is mandatory or not (as well as of the possible consequences if you do not provide your personal data).

If we collect and use your personal data in reliance on our legitimate interests (or those of any third party), this will normally be to operate our platform and to communicate with you as necessary – for example, when responding to your queries, analyzing use of and improving our platform, undertaking marketing activities for existing customers as legally permitted, and detecting or preventing illegal activities. We may have other legitimate interests and we will make clear to you at the relevant time what those legitimate interests are. We rely on these legal bases to process data for the following purposes: to help provide the services (e.g. customer support and usage data) and to market our services to you (e.g. online advertising and gauging buyer intent).

If you have questions about or need further information concerning the legal basis on which we collect and use your personal data, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.

## Cookies and similar tracking technology

What are cookies?

Cookies are small data files that are placed on your computer or mobile device when you visit a website. Website owners can use cookies for a variety of reasons that can include enabling their websites to work (or work more efficiently), providing personalized content and advertising, and creating website analytics.

Cookies set by the website owner (in this case, Stacksync) are called "first-party cookies". Only the website owner can access the first-party cookies it sets. Cookies set by parties other than the website owner are called "third-party cookies.” Third-party cookies enable third party features or functionality to be provided on or through the website (e.g. like advertising, interactive content and social sharing). The parties that set these third-party cookies can recognize your device both when it visits the website in question and also when it visits other websites that have partnered with them.

Stacksync may use web beacons, tags, flash cookies, HTML5, and scripts (“Data Tools”) in the Websites or in emails to help deliver cookies, count visits, understand usage and campaign effectiveness and determine whether an email has been opened and acted upon. Stacksync may receive reports based on the use of these technologies by our service/analytics providers on an individual and aggregated basis.

If you want to learn more about cookies, or how to control, disable or delete them, please visit [https://allaboutcookies.org](https://allaboutcookies.org) for detailed guidance. For further information on how to manage Flash cookies, please click [here](http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html).

Why do we use cookies?

We use first-party and third-party cookies for several reasons. Some cookies are required for technical reasons that are strictly necessary for our Websites to operate, and we refer to these as "essential" cookies. Other cookies also enable us to provide website functionality, or to enhance visitors' experience on our Websites by providing them with personalized content and advertising. This is described in more detail below.

Cookies collect certain standard information that your browser sends to the Websites such as your browser type and language, access times, and the address of the website from which you arrived at a Website. They may also collect information about your Internet Protocol (IP) address, clickstream behavior (i.e. the pages you view, the links you click, and other actions you take when you use the Websites) and product information. These are called first-party cookies and they are essential to the Websites’ operation.

Stacksync may also contract with third-party advertising networks that collect non-personally identifiable information and personal data through the Websites and emails and on third-party web sites. Ad networks follow your online activities over time by collecting usage data through Data Tools. They use this information to provide advertisements about products and services tailored to your interests. You may see these advertisements on other websites. This process also helps us manage and track the effectiveness of Stacksync’s marketing efforts.

The Websites may include third-party social media features, such as the Facebook Like button, and third-party widgets, such as the ‘Share This’ button or interactive mini-programs that run on the Websites. These features may collect your IP address, which page you are visiting on the Websites, and set a cookie to enable the feature to function properly. Your interaction with these features is governed by the privacy policy of the third-party company providing it.

We use third-party advertising companies to display ads on the Websites tailored to your individual interests based on your internet activity, as well as to provide advertising-related services such as ad delivery, reporting, attribution, analytics, and market research. You can manage your preferences with regards to the receipt of tailored advertisements in the cookie settings described below. Please note if these cookies are switched off, you will continue to see advertisements, but they will no longer be tailored to your interests.

The specific types of first- and third-party cookies served through our Websites and the purposes they perform are described in our cookie settings page.

What about other tracking technologies, like web beacons?

Cookies are not the only way to recognize or track visitors to a website. We may use other, similar technologies from time to time, like web beacons (sometimes called "tracking pixels" or "clear gifs"). These are tiny graphics files that contain a unique identifier that enable us to recognize when someone has visited our Website or opened an email that we have sent them. This allows us, for example, to monitor the traffic patterns of users from one page within our Websites to another, to deliver or communicate with cookies, to understand whether you have come to our Websites from an online advertisement displayed on a third-party website, to improve site performance, and to measure the success of email marketing campaigns. In many instances, these technologies are reliant on cookies to function properly, and so declining cookies will often impair their functioning.

How can you control cookies?

You have the right to decide whether to accept or reject cookies. You can exercise your cookie preferences in our cookie settings page.

You can also set or amend your web browser controls to accept or refuse cookies. If you choose to reject cookies, you may still use our Websites though your access to some functionality and areas of our Websites may be restricted. As the means by which you can refuse cookies through your web browser controls vary from browser to browser, you should visit your browser's help menu for more information.

In addition, most advertising networks offer you a way to opt out of targeted advertising. If you would like to find out more information, please visit [https://www.aboutads.info/choices/](https://www.aboutads.info/choices/) or [https://www.youronlinechoices.eu/](https://www.youronlinechoices.eu/) if located in the European Union.

## How does Stacksync keep my personal data secure?

We use appropriate technical and organizational measures to protect the personal data that we collect and process about you. The measures we use are designed to provide a level of security appropriate to the risk of processing your personal data. Stacksync is hosted on leading cloud service providers (listed in our [Security overview](/security-and-other-resources/security/overview-security)) and uses industry-standard security protocols to protect personal data. Personal data is stored on private servers. All connections between the end user and our servers are encrypted with SSL, and server software is kept continuously up to date with the latest security patches.

## International data transfers

Your personal data may be transferred to, and processed in, countries other than the country in which you are resident. These countries may have data protection laws that are different to the laws of your country.

To view our data residency locations, see [Security overview](/security/overview-security). Our group companies, third party service providers, and partners operate around the world.

However, we have taken appropriate safeguards to require that your personal data will remain protected in accordance with this Privacy Notice. These include implementing the European Commission’s Standard Contractual Clauses, the UK Addendum for Standard Contractual Clauses, and other applicable standard contractual clauses for transfers of personal data between our group companies, which require all group companies to protect personal data they process in accordance with applicable data protection law.

Our Data Protection Addendum is available online at [https://www.stacksync.com/legal#dpa](https://www.stacksync.com/legal#dpa), and our Standard Contractual Clauses can be provided on request by contacting us at [privacy@stacksync.com](mailto:privacy@stacksync.com). We have implemented similar appropriate safeguards with our third-party service providers and partners and further details can be provided upon request.

## Data retention

We retain personal data we collect from you where we have an ongoing legitimate business need to do so (for example, to provide you with a service you have requested or to comply with applicable legal, tax or accounting requirements).

When we have no ongoing legitimate business need to process your personal data, we will either delete or anonymize it or, if this is not possible (for example, because your personal data has been stored in backup archives), then we will securely store your personal data and isolate it from any further processing until deletion is possible. For more detailed information on our retention practices, see [Security overview](/security/overview-security).

## Your data protection rights

You have the following data protection rights:

* If you wish to access, correct, update or request deletion of your personal data, you can do so at any time by contacting us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* In addition, you can object to processing of your personal data, ask us to restrict processing of your personal data or request portability of your personal data. Again, you can exercise these rights by contacting us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* You have the right to opt-out of marketing communications we send you at any time. You can exercise this right by clicking on the “unsubscribe” or “opt-out” link in the marketing emails we send you. To opt-out of other forms of marketing (such as postal marketing or telemarketing), then please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* Similarly, if we have collected and processed your personal data with your consent, then you can withdraw your consent at any time. Withdrawing your consent will not affect the lawfulness of any processing we conducted prior to your withdrawal, nor will it affect processing of your personal data conducted in reliance on lawful processing grounds other than consent.
* You have the right to opt out of the sale of your personal data, including sharing personal data for online advertising. For more information, visit our cookie settings page.
* We do not use or disclose your sensitive personal data, except for the purposes of providing the services to our customers.
* You have the right to non-discrimination, meaning we may not discriminate against a data subject for exercising a privacy right.
* You have the right to have your authorized agent make a data privacy request on your behalf. For more information, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* You have the right to complain to a data protection authority about our collection and use of your personal data. For more information, please contact your local data protection authority.
* If you are not satisfied with our response regarding your data privacy request, you have the right to appeal our decision. For more information, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice. If you are not satisfied with the result of the appeal, you have the right to contact your respective attorney general depending on where you reside.

We respond to all requests we receive from individuals wishing to exercise their data protection rights in accordance with applicable data protection laws.

## Data Privacy Framework Participation

1\. Data Privacy Framework Participation StackSync Inc. complies with the EU-U.S. Data Privacy Framework (EU-U.S. DPF), the UK Extension to the EU-U.S. DPF, and the Swiss-U.S. Data Privacy Framework (Swiss-U.S. DPF) as set forth by the U.S. Department of Commerce regarding the collection, use, and retention of personal data transferred from the European Union, the United Kingdom (and Gibraltar), and Switzerland to the United States. StackSync has certified to the U.S. Department of Commerce that it adheres to the Data Privacy Framework Principles. If there is any conflict between the terms in this Privacy Notice and the DPF Principles, the DPF Principles shall govern. To learn more about the Data Privacy Framework program, and to view StackSync’s certification, please visit: [https://www.dataprivacyframework.gov](https://www.dataprivacyframework.gov/)

2\. Accountability for Onward Transfers StackSync is responsible for the processing of personal data it receives under the DPF and subsequently transfers to a third party acting as an agent on its behalf. We comply with the DPF Principles for all onward transfers of personal data from the EU, UK, and Switzerland, including the onward transfer liability provisions.

3\. What Personal Data We Collect We may collect the following types of personal data:

* Identifiers: Name, email address, IP address, phone number
* Employment Info: Job title, company name, role
* Internet/Network Activity: IP addresses, cookies, browser type, usage data
* Commercial Info: Purchase history, product interactions
* Inferences: Preferences, behavioral insights
* Audio Data: Recordings from support calls (when applicable)

4\. Why We Collect and Use Personal Data We use personal data to:

* Provide our services and customer support
* Respond to inquiries and fulfill contracts
* Improve our products and user experience
* Send marketing communications (where legally permitted)
* Detect and prevent fraud and abuse
* Comply with legal obligations and regulatory requirements

5\. Information Disclosure to Third Parties We may disclose personal data to:

* Service providers (e.g., cloud infrastructure, analytics, marketing)
* Business partners (for joint offerings or referrals)
* Third-party platforms integrated at your request
* Government authorities in response to lawful requests
* Acquirers in case of a merger, acquisition, or sale of assets

Each recipient is contractually bound to handle data securely and only for the intended purposes.

6\. Your Rights You have the following rights under the DPF Principles and applicable laws:

* Right to access your personal data
* Right to correct or update inaccurate data
* Right to delete your data where applicable
* Right to restrict or object to processing
* Right to withdraw consent for data use (e.g., marketing)
* Right to opt out of sale or disclosure for cross-context advertising

To exercise these rights, contact us at: [privacy@stacksync.com](mailto:privacy@stacksync.com)

7\. Limiting Use and Disclosure StackSync provides the following mechanisms to limit use/disclosure of personal data:

* Cookie settings and ad tracking preferences
* Unsubscribe links in marketing communications
* Direct opt-out requests via email
* Platform-based controls for integrations or data sharing

8\. Lawful Requests by Public Authorities We may disclose your personal data in response to lawful requests by public authorities, including to meet national security or law enforcement requirements.

9\. Independent Recourse Mechanism In compliance with the DPF Principles, StackSync commits to resolving complaints about our collection or use of your personal data. If you have a concern, please first contact us at: [privacy@stacksync.com](mailto:privacy@stacksync.com)

StackSync has selected JAMS (Judicial Arbitration and Mediation Services, Inc.) as our independent recourse mechanism for DPF-related complaints. If you do not receive a timely acknowledgment or are unsatisfied with our response, you may contact JAMS at no cost via: [https://www.jamsadr.com/dpf-dispute-resolution](https://www.jamsadr.com/dpf-dispute-resolution)

10\. Binding Arbitration Under certain conditions, you may invoke binding arbitration to resolve unresolved complaints not addressed through the recourse mechanism above. Details can be found in Annex I of the DPF Principles: [https://www.dataprivacyframework.gov/framework-article/ANNEX-I-introduction](https://www.dataprivacyframework.gov/framework-article/ANNEX-I-introduction)

11\. U.S. Regulatory Oversight StackSync is subject to the investigatory and enforcement powers of the U.S. Federal Trade Commission (FTC) in relation to its compliance with the DPF Principles.

12\. Security and Retention We implement appropriate technical and organizational security measures. Personal data is retained only for as long as needed for the purposes outlined or as required by law.

13\. Updates to This Notice This Privacy Notice may be updated periodically. Changes will be posted on this page, and material changes will be communicated when required by law.

14\. Contact Information For questions, concerns, or requests, please contact: [privacy@stacksync.com](mailto:privacy@stacksync.com)

StackSync Inc. Attn: Data Protection Officer Address: 2611, 1007 N Orange St. 4th Floor, Wilmington, DE, New Castle, USA, 19801 DPO Contact: [dpo@stacksync.com](mailto:dpo@stacksync.com)

## Updates to this Privacy Notice

We may update this Privacy Notice from time to time in response to changing legal, technical or business developments. When we update our Privacy Notice, we will take appropriate measures to inform you, consistent with the significance of the changes we make. We will obtain your consent to any material Privacy Notice changes if and where this is required by applicable data protection laws.

You can see when this Privacy Notice was last updated by checking the “last updated” date displayed at the top of this Privacy Notice.

## How to contact us

If you have any questions or concerns about our use of your personal data, please contact us at [privacy@stacksync.com](mailto:privacy@stacksync.com), or at the following address:

Stacksync Inc., Attn: Data Protection Officer,

Address: 2611, 1007 N Orange St. 4th Floor, Wilmington, DE, New Castle, US, 19801

We have a Data Protection Officer ("DPO") responsible for compliance with data protection law. Their contact details are [dpo@stacksync.com](mailto:dpo@stacksync.com).

The data controller of your personal data is Stacksync Inc. when we collect information from you for marketing purposes. Our customers are the data controller for personal data they provide to us when they use our services.

For any legal claims, the jurisdiction of state of Delaware, USA is the prevailing court.

# Referral Program Policy

> Refer and earn 15% revenue commission for 1 year on successful referrals with Stacksync!

Source: https://docs.stacksync.com/legal/referral-program-policy

Last updated: December 3rd, 2024

This referral program policy ("Policy") outlines the terms and conditions of the referral program offered by Stacksync Inc. ("Stacksync"). By participating in the referral program, you ("Referrer") agree to the terms and conditions set forth in this Policy.

## Eligibility

The referral program is open to all users of Stacksync who are 18 years of age or older, or incorporated companies. To participate, the Referrer must have an active account with Stacksync.

## Referral Process

To refer a new user to Stacksync, the Referrer must share their unique referral link with the potential new user. The referral link can be found in the Referrer's Stacksync account dashboard. The new user must sign up for a paid plan within 3 months of the registration date using the referral link provided by the Referrer.

Here are the do's for sharing your affiliate link:

* Share your affiliate link with your friends, family, and partners.
* Share your affiliate link on social media.
* Share your affiliate link on community channels.
* Share your affiliate link with your mailing list or anyone who might be interested in using Stacksync for their business needs.

The don'ts for the referral program are:

* Refer yourself (use your own affiliate link to sign up for Stacksync).
* Act on Stacksync's behalf.

## Referral Bonus

For every successful referral, the Referrer will receive a referral bonus equal to 15% of the revenue generated by the new user for Stacksync for a duration of 12 months starting from the subscription of a paid plan. The revenue generated is calculated based on the amount paid by the new user for their Stacksync subscription plan. Unpaid bills do not count towards the referral bonus.

## Payouts

Referral bonuses can be claimed 30 days after the new user has paid their bills. Payouts will be made to the Referrer's Stacksync account. The Referrer can use the payout towards their own Stacksync subscription plan or request a transfer to their bank account. Currency exchanges are applied, possibly with a fee. All banking fees resulting from the payment to the Referrer's bank account are to be borne by the Referrer.

## Misconduct

Any misconduct that is against reasonable behaviour according to the referral program policy can result in exclusion from the referral program and the cancellation of any payout still to be processed at any point. Stacksync reserves the right to exclude anyone from the referral program at any time without further reason to be provided.

## Conclusion

By participating in the referral program, the Referrer agrees to the terms and conditions set forth in this Policy. Stacksync reserves the right to modify this Policy at any time without prior notice. If you have any questions about the referral program or this Policy, please contact Stacksync support.

# Service Consumption Tables

Source: https://docs.stacksync.com/legal/service-consumption-tables

V.1.0.3

Effective November 4, 2024

### Overview <a href="#overview" id="overview" />

These Service Consumption Terms are effective as of November 4, 2024 (the "Effective Date") and apply to all customers on Stacksync’s consumption-based pricing model.

Stacksync provides automated cloud data pipelines (“Connectors”, “Apps”) to its customers (each a “Customer”, “you”, “your”) as a service that transports data from various sources to specific destinations (the “Stacksync Service”). The service supports unidirectional and bidirectional data sync and is available in multiple plans (“Plans”) hosted across various geographical regions ("Regions") by third-party cloud providers (“Cloud Providers”), as described in your agreement with Stacksync (“Agreement”). Event-based actions (“Triggers”) may be initiated based on data activity within Connectors.

### Definitions <a href="#definitions" id="definitions" />

* **Workspace:** The customer’s collaborative space attached to a subscription. Each workspace has exactly one active subscription. A Workspace contains Connectors and Destinations grouped into Syncs.
* **Sync:** Two or more apps connected together with data in sync. A Sync may be active, paused or deleted. Syncs are organized within workspaces.
* **Account:** The Customer’s account on Stacksync. An Account may own or have access to multiple workspaces. An Account contains personal data about the customer.
* **Arrears:** For Capacity Purchases (defined below) only, this means any additional usage after the initial purchase has been used, but before the end of the original term. The Arrears period ensures you are able to continue using the Stacksync Services, even if the original Contracted Spend has already been consumed. You will be alerted by Stacksync when you are in Arrears.
* **Subscription:** A paid plan attached to a workspace.
* **Billing Period:** A calendar month running from the first to the last day of the month.
* **Capacity Purchase:** A subscription-based plan which requires an annual upfront purchase of Contracted Spend in bulk.
* **Contracted Spend:** The total dollar amount purchased as listed in the Order Form. Contracted Spend is shown on an annual basis.
* **Destination:** A destination is a data warehouse, database, data lake, or data lake house where the data is delivered.
* **Incremental Spend:** The price charged for the next thousand **Records in sync** (or portion of the next thousand **Records in sync**) consumed after surpassing the **Records in sync** Threshold for the month in question.
* **Initial Sync:** The first time that a connector completes a historical sync.
* **Monthly Purchase:** A plan which is not subscription-based, whereby a Customer is billed monthly in-arrears for their usage during the prior Billing Period. Monthly plans are available to purchase at the (i) stacksync.com user interface or through the (ii) AWS, (iii) GCP, or (iv) Azure marketplaces.
* **Records in sync:** The number of distinct Primary Keys synced via Stacksync, calculated on a per-Sync basis. We only count a row once per Billing Period, even if it syncs multiple times.
* **Records in sync Threshold:** The minimum **Records in sync** usage requirement to receive the consumption rates on the Service Consumption Table below.
* **Monthly Spend:** The dollar amount consumed each Billing Period from your Contracted Spend based on your actual monthly usage.
* **Total Monthly Spend:** Total Monthly Spend is the sum of Monthly Spend on Connectors and any other applicable uses of the Stacksync platform and Services.
* **Order Form:** The form used to purchase Contracted Spend from Stacksync. For Capacity Purchase customers, this is an order form document. For Monthly customers, this may be an order form document or may be the terms attached to a Monthly Purchase through one of the marketplaces identified above.
* **Plan:** The bundle of features included as a part of your Stacksync Service and outlined here. Plans may be Capacity Purchase plans (subscription-based) or may be Monthly Purchase plans (do not require annual subscriptions).
* **Primary Key:** A unique identifier that specifies a distinct row within a table. In bidirectional sync mode, the primary keys of the rows in the synced apps are mapped together. In this context, the Primary Key corresponds to a unique mapping. For instance, a corresponding row in synced apps within the same Sync results in only one Primary Key.

## Records in sync <a href="#records-in-sync" id="records-in-sync" />

**Records in sync** represents the number of distinct Primary Keys processed per Workspace per Billing Period. If a Primary Key is synced multiple times, it counts as one **Record in sync**. Up to 50% of the **Records in sync** for an Initial Sync is excluded for each new Sync. In cases where network troubleshooting is needed, Customer cooperation may be required to allow data flow to Stacksync.

### Records in sync computation

Records in sync serve as billing units and are determined within a billing period of one month. Records in sync billing is based on these actions:

1. **Record changes**: each created, updated, or deleted record within a Billing Period counts as one **Record in sync**. If it is updated multiple times in the same Billing Period, it still counts once.
2. **Triggers:** each successful trigger counts as an additional **Record in sync**. For instance, if a record is updated five times during the Billing Period, and two of those updates activate triggers, only one **Record in sync** will be counted for the five record updates, and two **Records in sync** will be counted for the triggered actions. Thus, a total of three **Records in sync** will be billed for that scenario.
3. **Full crawling requirements:** some systems, like HubSpot, require full crawling to detect changes. All records synced will count as **Records in sync**. All synced records will be counted at least once within a Billing Period if they exist. However, even if full crawling occurs multiple times in the same Billing Period, the records will only count once. If these same records are updated during the Billing Period, they will not count twice because they were already counted once.
4. **Workflow execution**: each successful workflow execution counts as an additional **Record in sync**. Unlike record updates, which are counted once per unique record in a Billing Period, each individual workflow execution is a distinct, billable event.

   For example, if updating 50 unique records causes a workflow to execute 50 times, this will be counted as 50 Records in sync for the record updates plus 50 additional Records in sync for the workflow executions, resulting in a total of 100 Records in sync.

* **API proxy**
  * **Standard calls**: included up to the plan’s quota, with excess usage billed at the Records in sync rate.
  * **AI Insights calls**: AI-driven calls (marked with “ai” in the URL) are included up to the plan’s quota and billed at 15 Records in sync per call once the quota is exceeded.

### Service consumption and spend calculation <a href="#service-consumption-and-spend-calculation" id="service-consumption-and-spend-calculation" />

Monthly Spend depends on **Records in sync** usage and the selected Plan. Each Plan has a base price covering limited usage, with incremental costs for usage beyond the included limit.

### Plan pricing

* **Starter Plan:** $1400/mo (or $1000/mo billed yearly)
* **Pro Plan:** $3700/mo (or $3000/mo billed yearly)
* **Enterprise Plan:** custom pricing based on specific requirements

### Service consumption table

Additional **Records in sync** pricing (Consumption based). The pricing increments in thousands of **Records in sync**. Each thousand **Records in sync** started, even partly consumed, is due in full.

| Records in sync Tier | Price per 1,000 |
| -------------------- | --------------- |
| 0 - 50k              | $0              |
| 50k → 150k           | $8.00           |
| 150k - 1M            | $2.00           |
| 1M → 10M             | $0.90           |
| 10M → 100M           | $0.40           |
| over 100M            | $0.10           |

### Example of cost calculation

Suppose you’re on a **yearly** Starter Plan with a base price and have used 200,000 **Records in sync** in one month. Here’s how costs are calculated:

* First 50,000 **Records in sync**, included in your plan.
* Next 100,000 **Records in sync**, priced at $8 per 1,000: 100 \* $8 = $800.
* Additional 50,000 **Records in sync**, priced at $2 per 1,000: 50 \* $2 = $100.
* **Total Records in sync cost:** $0 + $800 + $100 = $900.
* **Total Monthly Spend:** Base Price ($1000) + **Records in sync** Cost ($900) = $1900.

### Custom development services <a href="#custom-development-services" id="custom-development-services" />

For services outside of standard support, such as custom development, the following hourly rates apply:

* **Junior Engineers / Junior Solutions Architects**: $250 USD per hour
* **Senior Engineers / Senior Solutions Architects**: $400 USD per hour

### Capacity purchase plan

For customers with a Capacity Purchase Plan, usage rates are based on the Service Consumption Table. Multiple Workspaces under one Capacity Purchase Plan can share Contracted Spend but cannot combine Synced Rows for volume discounts.

### What happens when Contracted Spend is depleted? <a href="#what-happens-when-contracted-spend-is-depleted" id="what-happens-when-contracted-spend-is-depleted" />

Capacity Purchase Customers will enter an Arrears period if Contracted Spend is depleted, during which they can continue using Stacksync Services at the "Monthly Pay As You Go" rates. Stacksync will prompt customers to purchase additional usage.

### Expiration of Contracted Spend <a href="#expiration-of-contracted-spend" id="expiration-of-contracted-spend" />

Contracted Spend must be used within the subscription term, with no rollover to the next term. Contact your account representative for renewals or new orders.

### Multiple Workspaces <a href="#multiple-workspaces" id="multiple-workspaces" />

Each Workspace’s Records in sync usage is calculated independently. Combining Rows Synced across Workspaces for discounts is not allowed, but consolidation into a single Workspace is available upon request.

### Support Plans <a href="#support-plans" id="support-plans" />

### Support Priorities

Stacksync provides highly responsive support channels. The following priority levels define how issues are classified and handled:

### P-0 — Critical / Production Down

* Full production outage or data corruption
* Core functionality unavailable
* Immediate business impact
* Requires instant escalation to on-call engineering

### P-1 — High / Severe Degradation

* Major functionality impaired, though partially operational
* Significant performance degradation
* No viable workaround
* Requires rapid attention

### P-2 — Medium / Functional Issue

* Non-critical feature malfunction
* Business impact present but mitigations available
* Addressed during business hours

### P-3 — Low / Minor Bug or Usability Issue

* Cosmetic issues or low-impact defects
* No operational disruption
* Resolved in standard maintenance cycles

### P-4 — Inquiry / Feature Request

* Clarifications, documentation questions, or enhancement requests
* No operational impact

***

### Support Channels

* **P-4 to P-0** issues should be raised via the standard support channels included in your plan (Email, Slack, or Phone).
* **P-0** incidents may be escalated through the dedicated 24/7 hotline available under **Workspace Settings → Support Methods** (if included in your plan).

Triggering a P-0 escalation immediately notifies an on-call engineer. Your team must be ready to respond in real time (chat and/or call) to ensure rapid resolution.

**Note:** Submitting non-urgent or lower-severity issues through the P-0 hotline may incur fees of up to **$1,000 per false alert due immediately**.

### Changes to the Stacksync Service Consumption Table <a href="#changes-to-the-stacksync-service-consumption-table" id="changes-to-the-stacksync-service-consumption-table" />

Stacksync may periodically update this Service Consumption Table. When updates are made, the **“effective date”** at the top of the document will be revised.

* For **Capacity Purchase plans**, the updated table will apply upon renewal or when entering a new Order Form after the changes go into effect. This holds true if no other agreement between the parties supersedes this Service Consumption Table.
* For **Monthly Purchases/Plans**, the updates will apply in the first Billing Period following the new effective date.

If a material change is made, Stacksync will make reasonable efforts to notify you through the Stacksync dashboard or via email prior to the update taking effect.

### Benefits per plan <a href="#benefits-per-plan" id="benefits-per-plan" />

Each Plan offers specific benefits as detailed below. Not all features are available in every contract. For Enterprise Plans, benefits are customized and not universally included. Refer to your Order Form for specific entitlements.

| Feature                                      | Starter               | Pro                   | Enterprise                         |
| -------------------------------------------- | --------------------- | --------------------- | ---------------------------------- |
| **Two-way sync**                             |                       |                       |                                    |
| Number of Syncs                              | 1                     | 3                     | Unlimited                          |
| Synced records                               | 50K                   | 1M                    | Custom                             |
| Real-time data sync                          | ✓                     | ✓                     | ✓                                  |
| One-way syncs                                | ✓                     | ✓                     | ✓                                  |
| Two-way syncs                                | ✓                     | ✓                     | ✓                                  |
| Automatic data backfill                      | ✓                     | ✓                     | ✓                                  |
| Edit sync configuration                      | ✓                     | ✓                     | ✓                                  |
| Sync event triggers                          | ✓                     | ✓                     | ✓                                  |
| Issues dashboard                             | ✓                     | ✓                     | ✓                                  |
| Sync statistics and metrics                  | ✓                     | ✓                     | ✓                                  |
| Smart API rate limits                        | ✓                     | ✓                     | ✓                                  |
| Basic connectors                             | ✓                     | ✓                     | ✓                                  |
| Enterprise connectors                        | -                     | -                     | ✓                                  |
| Early access to preview integrations         | -                     | ✓                     | ✓                                  |
| **Workflow automation**                      |                       |                       |                                    |
| Number of workflows                          | 5                     | 25                    | Unlimited                          |
| Workflow executions                          | 10K                   | 1M                    | Custom                             |
| Configure workflow with YAML/JSON files      | ✓                     | ✓                     | ✓                                  |
| Asynchronous workflow executions             | ✓                     | ✓                     | ✓                                  |
| Synchronous workflow executions              | ✓                     | ✓                     | ✓                                  |
| Replay failed workflows                      | ✓                     | ✓                     | ✓                                  |
| Workflow versioning                          | ✓                     | ✓                     | ✓                                  |
| Log explorer                                 | ✓                     | ✓                     | ✓                                  |
| Store logs in your own storage               | -                     | -                     | ✓                                  |
| Managed ultra-scalable message queues        | 1k events /min /queue | 5k events /min /queue | 10M events /min /queue             |
| Number of managed queues                     | 1                     | 5                     | Unlimited                          |
| Variables and Secrets                        | ✓                     | ✓                     | ✓                                  |
| Basic connectors                             | ✓                     | ✓                     | ✓                                  |
| Enterprise connectors                        | -                     | -                     | ✓                                  |
| **API management suite**                     |                       |                       |                                    |
| API proxy                                    | ✓                     | ✓                     | ✓                                  |
| API proxy access                             | ✓                     | ✓                     | ✓                                  |
| API proxy - rate limit                       | 50k calls/day         | 150k calls/day        | Unlimited                          |
| **Platform**                                 |                       |                       |                                    |
| Collaborators per workspace                  | 3                     | Unlimited             | Unlimited                          |
| Select processing region                     | Basic                 | Extended              | All (including custom regions)     |
| Select cloud provider (GCP, AWS, or Azure)   | -                     | -                     | ✓                                  |
| Monitoring dashboard                         | -                     | ✓                     | ✓                                  |
| Log retention policy                         | 1 day                 | 7 days                | 30 days                            |
| SLAs                                         | -                     | -                     | ✓                                  |
| Notification and alerting                    | Email                 | Email                 | Email, Slack, WhatsApp, PagerDuty  |
| Environments (e.g. Dev, Staging, Production) | 1                     | 1                     | 3                                  |
| "No data retention" policy                   | ✓                     | ✓                     | ✓                                  |
| On-premise deployment                        | -                     | -                     | ✓                                  |
| GovCloud solutions                           | -                     | -                     | ✓                                  |
| White label platform                         | -                     | -                     | ✓                                  |
| **Security**                                 |                       |                       |                                    |
| Passwordless and social logins               | ✓                     | ✓                     | ✓                                  |
| MFA                                          | -                     | ✓                     | ✓                                  |
| SSO & SCIM                                   | -                     | -                     | ✓                                  |
| RBAC (Role Based Access Control)             | ✓                     | ✓                     | ✓                                  |
| SSH tunneling                                | ✓                     | ✓                     | ✓                                  |
| Reverse SSH tunnels (annual contract only)   | -                     | -                     | ✓                                  |
| IP whitelisting                              | -                     | ✓                     | ✓                                  |
| SSL certificates                             | -                     | ✓                     | ✓                                  |
| VPC peering                                  | -                     | -                     | ✓                                  |
| VPN gateway                                  | -                     | -                     | ✓                                  |
| AWS Transit gateway                          | -                     | -                     | ✓                                  |
| GCP CloudSQL proxy                           | -                     | -                     | ✓                                  |
| Private networking for AWS/Azure/Google      | -                     | -                     | ✓                                  |
| **Compliance**                               |                       |                       |                                    |
| SOC2 type 2                                  | ✓                     | ✓                     | ✓                                  |
| GDPR                                         | ✓                     | ✓                     | ✓                                  |
| CCPA                                         | ✓                     | ✓                     | ✓                                  |
| ISO27001                                     | -                     | ✓                     | ✓                                  |
| HIPAA                                        | -                     | ✓                     | ✓                                  |
| **Extensibility**                            |                       |                       |                                    |
| Stacksync's Management API                   | -                     | ✓                     | ✓                                  |
| Configuration as code (for Syncs)            | -                     | ✓                     | ✓                                  |
| Configuration as code (for Workflows)        | -                     | ✓                     | ✓                                  |
| **Support**                                  |                       |                       |                                    |
| Documentation                                | ✓                     | ✓                     | ✓                                  |
| Slack community                              | ✓                     | ✓                     | ✓                                  |
| Dedicated Slack support channel              | -                     | ✓                     | ✓                                  |
| Email, Chat and phone. Up to 24/7 support.   | -                     | -                     | ✓                                  |
| Solutions Architect                          | On Demand             | On Demand             | Dedicated during setup and monthly |

# Stacksync Certified Partner Program Terms and Conditions

Source: https://docs.stacksync.com/legal/stacksync-certified-partner-program-terms-and-conditions

Last updated: April 16, 2023.

These Terms and Conditions (the "Agreement") govern your participation in the Stacksync Certified Partner Program (the "Program") offered by Stacksync SA ("Stacksync"). By participating in the Program, you agree to be bound by this Agreement and any additional terms and conditions that Stacksync may adopt from time to time.

## Program Description

The Program is designed to provide a platform for consulting partners, freelance consultants, and agencies ("Partners") to support customers who need assistance with the strategy or technical implementation of Stacksync's real-time and bidirectional data synchronization solution between CRMs and Databases. Stacksync will display Partners' logos and provide referrals to Partners who offer such services to customers.

## Eligibility

Partners must meet the following eligibility criteria to participate in the Program:

1. Have experience and expertise in enterprise system integration, CRM integration, Data Warehousing, Data Activation and/or Cloud technologies
2. Agree to abide by this Agreement and any additional terms and conditions that Stacksync may adopt from time to time
3. Register for the Program on the Stacksync website and provide all requested information
4. Stacksync reserves the right to approve or reject any Partner application in its sole discretion, without reason to be disclosed.

## Partner Obligations

As a Partner in the Program, you agree to:

1. Provide high-quality services to customers referred to you by Stacksync in a professional and timely manner
2. Maintain a high level of customer service and support
3. Comply with all applicable laws and regulations in the performance of your services
4. Display Stacksync's logo on your website in the relevant sections and advertising materials as a Stacksync Certified Partner
5. Not make any decisions or speak on behalf of Stacksync

## Referral Process

Stacksync may refer customers to Partners who offer services related to Stacksync's solution. Stacksync will have no obligation to refer any customer to a Partner, and may refer customers to any other Partner or service provider at its sole discretion. Partners may not represent themselves as an agent or legal representative of Stacksync, and may not bind Stacksync to any obligation or agreement.

## Partner Fees

Stacksync does not require any fee from Partners for participation in the Program or for referrals. Partners may receive compensation from their customers for their services in accordance with their own pricing and policies.

If a partner refers and brings new clients to Stacksync as understood in the Stacksync Referral Programme Policy, the provisions under the Stacksync Referral Program Policy apply (available at [https://docs.stacksync.com/legal/referral-program-policy](/legal/referral-program-policy)).

## Term and Termination

This Agreement will begin upon acceptance of your Partner application and will continue until terminated by either party. Either party may terminate this Agreement at any time, with or without cause, by giving the other party written notice of termination. Upon termination of this Agreement, Partner will immediately cease all use of Stacksync's trademarks, trade names, logos, and other proprietary materials. Any rights or obligations that by their nature should survive termination of this Agreement will survive, including, without limitation, the provisions regarding intellectual property, confidentiality, and limitation of liability.

## Confidentiality

Partners will have access to confidential and proprietary information about Stacksync's technology and business operations as a result of their participation in the Program. Partners agree to keep such information confidential and not disclose it to any third party without the prior written consent of Stacksync.

## Intellectual Property

Stacksync owns all intellectual property rights in its technology, software, and related materials. Partners may use Stacksync's logo and trademarks solely for the purpose of promoting their participation in the Program, but may not use such intellectual property in any other manner without the prior written consent of Stacksync.

## Indemnification

Partners agree to indemnify, defend, and hold harmless Stacksync, its affiliates, and their respective officers, directors, employees, and agents from and against any claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising out of or in connection with Partner's participation in the Program or any breach of this Agreement.

## Limitation of Liability

Stacksync will not be liable to Partners for any special, indirect, incidental, consequential, or punitive damages arising out of or in connection with Partner's participation in the Program, even if Stacksync has been advised of the possibility of such damages. Stacksync's total liability under this Agreement will not exceed the fees paid to Partner, if any, under this Agreement.

## Governing Law and Dispute Resolution

This Agreement will be governed by and construed in accordance with the laws of the state of Vaud in Switzerland, without regard to its conflict of law provisions. To promote peaceful resolution of any disputes, amicable dispute resolution through mediation should be preferred and attempted before resorting to arbitration or going to court. Any disputes arising out of or in connection with this Agreement will be resolved through confidential and binding arbitration in accordance with the rules of Swiss law. The arbitration will take place in Vaud, Switzerland, and the award of the arbitrator will be final and binding.

## Miscellaneous

This Agreement constitutes the entire agreement between the parties regarding the subject matter hereof, and supersedes all prior agreements and understandings, whether written or oral. This Agreement may not be amended or modified except in writing signed by both parties. If any provision of this Agreement is found to be unenforceable, the remaining provisions will remain in full force and effect. This Agreement may not be assigned by Partner without the prior written consent of Stacksync. Stacksync may assign this Agreement without Partner's consent. This Agreement will be binding upon and inure to the benefit of the parties hereto and their respective successors and permitted assigns.

## Relationship of the Parties

Nothing contained in this Agreement will be deemed or construed by the parties or any third party as creating the relationship of principal and agent, partnership, joint venture, or any other form of legal association or organization between the parties, nor will this Agreement be deemed or construed as creating any obligation of either party to enter into any further agreement with the other party.

## Contact Information

If you have any questions about these T\&C or the Program, you can contact Stacksync at [https://www.stacksync.com/contact](https://www.stacksync.com/contact).

By submitting an application to become a Stacksync Certified Partner, you acknowledge that you have read, understood, and agree to be bound by the terms and conditions of this Agreement.

# Terms of Service and Conditions (TC)

> General terms and conditions governing the use of the Stacksync service and related products.

Source: https://docs.stacksync.com/legal/terms-of-service-and-conditions-tc

Last updated: October 25th, 2025.

Please read these terms and conditions carefully before using Our Service.

## Interpretation and Definitions <a href="#interpretation-and-definitions" id="interpretation-and-definitions" />

## Interpretation

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

## Definitions

For the purposes of these Terms and Conditions:

* Affiliate means an entity that controls, is controlled by or is under common control with a party, where "control" means ownership of 50% or more of the shares, equity interest or other securities entitled to vote for election of directors or other managing authority.
* Country refers to: Delaware, United States of America (USA).
* Company (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to Stacksync.
* Device means any device that can access the Service such as a computer, a cellphone or a digital tablet.
* Service refers to the Website.
* Terms and Conditions (also referred to as "Terms") mean these Terms and Conditions that form the entire agreement between You and the Company regarding the use of the Service.
* Third-party Social Media Service means any services or content (including data, information, products or services) provided by a third-party that may be displayed, included or made available by the Service.
* Website refers to Stacksync, accessible from `https://www.stacksync.com` and any other product Stacksync offers, including (without limitation) Hookforce at [https://www.hookforce.app](https://www.hookforce.app).
* You means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable.

## Acknowledgment <a href="#acknowledgment" id="acknowledgment" />

These are the Terms and Conditions governing the use of this Service and the agreement that operates between You and the Company. These Terms and Conditions set out the rights and obligations of all users regarding the use of the Service.

Your access to and use of the Service is conditioned on Your acceptance of and compliance with these Terms and Conditions. These Terms and Conditions apply to all visitors, users and others who access or use the Service.

By accessing or using the Service You agree to be bound by these Terms and Conditions. If You disagree with any part of these Terms and Conditions then You may not access the Service.

You represent that you are over the age of 18. Stacksync does not permit those under 18 to use the Service.

Your access to and use of the Service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our Service.

## Links to Other Websites <a href="#links-to-other-websites" id="links-to-other-websites" />

Our Service may contain links to third-party web sites or services that are not owned or controlled by the Company.

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

We strongly advise You to read the terms and conditions and privacy policies of any third-party web sites or services that You visit.

## Termination <a href="#termination" id="termination" />

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms and Conditions.

Upon termination, Your right to use the Service will cease immediately.

Either party may terminate this Agreement upon written notice if the other party materially breaches the Agreement and fails to cure such breach within 30 days of receiving written notice.

## Limitation of Liability <a href="#limitation-of-liability" id="limitation-of-liability" />

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of these Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the Service or 100 USD if You haven't purchased anything through the Service.

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the Service, third-party software and/or third-party hardware used with the Service, or otherwise in connection with any provision of these Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

## "AS IS" and "AS AVAILABLE" Disclaimer

The Service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the Service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the Service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the Service, or the information, content, and materials or products included thereon; (ii) that the Service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the Service; or (iv) that the Service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

## Governing Law <a href="#governing-law" id="governing-law" />

The laws of the Country, excluding its conflicts of law rules, shall govern these Terms and Your use of the Service. Your use of the Application may also be subject to other local, state, national, or international laws.

## Disputes Resolution <a href="#disputes-resolution" id="disputes-resolution" />

If You have any concern or dispute about the Service, You agree to first try to resolve the dispute informally by contacting the Company.

If the dispute cannot be resolved through informal discussions within thirty (30) days, the parties shall engage in mandatory, non-binding mediation conducted by a mutually agreed-upon neutral mediator before initiating any arbitration or other formal legal proceeding. The mediation shall take place in Wilmington, Delaware, unless otherwise mutually agreed, and the costs of mediation shall be shared equally between the parties, unless otherwise agreed in writing. Participation in mediation shall be a condition precedent to the initiation of arbitration or any other form of dispute resolution.

## Arbitration Procedure

Any dispute, controversy, or claim arising out of or relating to this Agreement that is not resolved through mediation shall be finally resolved by binding arbitration administered by the American Arbitration Association (AAA) in accordance with its Commercial Arbitration Rules. The arbitration shall be conducted by a single arbitrator appointed in accordance with such rules. The seat and venue of arbitration shall be Wilmington, Delaware, and the arbitration shall be conducted in English. Judgment on the award rendered by the arbitrator may be entered in any court having jurisdiction thereof.

## For European Union (EU) Users

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which you are resident in.

## United States Legal Compliance

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

## Severability and Waiver <a href="#severability-and-waiver" id="severability-and-waiver" />

## Severability

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

## Waiver

Except as provided herein, the failure to exercise a right or to require performance of an obligation under these Terms shall not affect a party's ability to exercise such right or require such performance at any time thereafter nor shall the waiver of a breach constitute a waiver of any subsequent breach.

## Fees and Payment <a href="#fees-and-payment" id="fees-and-payment" />

## Fees

Customer shall pay to Stacksync the fees for the Service. Except as expressly set forth in the Order, the Service is non-cancellable and all fees are non-refundable. Customer shall have no right to withhold or reduce fees under the Agreement or set off any amount against fees owed for alleged defects in the Service.

## Payment

Customer shall pay to Stacksync the fees for the Service provided hereunder, in the amount set forth in the Order, by recurring credit card charges made on the first day of each subscription period or by invoice within thirty (30) days from the invoice date. Payment shall always be made by the start date when paying by credit card and prior to the start date of the Service when paying by invoice. Without limiting any other rights or remedies Stacksync may have, any amount not paid when due will be subject to interest equal to the lesser of: (i) 5% per month of the overdue amount; or (ii) the highest lawful rate allowed by applicable law. Such interest shall accrue on a daily basis from the due date until actual payment of the overdue amount, whether before or after judgment. In addition to any interest due under this Section, Customer shall reimburse any costs or expenses (including, but not limited to, any penalties, charges and legal and other reasonable professional costs and expenses) incurred by Stacksync to collect any amount that is not paid when due.

## Additional charges

Additional charges emerging from refunds, chargebacks, payment disputes or any other financial transaction between the Company and the Customer should be borne by the customer, especially if the request originates from the Customer. For instance, charges from payment providers or banks to transfer the amount of a refund from the Company to the Customer might be borne by the Customer.

These charges might be, by payment modality, charged to the Customer via the financial provider. When this is not possible, the charges might directly be deducted from the transferred amount being sent from the Company to the Customer. These charges might also be offset against future payment from the Company to the Customer or additionally included on future payables such as bills from the Customer to the Company.

## Taxes.

All fees are exclusive of taxes, levies, and duties, and Customer shall be responsible for payment of all such taxes, levies, and duties, including value-added tax (VAT), withholding, or similar taxes. Stacksync may calculate taxes based on the billing information Customer provides.

## Fee Increase.

Stacksync may increase the fees for the Service, which will be effective at the beginning of the next subscription period. Stacksync will notify Customer of any increase prior to it becoming effective; notice may be in the form of an invoice. Customer acknowledges that expiration of any discount or incentive programs to which Customer was previously entitled does not constitute a fee increase.

## Renewal

All contracts renew automatically if the service is not cancelled by either party before the renewal date.

## Effects on non-payment.

Stacksync may suspend Customer’s access to the Service without advance notice if Customer fails to pay in full when due. Stacksync will notify the Customer of the reason for the suspension.

## Cancellation

The Client may request cancellation of the contract without cause by providing a written notice at least 30 days prior to the contract's expiration date.

Fees for the running contract term are non-refundable.

## Breach

If Customer breaches these Terms, including but not limited to non-payment or violation of the Acceptable Use Policy, all fees paid shall be non-refundable, and Customer shall remain liable for any unpaid fees due for the then-current contract term.

If Stacksync materially breaches these Terms and fails to cure such breach within thirty (30) days after receiving written notice from Customer, Customer will be entitled to a refund of prepaid fees on a pro-rata basis for the unused portion of the Service period. This refund shall constitute Customer’s sole and exclusive remedy for such breach.

## Marketing and Branding <a href="#marketing-and-branding" id="marketing-and-branding" />

By agreeing to these Terms, You grant the Company a non-exclusive, royalty-free, worldwide license to use Your company’s name, logo, and trademarks for marketing and promotional purposes. This includes, but is not limited to, featuring Your logo on the Company’s Website, presentations, case studies, and promotional materials.

The Company may obtain Your logo and branding assets from publicly available sources or request them directly from You to ensure proper representation. Additionally, You agree to collaborate with the Company to provide marketing content, such as case studies, testimonials, or relevant media, upon reasonable request.

If You have specific branding guidelines, You agree to provide them upon request to ensure compliance with Your standards.

You may revoke this permission by providing written notice to the Company. Upon receipt of such notice, the Company will cease using Your logo and branding in any new materials within 30 business days.

## Ownership of Intellectual Property Rights <a href="#ownership-of-intellectual-property-rights" id="ownership-of-intellectual-property-rights" />

## Stacksync’s IP

Stacksync, or its licensors, own all right, title and interest in and to any and all copyrights, trademark rights, patent rights, database rights and other intellectual property or other rights in and to the Service, including without limitation all software, integrations, integrations with Data Sources and Data Destinations, technology and other rights used to provide the Service, and all graphics, user interfaces and any documentation, any improvements, design contributions or derivative works thereto, and any knowledge or processes related thereto and/or provided hereunder. Except for the limited rights expressly granted herein, the Agreement does not transfer from Stacksync any proprietary right or interest in the Service. All rights not expressly granted to Customer in the Agreement are reserved to Stacksync and its licensors.

## Customer’s IP

Customer shall own all right, title and interest in and to any copyrights, trademark rights, patent rights, database rights and other intellectual property or other rights in and to the Customer Data. Except for the limited rights expressly granted herein, the Agreement does not transfer from Customer any proprietary right or interest in the Customer Data. All rights regarding Customer Data not expressly granted to Stacksync in the Agreement are reserved to Customer.

## Third Party Indemnification <a href="#third-party-indemnification" id="third-party-indemnification" />

## Claims Brought Against Customer

Stacksync shall defend (at its sole expense) Customer against claims brought against Customer by any third party alleging that Customer’s use of the Service, in accordance with the terms and conditions of the Agreement, constitutes an infringement or misappropriation of a patent claim(s), copyright, or trade secret rights or any other third party intellectual property rights. Stacksync will pay damages finally awarded against Customer with respect to such claims, and will pay reasonable attorney’s fees in connection with such defense. This obligation of Stacksync shall not apply if the alleged infringement or misappropriation results from use of the Service in conjunction with any other software or service not provided by Stacksync or in the event of free (no fee) or trial use of the Service.

## Intellectual Property Claims

In the event a claim under the previous Section is made or in Stacksync’s reasonable opinion is likely to be made, Stacksync may, at its sole option and expense: (i) procure for Customer the right to continue using the Service under the terms of the Agreement; or (ii) replace or modify the Service to be non-infringing without material decrease in functionality. If Stacksync provides written notice to Customer that the foregoing options are not reasonably available, Stacksync or Customer may terminate the Agreement and Stacksync shall refund to Customer all prepaid fees for the remainder of its term after the date of termination.

## Claims Brought Against Stacksync

Customer shall defend (at its sole expense) Stacksync and licensors against claims brought against Stacksync by any third party arising from or related to an allegation that the Customer Data used in connection with the Service violates, infringes or misappropriates the intellectual property rights of a third party. Customer will pay damages finally awarded against Stacksync with respect to such claims, and will pay reasonable attorney’s fees in connection with such defense. The foregoing shall apply regardless of whether such damage is caused by the conduct of Customer or by the conduct of a third party using Customer’s access credentials.

## Conditions

The obligations under this Section are conditioned on (i) the Party against whom a third party claim is brought timely notifying the other Party in writing of any such claim, provided however that a Party’s failure to provide or delay in providing such notice shall not relieve a Party of its obligations under this Section except to the extent such failure or delay prejudices the defense; (ii) the Party who is obligated hereunder to defend a claim having the right to fully control the defense of such claim; and (iii) the Party against whom a third party claim is brought reasonably cooperating in the defense of such claim. Any settlement of any claim shall not include a financial or specific performance obligation on or admission of liability by the Party against whom the claim is brought, provided however that Stacksync may settle any claim on a basis requiring Stacksync to substitute for the Service any alternative substantially equivalent non-infringing service. The Party against whom a third party claim is brought may appear, at its own expense, through counsel reasonably acceptable to the Party obligated to defend claims hereunder. Neither Party shall undertake any action in response to any infringement or misappropriation, or alleged infringement or misappropriation that is prejudicial to the other Party’s rights.

## Third Party Indemnification Disclaimer

THE PROVISIONS OF THIS SECTION STATE THE SOLE, EXCLUSIVE AND ENTIRE LIABILITY OF A PARTY TO THE OTHER PARTY, AND IS THE OTHER PARTY’S SOLE REMEDY, WITH RESPECT TO THIRD PARTY CLAIMS COVERED HEREUNDER AND TO THE INFRINGEMENT OR MISAPPROPRIATION OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS.

## Translation Interpretation <a href="#translation-interpretation" id="translation-interpretation" />

These Terms and Conditions may have been translated if We have made them available to You on our Service. You agree that the original English text shall prevail in the case of a dispute.

## Changes to These Terms and Conditions <a href="#changes-to-these-terms-and-conditions" id="changes-to-these-terms-and-conditions" />

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

By continuing to access or use Our Service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the Service.

## Attached documentation <a href="#attached-documentation" id="attached-documentation" />

All other documents under this legal section such as, but not exhaustively, the Privacy Notice, Service Consumption Tables, Acceptable Use Policy, and all other documents are also agreed via the acceptance of this Terms of Service and Conditions also referred to as "TC" (this document itself). The division of the text in several document pages is for visual and layout purposes only, but all belong to the same conditions to use the Stacksync service.

## Contact Us <a href="#contact-us" id="contact-us" />

If you have any questions about these Terms and Conditions, You can contact us by email at [hello@stacksync.com](mailto:hello@stacksync.com).

# EU Data Protection

Source: https://docs.stacksync.com/security/eu-data-protection

Updated January 10, 2023.

Stacksync prioritizes customer trust. We know that the safekeeping of customer data is critically important to our customers’ values and operations. That is why we keep it private and safe.

Stacksync helps customers maintain control of privacy and data security in multiple ways:

* Data Security: Stacksync complies with high security standards, such as encryption of data in transit and at rest, a focus on the latest regulations, and a support team that is on-call when you need it.
* Disclosure of Customer Data: Stacksync only discloses customer data to third parties where disclosure is necessary to provide the services or as required to respond to lawful requests from public authorities.
* Trust: Stacksync has developed security protections and control processes to help our customers ensure a secure environment for their information. Stacksync adheres to high industry standards.
* Access Management: Stacksync provides an advanced set of access and encryption features to help customers effectively protect their information. We do not access or use customers’ data for any purpose other than providing, maintaining, and improving the Stacksync services and as otherwise required by law.

## What is Customer Data?

**Customer Data is any information, including personal data, which is replicated via the Stacksync services, by, or on behalf of, our customers and their end-users.**

## Who owns control of the Customer Data?

From a privacy perspective, the customer is the controller of Customer Data, and Stacksync is a processor. This means that throughout the time that a customer subscribes to services with Stacksync, the customer retains ownership of and control over Customer Data in its account.

## Who are Stacksync’s sub-processors?

Stacksync maintains an up-to-date list of the names and locations of all sub-processors (including members of the Stacksync subsidiaries and third parties) used for hosting or other processing of Customer Data, which can be found in our Stacksync Subprocessors documentation. The list may also be obtained by contacting [security@stacksync.com](mailto:security@stacksync.com).

## How does Stacksync process Customer Data?

Stacksync replicates data from Customer databases and cloud sources, processes it, and loads it into the Customer’s destination. This can also be done in a bidirectional manner, from and to connected applications (“apps”), also named “Services” or “External Platforms”.

To learn more about our data handling and retention periods, see our technical documentation.

## What steps does Stacksync take to secure Service Data?

Stacksync prioritizes data security and combines enterprise-class security features with comprehensive audits of our applications, systems, and networks to ensure customer and business data is always protected.

## Where will Customer Data be stored?

Stacksync runs data connectors on servers in various locations, such as the United States (US), Canada, the European Union (EU), the United Kingdom (UK), Australia, and Singapore (non-exhaustive list). When customers connect an app, they select the region used for processing and storing encrypted data. If customers configure their connectors to use our EU servers, their data will not leave the EU during processing, including for connectors that sync webhooks and event data. See our Stacksync Data Residency documentation for details. Customer Data is cached on Stacksync servers while operations are running and is purged from Stacksync's system as soon as it is deleted in the connected app. See our Data Retention documentation for details.

## How does Stacksync respond to Information Requests?

**Stacksync recognizes that privacy and data security issues are top priorities for customers. Stacksync does not disclose Customer Data except as necessary to provide its services to its customers and comply with the law as detailed in our Privacy Policy.**

## GDPR (General Data Protection Regulation)

Stacksync has a strong commitment to privacy, security, compliance and transparency. This includes supporting our customers’ compliance with EU data protection requirements, including those set out in the General Data Protection Regulation (“GDPR”).

If a Stacksync customer collects, transmits, hosts, or analyzes personal data of EU citizens, GDPR requires the company to comply with specific technical and organizational requirements. Stacksync does not persistently store Customer Data, but we nevertheless assist customers in meeting their obligations to:

* Respond to requests from data subjects to correct, amend or delete personal data;
* Report personal data breaches to relevant supervisory authorities and data subjects in accordance with GDPR time frames;
* Demonstrate compliance with the GDPR as pertaining to Stacksync’s services.

## How does the GDPR apply to customers?

Stacksync customers that collect and store personal data are considered data controllers under the GDPR. Data controllers bear the primary responsibility for ensuring that their processing of personal data is compliant with relevant EU data protection law, including the GDPR.

## What implications does GDPR have for organizations processing the personal data of EU citizens?

One of the key aspects of the GDPR is that it creates consistency across EU member states on how personal data can be processed, used, and exchanged securely. Organizations need to demonstrate the security of the data they are processing and their compliance with GDPR on a continual basis, by implementing and regularly reviewing robust technical and organizational measures, as well as compliance policies.

## How has Stacksync been preparing for the GDPR?

Stacksync’s Services are designed with privacy and security at its core. It is therefore GDPR-native in a sense. Additionally, our privacy team is continuing its review of Stacksync’s current product features and practices (including adding features such as column exclusion and column hashing) to ensure we support our customers with their GDPR compliance requirements.

## Which Stacksync services and features can support customers' compliance with the GDPR?

All Stacksync services are GDPR compliant, so customers can use any available Stacksync service and remain GDPR compliant.

***

### Questions? <a href="#questions" id="questions" />

We're always happy to help with any other questions you might have. Send us an email at [privacy@stacksync.com](mailto:privacy@stacksync.com).

# Overview - Security

> Stacksync is committed to security and focused on keeping you and your data safe.

Source: https://docs.stacksync.com/security/overview-security

Updated November 13, 2026

Stacksync adheres to industry-leading standards while connecting, replicating, and loading data from all of your data sources.

Contact [<mark>security@stacksync.com</mark>](mailto:security@stacksync.com) if you have any questions or comments.

***

## TL;DR

Stacksync does not store any customer data. Data is processed at Stacksync but never persisted. Even during transit, all data is encrypted with AES encryption (a military-grade protocol). Only the credentials to access the client’s external platform instance or database, and minimal metadata about the selected tables and columns, are stored. This metadata is stored in a custom Stacksync format. It removes most table and column attributes, keeping only the column name (or identifier) and data type.

All data and credentials are encrypted with AES using regularly rotating keys. Key rotation is fully automated, so no one can access production data.

Stacksync lets you choose the region where your data is processed. This enables maximum compliance and system performance (due to proximity to the client’s data sources).

***

## Detailed security policies

### Web portal connectivity

* All connections to Stacksync's web portal are encrypted by default using industry-standard cryptographic protocols (TLS 1.2+).
* Any attempt to connect over an unencrypted channel (HTTP) is redirected to an encrypted channel (HTTPS).
* To take advantage of HTTPS, your browser must support encryption protection (all versions of Google Chrome, Firefox, and Safari).

***

### Role-Based Access Control (RBAC)

Users accessing the Stacksync User Interface (UI) for a given workspace are subject to Role-Based Access Control (RBAC). These are the different roles. Below is a top-level description for every role:

* **Owner** (there is exactly one Owner per workspace). The Owner has all the permissions that the Editors have, but they are also able and responsible for managing the billing settings for the workspace.
* **Editor** (there can be zero or many Editors per workspace). Editors can view and edit most resources in the workspace.
* **Viewer** (there can be zero or many Viewers per workspace). Viewers can view most workspace resources but cannot edit anything in the workspace.

Some resources, such as *Connections*, *API proxy services*, or *scheduled jobs*, have the option to be shared with other members of the workspace. Depending on the resource type and whether collaboration with other members of the workspace is deactivated, the resource will be non-editable for all users other than its creator and, in some cases, even non-visible. This offers higher security levels for some workspace resources.

RBAC is workspace-specific. Users can have different roles in different workspaces. A User can have only one role per workspace.

***

### Connectors

* Connections to customers' database sources and destinations are SSL encrypted by default.
* Stacksync can support multiple connectivity channels.
* Connections to customers' software-as-a-service (SaaS) tool sources and destinations are encrypted through HTTPS.

***

### Permissions

* Databases and API cloud applications - Stacksync requires READ and WRITE permissions.
* Connected Applications - Stacksync requires the READ and WRITE permission. This permission allows Stacksync to CREATE a schema within your destination, CREATE tables within that schema, and WRITE to those tables.

***

### Retention of customer data

How long we retain customer data depends on the data type:

| Customer data (in-flight processing)                                       | a few seconds (\< 1 hour in rare conditions, usually) | <p>We purge customer data as soon as it is successfully written to the destination, except in the cases below.</p><p>The operations should last, in most cases, only a couple of milliseconds or seconds since we sync data in real-time but some technical conditions and data volumes might require longer processing, usually up to one hour.<br />-> In-flight data is fully encrypted and is never persisted in plain text. We are compatible with the highest security standard for in-flight data processing.</p>                                                                                                                                                                                                       |
| -------------------------------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Customer data (synced)                                                     | Persistent                                            | In order to detect changes when customers edit data in their app, Stacksync needs to keep a hashed version (fingerprint only) of each synced record. The hashed copy is stored permanently (or until it is deleted in the synced apps) in our regional storage, in the region you have chosen in your Base configuration. The data is hashed using various algorithms so it cannot be reversed in any case. This hashed record image is also stored in our most secure storages. This technical design is fully approved by highest security and privacy standards and regulations.                                                                                                                                            |
| Customer data where sync errors are detected.                              | Varies                                                | Stacksync detects errors when syncing one-way or bidirectionally between apps. These errors most often result from differences in schemas between synced apps. These differences are authorized and are normally handled by Stacksync automatically. However, customers might insert data in one app that cannot be replicated on the other synced app. When this is the case, Stacksync detects the error and stores the encrypted data to display it to the user (for troubleshooting) and then tries to re-sync it. When the error is fixed by the user or is overridden by another valid (i.e., non-error) update, the error is deleted from our storage. The retention period depends on the time taken to fix the issue. |
| Event data from the Webhooks connector and other connectors using webhooks | \< 3 minutes                                          | If you sync webhooks or event data, we do not retain data since data is processed immediately when it is received on your servers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Customer access keys                                                       | Persistent                                            | We retain customer database credentials and SaaS OAuth tokens to securely and continuously extract data and troubleshoot customer issues. These credentials are securely stored in a key management system, which is backed by a hardware security module managed by our cloud provider.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Customer metadata                                                          | Persistent                                            | We retain configuration details and data points (such as table and column names) for each connector so that this information can be displayed in your Stacksync dashboard and be used to process data as well.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

In the following two cases, customer data is purged as soon as it is successfully written to the destination. If the data writing process takes longer than usual, the data is however kept for object lifecycle management:

* Destination outage: If your destination is down, we maintain the data that we've read from your source so we can resume the sync without losing progress once the issue is resolved.
* Schema information for column blocking or hashing purposes: If you choose not to sync a column before syncing your new connector, we queue your data while we read the full schema. We only write the data to the destination that you approve.

***

### Encryption and Hashing

Stacksync uses best-in-class algorithms to encrypt and hash your data.

**Encryption**: AES encryption with autonomous rotating keys. Encryption keys are frequently updated, ensuring effective partitioning of data across several keys as well as [perfect forward secrecy](https://en.wikipedia.org/wiki/Forward_secrecy). AES is a military-grade standard.

**Hashing**: various algorithms, often coupled with byte compression.

***

### Solution infrastructure

Access to Stacksync production infrastructure is only allowed via hardened IAM (identity and access management) policies. Further access to the environment and enforcement of least privilege is controlled by IAM policies. Privileged actions are captured in audit logs for review and anomalous behavior detection.

***

### Physical and environmental safeguards

Physical and environmental security is handled entirely by our cloud service providers. Each of our cloud service providers provides an extensive list of compliance and regulatory assurances, including SOC 1/2-3, PCI-DSS, and ISO27001.

#### Google

See the [Google Cloud Platform compliance](https://cloud.google.com/security/compliance/), [security](https://cloud.google.com/security/overview/), and [data center security](https://cloud.google.com/security/overview/whitepaper#state-of-the-art_data_centers) documentation for more detailed information.

#### Amazon

See the [Amazon Web Services compliance](https://aws.amazon.com/compliance/), [security](https://aws.amazon.com/security/), and [data center security](https://aws.amazon.com/compliance/data-center/controls/) documentation for more detailed information.

#### Azure

See the [Azure compliance](https://docs.microsoft.com/en-us/azure/compliance/), [security](https://docs.microsoft.com/en-us/azure/security/), and [data center security](https://docs.microsoft.com/en-us/azure/security/fundamentals/physical-security) documentation for more detailed information.

***

### Stacksync data residency

Stacksync runs data connectors on servers such as in the United States (US), Canada, European Union (EU), United Kingdom (UK), Australia, Singapore (non-exhaustive list). You can select your preferred data processing location when configuring your Base. All connectors configured in a destination run in the destination's designated location. This means that your data will not leave our region-specific servers during processing. For example, if you configure your destination to use our EU servers, your data will not leave the EU during processing or storage. See our Base and Connected Apps documentation to learn how to configure your data processing location.

Stacksync runs services on Google Cloud Platform (GCP), Amazon Web Services (AWS), and Azure. The following table lists regions supported by Stacksync for each service provider:

| GEOGRAPHY | GCP REGIONS                                                                                                           | AWS REGIONS                                               | AZURE REGIONS |
| --------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------- |
| Americas  | <p>us-east1 (South Carolina)\*</p><p>us-west1 (Oregon)</p><p>us-central1 (Iowa)<br />us-east4 (Northern Virginia)</p> | <p>us-east-1 (N. Virginia)\*</p><p>us-west-2 (Oregon)</p> | N/A           |
| EU        | <p>europe-west1 (Belgium)\*</p><p>europe-west3 (Frankfurt, Germany)<br />europe-west6 (Zurich, Switzerland)</p>       | eu-central-1 (Frankfurt)\*                                | N/A           |
| Asia      | asia-southeast1 (Singapore)\*                                                                                         | <p>ap-southeast-1 (Singapore)\*</p><p><br /></p>          | N/A           |

\*NOTE: Default region for a given cloud provider / geography combination.

IMPORTANT: Google Cloud Platform is the default cloud service provider. You can select a different cloud service provider and region if you are on a plan that allows that option.

***

### Your organization permissions

* Only users of your organization registered within Stacksync and Stacksync operations staff have access to your organization's Stacksync dashboard.
* Your organization's Stacksync Dashboard provides visibility into the status of each integration, the aforementioned metadata for each integration, and the ability to pause or delete the integration connection - not organization data.
* Organization administrators can immediately revoke an organization member’s access to a workspace at any time from the Workspace Settings page. Otherwise, Organization administrators can request that Stacksync revoke an organization member's access at any point; these requests will be honored within 24 hours or less.

***

### Company policies

* Stacksync requires that all employees comply with security policies designed to keep any and all customer information safe, and address multiple security compliance standards, rules and regulations.
* Two-factor authentication and strong password controls are required for administrative access to systems.
* Security policies and procedures are documented and reviewed on a regular basis.
* Current and future development follows industry-standard secure coding guidelines, such as those recommended by OWASP.

***

### In the event of a data breach

To date, Stacksync has not experienced a breach in security of any kind. In the event of such an occurrence, Stacksync protocol is such that customers would be made aware as soon as the compromise is confirmed.

***

### Responsible disclosure policy

At Stacksync, we are committed to keeping our systems, data and product(s) secure. Despite the measures we take, security vulnerabilities will always be possible.

If you believe you’ve found a security vulnerability, please send it to us by emailing [security@stacksync.com](mailto:security@stacksync.com). Please include the following details with your report:

* Description of the location and potential impact of the vulnerability.
* A detailed description of the steps required to reproduce the vulnerability (POC scripts, screenshots, and compressed screen captures are all helpful to us).

Please make a good faith effort to avoid privacy violations as well as destruction, interruption or segregation of services and/or data.

We will respond to your report within 5 business days of receipt. If you have followed the above instructions, we will not take any legal action against you regarding the report.

***

### Diagnostic data access

IMPORTANT: Stacksync cannot access your data without your approval.

When working on a support ticket, we may need to access your data to troubleshoot or fix your broken connector or destination. In that case, we will ask you to grant Stacksync access to your data for the next 21 days. You can allow or deny data access. If you grant us data access, you can revoke it at any moment before the 21-day diagnostic period has expired.

See our support documentation for more details.

***

Questions?

We're always happy to help with any other questions you might have. Send us an email at [<mark>security@stacksync.com</mark>](mailto:security@stacksync.com).

# Security Whitepaper

> An in-depth overview of Stacksync's commitment to data protection, privacy, and compliance for modern enterprise automation.

Source: https://docs.stacksync.com/security/security-whitepaper

<Embed src="https://drive.google.com/file/d/1ANEh9qLfTy7Sk4y5u8agfz4oRzTEZy7I/preview" title="Google Drive file" />

# Subprocessors

Source: https://docs.stacksync.com/security/subprocessors

Updated November 11, 2026.

Stacksync SA (“Stacksync”) uses certain subprocessors to assist it in providing the Stacksync Services as described in the Terms of Service (TOS). Defined terms used herein shall have the same meaning as defined in the TOS.

## What is a Subprocessor?

A subprocessor is a third-party data processor engaged by Stacksync, including entities from within the Stacksync Group, that has or potentially will have access to or process personal data on behalf of a Customer. Stacksync engages different types of subprocessors to perform various functions as explained in the tables below. Stacksync refers to third parties that do not have access to or process personal data on behalf of a Customer, but who are otherwise used to provide the Services, as "subcontractors" and not "subprocessors".

## Pipeline Data Subprocessors

**These are subprocessors who have access to Stacksync production systems and data by virtue of the services they provide.**

| NAME            | NATURE OF PROCESSING                                                | TERRITORY(IES) |
| --------------- | ------------------------------------------------------------------- | -------------- |
| Amazon, Inc.    | AWS hosting environment for Supplier services                       | Global         |
| Google, Inc.    | Google Cloud hosting environment for Supplier services              | Global         |
| Ubicloud        | Ubicloud hosting environment for Supplier services                  | Global         |
| Microsoft, Inc. | Azure hosting environment for Supplier services                     | Global         |
| Okta, Inc.      | Authentication and authorization for Stacksync websites (via Auth0) | Global         |
| Scaleway SAS    | Scaleway hosting environment for Supplier services                  | Global         |
| OVH Groupe SAS  | OVH hosting environment for Supplier services                       | Global         |
| Orderful, Inc.  | Electronic data interchange (EDI) platform provider                 | United States  |

## Affiliates

Stacksync SA maintains affiliate companies in countries where our full-time employees work. Each of these affiliate companies comprises members of the Stacksync team who contribute from outside of Switzerland.

| NAME    | NATURE OF PROCESSING | TERRITORY(IES) |
| ------- | -------------------- | -------------- |
| Cegelem | Web Consultants      | France         |

## AI inference providers

| NAME                      | NATURE OF PROCESSING               | TERRITORY(IES)       |
| ------------------------- | ---------------------------------- | -------------------- |
| OpenAI                    | AI inference provider              | Global (all regions) |
| Anthropic                 | AI inference provider              | Global (all regions) |
| OpenRouter                | AI inference provider              | Global (all regions) |
| TypeSafe                  | AI inference provider              | Global (all regions) |
| Google, Inc. (Gemini API) | AI inference provider              | Global (all regions) |
| Perplexity AI, Inc.       | AI inference provider (web search) | Global (all regions) |

***

## Questions?

We're always happy to help with any other questions you might have. Send us an email at [hello@stacksync.com](mailto:hello@stacksync.com).

# Stacksync Catalyst Program - Master Participation Agreement (“MPA”)

> Master Participation Agreement ("MPA") to the Stacksync Catalyst Program.

Source: https://docs.stacksync.com/stacksync-catalyst-program-master-participation-agreement-mpa

**Last updated: 8 July 2025**\
This MPA is a binding agreement between **Stacksync Inc.** (“**Stacksync**”) and the individual or entity that registers for the Catalyst Community (the “**Participant**”). It governs all Catalyst Program activities and incorporates by reference the policies published at [https://docs.stacksync.com/legal](https://docs.stacksync.com/legal).

***

## 1 Scope and Hierarchy

## 1.1 Program Purpose.

The Catalyst Program enables Participants to build production-grade connectors and workflow templates for the Stacksync platform using the public Connected Development Kit (“**CDK**”).<br />

**1.2** **Precedence.**

If a Connector Assignment Agreement (“CAA”, §5) conflicts with this MPA, the CAA controls for that connector; otherwise, this MPA prevails.<br />

**1.3** **Incorporated Policies.**

The Stacksync Terms of Service, Privacy Notice, Acceptable Use Policy, Data Processing Addendum, and Certified Partner Program Terms are incorporated herein (collectively, the “**Policies**”).

***

## 2 Eligibility and Onboarding

Participation requires (i) legal capacity to contract, (ii) acceptance of this MPA and the Policies, and (iii) provision of accurate payment information. Stacksync may approve, reject, or revoke participation at its sole discretion.

***

## 3 Confidentiality

Each party shall protect non-public information disclosed by the other party, use it solely for Catalyst purposes, and return or destroy it upon request. This obligation survives for three years after disclosure.

***

## 4 Intellectual Property

**4.1** **Assignment.**

Upon payment of the reward specified in §7, the Participant assigns to Stacksync all worldwide intellectual-property rights in each accepted connector or template (“**Deliverable**”), excluding pre-existing open-source components used under their respective licences.<br />

**4.2** **Moral Rights.**

The Participant waives, to the fullest extent permitted by law, any moral rights in each Deliverable.

**4.3** **Attribution.**

Stacksync may publicly reference the Participant’s name, badge, or partner status in marketing materials.

***

## 5 Connector Assignment Agreements

Each Deliverable is governed by a CAA specifying:

* connector or template ID and title;
* scope and APIs to cover;
* complexity tier (Simple / Medium / Complex);
* delivery deadline;
* fixed reward;
* three-week post-production maintenance window;
* quality checklist (annexed to the CAA).

***

## 6 Development and Quality Obligations

Deliverables must:

* follow CDK guidelines and the Acceptable Use Policy;
* implement all API operations defined in the CAA;
* include unit or integration tests, robust error handling, logs, and user-facing documentation;
* pass Stacksync code review and continuous-integration checks;
* satisfy a 48-hour response SLA for bug reports during the maintenance window.

***

## 7 Compensation

**7.1 Base Reward Range.**\
Each Connector Assignment Agreement (“CAA”) specifies a base reward for the related Deliverable. As of the Effective Date, base rewards range from **USD 50** to **USD 300**, determined by the complexity and urgency tiers defined by Stacksync.

**7.2 Right to Modify Rewards.**\
Stacksync may revise the base-reward schedule or any related multipliers at any time and without prior notice. Any revision applies only to CAAs executed after the effective date of the revision.

**7.3 Volume-Based Multipliers.**\
Upon acceptance of cumulative Deliverables by the same Participant, the following percentage multipliers apply to the base reward stated in each subsequent CAA:

* **Six (6) to ten (10) accepted Deliverables:** +10 %
* **Eleven (11) to thirty (30) accepted Deliverables:** +20 %
* **More than thirty (30) accepted Deliverables:** +30 %

**7.4 Payment Timing.**\
Rewards, inclusive of any applicable multipliers, are payable twenty-one (21) calendar days after Stacksync confirms production acceptance of the Deliverable and no Critical-Severity defects remain open.

**7.5 Payment Method and Taxes.**\
Rewards are remitted via ACH, PayPal, or Wise. All transaction fees and applicable taxes are the responsibility of the Participant.

**7.6 Set-off.**\
Stacksync may withhold or set off amounts necessary to cover unresolved breaches, indemnity obligations, or chargebacks attributable to the Participant.

***

## 8 Badges, Certifications, and Partner Status

Badges are awarded automatically for predefined milestones. Certifications require successful completion of a technical assessment. Certified partners may display the “Stacksync Certified” mark subject to the Partner Terms.

***

## 9 Data Protection

The Participant shall process personal data only in accordance with the Data Processing Addendum and implement industry-standard security measures. Any security incident must be reported to Stacksync without undue delay.

***

## 10 Acceptable Use and Community Conduct

All Catalyst communications occur in the designated Slack workspace. The Participant shall comply with the Acceptable Use Policy and maintain professional conduct. Violations may result in immediate termination.

***

## 11 Representations and Warranties

The Participant represents that each Deliverable: (i) is original or properly licensed, (ii) does not infringe third-party rights, (iii) complies with applicable laws, and (iv) is free of malicious code.

***

## 12 Indemnification

The Participant shall indemnify and hold harmless Stacksync from any third-party claims arising from a breach of §§6, 9, or 11.

***

## 13 Limitation of Liability

Except for indemnification or gross negligence, each party’s aggregate liability under this MPA is limited to the greater of USD 1,000 or 150 % of the total rewards paid to the Participant in the preceding twelve months. Neither party is liable for indirect or consequential damages.

***

## 14 Term and Termination

This MPA commences on the Effective Date recorded in the Catalyst dashboard and continues until terminated. Either party may terminate for convenience with 30 days’ written notice. Immediate termination applies for material breach, AUP violations, or bankruptcy. §§3, 4, 11-15 survive termination.

***

## 15 Governing Law and Dispute Resolution

This MPA is governed by the laws of the State of Delaware, USA. Disputes shall be resolved by binding arbitration in Wilmington, Delaware, under AAA Commercial Rules. Class-action procedures are waived.

***

### 16 No Public Affiliation

The Participant is an independent contractor and shall not:\
(a) represent or imply that it is a partner, affiliate, employee, agent, or legal representative of Stacksync;\
(b) disclose or advertise any relationship with Stacksync, or use Stacksync’s name, logo, or trademarks in press releases, marketing materials, social media, or other public communications, without Stacksync’s prior written consent; or\
(c) create any obligation or liability on behalf of Stacksync.<br />

Nothing in this Agreement creates a joint venture, franchise, agency, fiduciary, or employment relationship between the parties.

***

### 17 Miscellaneous

* **Independent Contractors.** The parties are independent entities.
* **Assignment.** The Participant may not assign this MPA without Stacksync’s prior written consent.
* **Notices.** Legal notices must be sent to [legal@stacksync.com](mailto:legal@stacksync.com) and to the Participant’s email on record.
* **Entire Agreement.** This MPA, all CAAs, and the Policies constitute the entire agreement.
* **Amendments.** Stacksync may update this MPA on 30 days’ notice; continued participation constitutes acceptance.

***

**Stacksync Inc.**                      **Participant**

*Execution through the Catalyst dashboard constitutes acceptance of all terms herein.*

# Community

> Be part of our community of data syncers 💪🏼

Source: https://docs.stacksync.com/start-here/community

We're glad you're here!

## Slack community 🎉

Our [Slack community](https://join.slack.com/t/stacksync-community/shared_invite/zt-1tx5lljv4-xNErkvjR9K4MXwUOSI7ItQ) is full of folks ready to help you and share what they’re building with Stacksync.

[Join our community now with this invite link.](https://join.slack.com/t/stacksync-community/shared_invite/zt-1tx5lljv4-xNErkvjR9K4MXwUOSI7ItQ)

<figure>
  <img src="/https/docs.stacksync.com/images/home/slack-logo.webp" alt="Slack logo" width="1200" height="449" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Our founders host office hours, events, and more. You can also reach our support team, ready to jump in and help at any time. See you there!

### Book a demo or support session with an engineer

<Embed src="https://cal.com/rubenburdin/stacksync-demo?embed=true" title="Book a meeting" />

## Contact us

For any other chit-chat, send us a note at [hello@stacksync.com](mailto:hello@stacksync.com).

If you're trying to reach us in other ways, here's all our [contact info](https://www.stacksync.com/contact).

<Callout type="info">
  For critical issues, use [<mark>critical@stacksync.com</mark>](mailto:critical@stacksync.com).
</Callout>

# Quick Start

> Set up your sync in less than 5 minutes

Source: https://docs.stacksync.com/start-here/quick-start

Stacksync syncs data across your tools. When you update data anywhere, it updates everywhere.

You can create your first sync in under 5 minutes. Here’s how:

## Step 1: Create a new sync

From your dashboard, click "Create a new sync".

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-syncs-create-new-sync.webp" alt="Stacksync Syncs dashboard listing paused syncs with the &#x22;Create new sync&#x22; button highlighted at top right." width="1460" height="757" loading="lazy" decoding="async" />

  <figcaption><p>Click "Create a new sync"</p></figcaption>
</figure>

## Step 2: Connect your apps

Click each app you want to sync. Connect them in one click.

<figure>
  <img src="/https/docs.stacksync.com/images/home/create-sync-connect-apps.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with sync name, data processing region and connected app tiles, Salesforce selected" width="1463" height="757" loading="lazy" decoding="async" />

  <figcaption><p>Connect your app in one click</p></figcaption>
</figure>

## Step 3: Map tables

<figure>
  <img src="/https/docs.stacksync.com/images/home/create-sync-link-tables.webp" alt="&#x22;Link Tables&#x22; step pairing Salesforce and HubSpot tables via &#x22;Select Table&#x22; dropdowns with sync direction arrows between them" width="1460" height="752" loading="lazy" decoding="async" />

  <figcaption><p>Map tables between your apps</p></figcaption>
</figure>

If both apps contain tables that should sync together, select them side by side.

If you don’t yet have a matching table in the other app, Stacksync can create a pixel-perfect schema for you. ✨

In most cases, you’ll let Stacksync create new tables for you. You can also create them yourself.

You can also choose the sync direction: **one-way or two-way sync**. 😍

## Step 4: Map fields

For every table you want to sync, you will map fields (i.e., columns) together.

Stacksync uses AI auto-mapping, which finds the best matching pairs for you so you don’t have to do all the work manually. You can modify the proposed mapping as you like, with maximum flexibility.

<figure>
  <img src="/https/docs.stacksync.com/images/home/create-sync-map-fields.webp" alt="&#x22;Map Fields&#x22; step mapping Salesforce AIInsightFeedback Id to HubSpot Appointments id, with a &#x22;Sync More Fields&#x22; button" width="1461" height="754" loading="lazy" decoding="async" />

  <figcaption><p>Map fields in Stacksync UI</p></figcaption>
</figure>

<Callout type="info">
  Field *names* do not have to match.

  Field *types* must be compatible. They don’t need to match exactly. They just need to be semantically compatible.
</Callout>

## Step 5: Turn sync on!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-list-sync-toggle-on.webp" alt="Stacksync Syncs list with the toggle for &#x22;The Sync Legacy&#x22; highlighted and switched on to &#x22;Syncing&#x22; while other syncs are &#x22;Paused&#x22;" width="1465" height="762" loading="lazy" decoding="async" />

  <figcaption><p>Turn sync on and data starts syncing between your apps!</p></figcaption>
</figure>

That’s it! 🎉 Data will start syncing between your tools.

With real-time, two-way sync, you can edit data in any synced app. It updates everywhere.

<Callout type="info">
  After turning the sync on, check the **issues dashboard** for sync errors from your connected apps. Open it from the left menu in Stacksync.
</Callout>

## 👉 Keep reading!

<Cards>
  <Card title="Community" href="/https/docs.stacksync.com/start-here/community" />
</Cards>

# Code Execution

Source: https://docs.stacksync.com/agentic-workflows/features/code-execution

<Cards>
  <Card title="Python Code Execution" href="/https/docs.stacksync.com/agentic-workflows/features/code-execution/python-code-execution" />
</Cards>

<Cards>
  <Card title="Javascript Code Execution" href="/https/docs.stacksync.com/agentic-workflows/features/code-execution/javascript-code-execution" />
</Cards>

# Javascript Code Execution

Source: https://docs.stacksync.com/agentic-workflows/features/code-execution/javascript-code-execution

Run custom JavaScript scripts directly inside your workflow. Use it for fast data formatting, string manipulation, date operations, or lightweight logic between nodes.

## 1. Add the Module

Add the **JavaScript Code** module to your workflow as an action node.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/action-modules-javascript-code-module.webp" alt="Workflow editor Action modules panel searched for &#x22;code&#x22;, with &#x22;Javascript Code&#x22; under Code Execution pointed out by an arrow." width="1432" height="986" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Pass Data In Context

In the module configuration panel, add context variables under the **Context** section. Each entry takes a **Name** and a **Value** use the variable picker to map values from upstream nodes.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/javascript-code-module-context-variables.webp" alt="Javascript Code module with a Context entry &#x22;amount&#x22; set to {{ input.body.amount }} via the variable picker and read in the script via WORKFLOW_CONTEXT." width="1600" height="1050" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Each context entry becomes a key on `WORKFLOW_CONTEXT` inside your script:

```javascript
function main(WORKFLOW_CONTEXT) {
    const amount = WORKFLOW_CONTEXT.amount;
    const currency = WORKFLOW_CONTEXT.currency;
}
```

## 3. Write Your Script

Your script must define a `main` function. Stacksync automatically injects `WORKFLOW_CONTEXT` as the argument containing all your context values.

```javascript
function main(WORKFLOW_CONTEXT) {
    const amount = WORKFLOW_CONTEXT.amount;
    const currency = WORKFLOW_CONTEXT.currency;
    return {
        amount: amount,
        currency: currency
    };
}
```

## 4. Return Data

Whatever `main` returns becomes the node's output, available to downstream nodes via standard node referencing.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/javascript-code-execution-output-logs.webp" alt="Workflow Execution Logs for a successful run, with the Javascript Code Execution output returning amount 100 and currency &#x22;USD&#x22; highlighted." width="1358" height="1842" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Reference in downstream nodes:

```
{{ your_module_id.amount }}
{{ your_module_id.currency }}
```

> **Debugging:** `console.log()` output is captured and surfaced under `metadata.stdout` in the execution logs. Use it for debugging, it does not pass data downstream.

## Available Libraries

| Library                     | Use case                    |
| --------------------------- | --------------------------- |
| `dayjs`                     | Date parsing and formatting |
| `moment`                    | Date manipulation           |
| `live-plugin-manager`       | Dynamic module loading      |
| Node.js 23 standard library | All built-in modules        |

> **Note:** You cannot install additional packages at runtime with `npm install`.&#x20;

## Limits

| Limit            | Value                |
| ---------------- | -------------------- |
| Timeout          | 6s                   |
| Memory           | 8 GB                 |
| Filesystem       | Read-only, no writes |
| Runtime packages | Pre-installed only   |

> **Watch out:** Avoid using JavaScript for slow HTTP calls, heavy loops, or large dataset operations as the timeout is 6 seconds, use the Python Code module instead.

# Python Code Execution

Source: https://docs.stacksync.com/agentic-workflows/features/code-execution/python-code-execution

Run custom Python scripts directly inside your workflow. Use it for data transformation, complex logic, reshaping payloads, or anything that can't be handled by a standard module.

## 1. Add the Module

Add the **Python Code** module to your workflow as an action node.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/action-modules-python-code-module.webp" alt="Action modules panel searched for &#x22;code execution&#x22;, with an arrow pointing to &#x22;Python Code&#x22; under Code Execution." width="1430" height="910" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Pass Data In Context

In the module configuration panel, add context variables under the **Context** section. Each entry takes a **Name** and a **Value,** use the variable picker to map values from upstream nodes.

Each context entry becomes a key on `WORKFLOW_CONTEXT` inside your script:

```python
def main(WORKFLOW_CONTEXT):
    amount = WORKFLOW_CONTEXT["amount"]
```

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/python-code-module-context-variables.webp" alt="Python Code module with a Context entry &#x22;amount&#x22; mapped to {{ input.body.amount }} and read in the script as WORKFLOW_CONTEXT[&#x22;amount&#x22;]." width="1600" height="1031" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Write Your Script

Your script must define a `main` function. Stacksync automatically injects `WORKFLOW_CONTEXT` as the argument containing all your context values.

```python
def main(WORKFLOW_CONTEXT):
    amount = WORKFLOW_CONTEXT["amount"]
    return {
        "amount": amount,
    }
```

## 4. Return Data

Whatever `main` returns becomes the node's output, available to downstream nodes via standard node referencing.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/python-code-execution-output-logs.webp" alt="Workflow Execution Logs for a successful run, with the Python Code Execution output returning &#x22;amount&#x22;: 100 highlighted." width="1600" height="1271" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Reference in downstream nodes:

```jinja
{{ module_id.amount }}
```

> **Debugging:** `print()` output is captured and surfaced under `metadata.stdout` in the execution logs. Use it for debugging — it does not pass data downstream.

## Available Libraries

| Library                      | Use case                             |
| ---------------------------- | ------------------------------------ |
| `pandas`                     | Data manipulation and transformation |
| `numpy`                      | Numerical operations                 |
| `phonenumbers`               | Phone number parsing and formatting  |
| `json`                       | JSON parsing                         |
| `os`                         | OS-level utilities                   |
| Python 3.10 standard library | All built-in modules                 |

## Limits

| Limit            | Value                |
| ---------------- | -------------------- |
| Timeout          | 300s (5 min)         |
| Memory           | 700 MB               |
| Filesystem       | Read-only, no writes |
| Runtime packages | Pre-installed only   |

> **Watch out:** Large pandas DataFrames can hit the 700 MB memory limit. Process data in chunks where possible.

# Dynamic Data Referencing

Source: https://docs.stacksync.com/agentic-workflows/features/dynamic-data-referencing

Every node in your workflow can pass data to the next. Instead of hardcoding values, you can dynamically reference outputs from any previous node directly in your module's input fields.

## How It Works

When configuring any module field, click into the field to open the **variable picker**. This shows a live tree of all available data in your workflow at that point, including outputs from previous nodes, trigger data, and workspace variables.

Selecting a value automatically inserts the reference into your field.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/dynamic-data-reference-variable-picker.webp" alt="Variable picker open over an Airtable Create Records module, inserting {{ input.body.exampleBody }} into the Name field." width="1118" height="1318" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Reference Syntax

All references use double curly bracket syntax:

```
{{ module_id.field }}
```

For nested fields:

```
{{ module_id.field.subfield }}
```

> **Module ID** is the unique identifier for each node, auto-generated from the module name. It is what you use in `{{ }}` references, not the display name. You can find and copy it in the module configuration panel.

### Example

If the Input module received this payload:

```json
{
  "body": {
    "exampleBody": "value"
  }
}
```

You would reference it in a downstream node as:

```
{{ input.body.exampleBody }}
```

## Using the Input Module

> **Recommended:** Always reference trigger data through the **Input** module rather than directly from the Trigger. The Input module normalises the incoming payload and is the recommended way to access trigger data in downstream nodes.

# Stacksync File System

> Stacksync File System provides standard way to receive, securely store, and reuse files across workflow modules.

Source: https://docs.stacksync.com/agentic-workflows/features/stacksync-file-system

Stacksync File System is the platform capability for file ingestion in workflows. Files sent to workflow triggers are stored by Stacksync and represented as reusable `file_id` references. This removes raw file payload handling from downstream execution and provides a consistent integration model across workflow modules.

<Callout type="info">
  Files are workspace scoped and can be reused across workflows in the same workspace.
</Callout>

## 1. **Processing Flow**

When a POST Trigger webhook request includes file input, Stacksync automatically:

1. Ingests the incoming file payload.
2. Stores the file in Stacksync-managed storage.
3. Replaces file content with a Stacksync-managed file object containing the `file_id` reference.
4. Passes the updated payload to downstream workflow steps.

Supports both multipart file uploads and JSON payloads with embedded base64 file content.

## 2. **Usage**

Get the POST Trigger URL from your workflow trigger configuration:

```http
https://.api.workflows.stacksync.com/workspaces/<workspace_id>/workflows/<workflow_id>:latest_draft/triggers/post_trigger/run 
```

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/file-system-post-trigger-example-curl.webp" alt="&#x22;File Test&#x22; workflow with the POST Trigger node and its Example cURL in the Webhook Trigger panel highlighted, used to upload files." width="1600" height="823" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Format 1: Multipart Upload

**HTTPS Request:**

```http
curl --request 'POST' \
  --url 'https://<region>.api.workflows.stacksync.com/workspaces/<workspace_ID>/workflows/<workflow_ID>:latest_draft/triggers/post_trigger/run' \
  --form 'file=@/absolute/path/to/invoice.pdf;type=application/pdf'

```

**Transformed payload in workflow execution Trigger Output:**

```json
{
  "body": {
    "files": [
      {
        "file_id": "72ef30a9-ea74-41b2-96da-a0643c6d5d4c",
        "name": "invoice.pdf",
        "mime_type": "application/pdf",
        "pointer": "file"
      }
    ]
  }
}
```

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/file-system-multipart-upload-execution-log.webp" alt="Execution Log output for a multipart upload, highlighting the files array with file_id, mime_type, name, pointer &#x22;file&#x22; and size_bytes." width="1600" height="830" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Format 2: JSON with base64 file

**HTTPS Request:**

```http
curl --request 'POST' \
  --url 'https://<region>.api.workflows.stacksync.com/workspaces/<workspace_ID>/workflows/<Workflow>:latest_draft/triggers/post_trigger/run' \
  --header 'Content-Type: application/json' \
  --data '{
    "attachments": [
      {
        "file": {
          "name": "invoice.pdf",
          "contentType": "application/pdf",
          "contentBytes": "JVBERi0xLjQKJc..."
        }
      }
    ]
  }'
```

**Transformed payload in workflow execution Trigger Output:**

```json
{
  "body": {
    "attachments": [
      {
        "file": {
          "name": "invoice.pdf",
          "contentType": "application/pdf",
          "file_id": "72ef30a9-ea74-41b2-96da-a0643c6d5d4c",
          "pointer": "attachments[0].file"
        }
      }
    ]
  }
}
```

## Supported Usage Pattern

1. Send files once through trigger ingestion
2. Use file_id in downstream workflow modules
3. Reuse the same file across multiple workflow steps without re-uploading

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

> **Note:** The maximum supported file size is **20MB**.

# Variables and Secrets

Source: https://docs.stacksync.com/agentic-workflows/features/variables-and-secrets

<Cards>
  <Card title="Variable Replacement" href="/https/docs.stacksync.com/agentic-workflows/features/variables-and-secrets/variable-replacement" />
</Cards>

# Variable Replacement

Source: https://docs.stacksync.com/agentic-workflows/features/variables-and-secrets/variable-replacement

Variables in module input fields are replaced following the standard Jinja templating rules, here are some examples:

Comment on source valueSource value (exact value of x)Body to be replacedFinal resultComment on final result

| Comment on source value | Source value (exact value of x) | Body to be replaced | Final result   | Comment on final result |
| ----------------------- | ------------------------------- | ------------------- | -------------- | ----------------------- |
| null value              | null                            | \{\{ x }}           | null           | null value              |
| string                  | hello                           | \{\{ x }}           | hello          | string                  |
| json                    | \{"y":"world"}                  | \{\{ x }}           | \{"y":"world"} | json                    |
| string                  | \{"y":"world"}                  | \{\{ x }}           | \{"y":"world"} | string                  |
| number                  | 123                             | \{\{ x }}           | 123            | number                  |
| string                  | 123                             | \{\{ x }}           | 123            | string                  |
| empty string            |                                 | \{\{ x }}           |                | empty string            |
| string                  | \{\{ text }}                    | \{\{ x }}           | \{\{ text }}   | string                  |
| null value              | null                            | \{\{ x.y }}         | null           | null value              |
| string                  | hello                           | \{\{ x.y }}         | null           | null value              |
| json                    | \{"y":"world"}                  | \{\{ x.y }}         | world          | string                  |
| empty string            |                                 | \{\{ x.y }}         | null           | empty string            |
| json                    | \{"y":"world"}                  | \{\{ x.y }}         | world          | string                  |
| string                  | \{"y":"world"}                  | \{\{ x.y }}         | null           | null value              |
| number                  | 123                             | \{\{ x.y }}         | null           | number                  |
| string                  | 123                             | \{\{ x.y }}         | null           | string                  |
| json                    | \{"y":123}                      | \{\{ x.y }}         | 123            | number                  |
| json                    | \{"y":"123"}                    | \{\{ x.y }}         | 123            | string                  |
| string                  | \{\{ text }}                    | \{\{ x.y }}         | \{\{ text }}   | string                  |

## Not replacing sections enclosed in double curly brackets

Use cases require to have a text between curly brackets NOT replaced by the templating engine.

An example body not to be replaced is `{{ customer text that should remain in curly brackets }}`&#x20;

In this case, the text not to be replaced can be formatted as follows to maintain the curly brackets

```
 {{ {{ customer text that should remain in curly brackets }} }}
```

where the final result would be in the final body (after replacement) is

```
{{ customer text that should remain in curly brackets }}
```

# Paginating with a workspace variable

Source: https://docs.stacksync.com/agentic-workflows/guides/paginating-with-a-workspace-variable

APIs return one page at a time. To get the next page you need a **cursor** that says where the last page ended. A `for` loop can't carry that cursor between runs, and looping through everything in one go hits the 300-second timeout.

The fix: do **one page per run**, save the cursor in a workspace variable, and have the workflow re-trigger itself until there are no pages left.

## Setup

Create a workspace variable called `cursor` (Variables & secrets), type `number`, value `0`. Reference it as `{{ WORKSPACE_VARIABLES.cursor }}` in the workflows.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/create-resource-variable-option.webp" alt="Create Resource dropdown listing Folder, Sync, Workflow, Queue, Variable, Connection and API Proxy, with &#x22;Variable&#x22; highlighted." width="938" height="1146" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/create-workspace-variable-cursor-number.webp" alt="&#x22;Create a new Variable&#x22; dialog with Variable Name &#x22;cursor&#x22;, region US East (N. Virginia) and value type &#x22;number&#x22;." width="1600" height="1098" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## The workflow

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/pagination-workflow-cursor-loop-overview.webp" alt="Pagination workflow: POST Trigger, Read Cursor, a loop with Return Iteration, Update Cursor, an &#x22;If has more&#x22; branch to Re Trigger or Update Cursor to 0." width="1096" height="1402" loading="lazy" decoding="async" />

  <figcaption />
</figure>

1. **Trigger** - Choose the default trigger available when you open a new workflow. Copy the curl command as we will be using it to re-fire itself for each page.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/post-trigger-example-curl-command.webp" alt="&#x22;Trigger your workflow&#x22; Run tab showing the Example cURL POST request to the workflow's post_trigger run URL, highlighted for copying." width="1600" height="722" loading="lazy" decoding="async" />

  <figcaption />
</figure>

1. **Input** - wire the trigger in.
2. **Read cursor** (Code) - get the cursor, fetch one page, output the next cursor and whether more pages exist. Bind `body_cursor` → `{{ input.body.cursor }}` and `var_cursor` → `{{ WORKSPACE_VARIABLES.cursor }}.`
3. &#x20;

   ```python
      def main(WORKFLOW_CONTEXT):
          raw = WORKFLOW_CONTEXT.get("cursor", "")
          cursor = int(raw) if str(raw).strip() not in ("", "None") else 0

          items = list(range(1, 13))   # replace with your real source
          page_size = 5
          page = items[cursor:cursor + page_size]

          return {
              "page": page,
              "next_cursor": cursor + page_size,
              "has_more": (cursor + page_size) < len(items),
          }
   ```

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/read-cursor-python-module-workspace-variable.webp" alt="&#x22;Read cursor&#x22; Python Code module with context body_cursor and var_cursor set to {{ WORKSPACE_VARIABLES.cursor }}, picked from Workspace Variables." width="1600" height="1380" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. **For loop** over `{{ read_cursor.page }}` — your per-record work. This loops through each index for the page and you can check each run in the child iterations of the execution logs

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/for-loop-module-read-cursor-page-list.webp" alt="For Loop module configuration with &#x22;Break On Error&#x22; checked and the List field set to {{ read_cursor.page }}, marked by an arrow." width="1006" height="1118" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/for-loop-child-runs-iteration-logs.webp" alt="Workflow Execution Logs with the For Loop's Child Runs iteration dropdown open, showing &#x22;Iteration 1&#x22; and &#x22;Iteration 2&#x22;." width="1520" height="578" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. **Update Workspace Variable** - set `cursor` to `{{ read_cursor.next_cursor }}`. This advances the saved cursor so the next run reads the new value.

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/action-modules-workspace-variable-update.webp" alt="Action modules panel searched for &#x22;variable&#x22;, listing workflow and workspace variable actions with &#x22;Workspace Variable - Update&#x22; highlighted." width="1258" height="1116" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/update-cursor-workspace-variable-config.webp" alt="&#x22;Update Cursor&#x22; Workspace Variable - Update module setting variable cursor (number) to {{ read_cursor.next_cursor }} from the picker." width="1600" height="1408" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. **If/Else** on `{{ read_cursor.has_more }} == true`:

   * **true** → **HTTP Request**, POST to the trigger's webhook CURL and parse it

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/re-trigger-http-request-paste-curl.webp" alt="&#x22;Re Trigger&#x22; HTTP Request module with the workflow's POST trigger cURL pasted into &#x22;Paste as cURL&#x22; and an arrow pointing to Parse." width="1120" height="1450" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   * **false** → **Update Workspace Variable** set `cursor` back to 0, then stop.

### Swap in a real source

Replace the stand-in list in step 3. Only the cursor and the "more pages" check change:

| Source                | next cursor         | more pages?          |
| --------------------- | ------------------- | -------------------- |
| GraphQL (Shopify)     | `endCursor`         | `hasNextPage`        |
| Cursor REST (HubSpot) | `paging.next.after` | `paging.next` exists |
| Database              | last row's `id`     | full page returned   |

## Watch out for

* **Use the Update Workspace Variable node,** not "Update Workflow Variable." They look identical but write to different stores; mixing them up means your cursor never actually moves and the workflow loops forever on the same page.
* **Timeout:** keep the page size small so each run finishes well under 300 seconds.

# Agentic Workflows Quick Start

Source: https://docs.stacksync.com/agentic-workflows

Welcome to Stacksync Agentic Workflows!

Agentic Workflows go beyond simple automation, they allow you to build intelligent, multi-step processes that can reason, branch, and act based on real-time data. Combine triggers, actions, logic, and AI to automate complex business operations end-to-end.

<YouTube id="CoqVSClHhqg" title="Video" />

## 1. Select "Agentic Workflows" under "All Resources"

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/all-resources-agentic-workflows-entry.webp" alt="Stacksync All Resources home page with arrows pointing to &#x22;Agentic Workflows&#x22; in the sidebar and the Workflows tile under &#x22;Jump right in&#x22;." width="1600" height="918" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a workflow by adding a unique name and choosing the region.

We recommend you choose the region closest to you and / or the server(s) and service(s) the Workflow will be interacting with.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/create-new-workflow-name-region.webp" alt="&#x22;Create a new Workflow&#x22; dialog with Workflow Name, Workflow Resource Id and Workflow Region set to US East (N. Virginia)." width="1600" height="642" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Once created you will see the Workflow designer with an empty workflow and a default POST Trigger. This trigger may be used to run your workflow from a terminal or through an API request.

## 3. Create your Trigger

You will see a menu with all of the currently available Trigger types. By default the POST trigger is already configured

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/workflow-select-trigger-catalog.webp" alt="&#x22;Choose how to trigger your workflow&#x22; screen with popular Webhook/HTTP, Automated schedule and Receive emails triggers plus an app trigger grid." width="1600" height="1155" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Create your first action.

Click on the ➕ Icon to create a new action and you will see a menu with all of the currently available Action Modules.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/workflow-action-modules-menu.webp" alt="Workflow editor with a new module after the POST Trigger and the Action modules menu open, showing Airtable actions like Create Records." width="1600" height="1035" loading="lazy" decoding="async" />

  <figcaption />
</figure>

In this example we will be using the "Create Record(s)" module of Airtable.  Stacksync allows you to create batches of records with one simple to use action.

## 5. Configure your action.

After having set a preferred Display Name for your Action, you will need to add a **Connection**. If you have currently have no connections simply click on "➕ Add New Connection".

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/airtable-create-records-action-config.webp" alt="Airtable Create Records action panel with Module Name, Connection &#x22;Select a connection&#x22; and the + button to add a connection, Base and Table." width="1600" height="1033" loading="lazy" decoding="async" />

  <figcaption />
</figure>

After clicking on "Add new connection" you'll be redirected to the page to Create a Connection.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/create-connection-select-app.webp" alt="&#x22;Create a new connection&#x22; Select app step showing a grid of connectors such as Salesforce, HubSpot, NetSuite, Postgres and Snowflake." width="1600" height="510" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Follow the instructions for your selected Application. Once you have finished adding your connection, go back to your Workflow's page.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/airtable-create-records-configured-action.webp" alt="Demo Workflow with a configured Airtable Create Records action: Airtable Connection, Test Base, Table 1 and record fields like Name and Status." width="1600" height="921" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Run and Deploy your workflow!

Click "Run" to trigger the workflow manually using the POST trigger. A green execution status confirms the workflow completed successfully.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/workflow-run-button-create-records.webp" alt="Workflow editor with an arrow pointing to the Run button above a workflow ending in a green Airtable Create Records node." width="880" height="990" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 7. Monitor your execution logs.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/workflow-execution-logs-panel.webp" alt="Workflow Execution Logs panel below the canvas, listing manual runs with a successful run's Create Records output shown on the right." width="1600" height="1533" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/execution-log-create-records-output.webp" alt="Successful execution detail showing the Create Records output JSON with createdTime, fields such as Name &#x22;New Name&#x22; and Status &#x22;Todo&#x22;, and record id." width="1600" height="688" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# App Triggers

Source: https://docs.stacksync.com/agentic-workflows/triggers/app-triggers

Stacksync continuously watches the connected app for changes using **Change Data Capture (CDC)**. The moment a record changes, Stacksync captures the event and starts your workflow with that record's data typically within seconds.

## Set it up

1. In your workflow, add a trigger and choose the **App Trigger** you want from the trigger catalog.

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/app-trigger-catalog-salesforce.webp" alt="Select trigger panel with the app trigger catalog, including Airtable, HubSpot, NetSuite and Postgres, and the Salesforce tile highlighted." width="1600" height="1196" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Select an existing connection or create a new connection and click next

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/salesforce-trigger-select-saved-connection.webp" alt="Salesforce Trigger Connect App step with the &#x22;Select a saved connection&#x22; dropdown open, offering &#x22;Create new credential&#x22; and saved connections." width="1600" height="998" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Choose the table(s) you want to capture the changes from.

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/salesforce-trigger-select-tables.webp" alt="Salesforce app trigger Select Tables step with the table list open and &#x22;Opportunity&#x22; checked among Account, Contact, Lead and others." width="1288" height="1736" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Choose the columns you want to track. By default, all the columns are selected, you can edit them as required.

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/salesforce-trigger-map-columns.webp" alt="Salesforce app trigger Map Columns step listing tracked Opportunity columns like Amount, StageName and Name with their types and delete icons." width="1462" height="1442" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Configure the Trigger

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/app-trigger-configure-trigger-button.webp" alt="Configure Trigger step with an arrow pointing to the &#x22;+ Configure Trigger&#x22; button and the Historical backfill toggle off." width="1280" height="840" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Pick the **event types** (Created, Updated, Deleted).

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/app-trigger-record-event-types.webp" alt="Configure Trigger form for the Opportunity table with Record created, Record updated and Record deleted events checked and highlighted." width="1290" height="1328" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. Add **filter conditions** so it fires only on relevant changes.

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/app-trigger-filter-conditions.webp" alt="App trigger conditions: StageName equals &#x22;Closed Won&#x22; AND StageName &#x22;is a field that changed&#x22;, with Add Condition and Add Group buttons." width="1600" height="1365" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. (Optional) Enable **historic backfill** to include existing records.

   <figure>
     <img src="/https/docs.stacksync.com/images/agentic-workflows/app-trigger-historical-backfill-toggle.webp" alt="Configured Opportunity trigger (Created, Updated, Deleted, 2 conditions) with an arrow pointing to the Historical backfill toggle." width="1198" height="1082" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
9. Save and turn the workflow on.&#x20;

***

App Triggers fire on three event types:

| Event       | Fires when…                           |
| ----------- | ------------------------------------- |
| **Created** | A new record is added                 |
| **Updated** | One or more fields on a record change |
| **Deleted** | A record is removed                   |

You can pick **any** combination of the three.

## What your workflow receives

Each time the trigger fires, it passes the event into your workflow so downstream modules can use it:

* **`record`** - the full record, with all its fields.
* **`changes`** - only the fields that changed (on update events).

Reference these anywhere in the workflow to route, transform, or write the data into another system.

## Filter conditions

You usually don't want the workflow to run on *every* change. Add **filter conditions** so it only fires when the change actually matters. For example, you can trigger the Salesforce trigger only when `status` becomes `Closed Won`, or only when `amount` is above a threshold.

* Build conditions in the no-code editor using **AND / OR** logic.
* Nest conditions as deeply as you need for precise targeting.
* Only changes that match the filter start the workflow and everything else is ignored.

## Historic backfill

By default, an App Trigger only processes changes that happen **after** you turn it on. If you also want to run the workflow over records that already exist, enable **historic backfill**.

* **Go-forward (default):** only new changes from this point on.
* **Backfill:** Stacksync replays your existing records through the trigger once, so the workflow processes the back-catalog too.

<Callout type="warn">
  Backfill can generate a large number of executions on objects with many existing records. Apply filter conditions first, and start on a smaller object if you want to validate behavior before backfilling everything.
</Callout>

Questions about setting up an App Trigger? Reach us in the Slack community or at [hello@stacksync.com](mailto:hello@stacksync.com).

# Automated Schedule

Source: https://docs.stacksync.com/agentic-workflows/triggers/automated-schedule

The Automated Schedule trigger runs your workflow automatically at a configured time interval. No incoming data or HTTP request is needed and the workflow fires on its own.

## 1. Add the Trigger

1.1 Create a workflow and click **Create Trigger**.

1.2 Select **Automated Schedule** from the trigger menu.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/select-trigger-automated-schedule.webp" alt="&#x22;Choose how to trigger your workflow&#x22; screen with the &#x22;Automated schedule&#x22; popular trigger highlighted and pointed out by an arrow." width="1600" height="828" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Configure your Schedule

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/automated-schedule-cron-configuration.webp" alt="&#x22;Configure your trigger&#x22; panel for an automated schedule: cron set to Every Day at 00:00 UTC, plus Start Time date and time fields." width="1600" height="1146" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Fill in the following fields in the configuration panel:

**Module Name:** give your trigger a descriptive name. The Module ID is auto-generated from the name.

**Cron Expression:** choose how often the workflow runs using the visual schedule builder. Select a frequency and set the time in UTC:

| Frequency options |
| ----------------- |
| Minute            |
| Hour              |
| Day               |
| Week              |
| Month             |
| Year              |

**Start Time:** set the date and time (UTC) when the schedule becomes active.

**Enable error handling:** optionally enable error handling to control workflow behaviour if an execution fails.

## 3. Save the Workflow

Save the workflow to activate the schedule. The workflow will automatically run at every interval defined by your cron expression from the configured start time.

# Email Trigger

Source: https://docs.stacksync.com/agentic-workflows/triggers/email-trigger

Email Trigger enables inbound email ingestion for workflows by exposing a dedicated, Stacksync-managed address. Each received email deterministically creates a workflow execution and provides the normalized email payload to downstream modules for processing.

## 1. Add the Email Trigger Module

1.1 Create a workflow and click on **Create Trigger**.

1.2 Add **Receive Email** from the Stacksync modules.

1.3 Connect the trigger to Input module to enable processing.

1.4 Save the workflow to activate the trigger.<br />

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/workflow-create-trigger-button.webp" alt="Workflow designer with a POST Trigger and an arrow pointing to the &#x22;Create Trigger&#x22; button next to the Input node to add an email trigger." width="1600" height="821" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/trigger-modules-receive-email.webp" alt="&#x22;Email Trigger Demo&#x22; workflow with the Trigger Modules panel searched for &#x22;rec&#x22; and the &#x22;Receive Email&#x22; standard module highlighted." width="1600" height="921" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Operational Behavior

* Each Email Trigger instance provisions a unique email address bound to this workflow.
* Multiple Email Trigger modules can be added to the same workflow, each receives a distinct email address.
* Activation requires a edge connection to input node.
* Disconnecting edge pauses ingestion.
* Deleting the module disables ingestion.

## 2. Get the Workflow Email Address

2.1 Open the module configuration panel.

2.2 Copy the **Workflow Email Address** displayed.

### Example

```
w_6.wf_3279abcf0fac48e18ca437478844035c.example@stacksync.email
```

### Constraints

* Domain: `@stacksync.email`.
* Activation: immediate after connect and saved.

## 3. Configure a Custom Alias (Optional)

3.1 Enter a human-friendly alias in the alias field.

3.2 Confirm availability.

3.3 Save to apply changes.

### Alias Format

```
{alias}@stacksync.email
```

### Examples

* `order-intake@stacksync.email`
* `team.alerts@stacksync.email`
* `onboarding_requests@stacksync.email`

### Alias Requirements

* Length greater then 3 characters.
* Characters: lowercase letters, numbers, `.`, `-`, `_`.

### Alias Behavior

* Alias activation is immediate upon save.
* The previously configured alias is disabled immediately upon change.
* The system-generated workflow email address remains permanently active.
* When an alias is configured, both the workflow email address and the alias independently trigger the same workflow.<br />

  <figure>
    <img src="/https/docs.stacksync.com/images/agentic-workflows/receive-email-inbound-address-alias.webp" alt="Receive Email trigger's Inbound email configuration showing the generated workflow email address and an optional alias &#x22;demo&#x22; marked Available." width="1600" height="922" loading="lazy" decoding="async" />

    <figcaption />
  </figure>

## 4. Email Payload Available to the Workflow

4.1 **Email Fields**

| Field       | Description                                   | Example                              |
| ----------- | --------------------------------------------- | ------------------------------------ |
| from        | Sender address                                | `customer@example.com`               |
| to          | Recipient address(es)                         | `order-intake@stacksync.email`       |
| subject     | Subject line                                  | `New order — #4021`                  |
| text        | Plain-text body                               | `Please process the order...`        |
| html        | HTML body (if present)                        | `<p>Please process the order...</p>` |
| headers     | Standard headers (message-id, reply-to, etc.) | —                                    |
| attachments | Attachment list                               | See 4.2                              |

4.2 **Attachments** (auto-ingested and stored securely)

| Property     | Description                     | Example           |
| ------------ | ------------------------------- | ----------------- |
| filename     | Original file name              | `invoice.pdf`     |
| content_type | MIME type                       | `application/pdf` |
| file_id      | Reference for downstream access | `file_a1b2c3d4`   |

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/email-trigger-execution-payload-output.webp" alt="Execution log output for an email trigger run, showing the body with attachments (content_type, file_id, filename), cc, email_id, from and html." width="1600" height="923" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Email Routing & Operations

5.1 **Address Uniqueness & Isolation**

* Each Email Trigger is assigned a unique, Stacksync-managed email address.
* Emails sent to that address are routed exclusively to the workflow where the trigger is configured.

5.2 Pause ingestion: disconnect the Email Trigger module.

5.3 Resume ingestion: reconnect and save.

5.4 Address rotation: update alias and notify senders.

# Triggers

Source: https://docs.stacksync.com/agentic-workflows/triggers

A **Trigger** is what starts your workflow. Every workflow listens for an event or condition and fires the workflow when that condition is met.

## Trigger Types

Stacksync supports multiple built-in trigger types

### Popular Triggers

| Trigger                      | Best for                                            |
| ---------------------------- | --------------------------------------------------- |
| Receive Webhooks/HTTP Events | Webhooks, manual runs, external system integrations |
| Automated Schedule           | Recurring syncs, automated reports, polling         |
| Email Trigger                | Processing inbound emails, invoices, notifications  |

### App Triggers

Stacksync supports app-specific triggers from your connected integrations. For example, firing a workflow when a new record is created in Salesforce or when a payment is received in Stripe.

Browse all available triggers from the trigger selection menu in the workflows

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/workflow-app-triggers-catalog-grid.webp" alt="&#x22;Search all triggers&#x22; catalog grid of app triggers such as Airtable, HubSpot, NetSuite, Postgres and Salesforce, with others marked Request Access." width="1600" height="1072" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Cards>
  <Card title="Receive Webhook/HTTP Events" href="/https/docs.stacksync.com/agentic-workflows/triggers/receive-webhook-http-events" />
</Cards>

<Cards>
  <Card title="Automated Schedule" href="/https/docs.stacksync.com/agentic-workflows/triggers/automated-schedule" />
</Cards>

<Cards>
  <Card title="Email Trigger" href="/https/docs.stacksync.com/agentic-workflows/triggers/email-trigger" />
</Cards>

<Cards>
  <Card title="App Triggers" href="/https/docs.stacksync.com/agentic-workflows/triggers/app-triggers" />
</Cards>

***

# Receive Webhook/HTTP Events

Source: https://docs.stacksync.com/agentic-workflows/triggers/receive-webhook-http-events

The Webhook Trigger starts your workflow when an incoming HTTP POST request is received. Use it to integrate with external systems, receive data from third-party apps, or trigger workflows manually via API.

## Receive Webhooks / HTTP Events is the default trigger configured in every new workflow.

### 1. Activate the Trigger

1.1 Create a workflow.

1.2 Save the workflow to activate the trigger.

Once saved, your unique Trigger URL is automatically generated and visible directly in the trigger module.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/webhook-trigger-configure-panel.webp" alt="&#x22;Configure your trigger&#x22; panel for the webhook trigger: Request Type async, Method POST, API Keys, and Body, Headers and Query Parameters options." width="1600" height="852" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/webhook-trigger-run-example-curl.webp" alt="Trigger Run tab, &#x22;Trigger your workflow&#x22;, showing the Example cURL POST request to the workflow's unique trigger URL." width="1600" height="970" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Run your Workflow

Click **Run** in the workflow designer to fire the workflow instantly.

### 3. Payload Available to the Workflow

You can define the expected body fields directly in the trigger configuration panel. Click **+ Add** under the **Body** section to add a key and set its type.

<figure>
  <img src="/https/docs.stacksync.com/images/agentic-workflows/webhook-trigger-body-field-definition.webp" alt="Webhook trigger configuration with a Body key &#x22;exampleBody&#x22; of type string added, and arrows pointing to the + Add buttons for body, headers and query." width="1116" height="1552" loading="lazy" decoding="async" />

  <figcaption />
</figure>

#### Request Fields

| Field               | Description            | Example                                |
| ------------------- | ---------------------- | -------------------------------------- |
| `method`            | HTTP method used       | `POST`                                 |
| `body`              | Full JSON request body | `{"order_id": "123"}`                  |
| `headers`           | HTTP request headers   | `{"Content-Type": "application/json"}` |
| `queary parameters` | URL Query Parameters   | `{"page": "1", "limit": "10"}`         |

# Email

Source: https://docs.stacksync.com/ai-agents/genie-interfaces/email

Give a genie its own email address, send it a mail, get its answer as a reply in the same thread.

### 1. Add the Email interface

Open your genie → **Interfaces** → **Add** → **Email**.

Choose the genie's inbound email address and click **Save**.

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/genie-configure-email-interface.webp" alt="&#x22;Configure email interface&#x22; dialog for a genie, asking for an inbound Email address ending in @stacksync.email, with Cancel and Save." width="1600" height="877" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Write to it

Send an email to the genie's address with your request in the subject or body. The genie replies to the thread. Follow-up emails in the same thread keep the conversation context, and attachments you send are read by the genie.

<Callout type="warn">
  Anyone who knows the address can email the genie, but **access rights still apply**: senders who aren't Stacksync workspace members only get answers if the genie's access rights are set to **Public (authentication not required)**.
</Callout>

## Troubleshooting

| Symptom                       | Check                                                                  |
| ----------------------------- | ---------------------------------------------------------------------- |
| No reply                      | Is the Email interface saved with an address? Is the genie **Active**? |
| No reply for external senders | **Access rights** — set to Public.                                     |

# Google Chat

Source: https://docs.stacksync.com/ai-agents/genie-interfaces/google-chat

Connect a genie to Google Chat and talk to it in direct messages or by @mentioning it in a space.

The genie answers through a **Chat app that you own**, created in your organization's Google Cloud project. Setup has two halves: a **Google Cloud admin** creates the Chat app and its service account key, and a **Stacksync workspace admin** connects it to your genie.

<Callout type="info">
  Your Google Cloud project must belong to the same Google Workspace organization as the people who will talk to the genie. A Chat app that isn't published to the Marketplace is only available inside its own organization.
</Callout>

### 1. Enable the Google Chat API (Google Cloud admin)

In the [Google Cloud console](https://console.cloud.google.com/), pick the project that will hold the Chat app, open **APIs & Services** → **Library**, search for **Google Chat API** and click **Enable**.

### 2. Create a service account and its key

Open **IAM & Admin** → **Service Accounts** → **Create service account**. Name it, for example `stacksync-genie`, click **Create and continue**, skip the optional roles and click **Done**.

Open the new service account → **Keys** → **Add key** → **Create new key** → **JSON** → **Create**. A JSON key file downloads.

<Callout type="warn">
  The key file is a credential. Paste it only into the Stacksync connection form in the next step, and delete the file from your computer afterwards.
</Callout>

### 3. Create the Google Chat connection

In Stacksync: **Connections** → **Create new connection** → **Google Chat**. Paste the full contents of the JSON key file into **App credentials JSON** and finish the steps.

### 4. Attach the connection to your genie

Open your genie → **Interfaces** → **Add** → **Google Chat** → select the connection.

The dialog shows the **HTTP endpoint URL** for this connection, in the form `https://genies.stacksync.com/v1/google-chat/?connection=<connection id>`. Copy it with the copy button; you need it in the next step. Leave the dialog open.

### 5. Configure the Chat app (Google Cloud admin)

Back in the Google Cloud console, open **APIs & Services** → **Google Chat API** → **Configuration** and set:

| Setting                                   | Value                                                                                            |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------ |
| Build this Chat app as a Workspace add-on | Leave it **checked** (the default), the setup Stacksync supports. Unchecking it can't be undone. |
| App name                                  | `Genie`                                                                                          |
| Avatar URL                                | `https://i.imgur.com/8LJQlIh.png`                                                                |
| Description                               | A short description, for example `Stacksync AI assistant`                                        |
| Interactive features                      | On                                                                                               |
| Join spaces and group conversations       | On                                                                                               |
| Connection settings                       | **HTTP endpoint URL**, then **Use a common HTTP endpoint URL for all triggers**                  |
| HTTP endpoint URL                         | The URL you copied in step 4                                                                     |
| Visibility                                | The people or groups in your organization who may use the genie                                  |
| Log errors to Cloud Logging               | On                                                                                               |

Click **Save**.

<Callout type="info">
  Editing this page needs the **Chat Apps Owner** role (`chat.bots.update`) on the project. If the page says you don't have permission, ask your Google Cloud admin to grant it or to fill in the page.
</Callout>

Then return to the Stacksync dialog, tick **I have updated the HTTP endpoint URL in Google Cloud** and click **Save**.

### 6. Set access rights

If the people in your Visibility list don't all have Stacksync accounts, open the genie's **Access rights** tab and set **Who can use the Genie** to **Public (authentication not required)**. Otherwise the genie only answers Stacksync workspace members.

### 7. Talk to it

* **In a direct message:** open [Google Chat](https://chat.google.com/), click **New chat**, search for **Genie** (or the app name you chose) and send it a message. No mention needed.
* **In a space:** type `@Genie` (or the app name you chose), select it from the results and add your question. The first time, Chat offers **Add to space**; click it. You can also add the app from the space name → **Apps & integrations** → **Add apps**.

The genie replies in the same thread. A newly saved Chat app can take a few minutes to appear in search.

<Callout type="info">
  One Chat app sends its messages to one HTTP endpoint URL, so it serves one Google Chat connection. To give another genie or workspace its own Google Chat presence, create a separate Chat app with its own service account.
</Callout>

## Troubleshooting

| Symptom                                                              | Check                                                                                                                                                 |
| -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| The app doesn't appear in Chat search                                | Are you listed under **Visibility**? Is your account in the same Google Workspace organization as the Cloud project? Wait a few minutes after saving. |
| The app says it is not responding                                    | Is the **HTTP endpoint URL** in the Chat app configuration exactly the URL shown in Stacksync, including `?connection=`?                              |
| "I couldn't find a Genie currently available to handle this request" | **Access rights**: you are not a recognized user of the genie. Set the genie to Public, or check that the genie is **Active**.                        |
| People in a space see the app but can't message it                   | They are not in the Chat app's **Visibility** list.                                                                                                   |
| You can't create a key for the service account                       | An organization policy blocks service account key creation. Ask your Google Cloud admin.                                                              |

# Microsoft Teams

Source: https://docs.stacksync.com/ai-agents/genie-interfaces/microsoft-teams

Connect a genie to Microsoft Teams and talk to it in team channels or 1:1 chat.

Setting up Teams has two halves: your **Teams administrator** installs the Genie app into your Microsoft Teams organization, and a **Stacksync workspace admin** connects it to your genie.

### 1. Download the Genie app package

Download the app package below. It contains the Teams app manifest and icons.

<FileDownload name="Genie-Teams-v1.0.0.zip" href="/https/docs.stacksync.com/files/ai-agents/genie-teams-v1-0-0.zip" kind="archive" size="15KB" />

### 2. Install it in your Teams organization (Teams admin)

<Callout type="info">
  Only an Admin can upload the app on Microsoft Teams
</Callout>

Open **Teams** → **Store** → **Manage apps**

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/microsoft-teams-apps-sidebar-button.webp" alt="Microsoft Teams with the Genies-Demo channel open and an arrow pointing to the Apps (+) button in the left sidebar." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/microsoft-teams-manage-your-apps.webp" alt="Microsoft Teams Apps page listing the Stacksync Genie app under &#x22;Built for your org&#x22;, with &#x22;Manage your apps&#x22; highlighted at the bottom." width="1600" height="1784" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click **Actions** → **Upload new app** and select the downloaded zip.

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/microsoft-teams-upload-app-org-catalog.webp" alt="Teams &#x22;Upload an app&#x22; dialog with &#x22;Upload an app to your org's app catalog&#x22; highlighted, used to install the Genie app zip." width="1600" height="1127" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Once uploaded, the app is available to your organization. Users find it in Teams under **Apps** → **Built for your org** → **Genie** → **Add**, and can also **Add it to a team** to use it in channels.

<Callout type="info">
  On newly created Microsoft 365 tenants, the app management section can take a while to finish provisioning. If the upload option is missing, try again later.
</Callout>

### 3. Create the Microsoft Teams connection

In Stacksync: **Connections** → **Create new connection** → **Microsoft Teams** → sign in with your Microsoft work account.

<Callout type="warn">
  The account used here must be able to grant **admin consent**

  The connection needs organization-level permissions (such as reading channel message history for context). If the consent screen says "Need admin approval," ask your Microsoft 365 administrator to create the connection or approve the app.
</Callout>

### 4. Attach the connection to your genie

Open your genie → **Interfaces** → **Add** → **Teams** → select the connection → **Save**.

### 5. Set access rights

If your Teams organization includes people without Stacksync accounts, set the genie's **Access rights** to **Public (authentication not required)** — otherwise only Stacksync workspace members get answers.

### 6. Talk to it

* **In a team channel:** type `@Genie` and **select it from the autocomplete popup**, then add your question. Typing the characters without selecting the suggestion sends plain text the bot never receives.
* **In a 1:1 chat:** just message it — no mention needed.

The genie posts the reasoning message and then finally the answer. Replies stay in the thread.

## Troubleshooting

| Symptom                                              | Check                                                                                                                                            |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Complete silence                                     | Is the Teams interface attached to a connection? Was the connection created by someone in the **same Teams organization** you're messaging from? |
| Generic answers that don't match your genie          | **Access rights** — your message was handled by the default assistant because you're not a recognized user. Set the genie to Public.             |
| `@Genie` doesn't appear in autocomplete in a channel | The app hasn't been **added to that team** — add it via Apps → Built for your org.                                                               |

# Slack

Source: https://docs.stacksync.com/ai-agents/genie-interfaces/slack

Connect a genie to Slack and talk to it by @mentioning it in your channels.

Setup is a single flow: creating the **Slack Genie connection** in Stacksync automatically installs the Genie app into your Slack workspace.

### 1. Create the Slack Genie connection

In Stacksync, go to **Connections** → **Create new connection** → select **Slack Genie**.

A Slack window opens asking you to authorize the Genie app for your Slack workspace. Review the permissions and click **Allow**.

<Callout type="info">
  Clicking **Allow** does everything at once: it **adds the Genie app to your Slack workspace** (you'll see it appear under Apps in Slack), connects it to Stacksync, and starts delivering your channel mentions to your genies. There is no separate download or installation step.
</Callout>

### 2. Attach the connection to your genie

Open your genie → **Interfaces** → **Add** → **Slack**. Select the connection you just created.

Optionally, add **channel affinity** instructions — guidance for where the genie should send messages (for example: *"Error reports go to #alerts, everything else stays in the thread."*).

Click **Save**.

### 3. Set access rights

If your Slack workspace includes people who don't have Stacksync accounts, open the genie's **Access rights** tab and set **Who can use the Genie** to **Public (authentication not required)**. Otherwise the genie only answers Stacksync workspace members.

### 4. Talk to it

The Genie app is already in your workspace from step 1 — just invite it to a channel:

```
/invite @Genie
```

Then mention it with a question:

```
@Genie summarize yesterday's new Salesforce leads
```

The genie replies in a thread, showing its progress live while it works.

## Troubleshooting

| Symptom                                          | Check                                                                               |
| ------------------------------------------------ | ----------------------------------------------------------------------------------- |
| No reply at all                                  | Is the Slack interface attached to a connection? Is the bot invited to the channel? |
| No reply for some people                         | **Access rights** — non-Stacksync users need Public access.                         |
| Replies stopped after reinstalling the Slack app | Recreate the Slack Genie connection and re-attach it to the genie.                  |

# Genies

Source: https://docs.stacksync.com/ai-agents

Genies are AI agents that live in your Stacksync workspace. Each genie has a **master prompt** that defines its job, and **skills** built on your existing connections (Salesforce, NetSuite, Hubspot, and more) that the genie can use to get real work done.

You talk to genies through **interfaces**: Slack, Microsoft Teams, Google Chat or Email. One genie can have several interfaces at once, the same copilot can answer a Slack mention, a Teams thread, a Google Chat message and an inbound email.

## Create a genie

### 1. Click Genie in Create Resources

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/create-resource-genies-tile.webp" alt="Stacksync welcome page with the &#x22;Genies&#x22; tile highlighted among the create-resource tiles like Workflows, Syncs and Connections." width="1600" height="977" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Describe the Genies task

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/genie-job-description-prompt.webp" alt="&#x22;Give your Genie a job description&#x22; screen with the prompt &#x22;Create a Genie that enriches my contacts&#x22; and a &#x22;Build genie&#x22; button." width="1600" height="1032" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click Build Genie and review the Genie's instructions on the next page

### 3. Add an Interface

Open the genie's **Interfaces** section and click **Add**. Follow the setup page for your channel:

* Slack
* Microsoft Teams
* Google Chat
* Email

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/create-genie-interfaces-step.webp" alt="&#x22;Create a new Genie&#x22; Interfaces step listing Slack, Microsoft Teams and Email channels, each with a Configure link." width="1600" height="500" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Add Skills

Skills are modules the genie may execute (create a record, send a message, run a query). Each skill uses one of your workspace connections. You can require an **approval** before a skill runs.

Your workspace's [private workflow connectors](/developers/getting-started-with-stacksync-cli/host-a-private-workflow-connector) appear here with your other apps. When the setup suggests one of their modules, it turns on **Require approval**.

<figure>
  <img src="/https/docs.stacksync.com/images/ai-agents/genie-skills-hubspot-modules.webp" alt="Genie Skills step with a HubSpot skill where Search Records and Update Records are enabled, each with a &#x22;Require approval&#x22; toggle." width="1600" height="709" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Review the Genie's configurations and Click Create

Your Genie is now ready to be used for your Enterprise use cases

## Access rights

<Callout type="warn">
  **If your genie doesn't answer teammates, check this first.** By default, a genie only answers people who are signed-in members of your Stacksync workspace. To let everyone in a connected channel use the genie, open the genie's **Access rights** tab and set **Who can use the Genie** to **Public (authentication not required)**.
</Callout>

## Status

The **Access rights** tab also has a status toggle. Setting a genie to **Inactive** stops it from handling new messages on every interface and suspends its scheduled tasks.

# Authentication

> Authenticate Stacksync API requests with a workspace API key or a user API key in the Authorization header

Source: https://docs.stacksync.com/api-reference/authentication

Every request carries one API key, as a bearer token in the `Authorization` header:

```bash
curl https://api.stacksync.com/v1/workspaces \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## API keys

| Key               | Starts with  | Created by                                                      | Acts with                                            |
| ----------------- | ------------ | --------------------------------------------------------------- | ---------------------------------------------------- |
| Workspace API key | `workspace_` | A workspace owner, under **Workspace settings > Stacksync API** | Editor rights, on its own workspace only             |
| User API key      | `user_`      | Any member, under **Profile > Stacksync API**                   | The user's own role in each workspace they belong to |

Use a workspace API key for an integration that serves one workspace. Use a user API key when the integration acts for one person, in every workspace they belong to: it can do what that person can do in the app.

## Requests

* Send the key in the `Authorization: Bearer <key>` header only. Never put it in a URL, and never ship it in client-side code such as a browser app or a mobile app.
* `POST`, `PUT` and `PATCH` requests must send `Content-Type: application/json`.
* Most answers carry an `X-Request-Id` header. Quote it when you contact support about a request.

## Authentication errors

An authentication or permission failure always answers **403**, never 401. The `error` field names the cause:

| `error`                 | Cause                                                                                                                                                |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Invalid API Key`       | The key is invalid, the workspace in the URL is not the key's workspace, or the key's user is not a member of that workspace                         |
| `Authorization Error`   | The `Authorization` header is missing or is not `Bearer <key>`                                                                                       |
| `Authentication Error`  | Your role in the workspace does not allow the operation (for example, a viewer's user API key on a change), or the resource is not in this workspace |
| `Insufficient Scope`    | A read-only sign-in tried to change something                                                                                                        |
| `Workspace Unavailable` | The workspace has been deleted                                                                                                                       |
| `Content-Type Error`    | A `POST`, `PUT` or `PATCH` request did not send `Content-Type: application/json`                                                                     |

```json
{ "error": "Invalid API Key", "msg": "The API Key provided in the request is invalid" }
```

See [Errors](/api-reference/errors) for every other status.

## Keep keys safe

* Store keys in a secret manager or your platform's encrypted environment variables, never in source control.
* To rotate a key, regenerate it in the Stacksync app where it was created, then update the integrations that use it.

## AI assistants

AI assistants such as Claude, ChatGPT or Cursor don't need an API key: they connect to the [Stacksync MCP](/mcp) and sign in as the person using them. See [MCP authentication](/mcp/authentication).

# Errors

> The error bodies and HTTP statuses of the Stacksync API, and which errors to retry

Source: https://docs.stacksync.com/api-reference/errors

A failed request answers a 4xx status and a JSON body that names the problem.

## Error body

Operations of the current conventions answer:

```json
{ "error": "<kind of error>", "msg": "<what went wrong>", "field": "<parameter or field at fault, or null>" }
```

| Field   | Meaning                                                 |
| ------- | ------------------------------------------------------- |
| `error` | The kind of error, stable enough to branch on           |
| `msg`   | What went wrong, in plain words, for logs and people    |
| `field` | The parameter or body field at fault, when there is one |

The older operations of syncs, sync triggers, sync webhooks, sync issues and connection creation answer a body with at least `error`, holding the message:

```json
{ "error": "<what went wrong>" }
```

Each operation's page lists the statuses it answers and their body.

## Statuses

| Status | Meaning                                                                                                                                                                        | What to do                                                                               |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- |
| 400    | The request is invalid: a parameter or body field is missing, of the wrong type or out of range. With `error` `Unexpected Error`, Stacksync could not complete a valid request | Fix the request; `field` names the culprit. `Unexpected Error` is temporary: retry later |
| 403    | Authentication or permission failure. The API never answers 401                                                                                                                | See [Authentication](/api-reference/authentication#authentication-errors)                |
| 404    | The resource doesn't exist in this workspace and region                                                                                                                        | Check the id and the `region`                                                            |
| 409    | The request conflicts with the resource's state, or a request with the same `Idempotency-Key` is still running                                                                 | Read the resource, or wait and retry                                                     |
| 422    | The `Idempotency-Key` was already used with a different request. Some older operations also answer 422 when the request fails validation; their pages list it                  | Use a new key for a new request, or fix the request                                      |

Most answers, errors included, carry an `X-Request-Id` header. Quote it when you contact support.

## When to retry

Retry the same request, with an increasing delay between attempts, only when:

* the answer is **400** with `error` `Unexpected Error`: a temporary failure on Stacksync's side;
* the answer is **409** because a request with the same `Idempotency-Key` is still running.

For creates, retry with the same `Idempotency-Key`, so a retry never creates the resource twice. Every other error answers the same until the request changes: fix the request, the key or the `region` instead of retrying.

No rate limit is published.

# For AI agents

> Everything an AI agent needs to call the Stacksync API, on one screen

Source: https://docs.stacksync.com/api-reference/for-ai-agents

<Callout type="info">
  The whole API is one OpenAPI document, [`/openapi.json`](https://docs.stacksync.com/openapi.json), and every page of this reference is Markdown when you add `.md` to its URL.
</Callout>

| Topic     | Rule                                                                                                                                     |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Base URL  | `https://api.stacksync.com`; Genie runs: `https://genies.stacksync.com`                                                                  |
| Header    | `Authorization: Bearer <workspace_… or user_… API key>`; add `Content-Type: application/json` on `POST`, `PUT` and `PATCH`               |
| Workspace | `GET /v1/workspaces` returns each `workspace_id` and its `default_region`                                                                |
| Region    | Pass `region=<default_region>` (`besg` or `usnv`) on operations that list a `region` parameter; for an existing resource, its own region |
| Lists     | `limit` 1 to 200 (default 50) and `offset`; answer `{ "data": [], "has_more": false, "limit": 50, "offset": 0 }`                         |
| Retries   | Send an `Idempotency-Key` header on creates; `"validate_only": true` checks a write without writing (204)                                |
| Errors    | `{ "error", "msg", "field" }`; authentication failures are 403, never 401; retry `Unexpected Error` (400) later with backoff             |

## Read the reference

* Every operation page is Markdown: append `.md` to its URL, for example [`/api-reference/queues/list_queues.md`](https://docs.stacksync.com/api-reference/queues/list_queues.md), or request it with `Accept: text/markdown`.
* The OpenAPI 3.1 document: [`https://docs.stacksync.com/openapi.json`](https://docs.stacksync.com/openapi.json), and [`/openapi-genies.json`](https://docs.stacksync.com/openapi-genies.json) for Genie runs.
* The docs MCP server, `https://docs.stacksync.com/api/mcp`: `search` finds an operation, `get_page` returns its page as Markdown. See [Docs MCP server](/docs-for-ai/mcp-server).

## Act in a workspace

An AI assistant working for a person, rather than an integration with its own key, uses the [Stacksync MCP](/mcp): the person signs in, and their workspace's MCP Gateway Policies apply.

# Stacksync API

> The REST API of Stacksync: workspaces, connections, syncs, workflows, Genies, queues, variables, folders, files, knowledge bases, app triggers, email aliases and API proxies

Source: https://docs.stacksync.com/api-reference

The Stacksync API manages your workspace's resources over HTTPS with JSON: create and run syncs, workflows and Genies, and manage the connections, queues, variables and files they use. This reference lists every operation by resource in the sidebar; each page shows its parameters, its answers, code samples in curl, Python and JavaScript, and a form to try it. The same reference is one machine-readable document: [`/openapi.json`](https://docs.stacksync.com/openapi.json) (OpenAPI 3.1).

<Callout type="info">
  Are you an AI agent? Read [`/openapi.json`](https://docs.stacksync.com/openapi.json) for the whole API, or any page of this reference as Markdown by adding `.md` to its URL. [For AI agents](/api-reference/for-ai-agents) has the rules on one screen.
</Callout>

## Base URLs

| API           | Base URL                       |
| ------------- | ------------------------------ |
| Stacksync API | `https://api.stacksync.com`    |
| Genie runs    | `https://genies.stacksync.com` |

All paths start with `/v1`. See [Versioning](/api-reference/versioning).

## One header

Every request carries an API key in the `Authorization` header. There is no OAuth flow and no request signature.

```bash
curl https://api.stacksync.com/v1/workspaces \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

There are two types of key, the workspace API key (`workspace_…`) and the user API key (`user_…`). [Authentication](/api-reference/authentication) explains which to use and what each can do.

## Workspaces and regions

Resources belong to a workspace and live in one of two data regions, `besg` (Europe) or `usnv` (United States). Paths name the workspace (`/v1/workspaces/{workspace_id}/…`) and operations on a regional resource take a `region` query parameter. [Workspaces and regions](/api-reference/workspaces-and-regions) shows how to find both.

## Answers

Lists answer one envelope, with offset pagination:

```json
{ "data": [], "has_more": false, "limit": 50, "offset": 0 }
```

Errors answer a 4xx status and a body that names the problem:

```json
{ "error": "Invalid API Key", "msg": "The API Key provided in the request is invalid" }
```

The older sync operations page and report errors their own way; their pages show it. Most answers carry an `X-Request-Id` header: quote it when you contact support. Details in [Pagination and idempotency](/api-reference/pagination-and-idempotency) and [Errors](/api-reference/errors).

## Try it from this page

Each operation page has a form to send the request. The key you type is sent from your browser straight to `api.stacksync.com`, as your own code would send it. It never passes through docs.stacksync.com and is not stored by Stacksync; your browser keeps it only for this tab, until you close it.

## For AI agents

Agents read the reference as Markdown: add `.md` to any page URL, or load the OpenAPI document. [For AI agents](/api-reference/for-ai-agents) is the one-screen version of these rules.

# Pagination and idempotency

> Page through Stacksync API lists, retry creates safely with an Idempotency-Key, and check a write with validate_only

Source: https://docs.stacksync.com/api-reference/pagination-and-idempotency

## Pagination

Lists take `limit` and `offset` query parameters and answer one envelope:

| Parameter | Values                   |
| --------- | ------------------------ |
| `limit`   | 1 to 200, default 50     |
| `offset`  | Items to skip, default 0 |

```json
{ "data": [], "has_more": true, "limit": 50, "offset": 0 }
```

While `has_more` is `true`, request the next page with `offset` + `limit`:

```bash
curl "https://api.stacksync.com/v1/workspaces/1234/queues?region=usnv&limit=50&offset=50" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

The sync lists (syncs, sync triggers, sync webhooks and sync issues) predate this convention and page their own way: each one's page shows its parameters and answer.

## Idempotency

Create operations accept an `Idempotency-Key` header, so a retry after a timeout or a dropped connection never creates the resource twice:

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/1234/queues?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a1e-orders-queue" \
  -d '{ "queue_name": "Orders", "flush_batch_size": 100, "flush_record_max_age": 60 }'
```

* The key is 1 to 255 visible ASCII characters. A UUID per logical request works well.
* For 24 hours, a retry with the same key and the same request creates nothing and answers the first result again, with the header `Idempotent-Replayed: true`.
* The same key with a different request answers **422**.
* A retry while the first request is still running answers **409**: wait, then retry.

An operation accepts the header when its page lists `Idempotency-Key` under its header parameters.

## Validate a write

Write operations that list `validate_only` in their request body run every check of the write without writing anything. With `"validate_only": true`, a valid request answers **204** with no body, and an invalid one answers the error the write would. Use it to check a request before you send it for real. A few operations answer a check result instead of 204; their page shows it.

# Versioning

> How the Stacksync API is versioned and which changes can happen within /v1

Source: https://docs.stacksync.com/api-reference/versioning

## Versioning

The API version is the first segment of the path: `/v1`. Changes to `/v1` are additive:

* new operations, new optional parameters and request fields;
* new fields in answers.

Write clients that ignore fields they don't know. Any other change will be announced in the [changelog](/changelog).

The machine-readable description of the current version is the OpenAPI document [`/openapi.json`](https://docs.stacksync.com/openapi.json), and [`/openapi-genies.json`](https://docs.stacksync.com/openapi-genies.json) for Genie runs.

# Workspaces and regions

> Find the workspace id and the data region every Stacksync API path and regional resource needs

Source: https://docs.stacksync.com/api-reference/workspaces-and-regions

Every resource belongs to a workspace, and most live in one data region. Paths name the workspace, and operations on a regional resource take its region as the `region` query parameter.

## Workspaces

Paths start with the workspace: `/v1/workspaces/{workspace_id}/…`. [List workspaces](/api-reference/workspaces/list_workspaces) returns the workspaces your key can act in, with your role in each and the workspace's default region:

```bash
curl https://api.stacksync.com/v1/workspaces \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

```json
{
  "data": [
    { "workspace_id": 1234, "workspace_name": "Acme", "role": "editor", "default_region": "usnv" }
  ],
  "has_more": false,
  "limit": 50,
  "offset": 0
}
```

A workspace API key lists its own workspace only. [Get a workspace](/api-reference/workspaces/get_workspace) returns one workspace, and [List workspace members](/api-reference/workspaces/list_workspace_members) its people and their roles.

## Regions

Each resource's data is stored and processed in one region:

| `region` | Location      |
| -------- | ------------- |
| `besg`   | Europe        |
| `usnv`   | United States |

[List regions](/api-reference/workspaces/regions/list_regions) returns them. A workspace can hold resources in both regions; its `default_region` is where new resources go by default.

* When you create a resource, pass `region=<default_region>` unless it must live elsewhere.
* When you read, change or delete a resource, pass the region it lives in. Lists and answers show each resource's region.
* When an operation's page doesn't list a `region` parameter, it reads every region.

```bash
curl "https://api.stacksync.com/v1/workspaces/1234/queues?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

All resources are served by `https://api.stacksync.com` whatever their region; Genie runs are served by `https://genies.stacksync.com`.

# Changelog

> New updates and improvements

Source: https://docs.stacksync.com/changelog

## November 2026

### Public pages inside private EOS apps

An internal app may need a customer intake form or a public information page while its operator screens stay private. Requiring every visitor to sign in adds friction; making the whole app public exposes more than the team intended.

**App Owners can now make selected URL paths public while keeping the rest of the app behind EOS authentication.** Add, search, or delete rules in **Users and Access → Publicly accessible routes**, or use `eos app public-routes` from the CLI. Exact paths such as `/contact` and wildcard rules such as `/forms/*` work on both Stacksync and custom domains. Rules contain paths only, so a domain change does not require rewriting them. Fully public apps show **All routes**.

A public page can depend on stylesheets, scripts, and images at other paths. **EOS automatically checks a newly added page's HTML and suggests exact static asset routes for review.** Choose which files to allow, then approve them; detection alone never changes access. Use **Check assets** to inspect an existing page, or `eos app public-routes check APP /contact --json`. Assets loaded later by JavaScript or CSS may need a separate check.

Run `eos update` for **CLI 5.7.2**, then read [public routes and asset suggestions](/enterprise-os/applications/managed-authentication#public-routes) for examples and wildcard behavior.

### Choose when EOS apps require sign-in again

Signing in again each morning interrupts staff using internal tools throughout the week. **Workspace admins can now choose how long app sign-ins last**, from **1 to 30 days** (default: 1), under **Workspace settings → Authentication → Require authentication again after**.

Each app follows its own workspace’s policy, even when a user belongs to several workspaces. The duration runs from the last sign-in; app activity does not extend it.

**EOS CLI 5.7.1** adds `eos workspace reauthentication show` and `eos workspace reauthentication set 3`, both with `--json`. Run `eos update` to upgrade. Learn more about [managed authentication](/enterprise-os/applications/managed-authentication).

### Share templates on the Stacksync Marketplace

Teams solve the same integrations again and again: closed deals that should become invoices, orders that should reach the ERP, contacts that should stay aligned between a CRM and a database. The people who built a working setup had no place to share it, and the next team started from a blank workspace.

**The [Stacksync Marketplace](https://marketplace.stacksync.com) lists ready-to-deploy templates: syncs, workflows, Genies and queues that solve a common integration.** Each template has a page that explains what it deploys, and instructions your AI assistant follows to build the same setup in your workspace, with your own connections.

**Partners and customers now publish their own templates from their AI assistant, through the Stacksync MCP.** Ask your assistant to create your partner profile, then to turn a sync, workflow or Genie you already run into a template. New marketplace tools in the Stacksync MCP create and update the profile and its logo, save templates as drafts, and publish them when you ask:

* **One profile per workspace.** Every template you share appears under your workspace's partner profile, with your logo, description, services and FAQ.
* **Nothing is public until you publish it.** A new profile is hidden and a new template is a draft.
* **Change one thing at a time.** Update a name, a logo or a template's instructions without resending the rest.
* **Editors and owners manage it.** Viewers can read the profile and templates; only a workspace owner can delete the profile.

The `sharing-templates-on-the-marketplace` skill guides your assistant through the whole flow, from picking the resources to writing instructions that never include credentials or customer data.

Read [Stacksync Marketplace](/mcp/share-templates) to create your profile and publish your first template.

### Deploy EOS applications from GitHub

A team can have a working application in GitHub and still depend on someone with a configured terminal to publish it. Repeating that handoff for each change slows the path from a useful prototype to a tool colleagues can use.

**Create and deploy an EOS app directly from its GitHub repository.** Select **Deploy a new app from GitHub** in Applications, name the app, and choose a repository and branch. Deploy the branch's current state immediately, then let merged pull requests trigger future deployments. The default flow uses the GitHub App and needs no workflow file.

Runtime variables can stay in EOS, outside the repository. Teams that already load configuration in a deployment pipeline can use the optional GitHub Actions workflow to send selected values with GitHub OIDC authentication. Existing installations can grant access to more repositories, and repository and branch lists refresh automatically.

GitHub builds appear in the normal deployment history. The previous working revision keeps its green **Healthy and serving traffic** badge until the new version deploys successfully. **EOS CLI 5.4.1** adds `eos app github` commands for app creation, connection, configuration, workflow download, and manual deployment; the AI-agent skill includes the same flow.

Read [Deploy from GitHub](/enterprise-os/applications/github-deployments), or run `eos update` and `eos skill save` to refresh your CLI and agent instructions.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/github-applications.png" alt="The Applications page in the Stacksync EOS workspace includes the blue Deploy a new app from GitHub button above the existing applications." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Start a new application from a GitHub repository directly from the Applications page.</figcaption></figure>
</div>

### Sync frequency in the API matches the sync page

**`max_records_sync_delay_in_seconds` now means the same as the sync page's Data sync frequency.** Send the interval you want, and read back the same value: a sync set to "At least once every 24 hours" answers `86400`, where it answered `43200` before. If your code reads or sets this field, update the values it uses.

| Data sync frequency            | API value |
| ------------------------------ | --------- |
| In real-time                   | `0`       |
| At least once every minute     | `60`      |
| At least once every 5 minutes  | `300`     |
| At least once every 15 minutes | `900`     |
| At least once every 1 hour     | `3600`    |
| At least once every 6 hours    | `21600`   |
| At least once every 24 hours   | `86400`   |

[Set a sync's frequency](/api-reference/syncs/update_sync_settings) through `PATCH /v1/workspaces/{workspace_id}/bases/{base_id}/settings`.

### Custom app roles and user identity in EOS

Protecting an app's sign-in page is only the first step. A finance tool still needs to distinguish an Accountant from an Approver, and a customer portal needs to know which person is making each API request. Maintaining those identities and permissions separately in every application adds work and makes access harder to manage.

**EOS now gives your UI and backend the same verified user identity, with a separate custom app role.** Each app starts with editable Admin, Editor, and Viewer roles. Add your own roles, assign them in **Users and Access**, and use the returned user ID, email, and app role to enforce your application's business permissions. App roles remain separate from EOS infrastructure permissions.

An app's backend can manage its own users and roles with a scoped **app access token**. Create and rotate multiple tokens in the new **App access tokens** tab. **EOS CLI 5.2.0** adds `eos app roles`, `eos app users`, and `eos app tokens` for the same workflows, including saving new tokens to a private file. Run `eos update` to upgrade.

The application gateway checks the current access policy on every request. Public apps admit anonymous traffic; private apps require an authorized user. API callers use personal bearer keys directly, with no JWT exchange. The roles, users, groups, and token tables now share a consistent design with search and clear empty states.

Learn how to [read the current user](/enterprise-os/applications/managed-authentication#read-the-current-user), [manage app roles and tokens](/enterprise-os/applications/roles-and-app-tokens), and [automate through the CLI](/enterprise-os/cli-reference#app-roles-users-and-tokens).

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/app-roles-and-users.png" alt="The EOS Users and Access tab shows default Admin, Editor, and Viewer app roles, independent EOS resource and app role columns, and searchable tables." width="1600" height="1310" loading="lazy" decoding="async" /><figcaption>Keep application roles separate from EOS resource permissions in Users and Access.</figcaption></figure>
</div>

### Private workflow connectors in Genies and MCP

**Connectors you host yourself now work in Genies and Stacksync MCP, not only in workflows.** Build a connector with the Stacksync CLI, run it on your own servers, and add its URL in **Developer Studio**. Only your workspace can use it, and there is no Stacksync review.

Its modules appear in the Genie skill picker with your other apps, and your AI assistant can list and run its actions through Stacksync MCP Gateway. When the Genie setup suggests one of its modules, it turns on **Require approval**. MCP Gateway Policies allow private connectors when they allow **All apps**, and every call appears in the MCP Activity Log.

[Learn how to host a private workflow connector](/developers/getting-started-with-stacksync-cli/host-a-private-workflow-connector).

### Connection rate limiting

**Set one request limit on a connection, and every sync and workflow that uses it keeps to it together.** When several syncs and workflows call the same system at once, they can go over its limit and get requests turned away. Now you tell Stacksync your provider's limit, and it holds all of them to it.

Choose the algorithm that matches your provider: concurrency, fixed window, sliding window, token bucket or leaky bucket. Then decide how the limit is shared: each workflow gets a guaranteed share and the syncs share one pool, and with capacity sharing on, idle resources lend their share to busy ones.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/netsuite-connection-rate-limiting.webp" alt="Rate limiting on a NetSuite connection with the Concurrency algorithm, capacity sharing on, and resource shares for a sync pool and eight workflows." width="1600" height="930" loading="lazy" decoding="async" />
</figure>

Available in beta for NetSuite connections: open the connection and go to **Advanced options**. [Learn how to set a connection rate limit](/connectors/setup-options/connection-rate-limiting).

## October 2026

### App Triggers for Genies

**Genies now start on their own when a record changes in a connected app.** Add an App Trigger to a Genie, choose the app, the connection and the table to watch, then pick the events: record created, updated or deleted. Optional conditions narrow it to the changes that matter, such as deals that move to Closed Won.

Each matching change starts one Genie run with the record and the fields that changed, and the Genie handles it as its instructions say. A trigger reacts to changes made after it is turned on. Record data is encrypted, and every run appears in the Log Explorer with the app it came from.

To add one, open a Genie's **Config** tab and, under **Interfaces**, select **Add** and then **Trigger**. [Learn more about Genies](/ai-agents).

### Manage custom domains with the EOS CLI

Teams automating app setup previously needed the dashboard or direct API calls to connect a custom hostname. **EOS CLI 5.1.0 adds `eos app domains` commands** to list, add, inspect, refresh, and delete domains from the selected workspace.

Add and show display DNS records and verification diagnostics; every command supports `--json`. Deletion asks for the exact hostname, while the original app URL remains available. Run `eos update` and follow the [custom-domain CLI guide](/enterprise-os/applications/custom-domains#configure-domains-with-the-eos-cli).

### Custom domains for EOS applications

A customer portal or shared business tool is easier to recognize at an address your organization owns. Moving from a platform URL to that address usually means coordinating DNS, HTTPS certificates, and application routing before anyone can use it.

**Give an EOS app your own hostname, with its interface and API at the same address.** App Owners can now connect up to five custom domains per app: add a hostname in **Applications → your application → Custom Domains**, copy the displayed DNS records, and track verification and HTTPS activation from the app's settings. The app keeps its existing access policy and default URL.

EOS verifies domain ownership and manages HTTPS certificates. Status refreshes automatically, and DNS checks explain how to fix missing records, incorrect verification values, duplicated domain names, or an incorrect routing target. Teams can keep deploying new versions to the same app without losing their custom URLs.

Applications should use relative API URLs or update their configured public base URL so links and requests stay on the custom hostname.

See [how to add a custom domain](/enterprise-os/applications/custom-domains), including DNS examples, verification states, permissions, and troubleshooting.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/app-custom-domains.png" alt="The EOS Custom Domains table shows hostname status, Refresh Status, and domain actions." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Connect a hostname to an existing app and follow DNS verification and HTTPS activation.</figcaption></figure>
</div>

### EOS CLI now supports Windows, Mac, and Linux

Windows users previously needed WSL to use EOS. **EOS CLI 5 now runs natively on Windows, Mac, and Linux**, including Intel and Apple Silicon Macs. The same commands work across all three.

Existing users upgrade automatically on their next normal command with updates enabled. Credentials and workspace selection are preserved. Run `eos --version` to check your version.

[Install EOS](/enterprise-os/quick-start#1-install-eos).

### Stacksync API reference

**Every operation of the Stacksync API, documented.** The API reference is now available in the Stacksync documentation, under **API Reference**: one page per operation with its parameters, request and response, and code samples in curl, Python and JavaScript. Every page also has a Markdown version for AI agents, and the whole API is described in the OpenAPI document [`/openapi.json`](https://docs.stacksync.com/openapi.json), with [`/openapi-genies.json`](https://docs.stacksync.com/openapi-genies.json) for Genie runs.

Start with the [API Reference overview](/api-reference), then [Authentication](/api-reference/authentication) and [Versioning](/api-reference/versioning).

### Guardrails now protect what AI assistants see

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-gateway-policy-guardrail-rules.webp" alt="An app in an MCP Gateway Policy expanded in the Stacksync app: its guardrails in plain language, and how the Stacksync AI Guardrail check applies them, with fields hidden from reads, fields never changed, actions not allowed and a condition checked on each change." width="1218" height="258" loading="lazy" decoding="async" />
  </figure>
</div>

**One sentence, enforced on every read and every change.** Write "Marketing cannot see deal amounts or revenue" in an app's guardrails, and the deal amount, with the fields that repeat it, is removed from everything an assistant reads through that app. The rest of the record still comes back, and the assistant tells the member what was hidden and whom to ask.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-guardrail-hidden-fields-answer.webp" alt="An AI assistant listing HubSpot deals through the Stacksync MCP, with the deal amount and total hidden by the Stacksync AI Guardrail check and the other fields shown." width="674" height="310" loading="lazy" decoding="async" />
  </figure>
</div>

**See how Stacksync applies your guardrails.** When a policy is saved, Stacksync turns each app's guardrails into rules: the fields hidden from reads, the fields that never change, the actions that are not allowed, the conditions Stacksync AI checks on each change, and the changes the member confirms first. Expand the app in the policy to see them.

**Harder to get around.** Archiving, deactivating or emptying a record counts as deleting it, a protected total includes the line items it is computed from, and a field renamed or written in another case is still the same field. Every outcome the assistant reports is labelled **Stacksync AI Guardrail check**.

Workspace owners set guardrails under each app of a policy in the **MCP Gateway Policies** tab of the **MCP** page. [Learn more](/mcp/gateway-policies#guardrails).

### Additional database users with granular permissions on EOS

A reporting tool may only need to read a few tables, while an application needs to update business records. Sharing the main database credentials gives both more access than they need and makes it harder to remove one integration without disrupting the others.

**Give each application or integration its own PostgreSQL user and permissions.** EOS now lets database owners create additional users, select the schemas and tables they can access, and choose whether they can read, insert, update, or delete rows. Separate metadata permissions control supported changes to schemas, tables, and columns, including creating schemas and tables.

Open a database’s **Database users** tab and select **Create database user** to configure access. Permissions start off, so you enable only what each user needs. You can update permissions, revoke an additional user, or reset passwords from EOS. The same user-management operations are available through the EOS CLI and its MCP tools for automated workflows.

Table permissions apply to the existing tables you select; new tables require an explicit permission update. Each user receives separate connection credentials, so a reporting integration can stay read-only while the application continues writing to its own tables.

Explore [managed PostgreSQL databases](/enterprise-os/databases) and [adding database users](/enterprise-os/databases/connect-and-query#add-database-users).

### Every MCP Gateway Policy evaluated, with its verdict in the Activity Log

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-activity-log-evaluated-policies.webp" alt="The MCP Activity Log in the Stacksync app with the Policies evaluated for this call panel open, listing each MCP Gateway Policy with its result and the reason." width="1878" height="675" loading="lazy" decoding="async" />
  </figure>
</div>

**See what each policy said about a call.** When several MCP Gateway Policies apply to a member, directly or through their groups, every one of them is evaluated on each call, one by one, and the most permissive verdict sets the outcome. The MCP Activity Log now lists every policy evaluated for a call with its result, Allowed, Blocked, Asked the person or Not applied, and the reason in plain words, including the guardrail a policy applied. Select **N policies evaluated** under the policy name of an entry to open the list.

Workspace owners open the log from the **Activity Log** tab of the **MCP** page. [Learn more](/mcp/activity-log#policies-evaluated-for-a-call).

### MCP Activity Log

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-activity-log.webp" alt="The MCP Activity Log page in the Stacksync app, with the counts of the last 24 hours, the filters and the entries of an AI assistant." width="1721" height="830" loading="lazy" decoding="async" />
  </figure>
</div>

**See every call AI assistants made in your workspace through the Stacksync MCP.** Each entry shows the member, the assistant they used, the resource and the action, the MCP Gateway Policy that decided the call, and how it ended: success, error, blocked, or waiting for a member's approval. Workspace owners see the whole workspace; other members see their own activity.

Open it from the **Activity Log** tab of the **MCP** page. [Learn more](/mcp/activity-log).

### Guardrails for MCP Gateway Policies

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-gateway-policy-guardrails.webp" alt="The Guardrails field of an app in an MCP Gateway Policy in the Stacksync app, with rules written in plain language." width="1728" height="997" loading="lazy" decoding="async" />
  </figure>
</div>

**Write the rules every change through an app must follow, in plain language.** Guardrails are set per app in an MCP Gateway Policy, for example "Only create purchase orders for our US subsidiary, in USD". Stacksync AI checks every change against them before it runs: a change that breaks a rule is blocked, and an uncertain case asks the member to confirm. Read operations are not checked.

Workspace owners set guardrails under each app of a policy in the **MCP Gateway Policies** tab of the **MCP** page. [Learn more](/mcp/gateway-policies#guardrails).

### MCP Gateway Policies

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-gateway-policies-custom-policy.webp" alt="An MCP Gateway Policy open in the Stacksync app, with the members it applies to and the apps and actions they can access." width="1728" height="996" loading="lazy" decoding="async" />
  </figure>
</div>

**Control which apps your members' AI assistants can use, and what they can do in each.** MCP Gateway Policies set which apps, and which actions of each app, members' assistants can call through the Stacksync MCP.

Every workspace has a **Default Policy** that allows all apps until a workspace owner restricts it. Workspace owners can create custom policies for specific users and groups, and members assigned to more than one policy receive the combined permissions of those policies. Policies apply to workspace owners as well. A blocked request changes nothing, and your assistant tells you which policy blocked it. Workflows, Genies and syncs continue to follow workspace roles.

Workspace owners create MCP Gateway Policies in the **MCP Gateway Policies** tab of the **MCP** page. [Learn more](/mcp/gateway-policies).

### Review every change from your AI assistant

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-settings-workspace.webp" alt="The Settings tab of the MCP page in the Stacksync app, with Ask before every change turned on." width="1728" height="996" loading="lazy" decoding="async" />
  </figure>
</div>

**Approve or cancel each change before it runs.** With **Ask before every change** turned on, every create, update, delete or run through the Stacksync MCP shows a preview of the change first, and runs only after you select **Accept**. Assistants that support [MCP Apps](https://modelcontextprotocol.io/extensions/apps/overview) display the preview as a review card in the chat; others ask you to confirm.

Workspace owners turn it on in the **Settings** tab of the **MCP** page. [Learn more](/mcp/governance).

### Browser Takeover for genies

**Take over the genie's browser at any time.** The genie pauses while you click and type. When you press **Resume Genie**, it picks up your changes and carries on with them, instead of redoing what you changed.

### Browser Steering for genies

**Chat with the genie while it works in the browser.** Your messages reach it mid-run, so you can correct it, add details or change direction without starting over.

*Currently from the browser session window; steering from Slack is coming soon.*

### Stacksync MCP

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-connect.webp" alt="The Connect tab of the MCP page in the Stacksync app, with the MCP server URL and setup steps for Claude." width="1728" height="997" loading="lazy" decoding="async" />
  </figure>
</div>

**Operate Stacksync from Claude, ChatGPT, Cursor and other AI assistants.** Connect the Stacksync MCP server to your AI assistant and describe what you need in plain language. Your assistant builds and runs two-way syncs, workflows and Genies, investigates issues and resolves them, with exactly the permissions you have in the Stacksync app.

Add `https://mcp.stacksync.com/mcp` to your assistant and sign in with your Stacksync login; there are no API keys to manage. Stacksync skills guide your assistant through each build, and the new **MCP** page in the Stacksync app lets you manage connected assistants and workspace settings.

[Connect your AI assistant](/mcp/connect).

### Deploy EOS apps without signing in

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/eos-deployment-enterprise.webp" alt="Deploy apps as guest user - No EOS account required. Stacksync Enterprise OS." width="1672" height="941" loading="lazy" decoding="async" />
  </figure>
</div>

A prototype running locally still needs a home before anyone can try it. Account creation and workspace setup interrupt that first deployment, before a developer or business team can see whether the application solves their problem.

**Go straight from source code to a live app.** The EOS CLI now deploys an application and can create a PostgreSQL database without requiring login. EOS creates a guest workspace automatically and saves a private credential on the device so you can continue managing your resources.

Guest apps are public. Unclaimed workspaces and their resources expire 14 days after creation. Sign in before that deadline to keep your work and invite colleagues. The CLI automatically claims the guest workspace for your account, whether you create a new account or use an existing one. AI inference, keys, File Storage, accessories, and collaboration require an account; inviting users also requires claiming the workspace.

Start with the [quick start](/enterprise-os/quick-start), or learn how to [manage and claim a guest workspace](/enterprise-os/guest-workspaces).

### File Storage for EOS applications

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/eos-storage-enterprise.webp" alt="File storage. Built for your apps. Organize files. Control access. Stacksync Enterprise OS." width="1672" height="941" loading="lazy" decoding="async" />
  </figure>
</div>

A useful image or audio processing prototype can quickly outgrow files stored on a developer's laptop or an application's local disk. Before colleagues can use it, the team needs somewhere durable to keep uploads and results, a way to browse them, and controls over who can read or change them. Setting up a separate storage service adds infrastructure and permissions work before the application can deliver value.

**Give file-heavy applications a managed home for their data.** EOS Storage provides private buckets for the images, audio, documents, and generated files your applications work with. It is a natural fit for image processing tools, audio transcription workflows, and other applications that need to retain source files and processed results.

Create buckets in the US or EU, upload and organize files, and explore their contents directly in EOS. Preview supported file types in the dashboard and share bucket access with the users and groups who need it. Applications connect through scoped API keys with read, write, list, and delete permissions, so each integration gets the access it needs.

Teams can keep originals and outputs in shared storage instead of managing a separate file service for each new tool. The EOS CLI also supports bucket and file management, making storage part of the same workflow developers and AI agents use to deploy applications.

Explore [Storage](/enterprise-os/storage), [file management](/enterprise-os/storage/manage-files), and [application API access](/enterprise-os/storage/api-access).

### Managed authentication on EOS applications

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/eos-authentication-enterprise.webp" alt="Managed authentication. Built into your apps. Control who can access every app. Stacksync Enterprise OS." width="1672" height="941" loading="lazy" decoding="async" />
  </figure>
</div>

An internal tool may be ready to solve a business problem while still lacking the access controls needed to share it safely. Building sign-in, managing sessions, and checking every backend endpoint takes additional work; protecting the interface alone can leave APIs exposed. Repeating that work for each new tool slows deployment and creates opportunities for inconsistent protection.

**Deploy internal tools without building authentication into every application.** Stacksync EOS enforces your application's access policy at the backend access layer, before a request reaches the application. The same check covers every endpoint served through its Stacksync app URL, including backend APIs, so protection does not depend on adding a sign-in check to each page or API handler.

Choose who can use an app: specific users and groups, all workspace members, or a public audience. New applications in account workspaces default to workspace access. Guest applications are public. Configure the policy in **Users and Access** or automate it through the management API; use the EOS CLI to manage user and group access grants. Public access without authentication remains an explicit policy choice.

Teams can turn prototypes into shared business tools with a consistent authentication layer, while IT retains control over who can access them. These controls support the access-control requirements of a SOC 2 compliance program; application-specific permissions, security testing, and the wider compliance program remain essential.

Learn more about [managed authentication](/enterprise-os/applications/managed-authentication) and [CLI access management](/enterprise-os/cli-reference#sharing-and-groups).

### Quick start page for Stacksync Enterprise OS (EOS)

AI coding tools make it easier to build a prototype, but getting it onto a URL colleagues can use still means choosing hosting, setting up a build and deployment workflow, provisioning resources, and connecting credentials. That gap can leave a useful idea running only on its creator's machine. Business teams need a clear path from describing an improvement to trying a deployed application with real users.

The new **Quick start** page in EOS gets you from an idea to a live app with a single prompt. Describe your app, select **Copy prompt** and paste it into any coding agent, such as Claude Code, Codex or Kilo Code. The agent builds the app, connects a PostgreSQL database, creates an AI inference API key if needed, and deploys it. Prefer the terminal? The page also lists the four commands to deploy an app yourself. See [Quick start](/enterprise-os/quick-start).

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/enterprise-os/quick-start-build-with-a-coding-agent.webp" alt="The &#x22;Build with AI&#x22; section of the EOS Quick start page, with an app description in the &#x22;What would you like to build?&#x22; field and the &#x22;Copy prompt&#x22; button." width="1600" height="1026" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### Passwordless login for Stacksync Enterprise OS (EOS)

Trying a new platform often starts with another password to create, store, and eventually reset. That friction can delay a colleague's first visit or interrupt someone returning to continue their work. A simpler sign-in flow helps teams get into EOS and start building, deploying, or managing applications with less account administration.

You can now sign in to [Stacksync Enterprise OS](https://eos.stacksync.com) without a password. Enter your email address, select **Send sign-in code**, and use the code sent to your inbox to open your workspace. New users can create an account the same way.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/eos-passwordless-login.webp" alt="Stacksync Enterprise OS sign-in page with a single email address field and a &#x22;Send sign-in code&#x22; button, and the text &#x22;No password needed.&#x22;" width="1600" height="1000" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

## February 2026

### Amazon Seller Central

Connect your Amazon Seller Central account to sync orders, inventory, and product data directly to your database with full OAuth support.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/amazon-seller-central-integration-banner.webp" alt="Amazon Seller Central logo above the Stacksync logo, announcing the new Amazon Seller Central integration." width="1200" height="680" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### TikTok Shop

Sync your TikTok Shop e-commerce data, including orders, products, and fulfillment details to your database.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/tiktok-shop-integration-banner.webp" alt="TikTok Shop logo with the Stacksync logo, announcing the new TikTok Shop integration" width="1200" height="680" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### AI Copilot Chatbot

An in-app AI assistant is now available to help you configure syncs, troubleshoot issues, and navigate the platform, complete with conversation history and a resizable panel.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/ai-copilot-chatbot-banner.webp" alt="Stacksync feature banner with a robot icon titled &#x22;AI Copilot Chatbot&#x22;" width="1200" height="680" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### Issues Management Dashboard

View and resolve sync issues in bulk with filtering, sync direction support, and resolution tracking from a centralized dashboard.

### Edit Sync Logs

View the full edit history for your syncs to track who changed what and when.

### Schema Change Auto-Propagation

When your external app schema changes, Stacksync can now automatically propagate those changes to your database with user-configurable controls and email notifications.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/schema-change-auto-propagation-banner.webp" alt="Dark Stacksync feature banner titled &#x22;Schema Change Auto-Propagation&#x22; with a {#} icon" width="1200" height="680" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### cURL Command Generation

Automatically generate cURL commands for webhook-triggered workflows, making it easy to test and integrate from external systems.

### Shopify Discount Application Schema

Sync Shopify discount application data including allocation methods and discount codes to your database.

### App Icons in Resource Table

Quickly identify connected apps at a glance with visual app icons throughout the resource table.

### Sync Configuration Enhancements

The sync setup form has been redesigned with an improved edit modal, better delete tracking options, and a smoother configuration experience.

### HubDB Object Support

Improved schema generation and field name handling for HubDB objects, delivering more reliable syncs.

### SuiteAnalytics Incremental Column Detection

SuiteAnalytics syncs now automatically detect new columns added to your saved searches.

### SQL Server Table and Column Management

Manage SQL Server tables and columns directly from the Stacksync UI.

### Airtable 10x Faster Batch Reads

Airtable reads are now up to 10 times faster thanks to increased API call batching per sync cycle.

## January 2026

### Microsoft Teams

Connect Microsoft Teams to use in workflows for sending messages, managing channels, and automating team notifications.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/microsoft-teams-integration-banner.webp" alt="Microsoft Teams logo with the Stacksync logo, announcing the new Microsoft Teams integration" width="1200" height="680" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### TikTok Shop Connector (Early Access)

Initial support for TikTok Shop is now available, with schema definition and connection configuration.

### Orderful

Sync EDI and supply chain data from Orderful, enabling seamless B2B transaction visibility in your database.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/changelog/orderful-integration-banner.webp" alt="Orderful logo with the Stacksync logo, announcing the new Orderful EDI integration" width="1200" height="680" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

### Shopify OAuth with Refresh Tokens

Shopify connections now use refresh tokens, eliminating the need to manually reauthorize when access tokens expire.

### SQL Server CDC Agent Health Monitoring

SQL Server Change Data Capture connections now monitor the SQL Server Agent health, alerting you if the agent stops running.

### Schema Change Detection Enhancements

Improved reliability and coverage of automatic schema change detection across all connected apps.

### Concurrent App Schema Generation

Setting up new syncs is now faster with parallelized schema generation across connected apps.

### Dynamic Schema Setup for MySQL and Postgres

MySQL and Postgres source connections now support dynamic schema setup, automatically adapting to your database structure.

## December 2025

### SSO Finalization

Single Sign-On is now fully available with support for Azure AD and Okta, including SCIM provisioning and auto-propagation across workspaces.

### Schema Change Notification Emails

Receive email notifications when Stacksync detects schema changes in your connected apps, so you can review and approve propagation.

### Connection Security Enhancements

Improved handling of SSL certificates and SSH tunnel configurations for enterprise database connections.

### Composite Key Support

Syncs now support composite primary keys across all database destinations, enabling accurate sync of tables with multi-column keys.

### HubSpot Incremental Associations

HubSpot associations (e.g., deal-to-contact, company-to-contact) now sync incrementally instead of full reads, dramatically reducing sync times.

### API Proxy Management

Create and manage API proxies with full credential schemas and connection-based routing from the Stacksync dashboard.

### Salesforce Read Optimization

Salesforce sync reads are now faster with optimized query construction and pagination.

### NetSuite/SuiteAnalytics Incremental Read Optimization

Incremental reads for NetSuite and SuiteAnalytics are now more efficient with improved query batching.

<p>
  <a href="https://airtable.com/appdQJvYEhD7gdml1/shrV3EktKTalFHa7L/tbl9GPO2xtLozrgsM" className="button primary">View Full Changelog History</a>
</p>

# Add NoteID to an Acumatica Generic Inquiry

> Include NoteID in a Generic Inquiry for real-time updates.

Source: https://docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica/add-noteid-to-an-acumatica-generic-inquiry

Stacksync uses `NoteID` to identify records in real-time notifications.

## 1. Open the Generic Inquiry

Open the Acumatica screen for the object you want to sync.

For example, to configure customers:

1. Open **Customers**.
2. Select **Customization**.
3. Select **Edit Generic Inquiry**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-edit-generic-inquiry-menu.webp" alt="Acumatica Customers screen with the Customization menu open and &#x22;Edit Generic Inquiry&#x22; highlighted" width="1271" height="143" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a Generic Inquiry

Update an existing Generic Inquiry or create a copy.

Create a copy to preserve the original inquiry:

1. Select the **Clipboard** icon.
2. Select **Copy**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/acumatica-generic-inquiry-copy.webp" alt="Acumatica Generic Inquiry screen with the clipboard menu open and &#x22;Copy&#x22; highlighted" width="1051" height="311" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Select **+** to create a Generic Inquiry.<br />

   <div>
     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/acumatica-generic-inquiry-add-new.webp" alt="Acumatica Generic Inquiry screen for AR-Customers with the + (add new record) button highlighted" width="423" height="237" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
   </div>
4. Enter a name for the new inquiry.
5. Select the **Clipboard** icon again.
6. Select **Paste**.<br />

   <div>
     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/acumatica-generic-inquiry-paste.webp" alt="Acumatica Generic Inquiry clipboard menu with &#x22;Paste&#x22; highlighted to paste the copied inquiry into the new record" width="432" height="350" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
   </div>

The inquiry name must end with the object name from your Acumatica endpoint.

For example, **Customers** is exposed as `Customer` in **Web Service Endpoints**.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-web-service-endpoint-customer.webp" alt="Acumatica Web Service Endpoints, Default 24.200.001 endpoint tree with the &#x22;Customer&#x22; entity highlighted" width="700" height="631" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

For customers, end the inquiry name with `-Customer`.

For example: `Stacksync-AR-Customer`.

## 3. Add the NoteID field

Open the Generic Inquiry you want to use:

1. Open the inquiry.

2. Open the **Results Grid** tab.<br />

   <div>
     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/acumatica-generic-inquiry-results-grid-tab.webp" alt="Acumatica Generic Inquiry &#x22;Stacksync-AR-Customer&#x22; with the &#x22;Results Grid&#x22; tab highlighted" width="1309" height="416" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
   </div>

3. Add the `NoteID` field for the object. For customers, use:

   ```
   Object: Customer
   Data Field: NoteID
   ```

4. Save the Generic Inquiry.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/acumatica-generic-inquiry-noteid-field.webp" alt="Acumatica Results Grid with a Customer row using Data Field &#x22;NoteID&#x22; added, and the Save button highlighted" width="1371" height="603" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

<Callout type="info">
  Include `NoteID` in the inquiry output. Stacksync requires it in the push notification payload.
</Callout>

\
If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Create an Acumatica Push Notification

> Create a Push Notification for Acumatica real-time updates.

Source: https://docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica/create-an-acumatica-push-notification

## Create a Push Notification

Create a Push Notification in Acumatica to send record changes to Stacksync.

### 1. Create the notification

Open **Push Notifications** in Acumatica and create a new notification.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notifications-screen.webp" alt="Acumatica &#x22;Push Notifications&#x22; screen with empty Destination Name, Destination Type and Address fields" width="642" height="238" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

Configure:

* **Destination Name:** Enter a descriptive name, such as `Stacksync_Customer`
* **Destination Type:** Select `Webhook`
* **Active:** Enable this option<br />

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-destination.webp" alt="Acumatica push notification with Destination Name &#x22;Stacksync_Customer&#x22;, Type &#x22;Webhook&#x22; and &#x22;Active&#x22; checked" width="840" height="186" loading="lazy" decoding="async" />

    <figcaption />
  </figure>

### 2. Add the webhook address

In **Address**, enter the webhook URL provided by the Stacksync team.

For two-way sync, the URL may follow this format:

```
<url>?baseId=<base_id>&appId=<app_id>
```

The Stacksync team will provide the complete URL, including the correct `base_id` and `app_id`.

For Agentic Workflows, use the workflow-specific URL provided by the Stacksync team.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-webhook-address.webp" alt="Acumatica push notification Address field highlighted, containing the Stacksync webhook URL with baseId and appId parameters" width="786" height="200" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Add authorization

Configure:

* **Header Name:** `Authorization`
* **Header Value:** `Bearer <token>` \ <br />

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-authorization-header.webp" alt="Acumatica push notification with Header Name &#x22;Authorization&#x22; and a redacted &#x22;Bearer&#x22; token as Header Value" width="774" height="196" loading="lazy" decoding="async" />

    <figcaption />
  </figure>

The Stacksync team will provide the bearer token.

Do not share or expose this token.

### 4. Add the Generic Inquiry

Open the **Generic Inquiries** tab and click **Add (+)**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-generic-inquiries-tab.webp" alt="Acumatica push notification form with the &#x22;Generic Inquiries&#x22; tab highlighted below the webhook settings" width="890" height="385" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-add-inquiry.webp" alt="Acumatica push notification Generic Inquiries tab with the + (Add) button highlighted in the Inquiries grid" width="896" height="395" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Then:

1. Enable **Active**.
2. Select the Generic Inquiry created in the [previous step](/connectors/acumatica/configure-push-notifications-for-acumatica/add-noteid-to-an-acumatica-generic-inquiry#id-2.-create-a-generic-inquiry).
3. Choose how Acumatica should track changes:
   * Enable **Track All Fields** to trigger a notification when any field changes.
   * Leave **Track All Fields** cleared and add specific fields in the **Fields** section to trigger notifications only for those fields.

When tracking specific fields, add every field that should trigger a real-time update.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-tracked-fields.webp" alt="Stacksync-AR-Customer inquiry with &#x22;Track All Fields&#x22; unchecked and Customer field &#x22;acctName&#x22; added as a tracked field" width="1106" height="238" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Save the notification

Click **Save** after completing the configuration.

Acumatica will send a notification to Stacksync whenever one of the configured fields changes.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-push-notification-save.webp" alt="Completed Acumatica push notification with the Stacksync-AR-Customer inquiry and acctName field, Save button highlighted" width="1046" height="379" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  Acumatica sends a notification when one of the selected fields changes. Add each field that should trigger a real-time update.
</Callout>

\
If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Configure Push Notifications for Acumatica

Source: https://docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica

Acumatica can notify Stacksync when a record changes by sending a Push Notification based on a Generic Inquiry.

## When is this required?

For most objects, no additional configuration is needed. Stacksync automatically detects creates and updates when the object exposes one of these fields:

* `LastModifiedDateTime`
* `LastModifiedDate`
* `LastModified`

Configure Push Notifications only when the object you are syncing does not include any of these fields.

Without a modified-time field, Stacksync cannot detect incremental changes through polling. In that case, real-time updates depend on Acumatica Push Notifications, while periodic full re-scans provide an additional fallback.

## Configure real-time updates

For objects without a supported modified-time field:

Continue with:

<Cards>
  <Card title="Add NoteID to an Acumatica Generic Inquiry" href="/https/docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica/add-noteid-to-an-acumatica-generic-inquiry" />
</Cards>

<Cards>
  <Card title="Create an Acumatica Push Notification" href="/https/docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica/create-an-acumatica-push-notification" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Connect Acumatica to Stacksync

> Connect Acumatica to Stacksync with a connected application.

Source: https://docs.stacksync.com/connectors/acumatica/connect-acumatica-to-stacksync

Create an Acumatica connection in Stacksync using your connected application credentials.

Before you begin, [create an Acumatica connected application](/connectors/acumatica/create-an-acumatica-connected-application).

## 1. Open the connection setup

In Stacksync, open **Connections**. Select **Acumatica**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-resource-connection.webp" alt="Stacksync All Resources page with the &#x22;Create Resource&#x22; menu open and &#x22;Connection&#x22; highlighted" width="1600" height="437" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-acumatica-app.webp" alt="Stacksync &#x22;Create a new Connection&#x22; dialog with &#x22;Acumatica&#x22; searched and its app tile highlighted" width="1372" height="388" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Enter the Acumatica connection details

Enter the following values:

* **Acumatica instance URL**
* **Client ID**
* **Client Secret**

Use the Client ID and Client Secret from the connected application.

Select **Next**. Stacksync opens the sign-in page for your Acumatica instance.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-connection-configure-credentials.webp" alt="Stacksync Acumatica &#x22;Configure connection&#x22; step with Instance URL, Client ID and Client Secret fields filled in" width="1009" height="443" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Authorize the connection

Sign in to Acumatica.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-sign-in-tenant.webp" alt="Acumatica sign-in page with the &#x22;Sandbox&#x22; tenant selected, credentials entered and &#x22;Sign In&#x22; highlighted" width="449" height="559" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

Approve Stacksync's access request.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-stacksync-connector-permissions.webp" alt="Acumatica consent page for &#x22;Stacksync Connector&#x22; requesting Web Services API and Offline Access, with &#x22;Yes, Allow&#x22; highlighted" width="743" height="389" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

Acumatica redirects you back to Stacksync. Enter a name for the connection, then select **Create**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-connection-name-create.webp" alt="Stacksync Create step with Connection Name &#x22;Acumatica Sandbox Connection&#x22; entered and the &#x22;Create&#x22; button highlighted" width="913" height="659" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-acumatica-connection-created.webp" alt="Stacksync Connections list showing the new &#x22;Acumatica Sandbox Connection&#x22; highlighted" width="1600" height="368" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Use the connection

Use the same connection with either option:

* [**Two-way sync**](/two-way-sync)
* [**Agentic Workflows**](/agentic-workflows)

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Create an Acumatica Connected Application

> Create an Acumatica connected application for Stacksync.

Source: https://docs.stacksync.com/connectors/acumatica/create-an-acumatica-connected-application

Create a connected application to generate the credentials Stacksync requires.

## Prerequisites

Before you begin, confirm that you have:

* Administrative access to Acumatica
* Permission to manage connected applications
* Your Acumatica instance URL

## 1. Open the Connected Applications screen

Sign in to Acumatica. Use the search bar to find **Connected Applications**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-search-connected-applications.webp" alt="Acumatica search for &#x22;Connected Application&#x22; with the &#x22;Connected Applications&#x22; menu result highlighted" width="1157" height="232" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-applications-screen.webp" alt="Acumatica &#x22;Connected Applications&#x22; screen with a new record and empty Client Name, Flow and Secrets tab" width="1404" height="451" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a connected application

Create a new application record.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-app-client-name.webp" alt="Acumatica Connected Applications form with Client Name set to &#x22;Stacksync&#x22;" width="615" height="237" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

Enter a recognizable name, such as `Stacksync`.

Set **Flow** to **Authorization Code**.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-app-authorization-code-flow.webp" alt="Acumatica Connected Applications Flow dropdown with &#x22;Authorization Code&#x22; selected" width="675" height="275" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

Configure the token expiration:

* Set **Mode** to **Sliding Expiration**.
* Set **Absolute Lifetime (Days)** to `Infinite`.
* Set **Sliding Lifetime (Days)** to 15.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-app-refresh-token-settings.webp" alt="Acumatica connected app with Flow &#x22;Authorization Code&#x22; and Refresh Tokens set to Sliding Expiration, 15 days" width="991" height="238" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Configure the redirect URI

Add this redirect URI:

```
https://app.stacksync.com/oauth/callback
```

<Callout type="warn">
  Enter the redirect URI exactly. An incorrect value prevents authorization.
</Callout>

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-app-redirect-uri.webp" alt="Acumatica Redirect URIs tab with &#x22;https://app.stacksync.com/oauth/callback&#x22; entered" width="515" height="194" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

## 4. Create a client secret

Open the **SECRETS** tab. Add a new shared secret.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-app-add-shared-secret.webp" alt="Acumatica connected app with the &#x22;Secrets&#x22; tab and &#x22;Add Shared Secret&#x22; button highlighted" width="1133" height="404" loading="lazy" decoding="async" />

  <figcaption />
</figure>

In the **Add Shared Secret** dialog:

1. Enter a recognizable description.
2. Leave **Expires On (UTC)** blank.
3. Copy and store the **Value** securely.
4. Click **OK**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-add-shared-secret-dialog.webp" alt="Acumatica &#x22;Add Shared Secret&#x22; dialog with Description, Expires On and a redacted secret Value, plus OK and Cancel" width="1205" height="338" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="warn">
  Copy the secret before closing the dialog. Acumatica does not show it again.
</Callout>

## 5. Save the application

Save the connected application. Acumatica then generates the **Client ID**.

Use these values to [connect Acumatica to Stacksync](/connectors/acumatica/connect-acumatica-to-stacksync):

* Acumatica instance URL
* Client ID
* Client Secret

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/acumatica-connected-app-saved-secret.webp" alt="Saved Acumatica Stacksync connected app with a generated Client ID and a &#x22;Testing Key&#x22; shared secret" width="1169" height="398" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Customize the Acumatica Endpoint

> Configure Acumatica web service endpoints for Stacksync.

Source: https://docs.stacksync.com/connectors/acumatica/customize-the-acumatica-endpoint

Creating a dedicated Web Service Endpoint named `StacksyncDefault` is optional. Use it only when you want to customize the Acumatica objects and fields available in Stacksync instead of using the standard `Default` endpoint.

## Create the endpoint

1. In Acumatica, open **Web Service Endpoints**.
2. Select the latest version of the `Default` endpoint.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/acumatica-web-service-endpoints-default.webp" alt="Acumatica Web Service Endpoints list with the &#x22;Default&#x22; 24.200.001 endpoint highlighted" width="908" height="455" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Review the objects included in that endpoint.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/acumatica-default-endpoint-objects.webp" alt="Acumatica Default 24.200.001 endpoint with its list of included entities highlighted" width="857" height="894" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Click **Extend Endpoint**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/acumatica-extend-endpoint-button.webp" alt="Acumatica Default 24.200.001 endpoint with the &#x22;Extend Endpoint&#x22; button highlighted" width="935" height="353" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. In the dialog, enter:
   * **Endpoint Name:** `StacksyncDefault`
   * **Endpoint Version:** Use the current version or another valid version number<br />

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/acumatica-extend-endpoint-dialog.webp" alt="Acumatica &#x22;Extend Current Endpoint&#x22; dialog with Endpoint Name &#x22;StacksyncDefault&#x22; and Version &#x22;24.200.001&#x22;" width="1234" height="652" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
6. Click **OK**.
7. Open the new `StacksyncDefault` endpoint and add, remove, or update the objects and fields required for your sync.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/acumatica-stacksyncdefault-endpoint.webp" alt="Acumatica Web Service Endpoints list with the new &#x22;StacksyncDefault&#x22; endpoint, based on Default 24.200.001, highlighted" width="765" height="308" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. Save your changes.

Extending the endpoint creates a separate configuration. It does not modify the original `Default` endpoint.

## Endpoint selection for two-way sync

When using [two-way sync](/two-way-sync), Stacksync selects:

1. The latest version of `StacksyncDefault`
2. The latest version of `Default` when `StacksyncDefault` is not available

For example, when these endpoints exist:

* `Default` — `24.200.001`
* `StacksyncDefault` — `23.200.001`
* `StacksyncDefault` — `24.200.001`

Stacksync uses `StacksyncDefault` version `24.200.001`.

Endpoint configuration for [Agentic Workflows](/agentic-workflows) is handled separately within each workflow step.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Attachments fields

Source: https://docs.stacksync.com/connectors/airtable/attachments-fields

Attachment fields in Airtable expose only temporary links that expire after a certain period. To ensure persistent access to attachments, we transform them into API proxy links when syncing attachment fields.

## Transformed Link Format

Attachment URLs are converted to this format:

```
https://eu.api-proxy-dev.stacksync.com/v1/airtable_attachment?dt=eyJiYXNlX2lXUGdEIiwgInBhdGgiOiAiIn0=
```

## How to Use Attachment Links

1. [**Set up an API Proxy**](https://github.com/stacksyncdata/documentation-gitbooks-connectors/blob/prod/api-proxy/airtable.md) - You'll receive an API key upon creation
2. **Make the request** - Include your API key in the Authorization header:

```bash
   curl -X GET "https://eu.api-proxy-dev.stacksync.com/v1/airtable_attachment?dt=eyJiYXNlX2lXUGdEIiwgInBhdGgiOiAiIn0=" \
   -H "Authorization: Bearer <your_api_key>"
```

3. **Automatic redirect** - The API proxy will:
   * Fetch the current attachment URL from Airtable
   * Redirect you to the updated link automatically

This ensures your attachment links remain valid without manual updates.

# Authorize Airtable

> Authenticate your Airtable account and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/airtable/authorize-airtable

1. Log into Stacksync and click on Connections > Create new connection, search for **Airtable** and select it.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-airtable-connection.webp" alt="Stacksync connection app picker with the &#x22;Airtable&#x22; tile highlighted among database connectors" width="1600" height="628" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. It’ll take you to the **Airtable** OAuth page, where you can choose to give access either to specific **bases** or to all **resources** in your account, then just hit **Grant access**<br />

***Make sure you have a\*\*\*\***\*\*&#x20;****`creator`**\*\* ****role, only users with****&#x20;****`creator`**\*\*&#x20;****\*\*\*\*roles can create webhooks.***

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/airtable-grant-access-stacksync.webp" alt="Airtable consent page &#x22;Stacksync is requesting Airtable access&#x22; with a base selected and &#x22;Grant access&#x22; highlighted" width="1260" height="1722" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Formula Fields Overview

> Overview of formula fields in Airtable and how Stacksync keeps their computed values synchronized automatically.

Source: https://docs.stacksync.com/connectors/airtable/formula-fields

## Formula Fields in Airtable

Formula fields in Airtable are **calculated fields** whose values are generated dynamically from other fields using custom formulas.\
Because their values are computed rather than stored, they do not trigger standard change events when the underlying data changes.

***

### Syncing Formula Fields with Stacksync

Stacksync **synchronizes Airtable formula fields every hour**.\
This ensures that even though Airtable formula fields don’t emit direct change notifications, their computed values remain up-to-date in your destination system.

#### How It Works

* Formula fields are detected automatically during setup.
* Stacksync will re-check and update those formula field values every hour.

# Airtable

> Two-way sync between Airtable and your other systems.

Source: https://docs.stacksync.com/connectors/airtable

## Airtable Connector

The Airtable connector allows you to sync records from your Airtable bases into your destination systems (e.g., Postgres, BigQuery, Snowflake).

***

### Supported Features

* **Two-way sync**: Keep Airtable records in sync with your destination.
* **Incremental updates**: Changes in Airtable are detected and synced efficiently in realtime.
* **Custom field mapping**: Map Airtable fields to your target schema.
* **Attachments**: Sync files stored in Airtable attachment fields.
* **Formula fields**: Stacksync also supports syncing Airtable’s calculated values (see Formula Fields for details).
* **Auto sync new fields:** Stacksync propagates Airtable schema changes automatically to the destination app where Airtable data is synced.

***

### Special Notes

* **Rate Limits**: Airtable’s API has strict rate limits (5 requests/second). Stacksync performs rate limiting to ensure not going over the rate limit.

<Cards>
  <Card title="Authorize Airtable" href="/https/docs.stacksync.com/connectors/airtable/authorize-airtable" />
</Cards>

# Authorize Amazon Seller Central

> This guide explains how to connect your Amazon Seller Central Account to Stacksync.

Source: https://docs.stacksync.com/connectors/amazon-seller-central/authorize-amazon-seller-central

<Callout type="info">
  ### Prerequisites:

  1. Primary account access to Amazon Seller Central
  2. An SP-API app in Amazon Developer Central
  3. Required credentials: LWA client ID/secret, application ID, Merchant ID/Seller ID, refresh token.
</Callout>

## Setup instructions

### STEP 1: Find merchant token

1. Sign in to your [Amazon Seller Central account](https://sellercentral.amazon.com/).
2. In the top-right corner, open **Settings** and select **Account Info**.
3. In the left navigation, select **Business Information**.
4. Click **Your Merchant Token**.
5. Copy the Merchant Token for the marketplace you plan to sync and keep it for connector setup.

### STEP 2: Create an SP-API app client

1. Sign in to your Amazon Seller Central.
2. Go to **Apps and Services > Develop Apps**.
3. In Developer Central, click **+ Add new app client**.
4. Enter an **App name**.
5. Set **API Type** to **SP API and Select Production in the dropdown.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/amazon-sp-api-app-registration.webp" alt="Amazon Solution Provider Portal &#x22;App registration&#x22; form with App name &#x22;Stacksync&#x22; and API Type &#x22;SP API&#x22;" width="1600" height="827" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Under **Business entities supported**, select your entity:
   * **Sellers**
   * **Vendors**
7. Assign the required roles for your entity.

For **Sellers**, select:

* Finance and Accounting
* Selling Partner Insights
* Buyer Communication
* Pricing
* Inventory and Order Tracking
* Brand Analytics
* Amazon Fulfillment
* Buyer Solicitation
* Product Listing

For **Vendors**, select:

* Brand Analytics
* Amazon Fulfillment
* Product Listing

8. In **Restricted Data Token (RDT)**, select:\
   **Yes, I will delegate access to PII to another developer's application**.
9. Click **Save and exit**.
10. In the app list, click View for your app.
11. Make a note of the Client identifier and Client secret, and then click Done. You will need them to configure Connection on Stacksync.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/amazon-lwa-credentials-client-secret.webp" alt="Amazon Solution Provider Portal &#x22;LWA credentials&#x22; dialog showing redacted Client identifier and Client secret" width="1600" height="778" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

<Callout type="info">
  Do **not** set an OAuth Login URI or OAuth Redirect URI for this setup.
</Callout>

<Callout type="info">
  Amazon sets a 6-month expiration on client secrets. To avoid sync interruptions, regenerate the client secret every 6 months and update the connection to use the new secret.
</Callout>

### STEP 3: Generate refresh token

1. In Developer Central, open your app’s action menu and select **Authorize**.
2. In **Add Authorizations**, click **Authorize app** for the marketplace you want to sync.
3. Copy and securely store the generated **Refresh Token** for use during Stacksync configuration.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/amazon-app-authorize-refresh-token.webp" alt="Amazon Solution Provider Portal app list with the Edit App menu open and &#x22;Authorize&#x22; highlighted" width="1600" height="802" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

### STEP 4: Finish Stacksync Connection configuration

1. Login to [Stacksync](https://app.stacksync.com/) -> **Create Resource** -> **Connections** -> Select **Amazon Seller Central**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-amazon-seller-central.webp" alt="Stacksync &#x22;Create a new Connection&#x22; app grid with &#x22;Amazon Seller Central&#x22; highlighted" width="1600" height="814" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Enter the connection details collected in the previous steps into the form.\
   a. Client ID\
   b. Client Secret\
   c. Merchent Token\
   d. Select Production / Sandbbox Account\
   e. Refresh Token\
   f. Select the Region where the App is created in previous steps<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/amazon-seller-central-connection-form.webp" alt="Stacksync Amazon connection form with LWA Client ID and Secret, Application ID, Merchant Token, Refresh Token and Region" width="1600" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Click **Next**, then **Authorize Connection** to complete setup.

The connector is now ready to start syncing data.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Amazon Seller Central

Source: https://docs.stacksync.com/connectors/amazon-seller-central

The Stacksync Amazon Seller Central connector lets you sync Amazon Seller Central data to your warehouse or operational systems, with support for historical and incremental syncs, including reports, in a one-way flow from Amazon to your destination systems.

## Stacksync supports syncing:

1. SP-API exposed Objects
2. SP-API eposed Reports

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Amazon Seller Central" href="/https/docs.stacksync.com/connectors/amazon-seller-central/authorize-amazon-seller-central" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Attio

> Authorize your Attio app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/attio/authorize-attio

Attio connection is done without any coding required in a few steps.

## 1. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections.webp" alt="Legacy Stacksync dashboard with an arrow pointing to &#x22;Connections&#x22; in the sidebar" width="937" height="605" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click "create new connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-new-connection-button.webp" alt="Legacy Stacksync My Connections page with an arrow pointing to the &#x22;Create New Connection&#x22; button" width="935" height="487" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Click "Attio CRM"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-attio-crm.webp" alt="Legacy Stacksync &#x22;Create a Connection&#x22; app picker with an arrow pointing to &#x22;Attio CRM&#x22;" width="945" height="602" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Click "Confirm"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/attio-workspace-access-confirm.webp" alt="Attio consent screen listing read/write permissions for Stacksync, with an arrow pointing to &#x22;Confirm&#x22;" width="938" height="577" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your Attio instance is now connected to Stacksync!🎉

# Attio

> Two-way sync between Attio and your other systems.

Source: https://docs.stacksync.com/connectors/attio

## Supported Objects

Stacksync lets you sync the following Attio objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>People</td><td><span>✅ Supported</span></td></tr><tr><td>Companies</td><td><span>✅ Supported</span></td></tr><tr><td>Users</td><td><span>✅ Supported</span></td></tr><tr><td>Deals</td><td><span>✅ Supported</span></td></tr><tr><td>Workspaces</td><td><span>✅ Supported</span></td></tr><tr><td>Custom objects (all)</td><td><span>✅ Supported</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Authorization

Source: https://docs.stacksync.com/connectors/authorization

<Cards>
  <Card title="Re-Authorization" href="/https/docs.stacksync.com/connectors/authorization/re-authorization" />
</Cards>

# Re-Authorization

> Re-Authorize your connection.

Source: https://docs.stacksync.com/connectors/authorization/re-authorization

An application connection might expire after a period of inactivity. Additionally, new features, such as the [Hubspot Sensitive Fields capability](/connectors/hubspot/authorize-hubspot#id-3.-optional-check-the-grant-access-to-sensitive-fields-checkbox), may require reauthorization of the app.

## 1. Open your connection

Click connections on the side nav-bar and then click the connection you want to re-authorize

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-open-connection-reauthorize.webp" alt="Stacksync sidebar &#x22;Connections&#x22; (1) and the &#x22;my hubspot connection&#x22; entry (2) highlighted in the connections list" width="1600" height="885" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click "Reauthorize"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-connection-reauthorize-button.webp" alt="Stacksync connection details page for &#x22;my hubspot connection&#x22; with the &#x22;Reauthorize&#x22; button highlighted" width="1600" height="886" loading="lazy" decoding="async" />

  <figcaption />
</figure>

The standard authorization process for the specific app will begin. Follow it to successfully reauthorize the connection.

# Authorize BigQuery

> Authorize your BigQuery app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/bigquery/authorize-bigquery

## Enabling Required Google APIs <a href="#id-1367fe36-76e9-430d-a949-7b538bc2ab00" id="id-1367fe36-76e9-430d-a949-7b538bc2ab00" />

The following APIs are required by the Stacksync services in order to access the data and create a sync in BigQuery:

1. [Cloud Run API](https://console.cloud.google.com/marketplace/product/google/run.googleapis.com) (to create a secure portal for real-time notification service in your space)
2. [Cloud Resource Manager API](https://console.cloud.google.com/marketplace/product/google/cloudresourcemanager.googleapis.com) (to set up all services)
3. [BigQuery API](https://console.cloud.google.com/marketplace/product/google/bigquery.googleapis.com) (this is where your data resides)
4. [Eventarc API](https://console.cloud.google.com/marketplace/product/google/eventarc.googleapis.com) (a notification service that enables real-time updates to happen)

### 1. Open [https://console.cloud.google.com/apis/library](https://console.cloud.google.com/apis/library)

### 2. Search for the API "cloud run API"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-search-cloud-run-api.webp" alt="Google Cloud API Library with &#x22;cloud run api&#x22; typed in the search box" width="1516" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Click on the API "Cloud Run API"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-select-cloud-run-api.webp" alt="Google Cloud API Library search results with &#x22;Cloud Run API&#x22; highlighted" width="1513" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Enable the API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-enable-cloud-run-api.webp" alt="Google Cloud Run API product page with the &#x22;Enable&#x22; button highlighted" width="1516" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Repeat Steps 2-3 for the following APIs

Cloud Resource Manager API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-resource-manager-api.webp" alt="Google Cloud API Library search results with &#x22;Cloud Resource Manager API&#x22; highlighted" width="1513" height="847" loading="lazy" decoding="async" />

  <figcaption />
</figure>

BigQuery API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-bigquery-api.webp" alt="Google Cloud API Library search results with &#x22;BigQuery API&#x22; highlighted" width="1516" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Eventarc API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-eventarc-api.webp" alt="Google Cloud API Library search results with &#x22;Eventarc API&#x22; highlighted" width="1519" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Create Service Account

The Service Account gives access to Stacksync to your data for it to be synced. It is used to set up all the necessary Stacksync Services in your Google Cloud Project. You will need to create one Service Account dedicated to Stacksync which will enable you with better access control.

### 1. Open [https://console.cloud.google.com/iam-admin/serviceaccounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

### 2. Click "Create Service Account"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-create-service-account.webp" alt="Google Cloud IAM & Admin Service accounts page with &#x22;Create service account&#x22; highlighted" width="1516" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Fill in the Service Account details

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-details.webp" alt="Google Cloud service account details form with name &#x22;demo-account&#x22; and the &#x22;Create and continue&#x22; button" width="1515" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Click "Select a role"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-select-role.webp" alt="Google Cloud &#x22;Grant this service account access to project&#x22; step with the &#x22;Select a role&#x22; dropdown highlighted" width="1516" height="818" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Add the following Roles to the Service Account

These roles are necessary for Stacksync to get data access and set up the required services to make the data sync happen.

1. BigQuery Data Editor
2. BigQuery Job User
3. Cloud Functions Service Agent
4. Cloud Run Developer
5. Eventarc Event Receiver
6. Eventarc Service Agent

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-service-account-required-roles.webp" alt="Service account roles: BigQuery Data Editor, BigQuery Job User, Cloud Functions Service Agent, Cloud Run Developer, Eventarc Event Receiver" width="1515" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Click "Continue"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-roles-continue.webp" alt="Google Cloud service account with the five BigQuery sync roles added and the &#x22;Continue&#x22; button highlighted" width="1515" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 7. Click "DONE"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-done.webp" alt="Google Cloud create service account final step, skipping user access and clicking &#x22;Done&#x22;" width="1516" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Adding Credentials to Stacksync

### 1. Go to [https://console.cloud.google.com/iam-admin/serviceaccounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

### 2. Click "Keys"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-keys-tab.webp" alt="Google Cloud demo-account service account details with the &#x22;Keys&#x22; tab highlighted" width="1518" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Click "Add Key" and Select "Create New Key"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-service-account-create-new-key.webp" alt="Google Cloud IAM service account Keys tab with the &#x22;Add Key&#x22; menu open and &#x22;Create new key&#x22; highlighted." width="1519" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Select Key Type "JSON" and click "Create"

After clicking "Create", the JSON file will be downloaded.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-create-json-private-key.webp" alt="Google Cloud &#x22;Create private key&#x22; dialog with Key type &#x22;JSON&#x22; selected and the &#x22;Create&#x22; button highlighted." width="1521" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Select BigQuery in the Create Base page in Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-base-select-bigquery.webp" alt="Stacksync Create New Base page at the Connect Apps step, with the BigQuery app tile highlighted." width="1519" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Upload the JSON file from Step 4 and Click "Authorize App"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-upload-service-account-key.webp" alt="Stacksync BigQuery dialog with the &#x22;Service Account Key&#x22; file upload field and the &#x22;Authorize App&#x22; button highlighted." width="1518" height="819" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# BigQuery

> Connect your CRM to your Data Warehouse with Stacksync!

Source: https://docs.stacksync.com/connectors/bigquery

## Introduction

Google BigQuery is a cloud-based data warehousing and analytics platform that enables users to analyze and process large datasets using SQL-like queries. It is highly scalable and allows users to store and query massive amounts of data in real time.

Check out our [BigQuery guides](/two-way-sync/guides/modify-salesforce-data-in-postgres) to get started and sync data to your other systems and databases!

## Things to keep in mind

### Quotas and Limits

There is a limit of 1,500 table modifications that can be made to a BigQuery table in a day. Table modifications include `DELETE`, `INSERT`, `MERGE`, `TRUNCATE TABLE`, or `UPDATE` statements. If a table reaches this limit, any new modifications made through independent load jobs might fail. However, Stacksync operations are designed to avoid quota limitations so your syncs won't fail.

This is a restriction set by Google, for more details:

<Cards>
  <Card title="Quotas and limits | BigQuery | Google Cloud Documentation" href="https://cloud.google.com/bigquery/quotas" description="Google Cloud Documentation" favicon="https://docs.cloud.google.com/_static/cloud/images/social-icon-google-cloud-1200-630.png" />
</Cards>

### Views are not supported

As of now, only **tables** can be synced with Stacksync. Views and materialized views cannot be synced, but we are working on it! Stay tuned!

# Authorize Campfire Connection

> This guide explains how to connect your Campfire environment to Stacksync.

Source: https://docs.stacksync.com/connectors/campfire/authorize-dynamics-365-f-and-o

## 1. Generate an API Key in [Campfire](https://app.meetcampfire.com/v2/auth/sign-in)

1. Login to [Campfire](https://app.meetcampfire.com/v2/auth/sign-in)
2. Navigate to **Setting** -> **API Keys**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-dashboard-settings-menu.webp" alt="Campfire home dashboard with the &#x22;Settings&#x22; item highlighted at the bottom of the left sidebar." width="1600" height="919" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-settings-api-keys.webp" alt="Campfire Settings menu with &#x22;API Keys&#x22; highlighted under the Developer section." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Click on **New User** and Create a API user with a **Super User Role.**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-api-keys-new-user.webp" alt="Campfire API Keys page with the &#x22;New User&#x22; button highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-create-api-super-user.webp" alt="Campfire &#x22;Create API User&#x22; dialog with Name and Email fields and the &#x22;Is Super User&#x22; checkbox highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. Click on **Create API Key** and Copy the **API Key secret** generated.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-create-api-key-button.webp" alt="Campfire API user &#x22;Test&#x22; (Super User) with the &#x22;Create API Key&#x22; button highlighted." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-api-token-generated.webp" alt="Campfire &#x22;API Token&#x22; dialog showing the masked new API key, to be copied once, with an &#x22;API key created!&#x22; notice." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a Connection in [Stacksync](https://app.stacksync.com/) App

1. Click **Create Resource**
2. Select **Syncs**
3. Choose the **Campfire connector**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-select-syncs.webp" alt="Stacksync &#x22;Create a resource&#x22; screen with templates on the left and the &#x22;Syncs&#x22; tile highlighted under &#x22;Jump right in&#x22;." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-campfire.webp" alt="Stacksync &#x22;Create a new Sync&#x22; Connect Apps step with the connector grid and the Campfire tile highlighted." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This opens the authorization flow.

## 3. Complete the Connection Setup

1. Provide the **Campfire API key** generated in Step 1.
2. Follow the on-screen steps to finalize the connection

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-connection-api-token.webp" alt="Stacksync Campfire &#x22;Select a connection&#x22; dialog with &#x22;Create new credential&#x22; chosen and the &#x22;API Token&#x22; field highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Campfire‹

Source: https://docs.stacksync.com/connectors/campfire

The **Stacksync Campfire connector** enables **bidirectional synchronization** of ERP data with any data warehouse or operational system.

## Campfire connector supports:

1. Historical data backfill.
2. Near real-time updates via change tracking.
3. Bidirectional write-back support.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Campfire Connection" href="/https/docs.stacksync.com/connectors/campfire/authorize-dynamics-365-f-and-o" />
</Cards>

<Cards>
  <Card title="Campfire Supported Objects" href="/https/docs.stacksync.com/connectors/campfire/make-a-custom-entity-syncable-by-stacksync" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Campfire Supported Objects

Source: https://docs.stacksync.com/connectors/campfire/make-a-custom-entity-syncable-by-stacksync

Stacksync supports **37 objects** from Campfire, covering core financial and operational data.

1. **Accounts Payable**<br />

   | Object     | Incremental Sync | Full Sync | Delete Detection |
   | ---------- | ---------------- | --------- | ---------------- |
   | Bill       | ✅                | ✅         | ✅ Every 24h      |
   | Debit Memo | ✅                | ✅         | ✅                |
2. **Accounts Receivable**<br />

   | Object      | Incremental Sync | Full Sync | Delete Detection |
   | ----------- | ---------------- | --------- | ---------------- |
   | Invoice     | ✅                | ✅         | ✅                |
   | Credit Memo | ✅                | ✅         | ✅                |
3. **Cash Management**<br />

   | Object           | Incremental Sync | Full Sync | Delete Detection |
   | ---------------- | ---------------- | --------- | ---------------- |
   | Bank Account     | ✅                | ✅         | ✅                |
   | Bank Transaction | ✅                | ✅         | ✅                |
4. **Core Accounting**<br />

   | Object                       | Incremental Sync | Full Sync | Delete Detection        |
   | ---------------------------- | ---------------- | --------- | ----------------------- |
   | Journal Entry                | ✅                | ✅         | ✅                       |
   | Intercompany Journal Entry   | ✅                | ✅         | ✅                       |
   | Chart of Accounts            | ✅                | ✅         | ✅                       |
   | Chart Transaction            | ✅                | ✅         | ✅                       |
   | Fixed Asset                  | ✅                | ✅         | ✅                       |
   | Fixed Asset Class            | ✅                | ✅         | ✅                       |
   | Fixed Asset Automation Rule  | ✅                | ✅         | ✅ Every 24h             |
   | Fixed Asset Automation Match | ✅                | ✅         | N/A (cannot be deleted) |
   | Budget                       | ✅                | ✅         | ✅                       |
   | Transaction Match            | ✅                | ✅         | ✅                       |
5. **Company & Organization**<br />

   | Object              | Incremental Sync | Full Sync | Delete Detection        |
   | ------------------- | ---------------- | --------- | ----------------------- |
   | Vendor              | ✅                | ✅         | ✅                       |
   | Vendor Summary      | ✅                | ✅         | N/A (cannot be deleted) |
   | Vendor Custom Field | ✅                | ✅         | ✅ Every 24h             |
   | Department          | ✅                | ✅         | ✅ Every 24h             |
   | Entity              | ✅                | ✅         | ✅ Every 24h             |
   | Tag                 | ✅                | ✅         | ✅                       |
   | Tag Group           | ✅                | ✅         | ✅ Every 24h             |
   | Cost Allocation     | ✅                | ✅         | ✅                       |
   | Custom Field        | ✅                | ✅         | ✅                       |
6. **Files**<br />

   | Object | Incremental Sync | Full Sync | Delete Detection |
   | ------ | ---------------- | --------- | ---------------- |
   | File   | ✅                | ✅         | ✅                |
7. **Revenue Recognition**<br />

   | Object              | Incremental Sync | Full Sync | Delete Detection |
   | ------------------- | ---------------- | --------- | ---------------- |
   | Contract            | ✅                | ✅         | ✅                |
   | Contract Customer   | ✅                | ✅         | ✅                |
   | Product             | ✅                | ✅         | ✅                |
   | Product Bundle      | ✅                | ✅         | ✅                |
   | Revenue Transaction | ✅                | ✅         | ✅                |
   | Customer Currency   | ✅                | ✅         | ✅                |
8. **Bank Reconciliation**<br />

   | Object                | Incremental Sync | Full Sync | Delete Detection |
   | --------------------- | ---------------- | --------- | ---------------- |
   | Reconciliation Report | ✅                | ✅         | ✅                |
9. **Integrations**<br />

   | Object  | Incremental Sync | Full Sync | Delete Detection |
   | ------- | ---------------- | --------- | ---------------- |
   | Webhook | ✅                | ✅         | ✅                |

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Connect Deposco to Stacksync

Source: https://docs.stacksync.com/connectors/deposco/connect-deposco-to-stacksync

Create a `generic_api_credentials` connection in Stacksync. That type stores one\
string, so the Deposco details go in it as JSON:

```json
{
  "tenant_code": "XYZ",
  "username": "api.user",
  "password": "your-password",
  "environment": "ua",
  "business_unit": "BASE"
}
```

`tenant_code` is **case-sensitive** (the connector uppercases it).&#x20;

`environment` is `production` or `ua`;&#x20;

`business_unit` is the fallback whenever a module needs one.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/deposco-select-generic-api-credentials.webp" alt="Stacksync &#x22;Create a new Connection&#x22; Select app step, searching &#x22;generic&#x22; and showing the &#x22;Generic API Credentials&#x22; tile." width="995" height="409" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/deposco-generic-api-credentials-json.webp" alt="Generic API Credentials &#x22;Configure connection&#x22; form with a Domain field and JSON API Credentials including tenant_code and business_unit." width="1003" height="784" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Deposco

Source: https://docs.stacksync.com/connectors/deposco

Deposco Bright Suite is a cloud-based platform for warehouse management, order management, inventory, fulfillment, and supply chain operations.

With the Stacksync Deposco connector, you can build automated workflows between Deposco and your other applications, databases, ERPs, CRMs, and operational systems.

The connector supports common Deposco operations across orders, products, inventory, shipments, fulfillment, and trading partners.

<Cards>
  <Card title="Connect Deposco to Stacksync" href="/https/docs.stacksync.com/connectors/deposco/connect-deposco-to-stacksync" />
</Cards>

# Authorize Dynamics 365 CRM

> This guide explains how to connect your Dynamics 365 CRM environment to Stacksync.

Source: https://docs.stacksync.com/connectors/dynamics-365-crm/authorize-dynamics-365-crm

## 1. Find your Microsoft Dynamics Environment URL

Your environment URL is the base address of your D365 CRM instance. To find it, copy the URL from your browser when you are in the application.

Examples:

* Production: `https://yourorg.crm.dynamics.com`
* Sandbox: `https://yourorg.sandbox.crm.dynamics.com`

### 2. Select Dynamics 365 CRM

In Stacksync:

1. Click **Create Sync**
2. Choose **Dynamics 365 CRM**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-dynamics-365-crm.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with the &#x22;Microsoft Dynamics 365 CRM&#x22; tile highlighted." width="1600" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

This opens the authorization flow.

***

### 3. Enter Your Environment URL

Provide the base URL of your D365 CRM environment you retrieved in the first step.\
\ <br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-crm-environment-url.webp" alt="Stacksync &#x22;Dynamics365 Crm&#x22; dialog with the &#x22;Dynamics 365 URL&#x22; field highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="800" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click **Authorize App**.

***

### 4. Sign In with Microsoft

You will be redirected to Microsoft’s login page.

1. Enter your Microsoft credentials
2. Continue to the permissions screen

This authenticates you as a valid D365 user.

***

### 5. Grant Stacksync Access

Microsoft will ask you to approve the Stacksync app.

Click **Accept** to authorize:

* Permission to read CRM data
* Permission to interact with OData entities

If you see this message:

> *“Need admin approval for this app.”*

Ask your admin to:

* Open the Microsoft identity / directory admin portal and go to the **enterprise applications / app registrations** area.
* Locate the **Stacksync** application or the corresponding app registration.
* Review and grant the requested API permissions (for example, access to Dynamics 365 CRM APIs).

Once an admin has granted consent, the “Need admin approval” screen will no longer appear when you authorize Stacksync. You can then restart the authorization from step 2, and the flow will complete successfully, allowing Stacksync to connect to your Microsoft account and start syncing data.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Enable Changes Detection Capture (CDC) for Custom Entities

Source: https://docs.stacksync.com/connectors/dynamics-365-crm/enable-changes-detection-capture-cdc

To synchronize your data efficiently, Stacksync must detect incremental changes, that is new, updated and deleted records, without repeatedly scanning entire tables. Stacksync’s change data capture (CDC) relies on the `Change Tracking` feature in Dynamics 365, which **you must enable for Custom entities** you plan to sync. The following section explains how to turn on change tracking so Stacksync can reliably capture those incremental updates.

<Callout type="info">
  **Standard entities** have change tracking **enabled by default,** no action required. This guide is only for **custom entities**.
</Callout>

1. Sign in to [Power Apps](https://make.powerapps.com/).
2. Expand **Dataverse**, and then select **Tables.**
3. Select a table, and then in **Table properties** select **Properties**.
4. In the Edit table page, expand **Advanced options.**
5. In the **For this table** section, enable the **Track Changes** checkbox.<br />

   <div>
     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-crm-track-changes.webp" alt="Dynamics 365 table settings &#x22;For this table&#x22; section with the &#x22;Track changes&#x22; checkbox checked and highlighted." width="524" height="197" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
   </div>
6. Select **Save.**

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Dynamics 365 CRM

Source: https://docs.stacksync.com/connectors/dynamics-365-crm

The Stacksync **Dynamics 365 CRM** connector lets you sync CRM data to any warehouse or operational system, with support for full syncs, incremental syncs (change tracking), and write-back.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Dynamics 365 CRM" href="/https/docs.stacksync.com/connectors/dynamics-365-crm/authorize-dynamics-365-crm" />
</Cards>

<Cards>
  <Card title="Enable Changes Detection Capture (CDC) for Custom Entities" href="/https/docs.stacksync.com/connectors/dynamics-365-crm/enable-changes-detection-capture-cdc" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Dynamics 365 F&O

> This guide explains how to connect your Dynamics 365 Finance & Operations environment to Stacksync.

Source: https://docs.stacksync.com/connectors/dynamics-365-finance-and-operations/authorize-dynamics-365-f-and-o

## 1. Find your Microsoft Dynamics Environment URL

Your environment URL is the base address of your D365 F\&O instance. To find it, copy the URL from your browser when you are in the application.

Examples:

* Production: `https://yourorg.operations.dynamics.com`
* Sandbox: `https://yourorg.sandbox.operations.dynamics.com`

### 2. Select Dynamics 365 Finance

In Stacksync:

1. Click **Create Sync**
2. Choose **Dynamics 365 Finance & Operations**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-dynamics-365-fo.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with the &#x22;Microsoft Dynamics 365 F&O&#x22; tile highlighted." width="1600" height="802" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

This opens the authorization flow.

***

### 3. Enter Your Environment URL

Provide the base URL of your D365 Finance & Operations environment you retrieved in the first step.<br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-environment-url.webp" alt="Stacksync &#x22;Dynamics365 Finance&#x22; dialog with the &#x22;Finance & Operations URL&#x22; field highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="923" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click **Authorize App**.

***

### 4. Sign In with Microsoft

You will be redirected to Microsoft’s login page.

1. Enter your Microsoft credentials
2. Continue to the permissions screen

This authenticates you as a valid D365 user.

***

### 5. Grant Stacksync Access

Microsoft will ask you to approve the Stacksync app.

Click **Accept** to authorize:

* Permission to read ERP data
* Permission to interact with OData entities

If you see this message:

> *“Need admin approval for this app.”*

Ask your admin to:

* Open the Microsoft identity / directory admin portal and go to the **enterprise applications / app registrations** area.
* Locate the **Stacksync** application or the corresponding app registration.
* Review and grant the requested API permissions (for example, access to Dynamics 365 F\&O APIs).

Once an admin has granted consent, the “Need admin approval” screen will no longer appear when you authorize Stacksync. You can then restart the authorization from step 2, and the flow will complete successfully, allowing Stacksync to connect to your Microsoft account and start syncing data.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Enable Changes Detection Capture (CDC)

Source: https://docs.stacksync.com/connectors/dynamics-365-finance-and-operations/enable-changes-detection-capture-cdc

To synchronize your data efficiently, Stacksync must detect incremental changes—that is, new and updated records—without repeatedly scanning entire tables. Stacksync’s change data capture (CDC) relies on the `Change Tracking` feature in Dynamics 365, which **you must enable for each entity** you plan to sync. The following section explains how to turn on change tracking so Stacksync can reliably capture those incremental updates.

1. In the search bar search for **Data Management**
2. On the data Management page go on the data entities page<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-data-management-entities.webp" alt="D365 Finance and Operations &#x22;Data management&#x22; workspace found via search, with the &#x22;Data entities&#x22; tile highlighted." width="794" height="370" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Search for the entities you need to sync (e.g., Customers, Vendors)
4. Select the entity
5. Click **Change tracking** in the top ribbon<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-change-tracking-menu.webp" alt="D365 F&O Data entities list with &#x22;Vendors&#x22; selected and the &#x22;Change tracking&#x22; option highlighted in the overflow menu." width="921" height="288" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Select the tracking mode:
   * `Enable entire entity` if available (tracks changes when any table used by the entity (root or child tables) changes, so it captures more updates and is usually better for integrations.
   * Otherwise `Enable primary table` (tracks changes only when the main (root) table of the entity changes)<br />

     Example:\
     For a **Customer** entity, the primary table is the core customer record and child tables include addresses.

     * If you enable **primary table**, changing the customer’s name is tracked, but changing only the address is not.
     * If you enable **entire entity**, both the name change and the address change are tracked and show up in your incremental sync.

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-enable-change-tracking-options.webp" alt="D365 F&O change tracking options &#x22;Enable primary table&#x22;, &#x22;Enable entire entity&#x22; and &#x22;Enable custom query&#x22; highlighted for Vendors." width="926" height="231" loading="lazy" decoding="async" />

       <figcaption />
     </figure>

<Callout type="warn">
  Some entities cannot have change tracking turned on. In complex entities, the “Track changes” option may be disabled or fail validation during activation, which means incremental change tracking is not available. In those cases, StackSync automatically falls back to full-sync mode for that entity, periodically re-reading all records to detect inserts and updates.
</Callout>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Dynamics 365 Finance and Operations

Source: https://docs.stacksync.com/connectors/dynamics-365-finance-and-operations

The Stacksync **Dynamics 365 Finance & Operations (D365 F\&O)** connector lets you sync ERP data to any warehouse or operational system, with support for full syncs, incremental syncs (change tracking), and write-back.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Dynamics 365 F&O" href="/https/docs.stacksync.com/connectors/dynamics-365-finance-and-operations/authorize-dynamics-365-f-and-o" />
</Cards>

<Cards>
  <Card title="Enable Changes Detection Capture (CDC)" href="/https/docs.stacksync.com/connectors/dynamics-365-finance-and-operations/enable-changes-detection-capture-cdc" />
</Cards>

<Cards>
  <Card title="Make a Custom Entity Syncable by Stacksync" href="/https/docs.stacksync.com/connectors/dynamics-365-finance-and-operations/make-a-custom-entity-syncable-by-stacksync" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Make a Custom Entity Syncable by Stacksync

Source: https://docs.stacksync.com/connectors/dynamics-365-finance-and-operations/make-a-custom-entity-syncable-by-stacksync

Custom data entities in Dynamics 365 Finance & Operations are not always exposed to the APIs that Stacksync uses. If you don’t see your custom entity in Stacksync’s list, follow the steps below to make it available with as little developer involvement as possible.

## 1. Confirm the entity exists <a href="#id-1-confirm-the-entity-exists" id="id-1-confirm-the-entity-exists" />

* In D365 F\&O, in the search bar search for **Data management → Data entities**.<br />

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-custom-entity-data-entities.webp" alt="D365 F&O &#x22;Data management&#x22; workspace opened from search, with the &#x22;Data entities&#x22; tile highlighted to find a custom entity." width="794" height="370" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
* Search for your custom entity by its **name or label**.

Once you confirm the custom data entity exists, you can move on to checking whether it is API‑exposed.

## 2. Check if the entity is API-exposed <a href="#id-2-check-if-the-entity-is-public-api-exposed" id="id-2-check-if-the-entity-is-public-api-exposed" />

* While signed into D365, open a new browser tab and go to:\
  `https://<your-environment-url>/data`\
  For example:
  * `https://yourorg.operations.eu.dynamics.com/data`.
  * `https://yourorg.sandbox.operations.eu.dynamics.com/data`.
* Use the browser search (**Ctrl+F** or **Cmd+F**) and look for a collection name that matches your entity, usually in **plural** form (for example, `MyCustomEntities`).

Interpretation:

* **If you find the entity**:
  * The entity is already API-exposed.
  * In Stacksync, refresh the list of entities/tables in your Dynamics connector; the entity should be available to select and sync.
* **If you see cannot see it under `/data`**:
  * The entity exists Stacksync cannot access it via API.

## 3. If the entity is not API-exposed: what to ask a developer <a href="#id-3-if-the-entity-is-not-public-what-to-ask-a-develo" id="id-3-if-the-entity-is-not-public-what-to-ask-a-develo" />

Making an entity API-exposed requires a small, one-time change in the development environment. To keep this focused, send your D365 developer or partner the following brief request:

> **Goal:** Make custom data entity `<EntityName>` API-exposed so Stacksync can sync it.\
> **Environment:** `<your D365 environment URL>`

Ask them to:

1. Open the custom data entity in the development workspace.
2. Select the **root node** of the entity and set these properties:
   * **IsPublic** = `Yes`
   * **Public Entity Name** = singular name (e.g. `MyCustomEntity`)
   * **Public Collection Name** = plural name (e.g. `MyCustomEntities`)
3. Build and deploy the model to the target environment.
4. Confirm the entity is now API-exposed by repeating step 2.

Note that setting **IsPublic = Yes** does **not** make the entity publicly accessible on the internet.\
It only exposes the entity through the OData API **for authenticated and authorized users**. Without this flag, the entity is simply **not available via the API at all**.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Front

> Authorize your Front app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/front/authorize-front

Connecting to Front is done without any coding required in a few steps.

## 1. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections.webp" alt="Legacy Stacksync dashboard with an arrow pointing to &#x22;Connections&#x22; in the sidebar" width="937" height="605" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click "create new connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-new-connection-button.webp" alt="Legacy Stacksync My Connections page with an arrow pointing to the &#x22;Create New Connection&#x22; button" width="935" height="487" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Click "Front"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-front.webp" alt="Stacksync &#x22;Create a Connection&#x22; Select App step with the Front app tile highlighted." width="944" height="667" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Click "Authorize"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/front-authorize-stacksync-access.webp" alt="Front OAuth prompt to authorize Stacksync access to shared inboxes, teammates and company info, with &#x22;Authorize&#x22; highlighted." width="646" height="447" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your Front instance is now connected to Stacksync!🎉

# Front

> Two-way sync between Front and your other systems.

Source: https://docs.stacksync.com/connectors/front

## Supported Objects

Stacksync lets you sync the following Front objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Accounts</td><td><span>✅ Supported</span></td></tr><tr><td>Contacts</td><td><span>✅ Supported</span></td></tr><tr><td>Contact Groups</td><td><span>✅ Supported</span></td></tr><tr><td>Events</td><td><span>✅ Supported</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Associations CDC Boost

Source: https://docs.stacksync.com/connectors/hubspot/associations/associations-cdc-boost

Many teams expect to track association changes in HubSpot the same way they track record updates: incrementally and in near real time. In practice, that’s not possible.

HubSpot does not provide a native mechanism to incrementally detect association changes (CDC). As a result, tracking association updates at scale is challenging and often inefficient. To know what changed, the only option is to repeatedly read the entire associations dataset. This works at small scale, but as association volumes grow, sync times degrade rapidly.

| Number of Associations | Time to Detect Changes |
| ---------------------- | ---------------------- |
| \< 10,000              | \< 1 minute            |
| 100,000                | \< 10 minutes          |
| 1,000,000              | > 1 hour               |

The situation gets worse when multiple association tables are involved. Each table must be scanned independently, and HubSpot’s API concurrency limits quickly become a bottleneck.

At first glance, Hubspot native webhooks seem like a solution. In reality, they are unreliable especially at scale and do not support associations involving custom objects. For teams running real-time, mission-critical pipelines, this creates a hard blocker.

### Solution: Associations CDC Boost

To meet these requirements, we took a different approach.

Instead of polling association tables directly or relying on unpredictables Hubspot webhooks, Stacksync monitors these rollup properties to instantly identify which records have experienced association changes.

This provides a deterministic, incremental signal suitable for real-time mission-critical workloads.

### Key Benefits

* Association changes detected in seconds instead of minutes.
* Dramatically lower API usage.
* Predictable, fast, and scalable syncs suitable for mission-critical real-time pipelines.

***

<Callout type="info">
  * Free and Starter Hubspot accounts can't benefit of Stacksync CDC Boost.
  * The following setup must be performed by a HubSpot Admin or Super Admin.
  * This setup is recommended only for associations tables with more than 10,000 records.
</Callout>

## 1. Identify Your Association Tables

Determine which association tables you want to speed up. For each association (e.g., Contact-Ticket, Company-Deal), you'll create rollup fields on the **alphabetically first object**.

### Which object to create properties on:

| Association       | Create Properties On | Why                          |
| ----------------- | -------------------- | ---------------------------- |
| Contact ↔ Ticket  | **Contact**          | C comes before T             |
| Company ↔ Contact | **Company**          | Company comes before Contact |
| Contact ↔ Deal    | **Contact**          | C comes before D             |
| Deal ↔ Line Item  | **Deal**             | D comes before L             |

***

## 2. Navigate to Properties in HubSpot

1. In your HubSpot account, click the **Settings** icon (gear) in the top navigation bar.
2. In the left sidebar, go to **Data Management → Properties**.
3. Select the object type where the properties will be created (choose the alphabetically first object).
4. Click **Create property** to start the setup.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-properties-create-property.webp" alt="HubSpot Properties settings with numbered steps: settings gear, &#x22;Properties&#x22;, &#x22;Contact properties&#x22; object, and &#x22;Create property&#x22;." width="1193" height="791" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## 3. Create Rollup Fields

You need to create **multiple custom rollup fields** for each association:

* **One rollup field** to sync associations with **no labels** (unlabeled associations).
* **One rollup field for each association label** you use.

### 3.1 Naming Convention

Property labels must follow this pattern:

```
sync_associations_{object1}_{object2}_label_{suffix}
```

**Components:**

* `sync_associations_` - Required prefix
* `{object1}` - First object (lowercase, plural): `contacts`, `companies`, `deals`
* `{object2}` - Second object (lowercase, plural): `tickets`, `deals`, `line_items`
* `label_` - Required separator
* `{suffix}` - Either `none` (for unlabeled) or the label name in lowercase (e.g., `primary`)

**Examples:**

| Association       | Unlabeled Field                                   | Primary Label Field                                  |
| ----------------- | ------------------------------------------------- | ---------------------------------------------------- |
| Contact ↔ Ticket  | `sync_associations_contacts_tickets_label_none`   | `sync_associations_contacts_tickets_label_primary`   |
| Company ↔ Contact | `sync_associations_companies_contacts_label_none` | `sync_associations_companies_contacts_label_primary` |

> **Important**: Use lowercase plural forms (e.g., `contacts` not `Contact`)

### 3.2 Create the "No Labels" Rollup Field

Click **Create property** and configure:

<table>
  <thead><tr><th width="218.75848388671875">Field</th><th>Value</th></tr></thead>

  <tbody><tr><td><strong>Object type</strong></td><td>The alphabetically first object (e.g., Contact)</td></tr><tr><td><strong>Group</strong></td><td>Use the default group for that object (e.g., Contact information)</td></tr><tr><td><strong>Label</strong></td><td><code>sync_associations_{object1}\\_{object2}_label_none</code></td></tr><tr><td><strong>Field type</strong></td><td><strong>Calculation property</strong> → <strong>Rollup</strong></td></tr><tr><td><strong>Rollup type</strong></td><td><strong>Sum</strong></td></tr><tr><td><strong>Number format</strong></td><td><strong>Formatted number</strong></td></tr><tr><td><strong>Association record type</strong></td><td>The other object (e.g., Ticket)</td></tr><tr><td><strong>Association labels</strong></td><td><strong>All association labels</strong></td></tr><tr><td><strong>Property to calculate</strong></td><td><strong>Record ID</strong></td></tr></tbody>
</table>

**Example for Contact-Ticket:**

* Label: `sync_associations_contacts_tickets_label_none`
* Create on: Contact
* Association record type: Ticket

Click **Create** to save.

### 3.3 Create a Rollup Field for Each Association Label

If you use association labels (like "Primary", "Secondary", etc.), create one rollup field for each label.

Click **Create property** and configure:

<table>
  <thead><tr><th width="219.110107421875">Field</th><th>Value</th></tr></thead>

  <tbody><tr><td><strong>Object type</strong></td><td>Same as above</td></tr><tr><td><strong>Group</strong></td><td>Use the default group</td></tr><tr><td><strong>Label</strong></td><td><code>sync_associations_{object1}\\_{object2}_label_{labelname}</code></td></tr><tr><td><strong>Field type</strong></td><td><strong>Calculation property</strong> → <strong>Rollup</strong></td></tr><tr><td><strong>Rollup type</strong></td><td><strong>Sum</strong></td></tr><tr><td><strong>Number format</strong></td><td><strong>Formatted number</strong></td></tr><tr><td><strong>Association record type</strong></td><td>The other object</td></tr><tr><td><strong>Association labels</strong></td><td><strong>Select association labels</strong> → Select <strong>ONLY</strong> this specific label</td></tr><tr><td><strong>Property to calculate</strong></td><td><strong>Record ID</strong></td></tr></tbody>
</table>

**Example for Contact-Ticket with "Primary" label:**

* Label: `sync_associations_contacts_tickets_label_primary`
* Association labels: Select only "Primary"

Repeat this for **each** association label you use.

***

## 4. Enable the Hubspot Association CDC Boost in Stacksync

After creating the rollup fields in HubSpot, you need to edit your sync so Stacksync can detect them.

1. Navigate to your sync in StackSync
2. Click **Stop sync** and wait for it to fully stop
3. Click **Edit sync**
4. Click **Next** through each step (no need to change anything)
5. Click **Save** on the final step
6. Click **Start sync** to resume

> **Note**: You don't need to change any settings. Going through the edit process allows StackSync to scan your HubSpot account and detect the new rollup fields.

***

## 5. Maintenance & Monitoring

### 5.1 Custom rollup fields monitoring

Stacksync continuously monitors all required rollup properties. If a rollup property is deleted or modified in HubSpot:

* Stacksync automatically detects the issue
* Falls back to a full association scan for the impacted table
* Sends an email notification with remediation guidance

This ensures data correctness even in misconfiguration scenarios.

### 5.2 Association Model Change

If HubSpot or your team introduces **new association labels** for an existing object pair:

* Stacksync automatically detects the change
* You receive an email notification
* The email includes instructions to extend the rollup configuration if needed

This allows association models to evolve safely over time without silent data gaps.

### 5.3 Operational Guarantees

* No data loss if rollups are misconfigured or removed
* Automatic fallback mechanisms
* Explicit customer notifications on required actions
* Designed for enterprise-scale data volumes and SLAs

***

## Summary

The Associations CDC Boost replaces slow full-scan or webhooks approaches with a scalable, incremental, and reliable detection mechanism. By leveraging HubSpot rollup properties, Stacksync enables real-time association syncing that meets enterprise performance and reliability requirements.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Associations

> Stacksync supports syncing your HubSpot Associations

Source: https://docs.stacksync.com/connectors/hubspot/associations

## TL;DR

* Stacksync supports *two-way sync* for HubSpot associations
* Associations are *undirected*, meaning that if object A is associated with object B, object B is also associated with object A in return.
* Associations cannot be updated, but you can delete and create a new one.
* You can add several associations (with different association labels) to the same pair of objects.
* Associations between ALL synced objects are supported, including emails, meetings, engagements, all standard and custom objects...
* Associations for custom objects are also supported ✅

## How HubSpot associations work

To associate two objects in HubSpot, you need to sync and use a third table *"the association table"* which contains in each row both of the object_ids to associate (e.g. associating a contact_id and a company_id).

When you connect two objects in HubSpot, the connection is undirected. If Contact A is connected to Company X, then Company X is also connected to Contact A in return.

To specify the type of connection between two objects, you can utilize association labels. For instance, Contact A can be labeled as a *manager* at Company X and also as a *director* at Company Y. In this case, you would connect Contact A with both companies but assign different labels to each connection.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-association-labels-different-companies.webp" alt="Table rows showing one contact_id associated with two company_ids, labeled &#x22;manager&#x22; and &#x22;director&#x22;." width="601" height="100" loading="lazy" decoding="async" />

  <figcaption><p>Example of HubSpot associations: the same Contact is associated with two different Companies, each with different roles.</p></figcaption>
</figure>

<Callout type="success">
  You can add several labels to the same pair of objects. For instance, Contact A can be in the *finance_department* and in the *marketing_department* of the same company. For that, you can add **two rows for the same pair of objects but with different association labels** as follows:

  <img src="/https/docs.stacksync.com/images/connectors/hubspot-association-labels-same-company.webp" alt="Table rows showing one contact and company pair with two association labels, &#x22;finance_department&#x22; and &#x22;marketing_department&#x22;." width="601" height="100" loading="lazy" decoding="async" />
</Callout>

Stacksync ensures that all associations between pairs of object types are synchronized to an associative table. For example, any connection between a Contact and a Company will be synced to the "`associations_company_and_contact`" table, which has the following 3 columns:

* `contact_id` (string)
* `company_id` (string)
* `association_label` (string)

There will be an additional column `stacksync_record_id_xxxxxx`. Don't worry, this column is just used by Stacksync to keep your records syncing properly. Just do not tamper with this column!

Because HubSpot associations are undirected, these associations will only appear in one table. If you have a table `associations_company_and_contact`, there won't be a table with the opposite order (`associations_contact_and_company`).

<Callout type="info">
  Associations cannot be updated. Instead, you can delete and then create an association between the two desired objects with a different label.
</Callout>

## Association Type IDs

Every association in HubSpot has an `association_type_id`, defining the relationship between objects. Even if not specified during creation, HubSpot automatically assigns an `association_type_id`.\
The list of `association_type_ids` is available on the [HubSpot documentation](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4#company-to-object).

## Association Labels

HubSpot provides a set of predefined association types (e.g. unlabeled contact to company), but users can define custom association labels, if it is included in their HubSpot plan. There are two HubSpot-defined association types:

* **No Label (Default Association Type)**
  * Every association between objects (Contacts, Companies, Deals, etc.) automatically has a default unlabeled association.
  * Even when a labeled association is added (Primary or Custom), the unlabeled association remains.
* **'Primary' Label (For Company-Contact Associations)**
  * HubSpot has a built-in 'Primary' label specifically for associating a Contact with their main Company.
  * While a Contact must have a primary company, other objects (e.g., Deals) may or may not have a primary company.
  * Example: Joe works at both Google and Amazon, but Google is his primary employer.
* **Custom Labels**
  * Users on eligible HubSpot plans can define custom association labels (e.g., ‘Advisor’ for a Contact-Company relationship), which you can define through the [HubSpot UI](https://knowledge.hubspot.com/object-settings/create-and-use-association-labels) or the [HubSpot API](https://developers.hubspot.com/docs/reference/api/crm/associations/associations-schema#post-%2Fcrm%2Fv4%2Fassociations%2Fdefinitions%2Fconfigurations%2F%7Bfromobjecttype%7D%2F%7Btoobjecttype%7D%2Fbatch%2Fcreate).
  * When a custom label is added, the default unlabeled association still exists.
  * Example: Tom is an Advisor at Amazon, so a custom label 'Advisor' is created for his Contact-Company association in addition to the default unlabeled association.

Read more on the HubSpot Association documentation [here](https://developers.hubspot.com/docs/api/crm/associations).

## Querying your data

You can `JOIN` your data using the associations tables as follows:

```sql
SELECT
  -- Contact data
  contact.id, contact.email,
  -- Company data
  company.id, company.city,
  -- Association label
  associations.association_label
FROM (SELECT DISTINCT company_id, contact_id FROM hubspot.associations_company_and_contact) associations
LEFT JOIN hubspot.company company ON company.id = association.company_id
LEFT JOIN hubspot.contact contact ON contact.id = association.contact_id;
```

In this particular example, Contact and Company are used, but the principles mentioned can be applied to any other HubSpot CRM objects that can be synced with Stacksync. Suppose you have the custom Pets and custom Shelters objects in HubSpot. In that case, Stacksync will synchronize an `associations_pets_and_shelters` table, including the `pet_id` and `shelter_id` columns.

***

## Advanced

<Cards>
  <Card title="Associations CDC Boost" href="/https/docs.stacksync.com/connectors/hubspot/associations/associations-cdc-boost" />
</Cards>

***

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Syncing Associations using Postgres IDs

Source: https://docs.stacksync.com/connectors/hubspot/associations/syncing-associations-using-postgres-ids

When managing HubSpot associations through Stacksync, the most robust approach is to decouple the creation of the association from the generation of HubSpot's internal IDs. By using your internal Postgres IDs as the "stable join key," you ensure that associations are created deterministically and without race conditions.

We recommend creating associations using internal Postgres IDs rather than waiting for HubSpot IDs.

1. **Atomic Transactions:**

   When a new relationship is created in your application (e.g., a Deal is linked to a Client), insert the Client, the Deal, and their Association into your Postgres database within a single atomic transaction.

   This ensures that the relationship is recorded immediately in your system, even before Stacksync has finished syncing the individual records to HubSpot.
2. **ID Propagation:**

   Once Stacksync creates the records in HubSpot and writes the `hubspot_id` back to your `deals` and `clients` tables, you can propagate those IDs into your associations table.

## Sync options

Depending on your requirements for latency, you can choose between two implementation methods:

1. **Near-real-time (Triggers):**

   Use Postgres triggers to monitor updates on your `deals` and `clients` tables. As soon as both records in a relationship have been assigned a HubSpot ID, the trigger executes the sync query to update the association table.

   1. **Pros:** Low latency; associations are ready for HubSpot almost instantly.
   2. **Cons:** Higher database overhead and complexity.
2. **Batch (Scheduled Job):**\
   Run the sync query below as a scheduled job (e.g., a cron job) every 1 minute. This backfills missing HubSpot IDs in the associations table in bulk.
   1. **Pros:** Simpler to implement and monitor.
   2. **Cons:** Up to a 60-second delay in association syncing.

## Implementation: The Sync Query

Use the following SQL query to bridge your internal Postgres IDs with HubSpot IDs. This query identifies associations that lack HubSpot IDs and pulls them from the successfully synced `deals` and `clients` tables.

```sql
UPDATE associations_deal_client
SET
  hubspot_deal_id = d.id,
  hubspot_client_id = c.id
FROM deals d
JOIN clients c
  ON associations_deal_client.postgres_deal_id = d.postgres_id
 AND associations_deal_client.postgres_client_id = c.postgres_id
WHERE associations_deal_client.hubspot_deal_id IS NULL
   OR associations_deal_client.hubspot_client_id IS NULL;
```

By using `postgres_id` as the join key, you guarantee that the association is pinned to the correct records. Once the `hubspot_deal_id` and `hubspot_client_id` are populated in the `associations_deal_client` table, Stacksync can pick them up and create the corresponding association in HubSpot.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Attachments

Source: https://docs.stacksync.com/connectors/hubspot/attachments

## How HubSpot Attachments Work

Attachments are always associated with an Engagement object, such as a call, note, or similar interaction. They can be linked to both Standard and Custom objects in HubSpot.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-contact-engagement-actions.webp" alt="HubSpot contact record with the engagement actions Note, Email, Call, Task, Meeting and More highlighted." width="369" height="267" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Syncing Attachments in Stacksync:

* At least one Engagement object needs to be synced along with the Attachments object. For example, to sync all attachments linked specifically to Calls, you must sync both *Calls* and *Attachments*.
* To sync all attachments regardless of the engagement object they are associated with, you need to sync *all objects*. However, syncing all objects is not recommended unless it is necessary, as this can result in syncing unnecessary data.

# Authorize HubSpot

> Authorize your HubSpot app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/hubspot/authorize-hubspot

<Callout type="info">
  You need to be 'Super Admin' in HubSpot to be able to grant Stacksync access to HubSpot.\
  This is because only the 'Super Admins' have the OAuth scope which is required to connect your HubSpot to an external service such as Stacksync (more info [here](https://community.hubspot.com/t5/APIs-Integrations/OAuth-issue-requiring-superadmin/m-p/250649)).
</Callout>

## 1. Click the connection tile

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-home-connections-tile.webp" alt="Stacksync &#x22;Welcome to Stacksync!&#x22; home page with the &#x22;Connections&#x22; tile highlighted under &#x22;Jump right in&#x22;." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Select the HubSpot connector

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-hubspot.webp" alt="Stacksync &#x22;Create a new Connection&#x22; Select app step with the HubSpot connector tile highlighted." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Optional: Check the Grant access to sensitive fields checkbox.

This will allow our system to read sensitive and highly sensitive fields from your hubspot account

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-grant-sensitive-fields-access.webp" alt="Stacksync HubSpot &#x22;Configure connection&#x22; step with &#x22;Grant access to sensitive fields&#x22; checked and the &#x22;Next&#x22; button highlighted." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Choose the hubspot account you want to use

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-choose-account-oauth.webp" alt="HubSpot &#x22;Connecting Stacksync two-way sync to HubSpot&#x22; page with an account selected and the &#x22;Choose Account&#x22; button highlighted." width="1600" height="887" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Authorize access to stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-connect-app-permissions.webp" alt="HubSpot consent page listing Stacksync's CRM data permissions, with the terms checkbox and &#x22;Connect app&#x22; button highlighted." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Configure your connection on stacksync

6.1 Choose your connection name

6.2 Choose your connection resource id. This is auto generated based on the name - changing it is optional.

6.3 Choose the region you wish to create your connection in. *Resources in one region cannot access resources created in other regions*

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-connection-name-region-create.webp" alt="Stacksync HubSpot connection Create step with Connection Name, Resource ID, &#x22;US East (N. Virginia)&#x22; region and &#x22;Create&#x22; highlighted." width="1600" height="889" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your HubSpot instance is connected 🎉

# HubDB

Source: https://docs.stacksync.com/connectors/hubspot/hubdb

Stacksync supports both syncing existing HubDB tables and generating new HubDB tables. Choose whether to sync the Published or Draft versions.

<Callout type="info">
  Syncing published HubDB tables will cause draft changes to be published.
</Callout>

If you're syncing an existing HubDB table, you can choose the version when linking tables.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubdb-link-tables-published-draft-version.webp" alt="Stacksync Create New Sync Link Tables step for HubSpot to Postgres, offering &#x22;HubDB Table (Published Version)&#x22; and &#x22;(Draft Version)&#x22;." width="1600" height="853" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you're generating a new table in HubDB, choose the version when mapping fields.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubdb-map-fields-table-version.webp" alt="Stacksync Map Fields step for HubSpot to Postgres with &#x22;HubDB table version to sync&#x22; set to Draft instead of Published." width="1600" height="858" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# HubSpot

> Two-way sync between HubSpot and your other systems.

Source: https://docs.stacksync.com/connectors/hubspot

## Supported Objects

Stacksync lets you sync the following HubSpot objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Contact</td><td><span>✅ Supported</span></td></tr><tr><td>Company</td><td><span>✅ Supported</span></td></tr><tr><td>Deal</td><td><span>✅ Supported</span></td></tr><tr><td>Line Item</td><td><span>✅ Supported</span></td></tr><tr><td>Product</td><td><span>✅ Supported</span></td></tr><tr><td>Ticket</td><td><span>✅ Supported</span></td></tr><tr><td>Quote</td><td><span>✅ Supported</span></td></tr><tr><td>Goal</td><td><span>✅ Supported</span></td></tr><tr><td>Owner</td><td><span>✅ Supported</span></td></tr><tr><td>Pipeline</td><td><span>✅ Supported</span></td></tr><tr><td>Stages</td><td><span>✅ Supported</span></td></tr><tr><td>Audit</td><td><span>✅ Supported</span></td></tr><tr><td>Subscriptions</td><td><span>✅ Supported</span></td></tr><tr><td>HubDB</td><td><span>✅ Supported</span></td></tr><tr><td>Forms</td><td><span>✅ Supported</span></td></tr><tr><td>Calls</td><td><span>✅ Supported</span></td></tr><tr><td>Communications</td><td><span>✅ Supported</span></td></tr><tr><td>Emails</td><td><span>✅ Supported</span></td></tr><tr><td>Meetings</td><td><span>✅ Supported</span></td></tr><tr><td>Notes</td><td><span>✅ Supported</span></td></tr><tr><td>Post Mail</td><td><span>✅ Supported</span></td></tr><tr><td>Tasks</td><td><span>✅ Supported</span></td></tr><tr><td>Marketing Emails</td><td><span>✅ Supported</span></td></tr><tr><td>Invoices</td><td><span>✅ Supported</span></td></tr><tr><td>Attachments</td><td><span>✅ Supported</span></td></tr><tr><td>Custom objects (all)</td><td><span>✅ Supported</span></td></tr><tr><td>Associations</td><td><span>✅ Supported</span></td></tr><tr><td>Users</td><td><span>✅ Supported</span></td></tr><tr><td>Services</td><td><span>✅ Supported</span></td></tr><tr><td>Listings</td><td><span>✅ Supported</span></td></tr><tr><td>Courses</td><td><span>✅ Supported</span></td></tr><tr><td>Appointments</td><td><span>✅ Supported</span></td></tr><tr><td>Commerce Payments</td><td><span>✅ Supported</span></td></tr><tr><td>Email Events</td><td><span>✅ Supported</span></td></tr><tr><td>Property History</td><td><span>✅ Supported</span></td></tr><tr><td>Campaigns</td><td><span>🕘 Coming soon</span></td></tr><tr><td>Feedback Submissions</td><td><span>❌ Not supported</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [hello@stacksync.com](mailto:hello@stacksync.com) and we can add support for them in no time!

<Callout type="success">
  All Associations between synced objects are supported. You can choose which associations to sync during the sync setup or sync update.
</Callout>

## Things to keep in mind

#### HubSpot Account Type

The type of HubSpot Account can have restrictions on the supported objects.

* The free version of HubSpot Account does not support the Audit object.
* Custom Objects are only supported in the HubSpot Enterprise version.

#### Custom Fields

HubSpot allows the creation of custom fields with duplicate field names that can conflict with HubSpot system fields, such as the `id` field for example.

In cases where an object includes a custom field named `id`, it may conflict with HubSpot’s native record ID, which is also named `id`. HubSpot permits the creation of custom fields with duplicate names in any object due to its underlying data storage model, which does not enforce uniqueness of field names and lacks a logic layer to prevent such conflicts. To avoid ambiguity during data sync, any custom fields named `id` that conflict with native HubSpot fields will be ignored and excluded from synchronization.

#### Backup and Restore Capabilities

<Callout type="warn">
  With two-way sync, we recommend using a professional backup/restore for your HubSpot CRM.
</Callout>

HubSpot does not have a native backup and restore functionality. Two-way syncing is powerful. A mistake in a connected App could have consequences on your HubSpot data as well. If you sync to another system that has backup capabilities built-in such as a modern database (e.g. Postgres), it could be used to back up data in HubSpot as well but we still recommend using a robust backup and restore service such as:

* [SysCloud](https://ecosystem.hubspot.com/marketplace/apps/productivity/connector/syscloud-backup-for-hubspot-595013)
* [Pro Backup](https://ecosystem.hubspot.com/marketplace/apps/productivity/connector/pro-backup-380854)
* [Rewind](https://rewind.com/products/backups/hubspot/)

***

### Q\&A

<details>
  <summary>
    Syncing columns with custom data constraints
  </summary>

  HubSpot allows columns to have certain data constraints that may cause issues when the incorrect format of data is synced.

  For example, the single-line text field can have constraints for allowing only numeric values, not allowing any special characters, and having a maximum or minimum character limit.

  If you face an error regarding this, either modify the restrictions on the HubSpot column to allow the data to sync or modify the data to fit the format of the HubSpot column.
</details>

# Sensitive fields

> HubSpot requires additional authorization before sensitive fields can be synced. This page explains how to enable access to sensitive fields on our platform.

Source: https://docs.stacksync.com/connectors/hubspot/sensitive-fields

## New Connection

When creating a new connection, follow the standard connection flow.\
During **Step 3**, enable the following option:

[**Grant access to sensitive fields**](/connectors/hubspot/authorize-hubspot#id-3.-optional-check-the-grant-access-to-sensitive-fields-checkbox)

## Existing connection

To enable sensitive fields for an existing connection:

1. Re-authorize your HubSpot connection
2. During **Step 3**, enable:

[**Grant access to sensitive fields**](/connectors/hubspot/authorize-hubspot#id-3.-optional-check-the-grant-access-to-sensitive-fields-checkbox)<br />

## Syncing sensitive fields

Once your connection has been created or re-authorized with sensitive field access enabled, you can include sensitive fields in your sync configuration.

To do this, [edit your sync configuration](https://github.com/stacksyncdata/documentation-gitbooks-connectors/blob/prod/features/two-way-sync.md).\
Sensitive fields will appear during the **Map fields** step.

# Acumatica

Source: https://docs.stacksync.com/connectors

The Stacksync Acumatica connector lets you connect Acumatica ERP data with databases, applications, and other business systems.

You can use the connector to:

* Synchronize Acumatica records with another application
* Create and update records from automated workflows
* Receive changes from Acumatica in near real time
* Work with standard and custom Acumatica objects exposed through web service endpoints

## Before you begin

You need:

* Access to an Acumatica instance
* Permission to manage Connected Applications
* Permission to access the required Acumatica objects
* Your Acumatica instance URL
* An OAuth Client ID and Client Secret

For real-time updates, you also need permission to configure:

* Push Notifications
* Generic Inquiries

## Setup

Complete the following guides:

<Cards>
  <Card title="Create an Acumatica Connected Application" href="/https/docs.stacksync.com/connectors/acumatica/create-an-acumatica-connected-application" />
</Cards>

<Cards>
  <Card title="Connect Acumatica to Stacksync" href="/https/docs.stacksync.com/connectors/acumatica/connect-acumatica-to-stacksync" />
</Cards>

<Cards>
  <Card title="Customize the Acumatica Endpoint" href="/https/docs.stacksync.com/connectors/acumatica/customize-the-acumatica-endpoint" />
</Cards>

<Cards>
  <Card title="Configure Push Notifications for Acumatica" href="/https/docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica" />
</Cards>

<Cards>
  <Card title="Add NoteID to an Acumatica Generic Inquiry" href="/https/docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica/add-noteid-to-an-acumatica-generic-inquiry" />
</Cards>

<Cards>
  <Card title="Create an Acumatica Push Notification" href="/https/docs.stacksync.com/connectors/acumatica/configure-push-notifications-for-acumatica/create-an-acumatica-push-notification" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize MariaDB

> Authorize your MariaDB app and start syncing data with Stacksync

Source: https://docs.stacksync.com/connectors/mariadb/authorize-mariadb

## Adding Credentials to Stacksync <a href="#adding-credentials-to-stacksync" id="adding-credentials-to-stacksync" />

### 1. Select MariaDB in the Create New Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-mariadb.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with an arrow pointing to the MariaDB tile." width="1600" height="766" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Add your MariaDB credentials as Connection String or as Parameters.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-credentials-connection-string-or-parameters.webp" alt="Stacksync MySQL dialog highlighting the &#x22;Connection String&#x22; field or the Host, Port, Username, Password and Database fields." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. (Optional) Upload your SSL Root Certificate file

**More details on how to retrieve your SSL Certificate:**

[**https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate**](/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssl-root-certificate-upload.webp" alt="Stacksync MySQL dialog with the &#x22;SSL (Optional)&#x22; section expanded, showing the &#x22;SSL Root Certificate&#x22; file upload." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. (Optional) Add SSH user and SSH host

**More details on how to set up a SSH tunnel to connect to your RDS instance:**

[**https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/access-private-asw-rds-instance-through-jumpbox**](/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssh-tunnel-settings.webp" alt="Stacksync MySQL dialog with the &#x22;SSH Tunnel (Optional)&#x22; section expanded, showing SSH User, SSH Host, SSH Port and a public key." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click 'Authorize App'

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-authorize-app-button.webp" alt="Stacksync MySQL credentials dialog with an arrow pointing to the &#x22;Authorize App&#x22; button." width="1512" height="946" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# MariaDB

> Two-way sync between MariaDB and your other systems.

Source: https://docs.stacksync.com/connectors/mariadb

## Introduction

MariaDB is a popular open-source relational database management system that originated as a fork of MySQL. It remains fully compatible with MySQL while offering additional features and improved performance in some scenarios. It’s widely used in enterprise and cloud environments for its flexibility, speed, and reliability.

Now you can seamlessly synchronize data across all your CRM and database systems using **StacksSync**!

## Things to keep in mind

### During setup

* [x] **All MariaDB existing tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column; composite primary keys are not supported.
* [x] **Primary keys must be auto-generated**\
  Ensure your primary keys are auto-generated by your database (e.g. use `AUTO_INCREMENT` for primary keys).
* [x] **Check user permissions**\
  Verify that the MariaDB user used by Stacksync to connect to your database has sufficient privileges (e.g., `SELECT`, `INSERT`, `UPDATE`, and `DELETE`) on the tables you want to map.
* [x] **Run this query to check if Stacksync can create triggers:**

  ```sql
  SELECT
    CASE
      WHEN @@log_bin = 0 THEN '✅ Binary logging is OFF — No issues.'
      WHEN @@log_bin = 1 AND @@log_bin_trust_function_creators = 1 THEN '✅ Binary logging is ON — Trust is enabled — All good.'
      ELSE '⚠️  Binary logging is ON but trust_function_creators is OFF — Please fix to allow trigger creation.'
    END AS status;
  ```

  if you see ⚠️, it means you need to update the server settings (requires admin access).

  ```sql
  SET GLOBAL log_bin_trust_function_creators = 1;
  ```

  **Reason:**\
  Stacksync creates deterministic triggers for internal logging and syncing.\
  By default, MariaDB restricts non-super users from creating triggers when binary logging is enabled — unless `log_bin_trust_function_creators` is set to `ON`.

  Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com).

If a table in your database does not appear in Stacksync, one of the above conditions is likely not met. Check out our MariaDB snippets collection for troubleshooting tips.

### After setup

Renaming schema, tables, or columns will break Stacksync configuration. But don't worry, we've got you covered! Refer to our [Update Sync Configuration](https://github.com/stacksyncdata/documentation-gitbooks-connectors/blob/prod/features/update-sync-configuration.md) guide for detailed steps to address this.

# MongoDB

> MongoDB is the most commonly used NoSQL database. Here is everything you need to know to connect it to any of your other systems using Stacksync.

Source: https://docs.stacksync.com/connectors/mongodb

## Prerequisites

* [x] **The primary key (`_id`) must be a unique, auto-generated** [**ObjectId**](https://www.mongodb.com/docs/manual/reference/bson-types/#std-label-objectid)**.**\
  MongoDB's built-in [ObjectId](https://www.mongodb.com/docs/manual/reference/bson-types/#std-label-objectid) is the only data type we support for MongoDB collections' primary keys.
* [x] **MongoDB must be running as part of a** [**Replica Set**](https://www.mongodb.com/docs/manual/replication/) **for Stacksync to detect changes from MongoDB**
  * If you use the **Atlas Database**, no further action is needed.
  * If you **self-host**, or use a **different managed service**, make sure the MongoDB is configured as a *replica set* by running `rs.status()` in a MongoDB shell. This is required [*even if you only have a single node*](https://www.mongodb.com/community/forums/t/using-change-streams-in-a-standalone-database/127281/2).\
    \
    1\. To set up a single-node replica set, run:\
    `mongod --port 27017 --dbpath /path/to/data --replSet rs0 --auth --keyFile /path/to/keyfile`\
    This assumes you've already set up a key file, otherwise do:\
    `echo "<YOUR_SECRET>" > /path/to/keyfile`\
    2\. Connect to the instance:\
    `mongosh "mongodb://localhost:27017"` (don't forget to add username and password)\
    3\. Once inside the instance, you have to go through replica set configuration at least once. A simple example could be:\
    `rs.initiate({ _id: "rs0", members: [{ _id: 0, host: "localhost:27017" }] })`.\
    \
    Check out [the official documentation](https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set/#std-label-server-replica-set-deploy) for more information.

<Callout type="success">
  The [oplog](https://www.mongodb.com/docs/manual/core/replica-set-oplog/) and [change streams](https://www.mongodb.com/docs/manual/changeStreams/) are built-in tools managed by MongoDB and leveraged by Stacksync to track changes to your data in real time. Enabling replication is required to make them available.
</Callout>

* [x] **Allow Stacksync IPs**\
  Stacksync services must be able to access your MongoDB instance(s). To avoid issues, make sure to whitelist [Stacksync's public IPs](/connectors/setup-options/ip-whitelisting).
* [x] **A MongoDB user with the required permissions.**\
  The provided MongoDB user should be able to **create collections, read and write from them and also access the oplog.**\
  In order to sync, track changes and keep data sources updated, these are necessary. Otherwise, data cannot be accessed.\
  \
  \- For **Atlas Database**, follow [the official documentation](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#add-database-users).\
  \- For all other deployments, you can run:

<Callout type="info">
  We strongly suggest using MongoDB's built-in [`read`](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-read) or [`readWrite`](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-readWrite) roles. For more information on how to [create](https://www.mongodb.com/docs/manual/reference/command/createUser/#mongodb-dbcommand-dbcmd.createUser) and [grant roles](https://www.mongodb.com/docs/manual/reference/command/grantRolesToUser/) to users, check out [MongoDB's official documentation](https://www.mongodb.com/docs/manual/reference/database-users/).
</Callout>

```js
// Grant user roles without overwriting existing ones (specific DBs)
use admin

const user = db.getUser("<user>");  // Change to your username

const updatedRoles = user.roles.concat([
        { role: "read", db: "local" }, // required to read the oplog and therefore read changes from mongodb
        { role: "readWrite", db: "<db1>" }, // when need to read and write to mongodb
        { role: "read", db: "<db2>" }, // when do not need to write to mongodb
        // Add the database(s) you want Stacksync to have access to
      ]);

db.updateUser("<user>", { roles: updatedRoles });
```

<Callout type="warn">
  Access must be given at the **database level** for changes to be correctly replicated. Individual collection access is not currently supported.
</Callout>

If a collection you see in your database does not appear in Stacksync, or changes are not correctly replicated, one of the previous conditions is not met. Please double-check your setup in that case.

If you have any questions, don't hesitate to contact us at [hello@stacksync.com](mailto:hello@stacksync.com).

## Connecting your MongoDB instance

To connect your MongoDB database to Stacksync, you'll need the following data:

<Callout type="success">
  You can either enter these fields individually or **simply paste your** [**connection string**](#connection-strings) **directly**. We'll take care of the rest.
</Callout>

* **Protocol**: must be `mongodb+srv://` or `mongodb://`.
* **Host**: the URI or IP where the server can be found.
* **Port** (optional): the default is usually `27017`.
* **Authentication method**

  * **Username**: name used to authenticate with the server.
  * **Password**: the password used to authenticate with the server.

  or

  * **TLS/SSL** (X.509 Certificate): you must upload your public .pem file. In MongoDB Atlas [you can download it when you create the user](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#add-database-users):

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/mongodb-atlas-x509-certificate-user.webp" alt="MongoDB Atlas &#x22;Add New Database User&#x22; with &#x22;Certificate&#x22; authentication and &#x22;Download certificate when user is added&#x22; toggled on." width="1276" height="649" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
* **Database**: the name of the database where data is present.
* Connection options:
  * [**Replica Set**](https://www.mongodb.com/docs/manual/reference/connection-string-options/#replica-set-option) (optional): allows you to specify the name of the replica set to connect to.
  * [**Auth Database**](https://www.mongodb.com/docs/manual/reference/connection-string-options/#mongodb-urioption-urioption.authSource) (optional): the database that holds the user's info. The default is `admin` for username & password, and `$external` for TLS.

<Callout type="info">
  Other connection options are not currently supported. If you need special assistance, please contact us at [hello@stacksync.com](mailto:hello@stacksync.com).
</Callout>

* **SSH Tunnel**:
  * **Username**: The user Stacksync can identify as to establish the tunnel.
  * **Host**: IP of the machine to SSH into.
  * **Public Key**: Copy into your machine's `~/.ssh/authorized_keys` file. You can use [ssh-copy-id](https://www.ssh.com/academy/ssh/copy-id) or simply SSH into the server and paste it using your preferred text editor.

<Callout type="info">
  SSH tunneling is currently only supported for single, self-hosted MongoDB instances via the mongodb:// protocol. For any further questions, please contact us at [hello@stacksync.com](mailto:hello@stacksync.com).
</Callout>

<div>
  <figure><img src="/https/docs.stacksync.com/images/connectors/mongodb-connection-username-password.webp" alt="Stacksync MongoDB dialog with Connection String or protocol, host, &#x22;Username and Password (SCRAM-SHA)&#x22; auth and database fields." width="761" height="1405" loading="lazy" decoding="async" /><figcaption><p>The connection setup screen for user+password</p></figcaption></figure>

   

  <figure><img src="/https/docs.stacksync.com/images/connectors/mongodb-connection-x509-certificate.webp" alt="Stacksync MongoDB dialog with &#x22;X.509 Certificate (MONGODB-X509)&#x22; auth, an SSL Root Certificate upload and Auth Database &#x22;$external&#x22;." width="767" height="1456" loading="lazy" decoding="async" /><figcaption><p>The connection setup screen for TLS/SSL</p></figcaption></figure>
</div>

### Connection strings

MongoDB has 2 formats for their [connection strings](https://www.mongodb.com/docs/manual/reference/connection-string/). Make sure to pick the one that best suits your use case.

<Callout type="success">
  If you're not sure which format to use, **we recommend using the (newer) SRV format**.
</Callout>

* **SRV**: `mongodb+srv://[username:password@]host[/[defaultauthdb][?options]]` *(elements in brackets* `[]` *are optional)*
  * Example: `mongodb+srv://myDatabaseUser:D1fficultP%40ssw0rd@cluster0.example.mongodb.net/?retryWrites=true&w=majority`
* **Standard**: `mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]` *(elements in brackets* `[]` *are optional)*
  * Example: `mongodb://myDatabaseUser:D1fficultP%40ssw0rd@mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl`

Find more examples [here](https://www.mongodb.com/docs/manual/reference/connection-string-examples/#std-label-connections-connection-examples).

### Getting your connection string

To find out your connection string, check out MongoDB's [official guide for MongoDB Atlas](https://www.mongodb.com/docs/guides/atlas/connection-string/), or [their guide for self-hosted clusters](https://www.mongodb.com/resources/products/fundamentals/mongodb-connection-string#connection-strings-for-a-self-hosted-mongodb-cluster).

If you have any questions, don't hesitate to contact us at [hello@stacksync.com](mailto:hello@stacksync.com), we're happy to help!

# MotherDuck

> Two-way sync between MotherDuck and your other systems.

Source: https://docs.stacksync.com/connectors/motherduck

Introduction

MotherDuck is a cloud analytics platform built on top of DuckDB, designed to deliver fast and efficient data analysis in the cloud. By combining the simplicity of DuckDB with the scalability of cloud infrastructure, MotherDuck allows teams to run complex queries on larger datasets without needing extensive infrastructure. It integrates seamlessly with popular data tools, offering a user-friendly experience for data engineers, analysts, and developers who seek powerful, scalable analytics in a lightweight platform.

## Authorize MotherDuck

1. In MotherDuck, navigate to **Settings** > **General** and select **Create Token**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-settings-create-token.webp" alt="MotherDuck Settings General page with Access tokens section and the &#x22;Create token&#x22; button highlighted." width="1482" height="777" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Enter a name for your token, then click Create.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-create-token-dialog.webp" alt="MotherDuck &#x22;Create token&#x22; dialog with the name &#x22;stacksync&#x22; entered and the &#x22;Create token&#x22; button highlighted." width="1433" height="727" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Copy the generated access token.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-copy-access-token.webp" alt="MotherDuck &#x22;Created stacksync&#x22; dialog showing the generated access token to copy before closing." width="1466" height="808" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. Log in to Stacksync and click on **Connections** > **Create new connection**.
5. Search for MotherDuck and select it.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-motherduck.webp" alt="Stacksync &#x22;Create a Connection&#x22; Select App step with the MotherDuck tile highlighted." width="1600" height="542" loading="lazy" decoding="async" />

  <figcaption />
</figure>

6. Paste the access token here. If you're using a database name or schema other than the default, update those settings accordingly.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-access-token-authorize.webp" alt="Stacksync Motherduck dialog with the &#x22;Motherduck Access Token&#x22; field, database &#x22;my_db&#x22;, schema &#x22;main&#x22; and &#x22;Authorize App&#x22; highlighted." width="1600" height="540" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can now use your MotherDuck connection in a sync!

# Authorize MySQL

> Authorize your MySQL app and start syncing data with Stacksync

Source: https://docs.stacksync.com/connectors/mysql/authorize-mysql

## Adding Credentials to Stacksync <a href="#adding-credentials-to-stacksync" id="adding-credentials-to-stacksync" />

### 1. Select MySQL in the Create New Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-mysql.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with an arrow pointing to the MySQL tile." width="1512" height="946" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**2. Add your** MySQL **credentials as Connection String or as Parameters.**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-credentials-connection-string-or-parameters.webp" alt="Stacksync MySQL dialog highlighting the &#x22;Connection String&#x22; field or the Host, Port, Username, Password and Database fields." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. (Optional) Upload your SSL Root Certificate file

**More details on how to retrieve your SSL Certificate:**

[**https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate**](/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssl-root-certificate-upload.webp" alt="Stacksync MySQL dialog with the &#x22;SSL (Optional)&#x22; section expanded, showing the &#x22;SSL Root Certificate&#x22; file upload." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. (Optional) Add SSH user and SSH host

**More details on how to set up a SSH tunnel to connect to your RDS instance:** [**https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/access-private-rds-instance-through-jumpbox**](/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssh-tunnel-settings.webp" alt="Stacksync MySQL dialog with the &#x22;SSH Tunnel (Optional)&#x22; section expanded, showing SSH User, SSH Host, SSH Port and a public key." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click 'Authorize App'

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-authorize-app-button.webp" alt="Stacksync MySQL credentials dialog with an arrow pointing to the &#x22;Authorize App&#x22; button." width="1512" height="946" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# MySQL

> Two-way sync between MySQL and your other systems.

Source: https://docs.stacksync.com/connectors/mysql

## Introduction

MySQL is a widely-used, open-source relational database management system that uses SQL (Structured Query Language) for data manipulation. Known for its speed, reliability, and ease of use, MySQL is the foundation for many popular applications and websites. It powers critical backend systems and supports large-scale enterprise solutions.

Now you can seamlessly synchronize data across all your CRM and database systems using Stacksync!

## Things to keep in mind

### During setup

* [x] **All MySQL tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column; composite primary keys are not supported.
* [x] **Primary keys must be auto-generated**\
  Ensure your primary keys are auto-generated by your database (e.g. use `AUTO_INCREMENT` for primary keys).
* [x] **Check user permissions**\
  Verify that the MySQL user used by Stacksync to connect to your database has sufficient privileges (e.g., `SELECT`, `INSERT`, `UPDATE`, and `DELETE`) on the tables you want to map.
* [x] **Run this query to check if Stacksync can create triggers:**

  ```sql
  SELECT
    CASE
      WHEN @@log_bin = 0 THEN '✅ Binary logging is OFF — No issues.'
      WHEN @@log_bin = 1 AND @@log_bin_trust_function_creators = 1 THEN '✅ Binary logging is ON — Trust is enabled — All good.'
      ELSE '⚠️  Binary logging is ON but trust_function_creators is OFF — Please fix to allow trigger creation.'
    END AS status;
  ```

  If you see ⚠️, it means you need to update the server settings (requires admin access).

  ```sql
  SET GLOBAL log_bin_trust_function_creators = 1;
  ```

  **Reason:**\
  Stackync creates deterministic triggers for internal logging and syncing.\
  By default, MySQL restricts non-super users from creating triggers when binary logging is enabled — unless `log_bin_trust_function_creators` is set to `ON`.

  Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com)

If a table in your database does not appear in Stacksync, one of the above conditions is likely not met. Check our MySQL snippets collection for troubleshooting tips.

### After setup

Renaming schemas, tables, or columns will break Stacksync configuration. But don't worry, we've got you covered! Refer to our [Update Sync Configuration](https://github.com/stacksyncdata/documentation-gitbooks-connectors/blob/prod/features/update-sync-configuration.md) guide for detailed steps to address this.

# Authorize SuiteAnalytics

> 9 minute guide to authorize SuiteAnalytics and connect it to Stacksync using NetSuite credentials.

Source: https://docs.stacksync.com/connectors/netsuite-suiteanalytics-connect/authorize-suiteanalytics

<Callout type="info">
  If you do not see the screens required to create your API token or to enable **SuiteAnalytics Connect**, it means you do not have the necessary access rights to authorize your SuiteAnalytics instance. An **Administrator role** (or another role with the proper NetSuite permissions) is required to perform the connection setup.
</Callout>

1. Log in to your NetSuite account and navigate to **Setup** > **Company** > **Enable Features.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-setup-company-enable-features.webp" alt="NetSuite Setup menu open to Company with &#x22;Enable Features&#x22; highlighted." width="1403" height="777" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite features configuration panel</p></figcaption>
   </figure>

   1. Under the ”**SuiteCloud**” header make sure the *REST WEB SERVICES* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-features-suitecloud-tab.webp" alt="NetSuite &#x22;Enable Features&#x22; page with the &#x22;SuiteCloud&#x22; tab highlighted." width="1394" height="317" loading="lazy" decoding="async" />

        <figcaption><p>Click "SuiteCloud"</p></figcaption>
      </figure>

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-suitetalk-soap-rest-web-services.webp" alt="NetSuite SuiteCloud features with &#x22;SOAP Web Services&#x22; and &#x22;REST Web Services&#x22; checked under SuiteTalk (Web Services)." width="1600" height="808" loading="lazy" decoding="async" />

        <figcaption><p>In the SuiteTalk section, enable SOAP WEB SERVICES and REST WEB SERVICES.</p></figcaption>
      </figure>
   2. Under the ”**Manage Authentication**” header make sure the *TOKEN-BASED AUTHENTICATION* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-token-based-authentication.webp" alt="NetSuite Manage Authentication features with the &#x22;Token-Based Authentication&#x22; checkbox checked and highlighted." width="1600" height="653" loading="lazy" decoding="async" />

        <figcaption><p>Activate Token Based Authentication</p></figcaption>
      </figure>
   3. Under the ”Analytics” header make sure the *SuiteAnalytics Connect* checkboxes is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-features-analytics-tab.webp" alt="NetSuite &#x22;Enable Features&#x22; page with the &#x22;Analytics&#x22; subtab highlighted." width="1600" height="234" loading="lazy" decoding="async" />

        <figcaption><p>Click "Analytics"</p></figcaption>
      </figure>

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-suiteanalytics-connect.webp" alt="NetSuite Enable Features Analytics tab with the &#x22;SuiteAnalytics Connect&#x22; checkbox checked under Connectivity." width="1600" height="802" loading="lazy" decoding="async" />

        <figcaption><p>In the Connectivity section, enable SUITEANALYTICS CONNECT.</p></figcaption>
      </figure>
   4. Click the save button at the bottom of the page.
2. Navigate to **Setup** > **Integration** > **Manage Integrations** > **New.**

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-integrations-new.webp" alt="NetSuite Setup menu open to Integration, then Manage Integrations, with &#x22;New&#x22; highlighted." width="1379" height="595" loading="lazy" decoding="async" />

     <figcaption><p>Create a new integration in NetSuite</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-integration-tba-settings.webp" alt="NetSuite new Integration form with Name and State &#x22;Enabled&#x22;, and &#x22;Token-Based Authentication&#x22; checked on the Authentication tab." width="1132" height="921" loading="lazy" decoding="async" />

     <figcaption><p>Configure the new Stacksync integration in NetSuite</p></figcaption>
   </figure>

   1. Give your application a NAME. Recommended name: `Stacksync SuiteAnalytics`
   2. Select `Token-based Authentication` only
   3. Click the save button.
   4. The client credentials will now be displayed and be sure to copy the **Consumer Id** and **Consumer Secret.**

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-integration-consumer-key-secret.webp" alt="NetSuite saved Integration confirmation with the masked Consumer Key / Client ID and Consumer Secret / Client Secret highlighted." width="1600" height="774" loading="lazy" decoding="async" />

        <figcaption><p>Save "Consumer ID" and "Consumer Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
      </figure>
3. Navigate to the homepage by clicking the home icon.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-home-icon-navigation.webp" alt="NetSuite top navigation bar with the home icon highlighted and an arrow pointing to it, leading to the Home dashboard." width="1158" height="690" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite homepage</p></figcaption>
   </figure>
4. At the bottom left corner click the **Manage Access Tokens** button.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-access-tokens-link.webp" alt="NetSuite Home dashboard with the &#x22;Manage Access Tokens&#x22; link highlighted in the Settings portlet at the bottom left." width="1600" height="814" loading="lazy" decoding="async" />

     <figcaption><p>Click "Manage Access Tokens"</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-access-token-button.webp" alt="NetSuite &#x22;My Access Tokens&#x22; page with the &#x22;New My Access Token&#x22; button highlighted." width="1600" height="235" loading="lazy" decoding="async" />

     <figcaption><p>Click "New Access Token"</p></figcaption>
   </figure>

   1. Select the **Application Name** you created for this integration.
   2. Enter a ”**Token Name**”.
   3. Save your new access token.
   4. The token credentials will now be displayed. Copy the ”**Token ID**” & ”**Token Secret**”.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-access-token-id-secret.webp" alt="NetSuite Access Token confirmation page showing the Token ID and Token Secret values (blurred) highlighted for copying." width="831" height="587" loading="lazy" decoding="async" />

     <figcaption><p>Save "Token ID" and "Token Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
   </figure>
5. Navigate to **Setup** > **Users/Roles** > **Manage Roles.**

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-setup-manage-roles-menu.webp" alt="NetSuite Setup menu open with &#x22;Users/Roles&#x22; and then &#x22;Manage Roles&#x22; highlighted." width="1600" height="876" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to <strong>Setup</strong> > <strong>Users/Roles</strong> > <strong>Manage Roles.</strong></p></figcaption>
   </figure>

   1. Either **create a new role** or **edit an existing role**.
   2. Navigate to Permissions > Setup
   3. Add **SuiteAnalytics Connect** and **SuiteAnalytics Connect - Read All** with Level Full.
   4. Save changes.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-role-suiteanalytics-connect-permissions.webp" alt="NetSuite role page with Permissions > Setup tab adding &#x22;SuiteAnalytics Connect&#x22; and &#x22;Read All&#x22; at Full level, and Save highlighted." width="1600" height="871" loading="lazy" decoding="async" />

     <figcaption><p>Add <strong>SuiteAnalytics Connect</strong> and save.</p></figcaption>
   </figure>
6. Get the `Role ID` in the URL on the Role Page. It is formatted as: `role.nl?id=<role_id>`.
7. Get the `Account ID` from the URL, the domain name has the following format: `<account_id>.app.netsuite.com`
8. You now have all the necessary credentials to grant Stacksync access to your SuiteAnalytics Connect. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com)

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-suiteanalytics.webp" alt="Stacksync &#x22;Create a Connection&#x22; page with the SuiteAnalytics app tile highlighted next to NetSuite." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Click on SuiteAnalytics Connector</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/suiteanalytics-connection-credentials-form.webp" alt="Stacksync SuiteAnalytics dialog with Account ID, Consumer Key/Secret, Token ID/Secret, Role ID, optional Host and Port, and &#x22;Authorize App&#x22;." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Insert the credentials obtained from the preview steps in the SuiteAnalytics Connector</p></figcaption>
   </figure>

You successfully granted Stacksync access to your SuiteAnalytics Connect! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# NetSuite SuiteAnalytics Connect

> Read-only sync between NetSuite SuiteAnalytics and your other systems.

Source: https://docs.stacksync.com/connectors/netsuite-suiteanalytics-connect

Stacksync lets you sync the following SuiteAnalytics objects:

## Custom Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>All custom objects</td><td>✅ Supported</td></tr></tbody>
</table>

## Accounting Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Nexus</td><td>✅ Supported</td></tr><tr><td>Tax Type</td><td>✅ Supported</td></tr><tr><td>Sales Tax Item</td><td>✅ Supported</td></tr><tr><td>Billing Schedule Customer Subsidiary Relationship</td><td>✅ Supported</td></tr><tr><td>Account</td><td>✅ Supported</td></tr><tr><td>Accounting Period</td><td>✅ Supported</td></tr><tr><td>Bin Transfer</td><td>✅ Supported</td></tr><tr><td>Currency Rate</td><td>✅ Supported</td></tr><tr><td>Price Level</td><td>✅ Supported</td></tr><tr><td>Term</td><td>✅ Supported</td></tr><tr><td>Subsidiary</td><td>✅ Supported</td></tr></tbody>
</table>

## Entity Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Customer</td><td>✅ Supported</td></tr><tr><td>Vendor</td><td>✅ Supported</td></tr><tr><td>Vendor Category</td><td>✅ Supported</td></tr><tr><td>Contact</td><td>✅ Supported</td></tr><tr><td>Employee</td><td>✅ Supported</td></tr><tr><td>Other Name Category</td><td>✅ Supported</td></tr><tr><td>Vendor Subsidiary Relationship</td><td>✅ Supported</td></tr><tr><td>Lead</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Project Objects

<table>
  <thead><tr><th width="312">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Project</td><td>✅ Supported</td></tr><tr><td>Project Status</td><td>✅ Supported</td></tr><tr><td>Project Task</td><td>✅ Supported</td></tr><tr><td>Job Type</td><td>✅ Supported</td></tr><tr><td>Task</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Transaction Objects

| Object                              | Read        |
| ----------------------------------- | ----------- |
| Check                               | ✅ Supported |
| Credit Card Charge                  | ✅ Supported |
| Credit Card Refund                  | ✅ Supported |
| Credit Memo                         | ✅ Supported |
| Currency Revaluation                | ✅ Supported |
| Customer Deposit                    | ✅ Supported |
| Customer Payment                    | ✅ Supported |
| Customer Refund                     | ✅ Supported |
| Deposit                             | ✅ Supported |
| Deposit Application                 | ✅ Supported |
| Estimate                            | ✅ Supported |
| Expense Report                      | ✅ Supported |
| Intercompany Journal Entry          | ✅ Supported |
| Advanced Intercompany Journal Entry | ✅ Supported |
| Invoice                             | ✅ Supported |
| Item Fulfillment                    | ✅ Supported |
| Item Receipt                        | ✅ Supported |
| Journal Entry                       | ✅ Supported |
| Opportunity                         | ✅ Supported |
| Purchase Order                      | ✅ Supported |
| Sales Order                         | ✅ Supported |
| Transfer                            | ✅ Supported |
| Vendor Bill                         | ✅ Supported |
| Vendor Credit                       | ✅ Supported |
| Vendor Payment                      | ✅ Supported |

## CRM Objects

<table>
  <thead><tr><th width="321">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Partner</td><td>✅ Supported</td></tr><tr><td>Customer Status</td><td>✅ Supported</td></tr><tr><td>Phone Call</td><td>✅ Supported</td></tr><tr><td>Support Case</td><td>✅ Supported</td></tr><tr><td>Calendar Event</td><td>✅ Supported</td></tr><tr><td>Note Type</td><td>✅ Supported</td></tr><tr><td>Task</td><td>✅ Supported</td></tr><tr><td>Message</td><td>✅ Supported</td></tr><tr><td>Contact Category</td><td>✅ Supported</td></tr><tr><td>Contact Role</td><td>✅ Supported</td></tr><tr><td>Customer Category</td><td>✅ Supported</td></tr><tr><td>Customer Message</td><td>✅ Supported</td></tr></tbody>
</table>

## Employee Objects

<table>
  <thead><tr><th width="326">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Department</td><td>✅ Supported</td></tr><tr><td>Expense Category</td><td>✅ Supported</td></tr><tr><td>Job Status</td><td>✅ Supported</td></tr><tr><td>Classification</td><td>✅ Supported</td></tr><tr><td>Location</td><td>✅ Supported</td></tr></tbody>
</table>

## Communication Objects

<table>
  <thead><tr><th width="331">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Case</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Saved Searches

<table>
  <thead><tr><th width="331">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Saved Searches</td><td><span data-tag="emoji" data-code="2705">✅</span> Supported</td></tr></tbody>
</table>

## System Objects

<table>
  <thead><tr><th width="334.171875">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Deleted Records</td><td><span data-tag="emoji" data-code="2705">✅</span> Supported</td></tr></tbody>
</table>

## Published Reports (requires [NetSuite SuiteProjects Pro](https://www.netsuite.com/portal/products/professional-services-automation/suiteprojects-pro.shtml))

<table>
  <thead><tr><th width="331">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Published Reports</td><td>🔓 Request Access</td></tr></tbody>
</table>

Note: SuiteAnalytics provides read-only access to NetSuite's data warehouse. All objects are read-only as SuiteAnalytics is designed for business intelligence and reporting purposes.

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Authorize NetSuite

> 9 min read

Source: https://docs.stacksync.com/connectors/netsuite/authorize-netsuite

<Callout type="info">
  If you do not see the following screens to create your API token, it means that you do not have the necessary access rights to authorize your NetSuite instance. An admin role is necessary to perform the connection setup.
</Callout>

1. Log in to your NetSuite account and navigate to **Setup** > **Company** > **Enable Features.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-setup-company-enable-features.webp" alt="NetSuite Setup menu open to Company with &#x22;Enable Features&#x22; highlighted." width="1403" height="777" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite features configuration panel</p></figcaption>
   </figure>

   1. Under the ”**SuiteCloud**” header make sure the *REST WEB SERVICES* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-features-suitecloud-tab.webp" alt="NetSuite &#x22;Enable Features&#x22; page with the &#x22;SuiteCloud&#x22; tab highlighted." width="1394" height="317" loading="lazy" decoding="async" />

        <figcaption><p>Click "SuiteCloud"</p></figcaption>
      </figure>

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-suitetalk-soap-rest-web-services.webp" alt="NetSuite SuiteCloud features with &#x22;SOAP Web Services&#x22; and &#x22;REST Web Services&#x22; checked under SuiteTalk (Web Services)." width="1600" height="808" loading="lazy" decoding="async" />

        <figcaption><p>In the SuiteTalk section, enable SOAP WEB SERVICES and REST WEB SERVICES.</p></figcaption>
      </figure>
   2. Under the ”**Manage Authentication**” header make sure the *TOKEN-BASED AUTHENTICATION* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-token-based-authentication.webp" alt="NetSuite Manage Authentication features with the &#x22;Token-Based Authentication&#x22; checkbox checked and highlighted." width="1600" height="653" loading="lazy" decoding="async" />

        <figcaption><p>Activate Token-Based Authentication</p></figcaption>
      </figure>
   3. Click the save button at the bottom of the page.<br />
2. Navigate to **Setup** > **Integration** > **Manage Integrations** > **New.**

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-integrations-new.webp" alt="NetSuite Setup menu open to Integration, then Manage Integrations, with &#x22;New&#x22; highlighted." width="1379" height="595" loading="lazy" decoding="async" />

     <figcaption><p>Create a new integration in NetSuite</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-integration-tba-settings.webp" alt="NetSuite new Integration form with Name and State &#x22;Enabled&#x22;, and &#x22;Token-Based Authentication&#x22; checked on the Authentication tab." width="1132" height="921" loading="lazy" decoding="async" />

     <figcaption><p>Configure the new Stacksync integration in NetSuite</p></figcaption>
   </figure>

   1. Select `Token-based Authentication` only
   2. Click the save button.
   3. The client credentials will now be displayed and be sure to copy the **Consumer ID** and **Consumer Secret.**

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-integration-consumer-key-secret.webp" alt="NetSuite saved Integration confirmation with the masked Consumer Key / Client ID and Consumer Secret / Client Secret highlighted." width="1600" height="774" loading="lazy" decoding="async" />

        <figcaption><p>Save the "Consumer ID" and "Consumer Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
      </figure>
3. Navigate to the homepage by clicking the home icon.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-home-icon-navigation.webp" alt="NetSuite top navigation bar with the home icon highlighted and an arrow pointing to it, leading to the Home dashboard." width="1158" height="690" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite homepage</p></figcaption>
   </figure>
4. At the bottom left corner click the **Manage Access Tokens** button.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-access-tokens-link.webp" alt="NetSuite Home dashboard with the &#x22;Manage Access Tokens&#x22; link highlighted in the Settings portlet at the bottom left." width="1600" height="814" loading="lazy" decoding="async" />

     <figcaption><p>Click "Manage Access Tokens"</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-access-token-button.webp" alt="NetSuite &#x22;My Access Tokens&#x22; page with the &#x22;New My Access Token&#x22; button highlighted." width="1600" height="235" loading="lazy" decoding="async" />

     <figcaption><p>Click "New Access Token"</p></figcaption>
   </figure>

   1. Select the **Application Name** you created for this integration.
   2. Enter a ”**Token Name**”.
   3. Save your new access token.
   4. The token credentials will now be displayed. Copy the ”**Token ID**” & ”**Token Secret**”.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-access-token-id-secret.webp" alt="NetSuite Access Token confirmation page showing the Token ID and Token Secret values (blurred) highlighted for copying." width="831" height="587" loading="lazy" decoding="async" />

     <figcaption><p>Save "Token ID" and "Token Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
   </figure>
5. Get the `Account ID` from the URL, the domain name has the following format: `<account_id>.app.netsuite.com` .
6. You now have all the necessary credentials to grant Stacksync access to your NetSuite account. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com).

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-netsuite.webp" alt="Stacksync &#x22;Create a Connection&#x22; page with the NetSuite app tile highlighted among connectors like Salesforce and HubSpot." width="1043" height="496" loading="lazy" decoding="async" />

     <figcaption><p>Click on the "NetSuite" connector icon</p></figcaption>
   </figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/netsuite-connection-credentials-form.webp" alt="Stacksync NetSuite connection dialog with Account ID, Token ID, Token Secret, Client ID and Client Secret fields and &#x22;Authorize App&#x22;." width="990" height="677" loading="lazy" decoding="async" />

  <figcaption><p>Insert the credentials obtained from the preview steps in the NetSuite app</p></figcaption>
</figure>

You successfully granted Stacksync access to your NetSuite account! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# NetSuite

> Two-way sync between NetSuite and your other systems.

Source: https://docs.stacksync.com/connectors/netsuite

Stacksync lets you sync the following NetSuite objects:

## Custom Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>All custom objects</td><td>✅ Supported</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Accounting Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Nexus</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Tax Type</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Sales Tax Item</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Billing Schedule Customer Subsidiary Relationship</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Account</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Accounting Period</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Bin Transfer</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Currency Rate</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Price Level</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Term</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Subsidiary</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr></tbody>
</table>

## Entity Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Customer</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Vendor</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Vendor Category</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Contact</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Employee</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Other Name Category</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Vendor Subsidiary Relationship</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Lead</td><td>🔓 Request Access</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Project Objects

<table>
  <thead><tr><th width="312">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Project</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Project Status</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Project Task</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Job Type</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Task</td><td>🔓 Request Access</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Transaction Objects

| Object                              | Read        | Write       |
| ----------------------------------- | ----------- | ----------- |
| Check                               | ✅ Supported | ✅ Supported |
| Credit Card Charge                  | ✅ Supported | ✅ Supported |
| Credit Card Refund                  | ✅ Supported | ✅ Supported |
| Credit Memo                         | ✅ Supported | ✅ Supported |
| Currency Revaluation                | ✅ Supported | ✅ Supported |
| Customer Deposit                    | ✅ Supported | ✅ Supported |
| Customer Payment                    | ✅ Supported | ✅ Supported |
| Customer Refund                     | ✅ Supported | ✅ Supported |
| Deposit                             | ✅ Supported | ✅ Supported |
| Deposit Application                 | ✅ Supported | ✅ Supported |
| Estimate                            | ✅ Supported | ✅ Supported |
| Expense Report                      | ✅ Supported | ✅ Supported |
| Intercompany Journal Entry          | ✅ Supported | ✅ Supported |
| Advanced Intercompany Journal Entry | ✅ Supported | ✅ Supported |
| Invoice                             | ✅ Supported | ✅ Supported |
| Item Fulfillment                    | ✅ Supported | ✅ Supported |
| Item Receipt                        | ✅ Supported | ✅ Supported |
| Journal Entry                       | ✅ Supported | ✅ Supported |
| Opportunity                         | ✅ Supported | ✅ Supported |
| Purchase Order                      | ✅ Supported | ✅ Supported |
| Sales Order                         | ✅ Supported | ✅ Supported |
| Transfer                            | ✅ Supported | ✅ Supported |
| Vendor Bill                         | ✅ Supported | ✅ Supported |
| Vendor Credit                       | ✅ Supported | ✅ Supported |
| Vendor Payment                      | ✅ Supported | ✅ Supported |

## CRM Objects

<table>
  <thead><tr><th width="321">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Partner</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Customer Status</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Phone Call</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Support Case</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Calendar Event</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Note Type</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Task</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Message</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Contact Category</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Contact Role</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Customer Category</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Customer Message</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr></tbody>
</table>

## Employee Objects

<table>
  <thead><tr><th width="326">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Department</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Expense Category</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Job Status</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Classification</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Location</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr></tbody>
</table>

## Communication Objects

<table>
  <thead><tr><th width="331">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Case</td><td>🔓 Request Access</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Saved Searches

<table>
  <thead><tr><th width="331">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Saved Searches</td><td><span data-tag="emoji" data-code="2705">✅</span> Supported</td><td>Read-only object</td></tr></tbody>
</table>

## Published Reports (requires [NetSuite SuiteProjects Pro](https://www.netsuite.com/portal/products/professional-services-automation/suiteprojects-pro.shtml))

<table>
  <thead><tr><th width="331">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Published Reports</td><td>🔓 Request Access</td><td>Read-only object</td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Set NetSuite concurrency Limits

Source: https://docs.stacksync.com/connectors/netsuite/set-netsuite-concurrency-limits

* NetSuite caps how many requests run **at once**, account-wide. REST and SOAP share one pool.
* The cap is set by your service tier (+10 per SuiteCloud Plus license):

| Service tier      | Base limit |
| ----------------- | ---------- |
| Shared            | 5          |
| Tier 1            | 15         |
| Tier 2 / Ultimate | 20         |

* **Stacksync never sends more than 3 concurrent requests.** It can only control its own traffic and not other integrations on the account.

By default every integration pulls from the **same pool**. When others get busy, they eat the slots and tip the account over its cap. So errors show up everywhere, including on Stacksync, even though no one is misbehaving.

## Reserve slots per integration

**Setup** > **Integration** > **Manage Integrations** > open the integration > set **Concurrency Limit**.

1. Open the **Stacksync** integration record.
2. Set **Concurrency Limit** to `3`.
3. Do the same for every other integration, sized to its needs.
4. Leave the rest unallocated as a shared buffer.

<Callout type="info">
  The **MAX Concurrency Limit** field shows how many slots are still free to assign.
</Callout>

## Monitor it

**Setup** > **Integration** > **Integration Governance** shows allocated vs. unallocated slots and live usage per integration ([NetSuite docs](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/bridgehead_156224824287.html)).

***

Still hitting errors after this? Email [integrations@stacksync.com](mailto:integrations@stacksync.com).

# Odoo

Source: https://docs.stacksync.com/connectors/odoo

Odoo is an open-source suite of integrated business applications, CRM, Sales, Invoicing, Inventory, Purchase, Accounting, Projects, HR, and more, that many companies run as their core ERP. Connecting Odoo to Stacksync lets your workflows read and write records across any of these apps, so you can automate operations and keep Odoo in sync with the rest of your business systems.

## Connect Odoo

Connect your Odoo instance and start using it with Stacksync.

### Requirements

* An Odoo account with **external API access** enabled
  * On **Odoo Online**, external API access requires the **Custom** pricing plan. Odoo.sh and self-hosted instances have no plan restriction.
* Permission to generate an **API key** for your Odoo user

***

#### 1. Create a new connection

In Stacksync, click **Create a new connection**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-home-connections-tile-2.webp" alt="Stacksync home page with templates and resource tiles, with the &#x22;Connections&#x22; tile highlighted to create a new connection." width="1600" height="796" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

#### 2. Select Odoo

Click the **Odoo** logo from the list of connectors.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/select-app-odoo-connector.webp" alt="Stacksync &#x22;Select an App&#x22; grid filtered by &#x22;o&#x22; with the Odoo connector tile highlighted." width="1600" height="399" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

#### 3. Gather your connection details

In the following steps, you will collect four values from your Odoo account:

* **Instance URL**
* **Database**
* **Username**
* **API Key**

***

#### 4. Find your Instance URL and Database

Your **Instance URL** is your Odoo web address, up to the domain only — no page path.

* Example: `https://mycompany.odoo.com`
* Copy it from your browser's address bar and remove anything after `.com` (e.g. drop `/web#...`).

Your **Database** name:

* On **Odoo Online**, it is the subdomain of your URL — for `https://mycompany.odoo.com`, the database is `mycompany`.
* On **Odoo.sh / self-hosted**, use your database name (ask your Odoo administrator if unsure).

> **Tip:** Paste only the domain (`https://mycompany.odoo.com`), not the full page URL.

***

#### 5. Find your Username

Your **Username** is the login email of the Odoo user the connection will act as.

* Click your **profile avatar** (top-right) → **Preferences** (or **My Profile**).
* Your email address shown there is your username.

***

#### 6. Generate your API Key

1. Click your **profile avatar** (top-right) → **Preferences**.
2. Open the **Account Security** tab.
3. Click **New API Key**.
4. Re-enter your password when prompted to confirm.
5. Enter a description (for example, `Stacksync`) and generate the key.
6. **Copy the key immediately** — Odoo shows it only once and it cannot be retrieved later.

> **Read vs. write access:** A read-only key is enough for read-only workflows. For creating, updating, or deleting records, use a **full-access** key. If writes are rejected with a "read access only" message, your Odoo administrator needs to enable full API access for your user.

> **Recommended:** Use a dedicated integration user (for example, `integrations@yourcompany.com`) rather than a personal login, so actions are clearly attributed and don't depend on one person's account.

***

#### 7. Fill in the Stacksync form

Enter the four values into the connection form:

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/odoo-configure-connection-form.webp" alt="Stacksync Odoo &#x22;Configure connection&#x22; step with Instance URL, Database, Username and API Key fields." width="1600" height="671" loading="lazy" decoding="async" />

  <figcaption />
</figure>

| Field            | Value                             |
| ---------------- | --------------------------------- |
| **Instance URL** | `https://mycompany.odoo.com`      |
| **Database**     | `mycompany`                       |
| **Username**     | `user@mycompany.com`              |
| **API Key**      | *the key you generated in step 6* |

Click **Connect**.

***

#### You are all set! 🎉

Your Odoo connection is ready to use in your Stacksync workflows.

# Authorize Pipedrive

> Authorize your Pipedrive app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/pipedrive/authorize-pipedrive

Pipedrive connection is done without coding required in a few steps.

## 1. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections-link.webp" alt="Stacksync dashboard with an arrow pointing to &#x22;Connections&#x22; in the left sidebar." width="937" height="605" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click on "Create New Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-new-connection-button.webp" alt="Legacy Stacksync My Connections page with an arrow pointing to the &#x22;Create New Connection&#x22; button" width="935" height="487" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Click on "Pipedrive"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/select-app-pipedrive-connector.webp" alt="Stacksync &#x22;Select App&#x22; grid with an arrow pointing to the Pipedrive connector tile." width="957" height="602" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Click on "Allow and Install"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/pipedrive-allow-and-install-permissions.webp" alt="Pipedrive app permissions consent screen listing access scopes, with the &#x22;Allow and Install&#x22; button highlighted." width="804" height="670" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your Pipedrive instance is now connected to Stacksync!🎉

# Pipedrive

> Two-way sync between Pipedrive and your other systems.

Source: https://docs.stacksync.com/connectors/pipedrive

## Supported Objects

Stacksync lets you sync the following Pipedrive objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Deals</td><td><span>✅ Supported</span></td></tr><tr><td>Persons</td><td><span>✅ Supported</span></td></tr><tr><td>Organizations</td><td><span>✅ Supported</span></td></tr><tr><td>Activities</td><td><span>✅ Supported</span></td></tr><tr><td>MailThreads</td><td><span>✅ Supported</span></td></tr><tr><td>MailMessages</td><td><span>✅ Supported</span></td></tr><tr><td>CallLogs</td><td><span>✍️ On Request</span></td></tr><tr><td>Files</td><td><span>✍️ On Request</span></td></tr><tr><td>Goals</td><td><span>✍️ On Request</span></td></tr><tr><td>Leads</td><td><span>✍️ On Request</span></td></tr><tr><td>Notes</td><td><span>✍️ On Request</span></td></tr><tr><td>Pipelines</td><td><span>✍️ On Request</span></td></tr><tr><td>Products</td><td><span>✍️ On Request</span></td></tr><tr><td>Subscriptions</td><td><span>✍️ On Request</span></td></tr><tr><td>Tasks</td><td><span>✍️ On Request</span></td></tr><tr><td>Users</td><td><span>✍️ On Request</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Amazon Lightsail

> Find the connection credentials for your Amazon Lightsail Database.

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-lightsail

Get your database endpoint and port information from the Lightsail console. You use these later when configuring your client to connect to your database.

### 1. To get your database connection details

### 2. Sign in to the [Lightsail console](https://lightsail.aws.amazon.com/).

### 3. On the Lightsail home page, choose the Databases tab.

### 4. Choose the name of the database that you want to connect to.

### 5. Get the Hostname and Port

On the Connect tab, under the **Endpoint and port** section, note the endpoint and port information.

### 6. Get username and password

On the Connect tab, under the "User name" and "passwords" section, make note of the user name, then choose "Show" under the "Password" section to view the current database password.

Because managed passwords are complex, we also recommend copying and pasting it to avoid entering it incorrectly. Highlight the managed password and press Ctrl+C if you’re using Windows, or Cmd+C if you’re using macOS, to copy it to your clipboard. Then, press Ctrl+V or Cmd+V as appropriate to paste it.

<Callout type="info">
  For the Amazon Lightsail connector, the user is required to have the **Create** privilege on the database.

  This privilege can be enabled for the user using the following SQL query:

  ```sql
  GRANT CREATE ON DATABASE database_name TO user_name;
  ```
</Callout>

### 7. Paste all of this information into the Stacksync UI

For the database type, enter `postgresql`

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-parameters-form.webp" alt="Stacksync Postgres connection dialog with Database Type &#x22;postgresql&#x22;, Host, Port, Username, Password, Database fields and &#x22;Authorize App&#x22; highlighted." width="1600" height="926" loading="lazy" decoding="async" />

  <figcaption><p>Past the credentials in the Stacksync UI</p></figcaption>
</figure>

<Callout type="info">
  Enter `postgres` if you can’t remember the name of your primary database. Every PostgreSQL managed database has a `postgres` database that you can connect to, after which you’ll be able to access all other databases on the PostgreSQL managed database.
</Callout>

<Callout type="info">
  The connection string on top of the credentials setup box will autofill as you past your credentials in the designated fields (Host, Post, Username, Password, Database and Database type). You can ignore it, it is done automatically for you! Just fill up the other credential boxes.
</Callout>

Finally, click "Authorize App" to connect your database.

That's it, your database should be connected! 🎉

## Other useful sources

Amazon connection tutorial: [https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-your-postgres-database](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-your-postgres-database)

# Ensuring Secure RDS Connections with SSL Certificate

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate

Providing the database's SSL certificate when connecting to the RDS database is important to verify the server's identity and prevent man-in-the-middle (MITM) attacks. Without specifying the certificate, the client cannot be sure it is connecting to the intended server, leaving the connection vulnerable to interception by malicious actors. By supplying the SSL certificate, the client can authenticate the server's identity, ensuring that the data exchange happens only with the legitimate database server. This verification step adds a critical layer of trust and security in database connections.

## 1. Identify the SSL Certificate used by your RDS

1. **Access the AWS Console:**
   * Log in to the AWS Management Console and navigate to the RDS service.
   * Select the target database instance.
2. **Determine Certificate Details:**
   * Identify the Certificate Authority (CA) your database uses.
   * Confirm the AWS Region where your database is hosted.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-availability-zone-certificate-authority.webp" alt="Amazon RDS db-stage-paris Connectivity & security tab with Availability Zone &#x22;eu-west-3c&#x22; and Certificate authority &#x22;rds-ca-rsa4096-g1&#x22; highlighted." width="1155" height="779" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Download the SSL Certificate

1. **Download from AWS Documentation:**
   * Visit the [AWS RDS SSL Documentation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) and locate the appropriate certificate bundle based on your database’s region (e.g., `eu-west-3`).

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-ssl-certificate-bundle-by-region.webp" alt="AWS docs table of RDS certificate bundles by region with &#x22;eu-west-3-bundle.pem&#x22; for Europe (Paris) highlighted." width="914" height="670" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. **Extract the Correct Key:**

* The downloaded certificate file includes three keys for supported encryption methods: `rsa2048`, `rsa4096`, and `ecc384`.
* Use a text editor like VSCode to open the file.
* Select the appropriate certificate based on your database’s encryption method:
  * **Shortest key:** `ecc384`
  * **Longest key:** `rsa4096` (commonly used for enterprise-grade databases).

## Upload the SSL certificate to Stacksync

When creating a new database connection in the Stacksync app, upload the selected SSL certificate to complete the secure configuration.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-connection-ssl-root-certificate-upload.webp" alt="Stacksync Amazon RDS connection dialog with the SSL (Optional) section expanded and the &#x22;SSL Root Certificate&#x22; file upload highlighted." width="1600" height="795" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# Amazon RDS

> Find your Amazon RDS connection URL.

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds

1. Sign in to the AWS Management Console and open the Amazon RDS console at\
   [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/)
2. In the navigation panel, choose **Databases** to display a list of your DB instances.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-databases-navigation.webp" alt="Amazon RDS console navigation panel with &#x22;Databases&#x22; highlighted." width="507" height="961" loading="lazy" decoding="async" />

  <figcaption><p>Navigation panel</p></figcaption>
</figure>

3. Click on the DB you want to sync.
4. On the **Connectivity & security tab**, copy the endpoint and the port number.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-endpoint-and-port.webp" alt="Amazon RDS instance &#x22;mydb&#x22; Connectivity & security tab with the Endpoint and Port 3306 circled." width="589" height="718" loading="lazy" decoding="async" />

  <figcaption><p>RDS endpoint and port number</p></figcaption>
</figure>

5. Then click on the **Configuration** tab and view the **Master username** and **DB name** values.\
   If the DB name is empty as it is the case here, then use **'postgres'** as DB name.\
   The password was set when the database was originally created. Please ask whoever set up the database for the connection password.<br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-db-name-master-username.webp" alt="Amazon RDS Configuration tab with DB name, Master username &#x22;postgres&#x22; and Master password fields highlighted." width="590" height="588" loading="lazy" decoding="async" />

  <figcaption />
</figure>

5. Use this template for the connection string and replace the element with your values

```
postgresql://USERNAME:YOUR_PASSWORD@ENDPOINT:PORT/DB_NAME
```

7. Paste the connection string into Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-connection-string-field.webp" alt="Stacksync Amazon RDS connection dialog with the &#x22;Connection String&#x22; field highlighted above the individual parameter fields." width="410" height="753" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If your database is in a **private subnet** and doesn't have any way to access it from internet currently, you can set up a jumpbox / bastion host to allow Stacksync to access your database using this tutorial:

<Cards>
  <Card title="Access a Private AWS RDS Instance via a Jumpbox" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox" />
</Cards>

# Basedash

> Find your Basedash connection URL.

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/basedash



# Ensuring Secure Cloud SQL Connections with SSL Certificate

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/cloud-sql/ensuring-secure-cloud-sql-connections-with-ssl-certificate

Providing the database's SSL certificate when connecting to Cloud SQL is essential to verify the server's identity and prevent man-in-the-middle (MITM) attacks. Without specifying the certificate, the client cannot be sure it is connecting to the intended server, leaving the connection vulnerable to interception by malicious actors. By supplying the SSL certificate, the client can authenticate the server's identity, ensuring that the data exchange happens only with the legitimate database server. This verification step adds a critical layer of trust and security in database connections.

## 1. Identify Your Cloud SQL Instance Configuration

**Access the Google Cloud Console:**

* Log in to the Google Cloud Console and navigate to the **SQL** service
* Select your target database instance from the list

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-instances-list.webp" alt="Google Cloud SQL Instances page with &#x22;SQL&#x22; (1) and the instance ID &#x22;example_db&#x22; (2) circled, showing a PostgreSQL 17 instance." width="1458" height="1102" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**Determine Instance Details:**

* Click on the instance name to open the instance details page
* Note your database engine type (PostgreSQL, MySQL, or SQL Server)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-instance-database-engine.webp" alt="Google Cloud SQL Overview for instance &#x22;example_db&#x22; with the database engine &#x22;PostgreSQL 17&#x22; circled." width="1458" height="1098" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Download the SSL Certificate

**Navigate to Certificate Management:**

* Click on the **Connections** tab
* Click on the **Security** tab
* Locate the **Manage certificates** area

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-connections-security-tab.webp" alt="Google Cloud SQL instance with &#x22;Connections&#x22; (1) and the &#x22;Security&#x22; tab (2) circled, showing SSL mode settings." width="1458" height="1105" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**Download the Server Certificate:**

* Click **Download Certificates** to get the Certificate Authority (CA) certificate
* The downloaded file will be named `server-ca.pem`
* Save this file securely as you'll need to upload it to Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-download-server-ca-certificate.webp" alt="Google Cloud SQL Connections page under &#x22;Manage server CA certificates&#x22; with the &#x22;Download Certificates&#x22; button circled." width="1458" height="1100" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Upload the SSL Certificate to Stacksync

When creating a new database connection in the Stacksync app, upload the downloaded SSL certificate to complete the secure configuration.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-cloud-sql-ssl-certificate.webp" alt="Stacksync Postgres connection dialog with the SSL (Optional) section expanded and &#x22;server-ca.pem&#x22; uploaded as the SSL Root Certificate." width="1457" height="1102" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We're here to help ensure a seamless and secure database connection setup.

# Cloud SQL

> Find your Cloud SQL connection URL.

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/cloud-sql

### 1. Go to your [Google Cloud Console](https://console.cloud.google.com)

### 2. Click on SQL

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-console-sql-menu.webp" alt="Google Cloud console navigation menu with an arrow pointing to the &#x22;SQL&#x22; product." width="1340" height="631" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Write down the public IP address of the SQL Instance you want to use

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-instance-public-ip.webp" alt="Google Cloud SQL Instances list with the public IP address of the &#x22;tutorial_database&#x22; instance highlighted." width="711" height="186" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Click on the instance you want to use

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-select-instance.webp" alt="Google Cloud SQL Instances list with an arrow pointing to the &#x22;tutorial_database&#x22; instance ID." width="617" height="181" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Go to "Users"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-users-menu.webp" alt="Google Cloud SQL instance side menu with &#x22;Users&#x22; highlighted." width="277" height="442" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Make sure the user you want to use is listed here, let's take "fake_user"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-users-list.webp" alt="Google Cloud SQL Users list with the built-in user &#x22;fake_user&#x22; highlighted." width="597" height="111" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### NOTE: You can manage the user's password by clicking on the 3 dots

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-user-actions-menu.webp" alt="Google Cloud SQL Users list with an arrow pointing to the three-dot actions menu for &#x22;fake_user&#x22; to manage its password." width="746" height="170" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### NOTE: you can add a new user by clicking "ADD USER ACCOUNT"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-add-user-account.webp" alt="Google Cloud SQL Users page with an arrow pointing to the &#x22;ADD USER ACCOUNT&#x22; button." width="481" height="149" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 7. Click on "Databases" and find the database inside the SQL Instance

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-databases-menu.webp" alt="Google Cloud SQL instance side menu with an arrow pointing to &#x22;Databases&#x22;." width="381" height="412" loading="lazy" decoding="async" />

  <figcaption />
</figure>

8. Write down the Database Name you want to use, here let's take "my_tutorial_database"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-database-name.webp" alt="Google Cloud SQL Databases list with the database name &#x22;my_tutorial_database&#x22; highlighted." width="508" height="107" loading="lazy" decoding="async" />

  <figcaption />
</figure>

8. In Cloud SQL the port is always 5432, the connection string will then have the form: postgres\://\[USER]:\[PASSWORD]@\[PUBLIC_IP_ADDRESS]:5432/\[DATABASE_NAME] In our example: postgres\://fake_user:\*\*\*\*\*\*\*\*@74.75.177.158:5432/my_tutorial_database- you can now paste into Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-string-field.webp" alt="Stacksync Postgres connection dialog with an arrow pointing to the empty &#x22;Connection String&#x22; field." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption><p>Paste your database connection URL into Stacksync</p></figcaption>
</figure>

## That's it! 🥳

# Digital Ocean

> Connect a Postgres hosted on Digital Ocean

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/digital-ocean

To authorize DigitalOcean, you'll need to set `sslmode=no-verify` in the connection string.

You might also need to Whitelist Stacksync's IP address. Learn more at [IP Whitelisting](/connectors/setup-options/ip-whitelisting)

# Heroku

> Find your Postgres Heroku connection string

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/heroku

For Heroku, use the "Postgres Heroku" connector.

## 1. Go to [https://dashboard.heroku.com/apps](https://dashboard.heroku.com/apps)

## 2. Open one of your apps

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-dashboard-select-app.webp" alt="Heroku dashboard apps list with the app &#x22;postgres112345&#x22; highlighted." width="1600" height="511" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Open your database add-on

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-addon.webp" alt="Heroku app Overview tab with the installed &#x22;Heroku Postgres&#x22; Mini add-on highlighted." width="1600" height="687" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Go to settings and view Database credentials

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-view-credentials.webp" alt="Heroku Postgres datastore with the &#x22;Settings&#x22; tab (1) and the &#x22;View Credentials...&#x22; button (2) highlighted." width="1600" height="601" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Copy Connection URI

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-connection-uri.webp" alt="Heroku Postgres Database Credentials showing host, database, user, port and password, with the masked postgres:// URI highlighted." width="1600" height="436" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Paste the connection URI into Stacksync to connect your database

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-connection-string-authorize.webp" alt="Stacksync Postgres Heroku connection dialog with the &#x22;Connection String&#x22; field and &#x22;Authorize App&#x22; button highlighted." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption><p>Paste your connection URL to connect your database</p></figcaption>
</figure>

<Callout type="info">
  For the Heroku connector, the user is required to have the **Create** privilege on the database.

  This privilege can be enabled for the user using the following SQL query:

  ```sql
  GRANT CREATE ON DATABASE database_name TO user_name;
  ```
</Callout>

Finally, click "Authorize App" to connect!

That's it, your Postgres Heroku instance is connected! 🎉

# Authorize Postgres

> Authenticate your Postgres app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres

You can also watch a quick video on how to authorize Postgres

<YouTube id="J4Q09Vt57h8" title="Video" />

## Adding Credentials to Stacksync

### 1. Select Postgres in the Create Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-base-select-postgres.webp" alt="Stacksync &#x22;Create New Base&#x22; Connected Apps step with the Postgres tile highlighted and the caption &#x22;Select &#x22;Postgres&#x22;&#x22;." width="1522" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Add your Postgres credentials as Connection String or as Parameters.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-string-or-parameters.webp" alt="Stacksync Postgres dialog highlighting the Connection String field or the Database Type, Host, Port, Username, Password and Database fields." width="1521" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. (Optional) Upload your SSL Root Certificate file

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-ssl-root-certificate-optional.webp" alt="Stacksync Postgres dialog with the SSL (Optional) section expanded to upload an SSL Root Certificate." width="1519" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. (Optional) Add SSH user and SSH host

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-ssh-tunnel-user-host.webp" alt="Stacksync Postgres dialog with the SSH Tunnel (Optional) section expanded showing SSH User and SSH Host fields." width="1515" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click "Authorize App"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-authorize-app.webp" alt="Stacksync Postgres connection dialog with the &#x22;Authorize App&#x22; button highlighted." width="1516" height="823" loading="lazy" decoding="async" />

  <figcaption><p>Click "Authorize App"</p></figcaption>
</figure>

# Render

> Connect your Postgres database hosted on Render to Stacksync

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/render

[Render](https://render.com/) is a easy and cheap database to host all your projects.

# Retool

> Authenticate your Retool app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/retool

## 1. Access your dashboard

## 2. Click on "Database"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-database-tab.webp" alt="Retool home page with an arrow pointing to the &#x22;Database&#x22; tab in the top navigation." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Click on "Database"</p></figcaption>
</figure>

## 3. Reveal Database Options

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-database-options-dropdown.webp" alt="Retool Database table view with an arrow pointing to the dropdown next to &#x22;Retool Database&#x22; to reveal options." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Click and reveal options</p></figcaption>
</figure>

## 4. Click "Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-database-connection-settings-tab.webp" alt="Retool Database Settings popover with an arrow pointing to the &#x22;Connection&#x22; tab." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Click "Connection"</p></figcaption>
</figure>

## 5. Reveal Postgres Connection URL

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-reveal-postgres-connection-url.webp" alt="Retool Database Connection settings with an arrow pointing to the eye icon that reveals the &#x22;Postgres Connection URL&#x22;." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Reveal the Connection URL</p></figcaption>
</figure>

## 6. Copy connection URL

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-copy-postgres-connection-url.webp" alt="Retool Database Connection settings with the revealed postgresql:// URL and an arrow pointing to the copy button." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Copy the connection URL</p></figcaption>
</figure>

## 7. Get credentials from connection URL

<Callout type="info">
  Retool doesn't give you the port info to connect Postgres via connection URL.
</Callout>

From your connection URL. Manually get the data needed to fill the connection form that will be shown in Step 9.

* **Database Type**
* **Host**
* **Port**
* **Username**
* **Password**
* **Database**
* **Schema**

## 6. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections-menu.webp" alt="Stacksync Syncs page with an arrow pointing to &#x22;Connections&#x22; in the left sidebar." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Go to "Connections" on Stacksync</p></figcaption>
</figure>

## 7. Click on "Create New Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-new-connection-button.webp" alt="Stacksync &#x22;My Connections&#x22; page with an arrow pointing to the &#x22;Create New Connection&#x22; button." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 8. Click "Postgres"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/select-app-postgres-connector.webp" alt="Stacksync &#x22;Select App&#x22; grid with an arrow pointing to the Postgres connector tile." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 9. Fill the connection form

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-form-fields.webp" alt="Stacksync Postgres connection dialog with Connection String or Database Type, Host, Port, Username, Password, Database and Schema fields." width="1600" height="1001" loading="lazy" decoding="async" />

  <figcaption><p>Fill the connection form with all the data from step 7</p></figcaption>
</figure>

# Supabase (OAuth)

> Connect your Supabase database by signing in to Supabase, no connection string to copy.

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/supabase-oauth

With the **Supabase (OAuth)** connector you sign in to Supabase and pick your project. Stacksync looks up the connection details for you, you only type the database password.

Prefer pasting a connection string? Use the [Supabase](/connectors/postgres/authorize-postgres/supabase) connector instead. Both create the same Postgres connection, so syncs behave the same whichever one you choose.

## 1. Select the Supabase (OAuth) connector

In Stacksync, open **Create Resource** and choose **Connection**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-connection-menu.webp" alt="Stacksync &#x22;All Resources&#x22; page with the &#x22;Create Resource&#x22; dropdown open and &#x22;Connection&#x22; highlighted." width="1044" height="509" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Search for `supabase` and select **Supabase (OAuth)**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-select-tile.webp" alt="Stacksync &#x22;Create a new Connection&#x22; app picker filtered on &#x22;supabase&#x22;, with an arrow pointing at the &#x22;Supabase (OAuth)&#x22; connector next to &#x22;Supabase&#x22;." width="1728" height="995" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Authorize Stacksync in Supabase

A Supabase window opens automatically. Sign in if needed, then:

1. Under **Organization**, select the organization that owns your project.
2. Click **Authorize Stacksync**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-authorize.webp" alt="Supabase &#x22;Authorize Stacksync&#x22; screen with arrows pointing at the Organization dropdown and the &#x22;Authorize Stacksync&#x22; button; permissions are read-only on Database, Organizations and Projects." width="1728" height="986" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Stacksync asks for **read-only** access. It uses it only while you set up the connection, to list your projects and read their connection details, and does not store it.

<Callout type="info">
  If the Supabase window does not open, your browser probably blocked the popup. Allow popups for Stacksync and click **Connect Supabase**.
</Callout>

## 3. Complete the connection details

Back in Stacksync, the window closes and the connection details appear:

1. **Supabase Project**: select your project. If your organization has a single project, it is selected for you. Stacksync fills in the host, port, user and database from the project's connection pooler.
2. **Database password**: type your project's database password. Supabase never shares database passwords with third-party apps, so this is the only value you enter yourself. If you don't have it, reset it in your Supabase dashboard under **Project Settings > Database**.
3. **Schema**: pick the schema to sync (`public` by default).
4. If your Supabase project restricts inbound IPs, add the Stacksync IP addresses listed under **Allowlist Stacksync IPs** to its allowlist.

Click **Next**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-configure.webp" alt="Stacksync &#x22;Configure connection&#x22; step for Supabase (OAuth) with a project selected, the database password filled in, the &#x22;public&#x22; schema, the Stacksync IP allowlist, and arrows pointing at the password field and the &#x22;Next&#x22; button." width="1728" height="998" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Name and create the connection

1. **Connection Name**: give the connection a name you will recognize. Stacksync suggests a **Connection Resource ID** from it.
2. **Connection Region**: pick the region your syncs run in.
3. Leave **Make this connection available to other users in the workspace** checked to let your teammates use it.

Click **Create**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-create.webp" alt="Stacksync &#x22;Create&#x22; step for Supabase (OAuth) with the Connection Name, Connection Resource ID, Connection Region and workspace sharing checkbox, and arrows pointing at the name field and the &#x22;Create&#x22; button." width="1711" height="983" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Your Supabase database is now connected and ready to use in a sync or workflow.

# Supabase

> Find your Supabase connection URL.

Source: https://docs.stacksync.com/connectors/postgres/authorize-postgres/supabase

<Callout type="info">
  Prefer signing in with your Supabase account instead of copying a connection string? Use the [Supabase (OAuth)](/connectors/postgres/authorize-postgres/supabase-oauth) connector.
</Callout>

## 1. Open your Supabase project

## 2. Click "Connect"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-project-connect-button.webp" alt="Supabase project dashboard with the &#x22;Connect&#x22; button in the top bar highlighted and labeled &#x22;Click Connect&#x22;." width="1600" height="997" loading="lazy" decoding="async" />

  <figcaption><p>Click "Connect"</p></figcaption>
</figure>

## 3. Copy connection string

Make sure to:

1. use **Transaction Pooler**. Compared to direct connections, a transaction pooler enables higher connection concurrency without exhausting the database. It improves connection reuse, load isolation, and fault tolerance, ensuring stable performance under high throughput.
2. use **IPv4-compatible** connection string. Stacksync does not currently support IPv6. You must use an IPv4-compatible connection string.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-ipv4-transaction-pooler-string.webp" alt="Supabase &#x22;Connect to your project&#x22; dialog with Method &#x22;Transaction pooler&#x22; and the &#x22;IPv4 compatible&#x22; badge highlighted next to the URI." width="1165" height="633" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Create the connection on Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-connection-menu.webp" alt="Stacksync &#x22;All Resources&#x22; page with the &#x22;Create Resource&#x22; dropdown open and &#x22;Connection&#x22; highlighted." width="1044" height="509" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-postgres-configure-step.webp" alt="Stacksync &#x22;Create a new Connection&#x22; Configure step with Connection String or Host, Port, Username, Password and Database fields." width="950" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Make sure to fill in all fields, including the password as it may not be copied as part of the connection string.

<Callout type="info">
  If you face the error `Please use IPv4 compatible supabase connection pooler` go back to Supabase app and make sure to use a connection string which is IPv4 compatible.
</Callout>

# Capture Field History

Source: https://docs.stacksync.com/connectors/postgres/capture-field-history

Stacksync can maintain a full field-level change history for any connected source, including Postgres, Salesforce, and HubSpot. Every insert, update, and delete is recorded as a row that captures the previous value, the new value, and exactly which fields changed.

## How it works

**Producer.** A trigger on your source watches for inserts, updates, and deletes. Each change is pushed onto a queue, which buffers and flushes in batches. Turn on historical backfill to record a baseline version of every existing row up front.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-trigger-backfill-workflow.webp" alt="Stacksync workflow with a Postgres Trigger on &#x22;audit_demo_contacts&#x22; (Backfill Enabled) feeding a &#x22;Postgres Data Queue&#x22;." width="1574" height="962" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**Consumer.** Reads changes off the queue and, for each one:

1. Looks up the record's most recent stored version in the history table. This is the old value.
2. Pairs it with the change from the queue. This is the new value.
3. Computes the field-level diff.
4. Writes one history row holding the old version, the new version, and what changed.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-audit-trail-workflow.webp" alt="&#x22;Postgres Audit Trail&#x22; workflow: Postgres Queue, Input, &#x22;Fetch records from Field History&#x22;, &#x22;Map The fields&#x22;, &#x22;Insert PG field history&#x22;." width="1120" height="1490" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That stored new version becomes the old value the next time the record changes. The first time a record is seen there is no prior row, so the old value is empty as a baseline, and every change after that shows a full before and after.

The history table does double duty: it is both the output and the memory of previous values.

## What gets recorded

Each row in the history table contains:

| Field                 | Description                                 |
| --------------------- | ------------------------------------------- |
| `change_id`           | Unique id for the change                    |
| `change_timestamp`    | When the change occurred                    |
| `record_id`           | The changed record's id                     |
| `update_type`         | `create`, `update`, or `delete`             |
| `past_record_version` | The full record before the change           |
| `new_record_version`  | The full record after the change            |
| `changes`             | Field-level diff, `{ field: { old, new } }` |

## Setup

1. Create the history table (see below).
2. Build the **producer** workflow: source trigger (with historical backfill on) into a queue.
3. Build the **consumer** workflow: queue trigger into a query for the latest version per record, into a transform that pairs old and new and computes the diff, into an insert back to the history table.

### Example: history table

```sql
CREATE TABLE field_history (
  change_id            uuid PRIMARY KEY DEFAULT gen_random_uuid(),
  change_timestamp     timestamptz NOT NULL DEFAULT now(),
  table_name           text,
  record_id            text,
  update_type          text,          -- create | update | delete
  past_record_version  jsonb,
  new_record_version   jsonb,
  changes              jsonb,          -- { field: { old, new } }
  seq                  bigserial
);
```

### Example: fetch the latest version per record

The consumer uses this to find the old value. It returns one row per record, the most recent stored version, so the transform can match each incoming change to its previous state. Note that it does not filter by what is in the queue; it pulls the latest per record and the transform does the matching.

```sql
SELECT DISTINCT ON (table_name, record_id)
       table_name, record_id, new_record_version
FROM field_history
ORDER BY table_name, record_id, change_timestamp DESC, seq DESC;
```

## How changes are captured

Each distinct change is captured as it occurs and recorded as its own row. Changes to the same record need a small gap between them to each be picked up individually. Edits spaced out in normal time, which covers typical auditing, are all captured separately. Several updates to the same record landing back to back, with effectively no gap, are captured as the latest state.

## Works with any source

The same pattern works across every connected system. Because the old value is reconstructed inside the workflow rather than read from the source, Postgres, Salesforce, HubSpot, and others all produce the same clean before-and-after history.

# Postgres

Source: https://docs.stacksync.com/connectors/postgres

## Introduction

PostgreSQL (Postgres) is a powerful, open-source, object-relational database management system that uses and extends the SQL language. It is known for its stability, reliability, and advanced features such as concurrency control, transaction management, and support for various programming languages. Postgres is the backbone database of many backend production services.

You can now keep data in sync with all your other CRMs and database systems with Stacksync!

Check out our [Postgres guides](/two-way-sync/guides/modify-salesforce-data-in-postgres) to get started!

## Things to keep in mind

### During setup

* [x] **All Postgres tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column, composite primary keys are not valid. Check our [Postgres snippets](/connectors/postgres/snippets) collection for additional hints.
* [x] **Primary keys must be auto-generated**\
  Make sure your primary keys are generated by your database (i.e. have a default value set).
* [x] **Double-check that the Postgres user used by Stacksync to connect to your database is the owner** (or has the same role as the owner) **of *****the tables***** you want to map.**

If a table you see in your database does not appear in Stacksync, one of the previous conditions is not met. Check our [Postgres snippets](/connectors/postgres/snippets) collection for additional hints.

<Callout type="info">
  You must have replication rights to connect your Postgres instance. If you get the following error:

  `The user does not have the right permissions for replication. Please check the documentation for more information.`

  Please use the "**Postgres Heroku**" connector instead of the "Postgres" Connector. They are the same but the "Postgres Heroku" connector does not require replication rights in trade for some negligible database performance. So you can use the "Postgres Heroku" connector with your current database even if it is not provided by Heroku as long as you get the error message displayed above.
</Callout>

<details>
  <summary>
    How to enable Logical Replication? (If not already enabled)
  </summary>

  To use **logical replication** for change data capture the ***wal_level*** value must be set to ***logical.*** To change the value of this parameter, modifications need to be made to the *postgresql.conf* file.

  1. Open the *postgresql.conf* file. On Linux, this file can be found in the following directory:

     **/etc/postgresql/version/main**
  2. Find the **wal_level** variable under WRITE-AHEAD LOG settings.
  3. Uncomment it if it's commented and set its value to **logical:**\
     wal_level = logical
  4. Restart the PostgreSQL service. On Linux it can be restarted with the following commands:\
     `sudo service postgresql stop`

     `sudo service postgresql start`
  5. Use the following SQL query to ensure logical replication has been enabled:\
     `SHOW wal_level;`\
     The value displayed should be **logical.**
  6. After enabling, in Stacksync, use the **Postgres** option instead of the **Postgres Heroku** option while creating the sync.
</details>

### After setup

<Callout type="warn">
  Renaming schemas, tables, or columns will break Stacksync configuration. No worries, we get you covered! Please refer to our [https://github.com/stacksyncdata/documentation-gitbooks-connectors/blob/prod/features/update-sync-configuration.md](https://github.com/stacksyncdata/documentation-gitbooks-connectors/blob/prod/features/update-sync-configuration.md "mention") guide.
</Callout>

# Required Permissions

> For Stacksync to sync data from/to your Postgres, Stacksync requires a given set of permissions. These are the least minimal permissions required for Stacksync to work.

Source: https://docs.stacksync.com/connectors/postgres/required-permissions

When creating a Postgres sync on the Stacksync Dashboard, you will need to provide a DB user. Here is a guide to creating a user with the least permissions while still enabling Stacksync Syncs from/to your Postgres DB.

Here is the list of queries you need to execute in your Postgres DB to create and grant the DB user `stacksync_user` the necessary permissions.

You need to replace the following fields in the query:

* `'<PROVIDE_STRONG_PASSWORD>'`
* `` `<DATABASE_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>' ``
* `'<SCHEMA_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>'`
* `'<NAMES_OF_TABLES_YOU_WANT_TO_SYNC>'`

```sql
CREATE USER stacksync_user WITH PASSWORD '<PROVIDE_STRONG_PASSWORD>';
--necessary to create tables
CREATE SCHEMA IF NOT EXISTS stacksync_logging;
GRANT ALL PRIVILEGES ON SCHEMA stacksync_logging TO stacksync_user;

--necessary to create triggers on the table you want to sync
GRANT CREATE ON DATABASE '<DATABASE_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>' TO stacksync_user;
GRANT USAGE, CREATE ON SCHEMA '<SCHEMA_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>' TO stacksync_user;
GRANT USAGE ON LANGUAGE plpgsql TO stacksync_user;
GRANT SELECT, INSERT, UPDATE, DELETE, TRIGGER ON TABLE '<NAMES_OF_TABLES_YOU_WANT_TO_SYNC>' TO stacksync_user;

-- necessary to detect which tables can be synced by Stacksync
GRANT SELECT ON pg_class TO stacksync_user;
GRANT SELECT ON pg_namespace TO stacksync_user;
GRANT SELECT ON pg_constraint TO stacksync_user;
GRANT SELECT ON pg_attribute TO stacksync_user;
GRANT SELECT ON pg_attrdef TO stacksync_user;
GRANT SELECT ON information_schema.sequences TO stacksync_user;
```

## Additional permissions required for PostgreSQL partitioned tables

In PostgreSQL, permissions are managed per partition table.

If your partitioned tables already had **existing partitions before granting permissions to Stacksync** on the parent table, you must also grant permissions on those existing partitions manually.

Future partitions created afterward will automatically inherit the parent table permissions.

Run the following query to grant the required permissions on all existing partitions in your database:

```sql
DO $$
DECLARE
    r RECORD;
BEGIN
    FOR r IN
        SELECT c.oid::regclass AS partition_table
        FROM pg_class c
        JOIN pg_inherits i ON i.inhrelid = c.oid
    LOOP
        EXECUTE format(
            'GRANT SELECT, INSERT, UPDATE, DELETE, TRIGGER ON TABLE %s TO stacksync_user;',
            r.partition_table
        );
    END LOOP;
END $$;
```

# Snippets

> Handy snippets to help you set up Postgres to work with Stacksync

Source: https://docs.stacksync.com/connectors/postgres/snippets

## Create a Primary Key

When creating a table in Postgres, you must define a primary key for the table. This can be done using a UUID or an integer that is auto-generated. Here are example snippets to create a primary key with auto-generated UUIDs or integers in Postgres:

Code snippet for UUID primary key:

```sql
CREATE TABLE public."my_table" (
   id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
   my_column varchar,
   -- other columns here
);
```

Code snippet for integer primary key:

```sql
CREATE TABLE my_table (
   id serial PRIMARY KEY,
   my_column varchar,
   -- other columns here
);
```

In the above code snippets, we have defined a primary key column named `id` using UUID and integer data types respectively. For integer primary keys, the `serial` data type is used, which automatically generates a sequence of unique integer values for the `id` column. By using either of these techniques, you can ensure that each row in the table has a unique identifier.

## Alter a Primary Key

In Postgres, you can alter a primary key on a table to set it to a new column that is auto-generated with UUIDs or integers. This can be useful when you need to change the primary key column of a table to make it work with Stacksync's requirements. Here is an example code snippet that demonstrates how to alter a primary key on a table to set it to a new column that is auto-generated with UUIDs (BEST PRACTICE) or integers:

Code snippet for UUID primary key: (recommended)

```sql
-- first, create the new column with the desired data type
ALTER TABLE public."my_table" ADD COLUMN new_id uuid DEFAULT uuid_generate_v4() PRIMARY KEY;

-- then, drop the old primary key constraint
ALTER TABLE public."my_table" DROP CONSTRAINT my_table_pkey;

-- finally, add the new primary key constraint using the new column
ALTER TABLE public."my_table" ADD PRIMARY KEY (new_id);
```

Code snippet for Integer primary key:

```sql
-- first, create the new column with the desired data type
ALTER TABLE public."my_table" ADD COLUMN new_id serial PRIMARY KEY;

-- then, drop the old primary key constraint
ALTER TABLE public."my_table" DROP CONSTRAINT my_table_pkey;

-- finally, add the new primary key constraint using the new column
ALTER TABLE public."my_table" ADD PRIMARY KEY (new_id);
```

In the above code snippets, we have created a new column named `new_id` with the desired data type and auto-generation mechanism for the primary key. We have then dropped the old primary key constraint on the table and added a new primary key constraint using the new column. Note that this operation may require data type conversion and may cause data loss, so you should be careful when modifying the primary key column of a table.

## Create a User with restricted access rights on your database

When you use Stacksync on production databases, you might feel more comfortable creating a user where Stacksync has only the necessary access rights to access the data.

Usually, Stacksync will create some tables directly and read and write data on these. For this setup, it is recommended to create a user for Stacksync that has the `create table` and `read + write` access rights.

Here is how to do it:

1. Connect to your PostgreSQL database with a user that has administrative privileges (e.g., the superuser or an account with the `CREATEDB` privilege).
2. Use the `CREATE ROLE` command to create a new user for Stacksync. You can grant the required privileges using the `GRANT` command.

```sql
-- Create the user
CREATE ROLE stacksync_user WITH LOGIN PASSWORD 'your_password';

-- Grant the necessary privileges
-- To create tables in a specific schema (e.g., public)
GRANT CREATE ON SCHEMA public TO stacksync_user;

-- Grant read and write privileges on all tables in the public schema
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO stacksync_user;
```

3. The Stacksync user also needs to have either `replication` rights on your database or `create schema`. This is necessary for Stacksync to be able to capture data changes in real-time and make the sync work.

Option 1: `replication` rights (recommended)

```sql
-- Grant replication rights to the Stacksync user (you must be a superuser to give replication rights to another user)
ALTER ROLE stacksync_user WITH REPLICATION;
```

Option 2: `create schema` (if your database does not allow you to activate `replication` rights)

```sql
-- Grant create schema rights to the Stacksync user
GRANT CREATE ON DATABASE your_database_name TO stacksync_user;
```

## Grant user read and write access rights on a specific existing table

```sql
-- Grant read and write access to the table for the user
GRANT SELECT, INSERT, UPDATE, DELETE ON your_table TO your_user;
```

The user "`your_user`" now has read and write access rights to the "`your_table`" table in the database. They can perform SELECT, INSERT, UPDATE, and DELETE operations on that table as needed.

## Create a new column in Postgres

To create a new column, here is a generic code snippet:

```sql
ALTER TABLE table_name
ADD COLUMN new_column_name data_type;
```

Here's an example that adds a new column named `age` with the data type `integer` to a table named `persons`:

```sql
ALTER TABLE persons
ADD COLUMN age integer;
```

To add a new column named `name` with the data type `varchar` (i.e. string) to a table named `persons`:

```sql
ALTER TABLE persons
ADD COLUMN name VARCHAR;
```

# Authorize Rillet Connection

> This guide explains how to connect your Rillet environment to Stacksync.

Source: https://docs.stacksync.com/connectors/rillet/authorize-dynamics-365-f-and-o

## 1. Generate an API Key in [Rillet](https://app.rillet.io/)

1. Login to [Rillet](https://app.rillet.io/) App
2. Navigate to **Organization Setting** -> **API Access**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-organization-settings-menu.webp" alt="Rillet dashboard with the &#x22;Stacksync Sandbox&#x22; account menu open and &#x22;Organization Settings&#x22; highlighted." width="1600" height="923" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-api-access-create-api-key.webp" alt="Rillet Settings &#x22;API Access&#x22; page listing API keys, with &#x22;API Access&#x22; and the &#x22;Create API key&#x22; button highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Click on **Create new API key**
4. Enter a name for the API Key

**a. Enable full access (read/write):** Uncheck Read Only to allow bidirectional sync.

**b. Enable read-only access:** Check Read Only for one-way sync.

5\. Copy the secret key generated.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-generate-new-api-key-dialog.webp" alt="Rillet &#x22;Generate new API key&#x22; dialog with an &#x22;API Key Name&#x22; field, a &#x22;Read-only&#x22; checkbox and a &#x22;Create API Key&#x22; button." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a Connection in [Stacksync](https://app.stacksync.com/) App

1. Click **Create Resource**
2. Select **Syncs**
3. Choose the **Rillet connector**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-select-syncs.webp" alt="Stacksync &#x22;Create a resource&#x22; screen with templates on the left and the &#x22;Syncs&#x22; tile highlighted under &#x22;Jump right in&#x22;." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-rillet-connector.webp" alt="Stacksync &#x22;Create a new Sync&#x22; Connect Apps step with the Rillet connector highlighted in the connector grid." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This opens the authorization flow.

## 3. Complete the Connection Setup

1. Provide the **Rillet API key** generated in Step 1.
2. Follow the on-screen steps to finalize the connection

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-connection-api-key-field.webp" alt="Stacksync Rillet &#x22;Select a connection&#x22; dialog with Environment &#x22;Production&#x22; and the &#x22;API Key (Bearer)&#x22; field highlighted." width="1600" height="926" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Rillet

Source: https://docs.stacksync.com/connectors/rillet

The **Stacksync Rillet connector** enables **bidirectional synchronization** of ERP data with any data warehouse or operational system.

## Rillet connector supports:

1. Historical data backfill.
2. Near real-time updates via change tracking
3. Bidirectional write-back support.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Rillet Connection" href="/https/docs.stacksync.com/connectors/rillet/authorize-dynamics-365-f-and-o" />
</Cards>

<Cards>
  <Card title="Rillet Supported Objects" href="/https/docs.stacksync.com/connectors/rillet/make-a-custom-entity-syncable-by-stacksync" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Rillet Supported Objects

Source: https://docs.stacksync.com/connectors/rillet/make-a-custom-entity-syncable-by-stacksync

Stacksync supports **17 objects** from Rillet, covering core financial and operational data.

| Object           | Incremental Sync | Historic Sync | Delete Detection |
| ---------------- | ---------------- | ------------- | ---------------- |
| Account          | ✅                | ✅             | ✅ Every 1h       |
| Subsidiary       | ❌                | ✅             | ✅ Every 1h       |
| Tax Rate         | ❌                | ✅             | ✅ Every 1h       |
| Customer         | ✅                | ✅             | ✅                |
| Vendor           | ✅                | ✅             | ✅                |
| Product          | ❌                | ✅             | ✅ Every 1h       |
| Contract         | ❌                | ✅             | ✅ Every 1h       |
| Invoice          | ✅                | ✅             | ✅                |
| Credit Memo      | ✅                | ✅             | ✅                |
| Bill             | ✅                | ✅             | ✅                |
| Journal Entry    | ✅                | ✅             | ✅                |
| Invoice Payment  | ✅                | ✅             | ✅                |
| Charge           | ✅                | ✅             | ✅                |
| Reimbursement    | ✅                | ✅             | ✅                |
| Bank Account     | ❌                | ✅             | ✅ Every 1h       |
| Bank Transaction | ❌                | ✅             | ✅ Every 4h       |
| Custom Field     | ✅                | ✅             | ✅                |

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Enable API Access in Salesforce

Source: https://docs.stacksync.com/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce

API access needs to be enabled in Salesforce for the user connecting Stacksync to its Salesforce instance.

Follow the steps below to:

* Enable API access in Salesforce by Profile
* Enable API access in Salesforce by Permission Set

<Tabs items="[&#x22;Enable API access by Profile&#x22;,&#x22;Enable API access by Permission Set&#x22;]">
  <Tab value="Enable API access by Profile">
    **Enable API access in Salesforce by Profile**

    \
    1\. Click the Gear icon and click **Setup.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-gear-menu-setup.webp" alt="Salesforce gear icon menu open with the &#x22;Setup&#x22; option highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    \
    2\. Type **profiles** into the Quick Find box and select **Profiles.**\
    \
    3\. Click **Edit** against the Profile you wish to enable API access for.

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-setup-profiles-edit.webp" alt="Salesforce Setup Profiles list found by searching &#x22;profiles&#x22;, with the &#x22;Edit&#x22; link next to &#x22;Standard User&#x22; highlighted." width="1600" height="890" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    4\. Scroll down to **Administrative Permissions** and check the **API Enabled** box and click **Save**.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-profile-api-enabled.webp" alt="Salesforce profile Administrative Permissions with the &#x22;API Enabled&#x22; checkbox highlighted and checked." width="1600" height="886" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    The API in Salesforce is now enabled for the modified profile. All users with this profile now have API enabled permissions.

    ***

    ***Optional:*** If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set. This only works for custom profiles, salesforce standard profiles do not allow you to turn enable this permission.\
    \
    5\. In your custom profile scroll down to *Administrative Permissions* section and enable *Query all data*

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-profile-query-all-files.webp" alt="Salesforce custom profile Administrative Permissions with the &#x22;Query All Files&#x22; checkbox highlighted and checked." width="1600" height="886" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
  </Tab>

  <Tab value="Enable API access by Permission Set">
    ## Enable API Access in Salesforce by Permission Set

    \
    1\. Click the Gear icon and click **Setup.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-gear-menu-setup.webp" alt="Salesforce gear icon menu open with the &#x22;Setup&#x22; option highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    \
    2\. Type **permission** into the Quick Find box and select **Permission Sets.**

    3\. Select the Permission Set you wish to enable API access for. (Or click "NEW" if you want to create a new one).

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-setup-permission-sets-list.webp" alt="Salesforce Setup &#x22;Permission Sets&#x22; page found by search, with the &#x22;new permission set&#x22; entry highlighted." width="1600" height="886" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    4\. Scroll down to **System** and click **System Permissions.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-system-permissions.webp" alt="Salesforce permission set overview with the &#x22;System Permissions&#x22; link under System highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    5\. Click **Edit**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-system-permissions-edit.webp" alt="Salesforce permission set &#x22;System Permissions&#x22; page with the &#x22;Edit&#x22; button highlighted." width="1600" height="885" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    6\. Check the **API Enabled** box and then scroll up and click **Save.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-api-enabled.webp" alt="Salesforce permission set System Permissions list with the &#x22;API Enabled&#x22; checkbox checked and highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    The permission set now has the API Enabled permission. The permission set should be applied to the user connecting Salesforce to Stacksync.

    7. Select the permission set and click **Manage Assignments** and then **Add Assignments**.
    8. Select the check boxes next the names of the users you want assigned to the permission set, and click **Assign**.

    ***

    *Optional:* If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set.

    8\. Switch the permission set overview to *App Permissions*

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-app-permissions.webp" alt="Salesforce permission set navigation dropdown open with &#x22;App Permissions&#x22; highlighted." width="1600" height="888" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    9. Click **Edit**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-app-permissions-edit.webp" alt="Salesforce permission set &#x22;App Permissions&#x22; page with the &#x22;Edit&#x22; button highlighted." width="1600" height="888" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    10. Scroll down to the *Content* section and enable *Query All FIles* and then scroll up and click **Save.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-query-all-files.webp" alt="Salesforce App Permissions Content section with the &#x22;Query All Files&#x22; checkbox checked and highlighted." width="1600" height="888" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    <br />
  </Tab>
</Tabs>

Learn more in [this Salesforce documentation](https://help.salesforce.com/s/articleView?id=sf.branded_apps_commun_api_permset.htm\&type=5).

# Fix the Salesforce OAuth Error

> When creating your Salesforce connection, you may see this error:

Source: https://docs.stacksync.com/connectors/salesforce/authorize-salesforce/fix-the-salesforce-oauth-error

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-oauth-error-app-not-installed.webp" alt="Salesforce &#x22;OAuth Error&#x22; page; the URL shows &#x22;error_description=app+must+be+installed+into+org&#x22;." width="1600" height="1057" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This happens because Salesforce requires the **Stacksync a**pp to be installed and approved in your **Organization** before anyone can use OAuth.

## Install the Stacksync App in Your Salesforce Org

Before any user can create a Salesforce connection in Stacksync, the **Stacksync** App must be installed in your Salesforce org. This step only needs to be done **once**.

### 1. Make sure the installer has the required permission

The user who performs the first OAuth authorization **must** have the Salesforce permission:

### “Approve Uninstalled Connected Apps”

To enable it:

1. Go to **Setup**
2. Search for **Profiles**
3. Open the profile of the user who will install the app\
   (e.g., **System Administrator** or any user profile with this permission)
4. Enable **“Approve Uninstalled Connected Apps”**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-profiles-system-administrator.webp" alt="Salesforce Setup User Profiles list with &#x22;Profiles&#x22; and the &#x22;System Administrator&#x22; profile highlighted." width="1600" height="727" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-approve-uninstalled-connected-apps.webp" alt="Salesforce profile Administrative Permissions with &#x22;Approve Uninstalled Connected Apps&#x22; highlighted and checked." width="1600" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This permission lets the user approve and install connected apps.

### 2. Perform the first OAuth authorization

After the permission is enabled:

1. The user with that permission logs into **Stacksync**
2. Starts the **Salesforce OAuth flow**
3. Salesforce will show a prompt to **approve and install** the **Stacksync** App
4. Once approved, if you want other users in your organization to be able to install this app, go to **Setup → Connected Apps OAuth Usage**, find **Stacksync**, and click **Install.** After that, selected users will be able to authorize successfully.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-connected-apps-oauth-usage-install.webp" alt="Salesforce &#x22;Connected Apps OAuth Usage&#x22; page with the &#x22;Install&#x22; button highlighted for the Stacksync app." width="1600" height="214" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Other Users Can Now Use OAuth

Once the **Stacksync** app is installed, other Salesforce users (for example, a dedicated “Stacksync Integration User” with limited permissions) should be able to complete the OAuth flow without any extra steps.

If a user still encounters an OAuth error, go to **Setup → Connected Apps OAuth Usage**, find **Stacksync**, click **Install or** assign access. After that, the user will be able to authorize successfully.

***

## Final Result

* **One user with the proper permission installs the app once**
* **All other allowed users can now use OAuth to create Salesforce connections in Stacksync**

# Authorize Salesforce

> Authenticate your Salesforce app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/salesforce/authorize-salesforce

You can also watch a quick video on how to authorize Salesforce

<YouTube id="13BDs2x5igg" title="Video" />

## Adding Credentials to Stacksync

#### 1. Select Salesforce in the Create Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-salesforce.webp" alt="Stacksync &#x22;Create New Base&#x22; Connect Apps step with the Salesforce tile highlighted and the caption &#x22;Select &#x22;Salesforce&#x22;&#x22;." width="1516" height="823" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<details>
  <summary>
    Getting stuck on this step?
  </summary>

  If you get stuck on a loading page after when trying to connect Salesforce (i.e. waiting a few minutes), verify that **you do not have an *****Ad blocker***** or that *****popup windows are not blocked*****.**

    <img alt="Stacksync connector dialog stuck on a loading spinner with &#x22;Swapping time and space...&#x22; and &#x22;Cancel&#x22; and &#x22;Select&#x22; buttons." src="__img0" />

  **Fix ✅: Press cancel, Deactivate your *****Ad blocker***** and try again to Authorize Salesforce.**
</details>

#### 2. A new tab will open. Select your account.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-login-select-account.webp" alt="Salesforce login page listing saved usernames, highlighted with the caption &#x22;Select your account&#x22;." width="1518" height="823" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  On production: We recommend creating a specific Salesforce user for your Stacksync application, and make sure that it has the [required permissions](https://docs.stacksync.cloud/connectors/salesforce/authorize-salesforce#permissions-needed-to-use-stacksync-salesforce-connector).
</Callout>

#### 3. Fill out the credentials and log into your account.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-login-credentials.webp" alt="Salesforce login form with username and password filled in and the login button highlighted, captioned &#x22;Log into Salesforce&#x22;." width="1516" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Troubleshoot

<Callout type="info">
  If you are facing issues during salesforce oauth page, follow this tutorial to fix it [Fix the Salesforce OAuth Error](/connectors/salesforce/authorize-salesforce/fix-the-salesforce-oauth-error)
</Callout>

<Callout type="info">
  If you do not have the API Enabled for your Salesforce user, follow this tutorial to activate it: [Enable API Access in Salesforce](/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce)
</Callout>

<details>
  <summary>
    Permissions needed to use Stacksync Salesforce connector
  </summary>

  When your data changes, Stacksync needs to be notified in order to power real-time sync. Depending on your setup, using regular data polling or triggers can be best. Stacksync proposes the two alternatives and selects the best one automatically for you.

  To use the Salesforce connector, you will need a Salesforce user with the following permissions,

  1. for the <mark>connector using regular polling</mark> for change data capture:

  * **API Enabled** - Allows the user to execute API calls.

  To [activate the API for your Salesforce User, follow this tutorial 👍🏼](/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce)

  With regular polling, Stacksync works as follows: When you create a sync with Salesforce, we will only query your Salesforce instance regularly in an optimized manner to get the latest changes on your data. We only sync the incremental changes that happened since our last poll. As we detect some activity in your Salesforce data, we optimize our polling rate to provide you with a real-time sync performance, and save your resources otherwise when your data is not active. You will save much API resources compared to all other alternatives for real-time and two-way sync.

  2. for the <mark>connector using triggers</mark> for change notifications:

  * **API Enabled** - Allows the user to execute API calls.
  * **Author Apex** - Allows the user to create and EDIT Apex classes and Triggers.
  * **Customize Application** OR **Modify All Data** - Allows the user to create or edit remote site settings.

  With triggers, Stacksync works as follows: When you create a sync with Salesforce, we will create an *Apex trigger* that calls an *Apex callout class* which sends data to Stacksync via a *remote site setting*. This is why we need all three of the above permissions.
</details>

<details>
  <summary>
    I get the error "The REST API is not enabled for this Organization"
  </summary>

  Stacksync accesses your data to be synced in the background via the Salesforce API, which makes the integration frictionless. You Salesforce Organization must have the API feature enabled and this depends your Salesforce subscription plan.

  #### Editions with API Access (enabled by default)

  * Enterprise Edition
  * Unlimited Edition
  * Developer Edition
  * Performance Edition

  #### Editions with optional API access

  * Professional Edition (can be purchased as an add-on, contact the Salesforce sales team to order the API access)

  #### Editions without API Access

  * Group Edition
  * Essentials Edition

  Unfortunately, editions without API Access cannot use Stacksync now, please contact us at if you have a special use case we can help you with!

  [Read more](https://help.salesforce.com/s/articleView?id=000385436\&type=1) on Salesforce documentation
</details>

<details>
  <summary>
    Error enabling Bulk API
  </summary>

  The **"View All Data"** permission is required for Stacksync to access the Salesforce **Tooling API**, which is necessary when configuring the Sync to use the **Bulk API**.

  You can enable this permission by navigating to:\
  **Setup → Users → Profiles → \[Select the user profile connected to Stacksync] → Edit → Enable "View All Data".**

  .  <img alt="Salesforce profile Administrative Permissions with an arrow pointing to the checked &#x22;View All Data&#x22; permission." src="__img1" />
</details>

# Formula Fields

Source: https://docs.stacksync.com/connectors/salesforce/formula-fields

## Formula Fields in Salesforce

Formula fields in Salesforce are **read-only fields** whose values are dynamically calculated based on other fields, expressions, or functions.\
Because their values are derived rather than stored, they might not always trigger standard change events when the underlying data changes.

***

### Syncing Formula Fields with Stacksync

Stacksync can **synchronize formula fields** at a custom frequency that you define.\
This ensures that even though formula fields don’t emit direct change notifications, their computed values remain up-to-date in your destination system.

#### How It Works

* Formula fields are detected automatically during setup.
* You can configure a **full table scan** for specific tables containing formula fields.
* Stacksync will recheck and update those formula field values at the chosen frequency (e.g., every 24 hours).<br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-formula-fields-full-table-scan.webp" alt="Stacksync Salesforce connected app settings with the formula fields option to do a full table scan of &#x22;Account&#x22; every &#x22;24h&#x22; highlighted." width="1163" height="708" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Salesforce

Source: https://docs.stacksync.com/connectors/salesforce

## Introduction

Salesforce is a cloud-based customer relationship management (CRM) platform that helps businesses manage and streamline their sales, marketing, and customer service activities. It provides a range of tools and features to manage customer data, track leads and opportunities, automate sales processes, and deliver personalized customer experiences. Salesforce also offers a range of enterprise-level solutions for analytics, marketing automation, and customer service management.

You can now keep your Salesforce data in sync with all your other CRMs and database systems with Stacksync!

Check out our Salesforce guides to get started!

## Things to keep in mind

### Can’t find a table in the list of available tables to map?

If any of the tables you’d like to sync isn’t listed in your sync configuration, it doesn’t mean it can’t be synced. Write us a message at [hello@stacksync.com](mailto:hello@stacksync.com) and we will be glad to help and add your custom object to the list!

**The Salesforce connector is available with triggers or with regular polling, which might fit better in different cases.**

For the two-way sync technology to work, Stacksync needs to be notified when your data changes. The use of the Salesforce connector with triggers or regular polling for data notifications is done automatically for you by Stacksync. If you want to know more or have some specific needs, [contact us](https://www.stacksync.com/contact) and we'll be happy to help!

Stacksync offers two ways to capture data changes from Salesforce. Both methods allow reading and syncing only incremental data changes for maximum efficiency.

Here’s a short summary of the change data capture methods used and when they apply:

1. **Apex Triggers** are used whenever possible (i.e. Salesforce will actively notify Stacksync of any data update made in your CRM). To do so, Stacksync must be able to set Apex triggers and set a remote site setting. If these conditions are not met, the **regular polling** alternative for change data capture is used.
2. **Regular polling** is used for change data capture on Salesforce synced objects whenever **the Apex triggers** method cannot be used. Stacksync will intelligently poll at regular frequencies the data updates that happened on your synced objects. Only incremental data updates are captured by this method for maximal efficiency.\
   In most cases, **regular polling** will be used, as it requires fewer authorizations, less setup for production deployment, and offers good performance for large data volumes.

### Some tables and custom objects might not be supported

As of now, most Salesforce objects are supported by Stacksync but not all. Tables and objects that are not yet supported are:

* Objects that are not writable (i.e. where data can be updated via API).
* If you use the Salesforce connector with triggers: the objects that are not triggerable (i.e. where triggers cannot be set on the object).
* If you use the Salesforce connector with regular polling, the tables that do not have a `last_modified_data` column are automatically maintained by Salesforce.

These limitations exist because Stacksync provides a powerful real-time and two-way sync, which requires writable tables and notification of data changes to Stacksync’s system. We are working on some alternatives to cleverly enable the sync of all tables. Stay tuned!

### Experimenting in Sandbox or Developer Accounts

A good practice is always to experiment in a Sandbox environment and promote your working and tested systems to stage and prod environments. [Contact us](https://www.stacksync.cloud/contact) anytime at [hello@stacksync.com](mailto:hello@stacksync.com) if you need any support.

# Make Custom Fields Visible

Source: https://docs.stacksync.com/connectors/salesforce/make-custom-fields-visible

When a custom field is created, it’s not visible by default to all profiles in the Salesforce organization. Users with different roles won’t be able to see the newly created custom field.

You need to modify the Field-Level Security settings after the custom field is created to allow other Salesforce profiles to see it. Stacksync enables Custom Field Visibility for the following profiles:

* System Administrator
* Standard User

<Callout type="info">
  **How to enable a custom field for other profiles:**

  1. Click on `Setup`\
     <img alt="Salesforce gear menu open showing the &#x22;Setup&#x22;, &#x22;Service Setup&#x22; and &#x22;Developer Console&#x22; options." src="__img0" />
  2. Go to `Object Manager`

     <img alt="Salesforce Setup with the &#x22;Object Manager&#x22; tab selected." src="__img1" />
  3. Select the related Object

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-object-manager-account.webp" alt="Salesforce Object Manager list showing the &#x22;Account&#x22; object." width="488" height="148" loading="lazy" decoding="async" />

  4. Select `Fields & Relationships`

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-account-fields-relationships.webp" alt="Salesforce Account object menu with &#x22;Details&#x22;, &#x22;Fields & Relationships&#x22; and &#x22;Page Layouts&#x22; options." width="202" height="191" loading="lazy" decoding="async" />

  5. Select the `Custom Field`

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-custom-field-number-of-locations.webp" alt="Salesforce custom field &#x22;Number of Locations&#x22; with API name &#x22;NumberofLocations__c&#x22; and type &#x22;Number(3, 0)&#x22;." width="705" height="42" loading="lazy" decoding="async" />

  6. Select Field-Level Security and make it visible to the user groups you want

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-set-field-level-security.webp" alt="Salesforce custom field toolbar with &#x22;Edit&#x22;, &#x22;Set Field-Level Security&#x22;, &#x22;View Field Accessibility&#x22; and &#x22;Where is this used?&#x22; buttons." width="350" height="65" loading="lazy" decoding="async" />

  **To make the custom Field visible in a layout:**

  1. Click on `Setup`\
     <img alt="Salesforce gear menu open showing the &#x22;Setup&#x22;, &#x22;Service Setup&#x22; and &#x22;Developer Console&#x22; options." src="__img2" />
  2. Go to `Object Manager`\
     <img alt="Salesforce Setup with the &#x22;Object Manager&#x22; tab selected." src="__img3" />
  3. Select the related Object\
     <img alt="Salesforce Object Manager list showing the &#x22;Account&#x22; object." src="__img4" />
  4. Go to the Page Layout section\
     <img alt="Salesforce Account object menu with &#x22;Details&#x22;, &#x22;Fields & Relationships&#x22; and &#x22;Page Layouts&#x22; options." src="__img5" />
  5. Select and edit the layout where you want to include the custom field you just created.\
     <img alt="Salesforce Account &#x22;Page Layouts&#x22; list including &#x22;Account Layout&#x22; and Marketing, Sales and Support layouts." src="__img6" /><br />
</Callout>

# Authorize SendGrid

> 9 minute guide to authorize SendGrid and grant Stacksync access using an API key.

Source: https://docs.stacksync.com/connectors/sendgrid/authorize-sendgrid

<Callout type="info">
  Access to **Email Activity** requires an **add-on subscription** in SendGrid. Without this add-on, the Email Activity API is not available. Retention of Email Activity data also depends on the subscription level (typically 7 days by default, extended to 30 days with the add-on).
</Callout>

1. Log in to your SendGrid account.<br />
2. Navigate to **Settings** > **API Keys**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-settings-api-keys-menu.webp" alt="SendGrid dashboard with the &#x22;Settings&#x22; menu and its &#x22;API Keys&#x22; item highlighted." width="1600" height="918" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to Settings > Click on API Keys<br /></p></figcaption>
   </figure>
3. Click on **Create API Key**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-create-api-key-button.webp" alt="SendGrid &#x22;API Keys&#x22; page with the &#x22;Create API Key&#x22; button highlighted." width="1600" height="920" loading="lazy" decoding="async" />

     <figcaption><p>Click on Create API Key<br /></p></figcaption>
   </figure>
4. In the API Key Permissions, select **Custom Access** and grant **Full Access** for the objects you want to sync.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-api-key-custom-access.webp" alt="SendGrid &#x22;Create API Key&#x22; panel with &#x22;Custom Access&#x22; permissions selected and per-object access sliders below." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Choose <strong>Custom Access</strong> and grant <strong>Full Access</strong> for the objects you want to sync<br /></p></figcaption>
   </figure>
5. Copy and save the generated **API Key** (API Key begins with "SG")<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-api-key-created.webp" alt="SendGrid &#x22;API Key Created&#x22; screen showing a redacted key starting with &#x22;SG&#x22; and a warning to copy it now." width="1600" height="922" loading="lazy" decoding="async" />

     <figcaption><p>Copy and save the API Key<br /></p></figcaption>
   </figure>
6. You now have all the necessary credentials to grant Stacksync access to your SendGrid Objects. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com)<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-sendgrid.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connected Apps grid with the SendGrid connector highlighted." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Click on SendGrid Connector<br /></p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-credentials-api-key-dialog.webp" alt="Stacksync &#x22;SendGrid Credentials&#x22; dialog with an &#x22;API Key&#x22; field and an &#x22;Authorize App&#x22; button." width="1600" height="923" loading="lazy" decoding="async" />

     <figcaption><p>Insert the API Key obtained from the preview steps in the SendGrid Connector<br /></p></figcaption>
   </figure>

You successfully granted Stacksync access to your SendGrid resources! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# SendGrid

> Read-only sync between SendGrid and your other systems.

Source: https://docs.stacksync.com/connectors/sendgrid

Stacksync lets you sync the following SendGrid resources:

## Email Activity Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Email Activity</td><td>✅ Supported</td></tr></tbody>
</table>

## Marketing Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Contacts</td><td>✅ Supported</td></tr><tr><td>List</td><td>✅ Supported</td></tr><tr><td>Segments</td><td>✅ Supported</td></tr><tr><td>Categories</td><td>✅ Supported</td></tr><tr><td>Senders</td><td>✅ Supported</td></tr><tr><td>Single Sends</td><td>✅ Supported</td></tr></tbody>
</table>

## Suppression Management Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Unsubscribe Groups</td><td>✅ Supported</td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Choose data processing region

> Stacksync lets you choose where your data is processed so you can ensure maximum system speed and compliance.

Source: https://docs.stacksync.com/connectors/setup-options/choose-data-processing-region

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/data-processing-region-banner.webp" alt="Stacksync banner: &#x22;Choose data processing region on any of the continents&#x22;." width="1200" height="630" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  Choosing Data Processing Region is available for PRO and ENTERPRISE plans. Please upgrade your plan if you do not see the option to select your preferred region.
</Callout>

The Processing Region feature offered by Stacksync allows clients to select the region where their data will be processed when syncing between your apps. This feature enables clients to ensure compliance with data regulations and optimize system performance by leveraging the proximity of data processing with the synced services.

With Processing Region, clients have control over the geographical location where their data transits during synchronization processes. By choosing a specific region, clients can align their data processing practices with relevant data protection and privacy regulations, ensuring compliance with regional requirements. This feature is particularly valuable for organizations operating in multiple jurisdictions with diverse data governance frameworks.

Additionally, the Processing Region feature optimizes system performance by reducing latency and enhancing data transfer speeds. By selecting a region in close proximity to the synced apps, clients can minimize data transit times and improve the overall efficiency of their sync.

Stacksync emphasizes data security throughout the synchronization process. All data transiting between applications is encrypted to maintain the confidentiality and integrity of the information. By combining strong encryption protocols with the flexibility to choose a preferred processing region, Stacksync provides clients with a reliable solution for seamless and secure data synchronization between enterprise systems, CRMs and databases.

<Callout type="info">
  Please [contact us](https://www.stacksync.com/contact) for any new region you would like to use! We can open new regions on demand.
</Callout>

# Connection rate limiting

> Keep every sync and workflow that uses a connection within your provider's request limit, and decide how they share it.

Source: https://docs.stacksync.com/connectors/setup-options/connection-rate-limiting

Most systems only accept so many requests at a time. Connection rate limiting sets one limit on a connection, and every sync and workflow that uses the connection keeps to it together, so your provider stops turning requests away.

<Callout type="info">
  Connection rate limiting is in beta and available for **NetSuite** connections. On other connections, select **Request access** in the same place to ask for it.
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/netsuite-connection-rate-limiting.webp" alt="Rate limiting on a NetSuite connection: the Concurrency algorithm with 4 concurrent requests, capacity sharing on, and resource shares for a sync pool and eight workflows." width="1600" height="930" loading="lazy" decoding="async" />
</figure>

## Set a rate limit

You need the editor role or higher in the workspace to change a rate limit.

<Steps>
  <Step>
    ### Open the connection

    Go to **Connections**, open the connection, and scroll to **Advanced options**.
  </Step>

  <Step>
    ### Turn on rate limiting

    Switch **Rate limiting** to **Enabled**.
  </Step>

  <Step>
    ### Choose the algorithm that matches your provider's limit

    | Algorithm          | Pick it when your provider                                                   | Parameters                                                                                                      |
    | ------------------ | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
    | **Concurrency**    | Limits how many requests run at the same time                                | **Concurrent requests** (1 to 1,000). Optional: **Release stuck requests after**, 1 to 600 seconds, default 300 |
    | **Fixed window**   | Gives a quota per minute or hour, counted from the start of each window      | **Requests per window** and **Window length** in seconds: 60 for a minute, 3600 for an hour                     |
    | **Sliding window** | Gives the same quota, but you want to avoid a double burst around each reset | **Requests per window** and **Window length**, counted over the period just gone                                |
    | **Token bucket**   | Allows short bursts, then a steady rate                                      | **Burst size** and **Steady rate** in requests per second                                                       |
    | **Leaky bucket**   | Is sensitive to spikes                                                       | **Requests waiting** and **Release rate** in requests per second                                                |

    To turn a per-minute limit into requests per second, divide it by 60.

    Every algorithm also has **Give up waiting after** (1 to 120 seconds, default 60): a request that can't get its turn within this time fails. Keep it shorter than your sync or workflow timeout.

    If other tools use the same provider account, set the limit below your provider's, so Stacksync leaves room for them.
  </Step>

  <Step>
    ### Share the limit between syncs and workflows

    Under **Resource shares**, each workflow that uses the connection has its own share, and all its syncs share one pool. By default the syncs get 50% and the workflows split the rest equally. Change a share with its slider or number, or select **Auto-balance** to split what the syncs leave equally between the workflows.

    * A share is what a resource always gets when every resource is busy at once.
    * With **Capacity sharing** on, a resource that is idle lends its share to busy ones and gets it back as soon as it needs it.
    * Shares are weighed against each other, so they don't have to add up to exactly 100%.
  </Step>

  <Step>
    ### Save

    Select **Save rate limit**.
  </Step>
</Steps>

## When you add a sync or workflow

A sync or workflow that starts using the connection after you saved isn't covered by the limit yet: its requests don't count toward it. The panel lists the resources that aren't covered. Open the connection and select **Save rate limit** again to bring them under the limit.

## Turn off rate limiting

Switch **Rate limiting** off. The limit and its shares are removed, and the connection's syncs and workflows run without a limit.

Syncs also have their own per-app limit, set on the sync: see [API Rate Limit Management](/connectors/setup-options/manage-api-rate-limits).

# Setup options

> IP whitelisting, API rate limits and more!

Source: https://docs.stacksync.com/connectors/setup-options

Follow our guides for...

<Cards>
  <Card title="IP Whitelisting" href="/https/docs.stacksync.com/connectors/setup-options/ip-whitelisting" />
</Cards>

<Cards>
  <Card title="API Rate Limit Management" href="/https/docs.stacksync.com/connectors/setup-options/manage-api-rate-limits" />
</Cards>

<Cards>
  <Card title="Connection rate limiting" href="/https/docs.stacksync.com/connectors/setup-options/connection-rate-limiting" />
</Cards>

<Cards>
  <Card title="Choose data processing region" href="/https/docs.stacksync.com/connectors/setup-options/choose-data-processing-region" />
</Cards>

<Cards>
  <Card title="SSH Tunneling" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling" />
</Cards>

# IP Whitelisting

> Whitelist Stacksync's IP address to connect your app.

Source: https://docs.stacksync.com/connectors/setup-options/ip-whitelisting

Whitelist our IP address so that Stacksync can connect to your app. IP whitelisting is optional and is only necessary if your services sit behind a firewall filtering for IP addresses.

<Callout type="info">
  The IPs you can whitelist are displayed to you during thee App/Database authentication process.
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-ip-whitelisting-regions.webp" alt="Stacksync Postgres connection form with the IP Whitelisting popup listing Stacksync IP addresses by region highlighted." width="998" height="1408" loading="lazy" decoding="async" />

  <figcaption><p>View the IP addresses to whitelist for specific regions.</p></figcaption>
</figure>

There is one IP address to whitelist for every region.

<table>
  <thead><tr><th width="249">Region</th><th>IP address to whitelist</th></tr></thead>

  <tbody><tr><td>🇧🇪 Belgium (St. Ghislain)</td><td><em>IP available during the authentication process</em></td></tr><tr><td>🇺🇸 US Central (Iowa)</td><td><em>IP available during the authentication process</em></td></tr><tr><td>Other regions</td><td>request at <a href="mailto:hello@stacksync.com"><mark>[hello@stacksync.com](mailto:hello@stacksync.com)</mark></a></td></tr></tbody>
</table>

<Callout type="info">
  Make sure to whitelist the IP address **BEFORE** connecting your app.

  During the app setup, Stacksync will connect to your app to retrieve its schema. Therefore, Stacksync's IP address needs to be whitelisted before that time.
</Callout>

Ensure that the resources you are whitelisting Stacksync IPs for are in a **public subnet**. Whitelisting public IPs for a resource in a **private subnet** will not allow Stacksync to access the resource from the public internet.

If you are attempting to provide direct access to a **database** in a private subnet, we recommend setting up a **jumpbox** as outlined in our documentation to connect using SSH tunneling:

<Cards>
  <Card title="SSH Tunneling" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling" />
</Cards>

Alternatively, if creating a jumpbox is not feasible, Stacksync can establish a **private connection** to your subnet using **VPN tunneling** or **AWS Transit Gateway** or **Private Link**. Email us at [hello@stacksync.com](mailto:hello@stacksync.com) if you need to connect using a private connection, i.e. without crossing the public internet.

# API Rate Limit Management

> Define the maximum number of API calls to your App at peak times.

Source: https://docs.stacksync.com/connectors/setup-options/manage-api-rate-limits

Stacksync will sync data between your Apps in real time. To do so, we try to transfer data as fast as possible. When you modify many rows/records at the same time, Stacksync will also **intelligently batch your data so that fewer API calls are made to your apps, while maintaining a real-time performance**. This will lead to lower API consumption and potentially lower your CRM/Database bill compared to a custom in-house API integration.

When a massive number of records are created/updated/deleted, Stacksync will spin up more workers and parallelize processes to get your data synced faster.

<mark>**You have the option to define how many requests/API calls can be made to your Apps**</mark><mark>**&#x20;**</mark>*<mark>**at peak times or within a certain time window**</mark>*<mark>**&#x20;**</mark><mark>**to make sure you do not exceed your rate limits and manage the load to your services.**</mark>

Remember: this is only the **maximum speed at which Stacksync will call your Apps at peak times when your Apps are very active**. When no data is updated, Stacksync will not make any call to your Apps in most cases! For some tables using regular polling, a small number of queries might be made when your data is inactive, but still much less than your defined API rate limit.

Rate limiting is a native feature at Stacksync. You can set rate limits for each of your Apps as follows:

1. **Open a Sync**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/syncs-list-open-sync.webp" alt="Stacksync Syncs list with the &#x22;The Sync Legacy&#x22; Salesforce to Postgres sync highlighted." width="1600" height="825" loading="lazy" decoding="async" />

  <figcaption><p>Open your Stacksync Sync</p></figcaption>
</figure>

2. **Click on an App**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-app-rate-limit-settings.webp" alt="Stacksync Salesforce connected app settings with the &#x22;Rate Limit&#x22; section (Rate 5, Frequency &#x22;Second&#x22;) highlighted." width="1600" height="1044" loading="lazy" decoding="async" />

  <figcaption><p>Manage API rate limits from your Stacksync dashboard</p></figcaption>
</figure>

3. **Make your changes and save!**

**💡** We recommend using a smaller scale (such as seconds or minutes) for your API rate limits. It is better to have your data synced at a regular speed. Using a window in hours or days might lead to having your data not synced for the rest of the time window if not enough credits are available. Instead, you can simply spread them out evenly over time with a seconds or minutes scale.

<Callout type="success">
  Ideally, 5 to 10 requests per second are ideal to maintain a real-time sync performance in most cases.
</Callout>

Examples of recommended settings ✅ :

* 5 requests per second
* 100 requests per second
* 200 requests per minute
* 10000 requests per minute (or a proportional equivalent in seconds, depending on your requirements)

Examples of non-recommended settings 🫤:

* 50 requests per hour
* 1000000 requests per hour (💡 rather use a proportional rate per second)
* 100 requests per day

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rate-limit-save-changes.webp" alt="Stacksync Salesforce Rate Limit set to 5 per &#x22;Minute&#x22; with the &#x22;Save Changes&#x22; button highlighted." width="1600" height="1048" loading="lazy" decoding="async" />

  <figcaption><p>Make your changes and Save</p></figcaption>
</figure>

<Callout type="info">
  Saved changes might take up to a minute to propagate and take effect.
</Callout>

<Callout type="info">
  When no data is updated on any of your Apps (for 1-way or 2-way sync), Stacksync will not query your Apps as no data needs to be transferred. There can be some exceptions to that rule but these are negligible.
</Callout>

# Access a Private AWS RDS Instance via a Jumpbox

> reading time: 3min, implementation time: 13min

Source: https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox

Accessing a private Amazon RDS instance is a common requirement in cloud-based architectures — but exposing your database directly to the internet introduces serious security risks.\
To mitigate this, a **jumpbox (bastion host)** is used as a controlled entry point to reach resources within a **private subnet**.

This guide walks you through **setting up and using an SSH tunnel via a jumpbox** to connect to your private RDS instance.\
By following these steps, you’ll be able to **securely manage your database** while keeping it **fully isolated and protected within your private network**.

## 1. Create an EC2 instance

1. **Log in** to your **AWS Management Console**.
2. **Navigate** to the **EC2 Dashboard**.
3. **Create a new EC2 instance** and configure it as follows:

**Configuration Details:**

* **Region:** Same region as your RDS instance.
* **Availability Zone:** Preferably the same AZ as your RDS to minimize latency.
* **Instance Type:** `t2.micro` (1 vCPU, 1 GiB memory) — approximately **$10.80/month**, which is sufficient since the jumpbox only handles **data tunneling**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-ec2-launch-instance-ubuntu-t2-micro.webp" alt="AWS EC2 &#x22;Launch an instance&#x22; page with the Ubuntu Server 24.04 LTS AMI and &#x22;t2.micro&#x22; instance type selected." width="1600" height="887" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Grant ssh access to your client service

**Connect to your instance via SSH:**

```bash
ssh <ssh_user>@<jumpbox_ip>
```

* Use **`ubuntu`** as the SSH user if the EC2 instance is running **Ubuntu**.
* Use **`ec2-user`** if the instance is running **Amazon Linux**.

## 3. Whitelist trusted IPs

The most effective security measure is to **whitelist only the IP addresses** that are allowed to connect to your Jumpbox.\
We recommend granting access **exclusively to the IPs that require it**.

You can do this by **creating a dedicated Security Group** under the **Network & Security** section and adding inbound rules for your trusted services or hosts.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-ec2-security-groups-menu.webp" alt="AWS EC2 sidebar with &#x22;Security Groups&#x22; under Network & Security highlighted." width="170" height="761" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-jumpbox-security-group-inbound-rules.webp" alt="AWS &#x22;Create security group&#x22; form with inbound and outbound Custom TCP rules on port 22 for a single whitelisted /32 IP." width="1600" height="825" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can now **attach the newly created security group** to your **Jumpbox EC2 instance** to apply the updated access rules.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-ec2-change-security-groups.webp" alt="AWS EC2 Instances list with Actions > &#x22;Security&#x22; > &#x22;Change security groups&#x22; highlighted for the selected jumpbox instance." width="1098" height="345" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can verify that **only your whitelisted client** can access the jumpbox by running:

```bash
telnet <jumpbox_ip> <ssh_port>
```

If the command **times out**, it confirms that **access from your current network is blocked**, and only the authorized client can connect.

## 4. Grant the jumpbox access to your DB

**Create a dedicated security group** for the Jumpbox to access the database, following the same process described in the previous step.\
Then, **update your database’s security group rules** to allow inbound connections **only from this new Jumpbox security group**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-database-modify.webp" alt="Amazon RDS Databases list with the PostgreSQL &#x22;db-demo&#x22; instance selected and the &#x22;Modify&#x22; button highlighted." width="1030" height="338" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-connectivity-jumpbox-security-group.webp" alt="Amazon RDS &#x22;Modify DB instance&#x22; Connectivity section with the &#x22;jumpbox-sg&#x22; security group selected." width="744" height="418" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### ✅ Test Your Setup

You can verify your configuration by running the following commands **from the service or machine you whitelisted**:

```bash
# Create the SSH tunnel
ssh -L 5432:<db_ip>:5432 -N -f <jumpbox_user>@<jumpbox_ip>

# Connect to the database through the tunnel
psql -h localhost -p 5432 -U <DB_USER> -d <DB_NAME>
```

If the connection succeeds — congratulations 🎉\
You can now securely access your **private database** through an **SSH tunnel** that routes traffic via your **jumpbox**.

### 🔒 (Optional) Additional Security Measures

To further strengthen your setup beyond the steps in this tutorial, consider implementing the following best practices:

* **Use an SSL certificate** to secure all encrypted connections.
* **Configure a firewall** (e.g., AWS Security Groups or ufw) to strictly control inbound and outbound traffic on the jumpbox.
* **Create a dedicated system user** instead of using default accounts such as `ubuntu` or `ec2-user`.
* **Limit privileges:** disable `sudo` access for the SSH user and grant only the minimum permissions required.
* **Change the default SSH port** (22) to a custom port to reduce exposure to automated attacks.
* **Install Fail2Ban** to automatically block IPs that trigger repeated failed login attempts.
* **Deploy auditd** to monitor and log all system-level events for auditing and anomaly detection.

If you have any questions, feel free to ping us at [hello@stacksync.com](mailto:hello@stacksync.com) we'll be happy to help!

# Accessing a Private GCP Database via a Jumpbox

> (7 min read)

Source: https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/accessing-a-private-gcp-database-via-a-jumpbox

Accessing a private **Cloud SQL** instance is a common challenge in cloud-based architectures. Exposing your database directly to the internet poses significant security risks — which is why using a **jumpbox (bastion host)** within a private subnet is an established best practice.

This guide walks you through **configuring and using an SSH tunnel via a jumpbox** to connect to your private Cloud SQL instance on **Google Cloud**.\
By following these steps, you’ll be able to **securely manage your database** while keeping it **isolated and protected within your private network**.

1. In the **GCP Console**, navigate to **Compute Engine → VM instances**, then click **“Create Instance.”**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-vm-instances-create-instance.webp" alt="GCP Compute Engine &#x22;VM instances&#x22; page with the &#x22;Create Instance&#x22; button." width="749" height="253" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. You can use the **default machine type (2 vCPU, 4 GB RAM)** — there’s **no need to modify the default configuration**, as it provides sufficient resources for the jumpbox.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-jumpbox-machine-configuration.webp" alt="GCP &#x22;Create an instance&#x22; Machine configuration for a VM named &#x22;jumpbox&#x22; using the E2 series and &#x22;e2-medium&#x22; (2 vCPU, 4 GB)." width="941" height="835" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. For each client that requires access to the Jumpbox, **add their public SSH keys** under the **Managed Access** section in the **Security** tab.

   Always **add SSH keys through the GCP Console or CLI** — **do not edit** the `.ssh/authorized_keys` file directly on the VM.\
   GCP periodically overwrites this file automatically, so manual edits will be lost.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-vm-add-manual-ssh-keys.webp" alt="GCP &#x22;Create an instance&#x22; Security section with &#x22;Add manually generated SSH keys&#x22; and its &#x22;Add Item&#x22; button highlighted." width="690" height="890" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Click **“Create”** to launch the instance.
5. Connect to your Jumpbox using SSH.\
   The **SSH username** corresponds to the **user portion of your SSH key**.

   For example, if your public key looks like:

   ```
   ssh-rsa AAAAB3... hello@example.com
   ```

   then connect using:

   ```bash
   ssh hello@<jumpbox_public_ip>
   ```

   The **public IP address** (also called the **External IP** in GCP) is visible on the **VM Instances** page in the **Compute Engine** section.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-jumpbox-external-ip.webp" alt="GCP VM instances list with the &#x22;jumpbox&#x22; VM's &#x22;External IP&#x22; column highlighted." width="1132" height="237" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. In the **Cloud SQL** console, open your database configuration page to find the **Private IP address** listed on the main overview tab.

   If a private IP hasn’t been allocated yet, **edit the instance** and enable **Private Service Access**.\
   The setup is straightforward — you can safely proceed with the **default suggested configuration**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-cloud-sql-internal-ip-address.webp" alt="GCP Cloud SQL instance overview &#x22;Connect to this instance&#x22; section with the private &#x22;Internal IP address&#x22; highlighted." width="900" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. From your **Jumpbox VM**, verify that the database is reachable by running the following commands:

   ```bash
   # Install telnet if not already installed
   sudo apt install telnet -y

   # Test the connection to your database
   telnet <db_private_ip> <db_port>
   ```

   **Database port reference:**

   * PostgreSQL → `5432`
   * MySQL → `3306`
   * SQL Server → `1433`

   **Expected output:**

   ```
   hello@jumpbox:~$ telnet <db_private_ip> <db_port>
   Trying <db_private_ip>...
   Connected to <db_private_ip>.
   Escape character is '^]'.
   ```

   If the command only shows:

   ```
   Trying <db_private_ip>...
   ```

   and does **not** connect, it means the database is **unreachable**.\
   Double-check the following:

   * You’re using the **correct private IP** and **port**.
   * The **Jumpbox subnet** has a valid **route** to the **database subnet**.
   * **Firewall or security group rules** allow inbound traffic from the Jumpbox.
8. To strengthen security, **limit SSH access to your Jumpbox** by allowing only trusted IP addresses.

   Go to the **Firewall Policies** section in the **GCP Console**, and **create a new firewall rule** that permits inbound SSH traffic **only from your approved IP list**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-create-firewall-rule.webp" alt="GCP &#x22;Firewall policies&#x22; page with the &#x22;Create Firewall Rule&#x22; button highlighted." width="808" height="521" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
9. Select the **network (VPC)** where your **Jumpbox instance** is running to apply the firewall rule to the correct environment.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-rule-network.webp" alt="GCP &#x22;Create a firewall rule&#x22; form named &#x22;jumpbox-whitelisting&#x22; with the &#x22;Network&#x22; field set to &#x22;default&#x22; highlighted." width="689" height="518" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
10. To grant a client access to your Jumpbox, **whitelist their public IP** in your firewall rule.\
    Configure the rule with the following parameters:

    * **Priority:** `0` (highest priority)
    * **Direction of traffic:** `Ingress`
    * **Action on match:** `Allow`
    * **Source IPv4 ranges:** `<client_public_ip_to_whitelist>/32`
    * **Destination IPv4 ranges:** `<jumpbox_private_ip>/32`

    This ensures that only the specified client IP can initiate SSH connections to your Jumpbox.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-allow-ingress-source-ip.webp" alt="GCP firewall rule set to Ingress and Allow, with source &#x22;<client-public-ip-to-whitelist>/32&#x22; and destination &#x22;<jumpbox-private-ip>/32&#x22;." width="616" height="647" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
11. Allow access **exclusively through SSH** by whitelisting **port 22**, the default SSH port.\
    All other ports and protocols should be **explicitly denied** to prevent unauthorized access.

    Once these settings are configured, click **“Create”** to finalize the firewall rule.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-rule-tcp-port-22.webp" alt="GCP &#x22;Create a firewall rule&#x22; protocols section with &#x22;TCP&#x22; checked on port &#x22;22&#x22; and the &#x22;Create&#x22; button." width="369" height="687" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
12. Now that access from the client’s public IP is allowed, you should **block all other incoming traffic** to the Jumpbox.

    Create a **new firewall rule** using the **same network (VPC)** as in the previous step, and configure it as follows:

    * **Priority:** `1` (lower priority than the allow rule)
    * **Action:** Deny all inbound traffic from any other IP address

    This ensures that **only the whitelisted client** can connect to the Jumpbox, while all other sources are **securely blocked**.

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-deny-rule-priority.webp" alt="GCP firewall rule settings with Logs off, Network &#x22;default&#x22;, Priority &#x22;1&#x22; and Direction of traffic &#x22;Ingress&#x22;." width="361" height="311" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
13. Set the **Source IPv4 range** to `0.0.0.0/0` to **deny access from all IP addresses**.\
    Ensure that **all protocols and ports** are **disabled** to completely block unwanted traffic.

    Once configured, click **“Create”** to finalize the firewall rule.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-deny-all-rule.webp" alt="GCP firewall rule set to &#x22;Deny&#x22; from source &#x22;0.0.0.0/0&#x22; to &#x22;<jumpbox-private-ip>/32&#x22; with &#x22;Deny all&#x22; protocols." width="544" height="561" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
14. Next, confirm that the Jumpbox is **reachable only from the whitelisted client(s)**.\
    Try connecting via SSH from any other machine — the connection should **time out**, indicating that access is correctly restricted to authorized IPs only.

## 🎉 Congratulations!

You’ve successfully allowed an **external client** to **securely access your private Cloud SQL database** through the Jumpbox.

If you need any assistance or have questions, feel free to reach out at [hello@stacksync.com](mailto:hello@stacksync.com) — our team is always happy to help!

# Accessing Private Azure Resource via a Jumpbox

Source: https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/accessing-private-azure-resource-via-a-jumpbox

## Overview

This guide explains how to set up a secure Azure Jumpbox that allows Stacksync to connect to your private resources, such as your database.

## 1. Create Static Public IP

1. In the Azure Portal, search **Public IP addresses**.
2. Click **Create**.
3. Configure:
   * **Name:** `stacksync-jumpbox-ip`
   * **SKU:** **Standard** (the Basic SKU is deprecated and not recommended)
   * **Assignment:** **Static**
   * **Tier:** Regional
4. Click **Review + Create**, then **Create.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/azure-create-static-public-ip.webp" alt="Azure &#x22;Create public IP address&#x22; form for &#x22;stacksync-jumpbox-ip&#x22; with IPv4, Standard SKU and Static assignment highlighted." width="775" height="954" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## 2. Create a Network Security Group

Create a Network Security Group (NSG) to tightly control access to the jumpbox so that only Stacksync can connect to it, and the jumpbox can only reach the private resources you authorize.

1. Search “**Network security groups**”.
2. Click **Create**.
3. Name it: `stacksync-jumpbox-nsg`.
4. Create.

### Add SSH Allow Rule

1. Open the NSG.
2. Click **Inbound security rules** → **Add**.
3. Fill:
   * **Source:** IP Addresses
   * **Source IPs:** Stacksync’s IP ([Stacksync IP](/connectors/setup-options/ip-whitelisting))
   * **Destination port:** `22`
   * **Protocol:** TCP
   * **Action:** Allow
   * **Priority:** **100**
   * **Name:** `Allow-SSH-From-Stacksync`
4. Click **Add**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/azure-nsg-allow-ssh-inbound-rule.webp" alt="Azure &#x22;Add inbound security rule&#x22; panel with source IP for the Stacksync IP, destination port 22 and TCP highlighted." width="1600" height="792" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

The default Azure rule already blocks everything else.

## 3. Create the Jumpbox VM

1. Search **Virtual Machines** → **Create**.
2. Under **Basics**:
   * **Name:** `stacksync-jumpbox`
   * **Image:** `Ubuntu LTS`
   * **Size:** `B1ms` (recommended)
   * **Authentication:** SSH key only<br />

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/azure-jumpbox-vm-ssh-key-auth.webp" alt="Azure &#x22;Create a virtual machine&#x22; Basics with &#x22;SSH public key&#x22; authentication and inbound port &#x22;SSH (22)&#x22; highlighted." width="808" height="890" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
3. Under **Networking**:
   * **Virtual network:** choose your Virtual Network
   * **Subnet:** choose the subnet where the jumpbox will be created
   * **Public IP:** select the static Public IP you created earlier
   * **NIC network security group:** Select the **NSG** you created earlier<br />

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/azure-jumpbox-vm-networking-nsg.webp" alt="Azure VM Networking tab with public IP &#x22;stacksync-jumpbox-ip&#x22; and network security group &#x22;stacksync-jumpbox-nsg&#x22; highlighted." width="799" height="639" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
4. Create the VM.

This VM will serve as the outbound access point to your systems.

## 4. Harden the Jumpbox

To harden the jumpbox, you must **log in to the VM** using SSH. This means you run the following SSH command **in your terminal**:

SSH into the VM using your allowed IP.

`ssh stacksync@<PUBLIC_IP>`

### 1. Add the Stacksync Public SSH Key

```
echo '<stacksync_public_ssh_key>' >> ~/.ssh/authorized_keys
```

This allows Stacksync to log in securely.

**Find the SSH Public Key here:**\
**app.stacksync.com → Add Connection → SSH Tunnel → Public Key**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/ssh-tunnel-stacksync-public-key.webp" alt="Stacksync connection form &#x22;SSH Tunnel (Optional)&#x22; section with the &#x22;Public Key&#x22; field highlighted to copy to your server." width="1548" height="636" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Enable auto‑security updates

```
sudo apt install unattended-upgrades
sudo dpkg-reconfigure --priority=low unattended-upgrades
```

### 3. Disable root login

```
sudo sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
sudo systemctl restart ssh
```

## 5. Test SSH Connectivity

From a Stacksync-approved IP:

```
ssh azureuser@<PUBLIC_IP>
```

If the connection fails, verify:

* The Public IP address you created is using the Standard SKU (not Basic)
* The Network Security Group (NSG) is attached to the subnet, not the network interface
* The network interface (NIC) for the virtual machine does not have its own NSG applied
* Your company firewall or VPN is not blocking outbound SSH connections

Example: Tunnel to a private Azure PostgreSQL instance.

```
ssh -i ~/.ssh/key \
  -N -L 5433:database.private.azure.com:5432 \
  azureuser@<PUBLIC_IP>
```

Then access locally at:

```
localhost:5433
```

From the jumpbox, verify it can reach your private resources:

If `nc` (netcat) is not installed, install it first:

```
sudo apt install netcat -y
```

Then test connectivity:

```
nc -zv <YOUR_DATABASE_IP> 5432
```

# SSH Tunneling

> (3min read)

Source: https://docs.stacksync.com/connectors/setup-options/ssh-tunneling

## Why Connecting to a Database Using an SSH Tunnel is Interesting

Secure Shell (SSH) tunnels provide a powerful yet straightforward method for accessing databases securely. Here’s why they stand out:

#### 1. **Enhanced Security**

SSH tunnels add an extra layer of protection by encrypting data in transit. This is particularly useful when connecting to databases over untrusted networks. By tunneling through SSH, you avoid exposing the database directly to the internet, reducing the risk of unauthorized access.

#### 2. **Access to Private Resources**

SSH tunnels are particularly useful for accessing private resources such as databases that are restricted to internal networks or protected by firewalls. By setting up a tunnel, you can securely route traffic through an intermediary server, enabling access without compromising the private nature of the resource. This is especially valuable for developers, administrators, or partners needing controlled access to sensitive systems.

#### 3. **No Need for a VPN**

While VPNs also secure connections, they are more complex to configure and maintain. SSH tunnels offer a lightweight alternative, especially for one-off or developer-specific access needs.

### Tutorials

<Cards>
  <Card title="Access a Private AWS RDS Instance via a Jumpbox" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox" />
</Cards>

<Cards>
  <Card title="Accessing a Private GCP Database via a Jumpbox" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling/accessing-a-private-gcp-database-via-a-jumpbox" />
</Cards>

<Cards>
  <Card title="Windows Server 2022 Jumpbox" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling/windows-server-2022-jumpbox" />
</Cards>

<Cards>
  <Card title="Windows Server 2025 Jumpbox" href="/https/docs.stacksync.com/connectors/setup-options/ssh-tunneling/windows-server-2025-jumpbox" />
</Cards>

Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com), if there is anything we can help with to help you get started with your Jumpbox!

# Windows Server 2022 Jumpbox

> This guide is to connect to a Windows server through SSH (13 min setup required).

Source: https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/windows-server-2022-jumpbox

## I. Install OpenSHH

1. On the Windows server, open the Settings and go to Apps.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-settings-apps.webp" alt="Windows Settings home with the &#x22;Apps&#x22; category highlighted." width="1161" height="544" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Go to Optional Features.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-settings-optional-features.webp" alt="Windows Settings &#x22;Apps & features&#x22; page with the &#x22;Optional features&#x22; link highlighted, used to install OpenSSH Server." width="1100" height="456" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Install OpenSSH Server.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-add-openssh-server-feature.webp" alt="Windows &#x22;Add an optional feature&#x22; dialog with &#x22;OpenSSH Server&#x22; searched and listed, ready to install." width="1186" height="394" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## II. Switch On OpenSSH Server

1. Open Computer Management application.
2. Go into Services and Applications > Services.
3. Click on OpenSSH Server.
4. Set Startup type to Automatic and click on Start.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/openssh-server-startup-automatic-start.webp" alt="OpenSSH SSH Server Properties in Computer Management with Startup type set to &#x22;Automatic&#x22; and the &#x22;Start&#x22; button highlighted." width="977" height="698" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Keep this window open, we will have to come back to it soon.

## III. Set Up OpenSSH Server

1. Open a terminal with **Administrator role**
2. Open the OpenSSH Server config file by running:\
   `notepad "C:\ProgramData\ssh\sshd_config"`
3. Uncomment PubkeyAuthentication.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-pubkey-authentication-yes.webp" alt="sshd_config open in Notepad with the line &#x22;PubkeyAuthentication yes&#x22; uncommented and highlighted." width="426" height="193" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Uncomment PasswordAuthentication and set it to no.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-password-authentication-no.webp" alt="sshd_config with &#x22;PasswordAuthentication no&#x22; uncommented and highlighted to disable password logins over SSH." width="563" height="202" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Comment out the 2 last lines of the file (Match Group Administrator).

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-match-group-administrators.webp" alt="sshd_config in Notepad with the last &#x22;Match Group administrators&#x22; and AuthorizedKeysFile lines commented out and highlighted." width="796" height="731" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Save and quit the file. If you cannot save, you most certainly did not open the terminal as an Administrator, you need to open a new terminal with Administrator rights and redo the configuration changes done in this section.
7. In the Computer Management window, restart the OpenSSH Server.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/computer-management-restart-openssh-server.webp" alt="Computer Management Services list with OpenSSH SSH Server selected and the &#x22;Restart the service&#x22; link highlighted." width="976" height="697" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## IV. Upload the Public SSH key of the server you want to connect from

1. Go to Users, then open the folder associated with the Windows user you want to connect to.
2. Create a new folder `.ssh`

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-user-folder-ssh-directory.webp" alt="Windows File Explorer showing the user folder under C:\Users with a newly created &#x22;.ssh&#x22; folder." width="1111" height="427" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. In this newly created folder, create an empty text file `authorized_keys`
4. By default, text files are created with a `.txt` extension, we need to remove it.
   1. Click View in the header bar.
   2. Tick the checkbox `File name extensions`

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/file-explorer-show-file-name-extensions.webp" alt="File Explorer View ribbon with &#x22;File name extensions&#x22; and &#x22;Hidden items&#x22; checkboxes ticked and highlighted." width="1126" height="195" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   3. The `.txt` file extension should now be visible.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-txt-extension-visible.webp" alt="File Explorer .ssh folder showing &#x22;authorized_keys.txt&#x22; with the &#x22;.txt&#x22; extension now visible and highlighted." width="888" height="230" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   4. Rename the file to remove the file extension. You can safely ignore the warning.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-file-without-extension.webp" alt="File Explorer .ssh folder showing the renamed &#x22;authorized_keys&#x22; file with no extension, type &#x22;File&#x22;." width="980" height="347" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
5. Add the **PUBLIC** SSH key of the server that you want to grant access to this Windows server we are currently configuring. The public key is of the form: `ssh-<encryption_algorithm> <key>` .

## V. Test

Try connecting through SSH to the Windows instance we just set up:

```
ssh -i <path_to_ssh_private_key_of_client> <ssh_user>@<windows_server_public_ip>
```

where:

* `-i <path_to_ssh_private_key_of_client>`: Specifies the private key file for authentication of the client, not of the Windows machine. The private key file should be readable and writable only by its owner and should be of the form:

```
-----BEGIN PRIVATE KEY-----
          ...
          ...
-----END PRIVATE KEY-----
```

* `ssh_user` : the Windows User for which you uploaded the client public key. In the screenshots above it is 'alexis'.
* `<windows_server_public_ip>`: The public IP address of the Windows server.

You should now have been able to access this Windows server through SSH 🎉\
If you are blocked or have any question, feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) we're happy to help!

## Troubleshooting of common errors

<Callout type="info">
  Permissions 0644 for `<path_to_ssh_private_key_of_client>` are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.

  -> You need to let only the owner of the file read and write to that file.\
  Run this: `chmod 600 <path_to_ssh_private_key_of_client>`
</Callout>

<Callout type="info">
  'export' is not recognized as an internal or external command, operable program or batch file.\
  -> This is an error due to your client terminal, try using the default terminal of the client machine. This error typically happens when using Warp as terminal.
</Callout>

<Callout type="info">
  Permission denied (publickey,keyboard-interactive).

  -> You most certainly missed one of the above steps of that tutorial, or the public SSH key uploaded on the Windows server does not correspond to the private SSH key of the client.
</Callout>

<Callout type="info">
  timeout error

  -> The Windows server is not listening to the client IP and the port you are trying to connect to (SSH default port is 22). Make sure you whitelisted the client IP.
</Callout>

# Windows Server 2025 Jumpbox

> This guide is to connect to a Windows server through SSH (11min setup required).

Source: https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/windows-server-2025-jumpbox

## I. Enable Open SHH

On the Windows server, open the Server Manager app, and enable Remote SSH Access.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/server-manager-remote-ssh-access-enabled.webp" alt="Windows Server 2025 Server Manager Local Server properties with &#x22;Remote SSH Access&#x22; set to &#x22;Enabled&#x22; and highlighted." width="698" height="392" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## II. Grant your Windows user access to OpenSSH Server

1. Open Computer Management application.
2. Go into Local Users and Groups > Groups.
3. Click on OpenSSH Users.
4. Add your Windows user to the list of members for the group OpenSSH Users.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/openssh-users-group-add-member.webp" alt="Computer Management Groups view with &#x22;OpenSSH Users&#x22; properties open and a Windows user added to Members." width="982" height="698" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## III. Set Up OpenSSH Server

1. Open a terminal with **Administrator role.**
2. Open the OpenSSH Server config file by running:\
   `notepad "C:\ProgramData\ssh\sshd_config"`
3. Uncomment PubkeyAuthentication.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-pubkey-authentication-yes.webp" alt="sshd_config open in Notepad with the line &#x22;PubkeyAuthentication yes&#x22; uncommented and highlighted." width="426" height="193" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Uncomment PasswordAuthentication and set it to no.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-password-authentication-no.webp" alt="sshd_config with &#x22;PasswordAuthentication no&#x22; uncommented and highlighted to disable password logins over SSH." width="563" height="202" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Comment the 2 last lines of the file (Match Group Administrator).

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-match-group-administrators.webp" alt="sshd_config in Notepad with the last &#x22;Match Group administrators&#x22; and AuthorizedKeysFile lines commented out and highlighted." width="796" height="731" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Save and quit the file. If you cannot save, you most certainly did not open the terminal as an Administrator, you need to open a new terminal with Administrator rights and redo the configuration changes done in this section.
7. In the Computer Management window, go to Services and Applications > Services.
8. Select the OpenSSH Server.
9. Restart the OpenSSH Server.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/computer-management-restart-openssh-server.webp" alt="Computer Management Services list with OpenSSH SSH Server selected and the &#x22;Restart the service&#x22; link highlighted." width="976" height="697" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## IV. Upload the Public SSH key of the client

1. Go in Users and go in the folder associated with the user you want to connect with.
2. Create a new folder `.ssh`

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-user-folder-ssh-directory.webp" alt="Windows File Explorer showing the user folder under C:\Users with a newly created &#x22;.ssh&#x22; folder." width="1111" height="427" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. In this newly created folder, create an empty text file `authorized_keys`
4. By default, text files are created with a `.txt` extension, we need to remove it.
   1. Click View in the header bar.
   2. Tick the checkbox `File name extensions` .

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/file-explorer-show-file-name-extensions.webp" alt="File Explorer View ribbon with &#x22;File name extensions&#x22; and &#x22;Hidden items&#x22; checkboxes ticked and highlighted." width="1126" height="195" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   3. The `.txt` file extension should now be visible.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-txt-extension-visible.webp" alt="File Explorer .ssh folder showing &#x22;authorized_keys.txt&#x22; with the &#x22;.txt&#x22; extension now visible and highlighted." width="888" height="230" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   4. Rename the file to remove the file extension. You can safely ignore the warning.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-file-without-extension.webp" alt="File Explorer .ssh folder showing the renamed &#x22;authorized_keys&#x22; file with no extension, type &#x22;File&#x22;." width="980" height="347" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
5. Add the **PUBLIC** SSH key of the server that you want to grant access to this Windows server we are currently configuring. The public key is of the form: `ssh-<encryption_algorithm> <key>` .

## V. Open Firewall

If you are connected from outside the private network where the Windows server is locted, you need to open the firewall.

1. Open app 'Windows Defender Firewall with Advanced Security'.
2. In the Inbound Rules, click on 'OpenSSH Server'.
3. In the Advanced section, select all the checkboxes.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/firewall-openssh-rule-advanced-profiles.webp" alt="Windows Defender Firewall inbound rule &#x22;OpenSSH SSH Server (sshd)&#x22; Advanced tab with Domain, Private and Public profiles checked." width="1045" height="711" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## VI. Test

Try connecting through SSH to the windows instance we just setup:

```
ssh -i <path_to_ssh_private_key_of_client> <ssh_user>@<windows_server_public_ip>
```

where:

* `-i <path_to_ssh_private_key_of_client>`: Specifies the private key file for authentication of the client, not of the windows machine. The private key file should be readable and writable only by its owner and should be of the form:

```
-----BEGIN PRIVATE KEY-----
          ...
          ...
-----END PRIVATE KEY-----
```

* `ssh_user` : the Windows User for which you uploaded the client public key. In the screenshots above it is 'alexis'.
* `<windows_server_public_ip>`: The public IP address of the Windows server.

You should now have been able to access this Windows server through SSH 🎉\
If you are blocked or have any question, feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) we're happy to help!

## Troubleshooting of common errors

<Callout type="info">
  Permissions 0644 for `<path_to_ssh_private_key_of_client>` are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.

  -> You need to let only the owner of the file read and write to that file.\
  Run this: `chmod 600 <path_to_ssh_private_key_of_client>`
</Callout>

<Callout type="info">
  'export' is not recognized as an internal or external command, operable program or batch file.\
  -> This is an error due to your client terminal, try using the default terminal of the client machine. This error typically happen when using Warp as terminal.
</Callout>

<Callout type="info">
  Permission denied (publickey,keyboard-interactive).

  -> You most certainly missed one of the above steps of that tutorial, or the public ssh key uploaded on the Windows server does not correspond to the private ssh key of the client.
</Callout>

<Callout type="info">
  timeout error.

  -> The Windows server is not listening to the client IP and the port you are trying to connect to (SSH default port is 22). Make sure you whitelisted the client IP.
</Callout>

# Zero-Trust Network Access

Source: https://docs.stacksync.com/connectors/setup-options/zero-trust-network-access

Stacksync fully supports secure integrations across all major Zero-Trust Network Access (ZTNA) providers, including:

* **Twingate**
* **Cloudflare Zero Trust / Cloudflare One**
* **Zscaler (Zero Trust Exchange)**
* **Palo Alto Networks (Prisma Access)**
* **Okta**
* **Cisco Zero Trust / Duo**
* **Fortinet ZTNA**
* **Check Point**
* **Netskope**
* **Teleport**

If your organization uses any of these platforms—or another ZTNA solution—we can configure access and connectivity to your private systems.\
For assistance or to enable Zero-Trust connectivity for your Stacksync deployment, contact [hello@stacksync.com](mailto:hello@stacksync.com).

# Access Protected Customer Data in Shopify

Source: https://docs.stacksync.com/connectors/shopify/access-protected-customer-data-in-shopify

In a few minutes, configure protected customer data access for your Shopify app and sync Shopify data with Stacksync.

## Requirements

* You need to be a Shopify Partner account administrator or have permission to manage the app.
* Your Shopify app must already be created.
* A distribution method must be selected for the app before protected customer data access can be requested.

## Why this access is required

Shopify classifies certain data as **protected customer data** when it contains or provides access to information linked to an individual customer, such as names, email addresses, phone numbers, billing addresses, shipping addresses, or other personal details.

This requirement can apply to any Shopify object that contains or exposes customer data. Without the required approval, Shopify may prevent the app from accessing the affected object and the related table may not be available for sync.

Shopify's protected customer data documentation is available here:

[https://shopify.dev/docs/apps/launch/protected-customer-data](https://shopify.dev/docs/apps/launch/protected-customer-data)

## 1. Open your app in the Shopify Partner Dashboard

1. Log in to your Shopify Partner Dashboard.
2. Go to **App distribution**.
3. Select **All apps**.
4. Select the app used for your Stacksync connection.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-partners-select-app.webp" alt="Shopify Partners &#x22;App distribution&#x22; page with the app used for the Stacksync connection highlighted in the app list." width="1499" height="548" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Open API access requests

From the app's left sidebar, select **API access requests**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-partners-api-access-requests.webp" alt="Shopify Partners app sidebar with &#x22;API access requests&#x22; highlighted, showing the Protected customer data access section." width="1512" height="447" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Request protected customer data access

Under **Protected customer data access**, click **Request access**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-protected-data-request-access.webp" alt="Shopify Partners API access requests page with the &#x22;Request access&#x22; button under Protected customer data access highlighted." width="1512" height="450" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Select the required customer data

1. Select **Protected customer data**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-protected-customer-data-reasons.webp" alt="Shopify &#x22;Protected customer data&#x22; section highlighted, with checkboxes for reasons such as Customer service and Store management." width="1512" height="795" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Explain why the app needs this data for the Shopify objects you plan to synchronize with Stacksync.
3. Select only the customer fields required by your use case, such as name, address, email, or phone.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-protected-customer-fields-select.webp" alt="Shopify &#x22;Protected customer fields (optional)&#x22; panel highlighted, listing Name, Email, Phone and Address fields to select." width="1512" height="790" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Complete the requested **Data protection details**.
5. Save and submit the request when required.

Shopify only returns approved protected fields. Fields that are not approved may be redacted, and requests for unapproved protected objects can return an access error.

## 5. Create the sync

Once protected customer data access has been granted, return to Stacksync and create your Shopify sync.

The selected Shopify objects will now be able to fetch the approved customer data fields successfully, without protected customer data access errors.

## Important notes

* Public apps can require Shopify review before protected customer data is available in production.
* Apps installed only on development stores can access selected customer data for development without submitting the app for review, subject to Shopify's current requirements.
* Request only the minimum customer data and fields needed for the integration.

You are all set! You can now create the sync and fetch the approved customer data fields through Stacksync.

# Updating Scopes

> In 4 minutes, authorize your Shopify app and start syncing data with Stacksync.

Source: https://docs.stacksync.com/connectors/shopify/authorize-shopify-1

## Requirements

* You need to be the Shopify administrator

## 1. **Login to Shopify Dev Dashboard:**

1. **Go to Shopify Dev Dashboard:** [**https://dev.shopify.com/dashboard**](https://dev.shopify.com/dashboard)
2. **Select Your Installed App**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-select-app.webp" alt="Shopify Dev Dashboard Apps list with the installed &#x22;Stacksync&#x22; app highlighted." width="1600" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. #### Click on New Version

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-new-version.webp" alt="Shopify Dev Dashboard Stacksync app home with the Versions card and &#x22;New version&#x22; button highlighted." width="1600" height="809" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. **Add additional required API scopes.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-version-add-scopes.webp" alt="Shopify Dev Dashboard &#x22;Create a version&#x22; form with the Access Scopes field highlighted, listing comma-separated API scopes." width="1600" height="774" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. **Click Release**<br />
6. **Go to Home -> Click Install App**\
   Follow the prompt to update scopes, then reinstall the app so the new scopes are applied to the existing App.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-install-app.webp" alt="Shopify Dev Dashboard Stacksync app Home with the Installs card and &#x22;Install app&#x22; button highlighted to reinstall the app." width="1600" height="788" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

You are all set! You can now use sync your Shopify data to other apps through Stacksync's syncs! 🎉

# Authorize Shopify

> In 4 minutes, authorize your Shopify app and start syncing data with Stacksync.

Source: https://docs.stacksync.com/connectors/shopify/authorize-shopify

## Requirements

* You need to be the Shopify administrator

## 1. Click on create a new sync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-syncs-create-new-sync.webp" alt="Stacksync Syncs page welcome screen with the &#x22;Create New Sync&#x22; button highlighted in the top right." width="1600" height="883" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click on the Shopify logo

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-shopify.webp" alt="Stacksync Create New Sync page, Connect Apps step, with the Shopify app tile highlighted." width="1600" height="886" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Create a new Shopify connection

In the following steps, you will log in to your Shopify account to retrieve the following:

* Shop name
* Client ID and Secret<br />

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/shopify-connection-credentials-form.webp" alt="Stacksync Shopify connection dialog with Shop Name, Client ID and Client Secret fields highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="924" loading="lazy" decoding="async" />

    <figcaption />
  </figure>

## 4. Find your shop name

You can find your shop name in the settings of your shop on the top left of the page. It is part of your shop domain `<shop_name>.myshopify.com`.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-settings-shop-name.webp" alt="Shopify admin General settings with the shop name portion of the myshopify.com domain highlighted." width="1600" height="887" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. **Generate Client ID and Client Secret:**

1. **Go to Shopify Dev Dashboard:** [**https://dev.shopify.com/dashboard**](https://dev.shopify.com/dashboard)
2. **Select "Create App"**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-create-app.webp" alt="Shopify Dev Dashboard Apps page with the &#x22;Create app&#x22; button highlighted." width="1520" height="876" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. **Enter \`Stacksync\` as the app name**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-name-stacksync.webp" alt="Shopify Dev Dashboard app form with the App name field set to &#x22;stacksync&#x22; highlighted." width="784" height="950" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. **Enable required API scopes for Stacksync.**

   Copy and paste these scopes:<br />

   ```
   read_customers,write_customers,read_locations,read_metaobject_definitions,
   write_metaobject_definitions,read_metaobjects,write_metaobjects,read_orders,write_orders,
   read_products,write_products,read_publications,write_publications,read_returns,
   read_shipping,write_shipping
   ```

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-api-access-scopes.webp" alt="Shopify app API access section with the Scopes field highlighted, listing read and write scopes like read_customers and write_orders." width="863" height="643" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. **Add Redirect URL:** [**https://app.stacksync.com/oauth/callback?connector=shopify**](https://app.stacksync.com/oauth/callback?connector=shopify)<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-redirect-url.webp" alt="Shopify app Redirect URLs field highlighted with https://app.stacksync.com/oauth/callback?connector=shopify entered." width="817" height="933" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. **Click Release**
7. **Go to Apps -> Setting, Copy the Client ID and Secret**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-settings-client-credentials.webp" alt="Shopify Dev Dashboard app Settings page with the Credentials section (Client ID and Secret) highlighted." width="1600" height="911" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. **You can now fill in the Stacksync form with your Shop name, Client ID and Secret.**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-connection-credentials-form.webp" alt="Stacksync Shopify connection dialog with Shop Name, Client ID and Client Secret fields highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You are all set! You can now use sync your Shopify data to other apps through Stacksync's syncs! 🎉

# Shopify

> Two-way sync between Shopify and your other systems.

Source: https://docs.stacksync.com/connectors/shopify

## Supported Objects

| Object              | Status      |
| ------------------- | ----------- |
| Products            | ✅ Supported |
| ProductMedias       | ✅ Supported |
| ProductVariants     | ✅ Supported |
| Orders              | ✅ Supported |
| Customers           | ✅ Supported |
| Abandoned Checkouts | ✅ Supported |

<Callout type="info">
  Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!
</Callout>

# Authorize Snowflake

> Authorize your Snowflake Data Warehouse and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/snowflake/authorize-snowflake

<YouTube id="zXmxxIql_fI" title="Connect Snowflake on Stacksync in less than two minutes" />

<Callout type="info">
  To follow this tutorial, the (human user) Snowflake account needs the `SECURITY_ADMIN` and `ACCOUNTADMIN`. Read more [here](/connectors/snowflake#things-to-keep-in-mind).
</Callout>

## 1. Select Snowflake in the Create Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-snowflake.webp" alt="Stacksync Create New Base, Connect Apps step, with an arrow pointing to the Snowflake app tile." width="1600" height="858" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Copy the user public key for the next steps

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-connection-copy-public-key.webp" alt="Stacksync Snowflake connection form with User, Database, Schema, Warehouse fields and the public key copy icon highlighted." width="562" height="785" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Run the setup script in Snowflake

### Create a new Snowflake user (see the next section to reuse an existing Snowflake user)

Copy the following script to create a new user with the necessary permissions.\
In the `SECTION TO EDIT`, enter the following values:

* `warehouse_name`
* `database_name`
* `schema_name`
* `rsa_public_key`

```sql
-----------------------SECTION TO EDIT------------------------------------
-- create the variables for user and role details
set role_name = 'STACKSYNC_ROLE'; --enter the role name
set user_name = 'STACKSYNC_USER'; -- enter the username
set warehouse_name = 'COMPUTE_WH'; -- enter the warehouse you want to use
set database_name = 'STACKSYNC_TEST'; --enter database name
set schema_name = 'PUBLIC'; -- enter schema name
set user_type = 'service';
-----------------------END OF SECTION TO EDIT------------------------------------

-- change role to security admin to create user and role
use role securityadmin;

-- create the Stacksync Role
create role if not exists identifier($role_name);
grant role identifier($role_name) to role SYSADMIN;

 -- create a user for Stacksync
create user if not exists identifier($user_name)
 -- copy paste public key from stacksync.
rsa_public_key = '-----BEGIN PUBLIC KEY-----
....TODO REPLACE WITH STACKSYNC PROVIDED RSA PUBLIC KEY....
-----END PUBLIC KEY-----'

-----------------------END OF SECTION TO EDIT-----------------------------

type = $user_type
default_role = $role_name
default_warehouse = $warehouse_name;

-- grant Stacksync role to the new user
grant role identifier($role_name) to user identifier($user_name);

-- change role to accountadmin to grant permissions to the Stacksync Role
use role accountadmin;

-- grant Stacksync role access to warehouse
grant usage on warehouse identifier($warehouse_name) to role identifier($role_name);

-- grant Stacksync role access to database and create schemas
grant usage on database identifier($database_name) to role identifier($role_name);
grant create schema on database identifier($database_name) to role identifier($role_name);

-- select the database
use database identifier($database_name);

-- grant table and stream privileges to all the schemas you want to sync
grant usage on schema identifier($schema_name) to role identifier($role_name);
grant create table on schema identifier($schema_name) to role identifier($role_name);
grant create stream on schema identifier($schema_name) to role identifier($role_name);
grant select on all tables in schema identifier($schema_name) to role identifier($role_name);
grant select on future tables in schema identifier($schema_name) to role identifier($role_name);

-- repeat the steps above for all the schemas you want to sync.
```

### Use an existing Snowflake user

You can simply set the `rsa_public_key` for an existing user (make sure the user type is set to `service`).

```sql
ALTER USER <username> SET RSA_PUBLIC_KEY='<public_key_copied_from_stacksync>';
```

## 4. Find the credentials for your Snowflake instance.

Note the database name, schema name, and account identifier.

<Callout type="info">
  Account Identifier uniquely identifies a Snowflake account within your organization. It is a combination of your organization name and account name. It can be found in the Snowflake web interface in the Account Details section.

  [Learn More](https://docs.snowflake.com/en/user-guide/admin-account-identifier#finding-the-organization-and-account-name-for-an-account)
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-account-menu-details.webp" alt="Snowflake user menu with the arrow next to the Account entry highlighted to open account details." width="669" height="849" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-account-identifier-details.webp" alt="Snowflake Account Details dialog with the &#x22;Account Identifier&#x22; row and its value highlighted." width="862" height="609" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Once copied, paste this information in the Stacksync connection screen.

## 5. Enter the credentials for Snowflake and Click Authorize App.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-credentials-authorize-app.webp" alt="Stacksync Snowflake form filled with User, Database, Schema, Warehouse and Account Identifier, with &#x22;Authorize App&#x22; highlighted." width="584" height="799" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! 🎉

# Snowflake

> Two-way sync between Snowflake and your other systems.

Source: https://docs.stacksync.com/connectors/snowflake

## Introduction

[Snowflake](https://www.snowflake.com/en/) is a cloud-based data warehousing and analytics platform that enables users to analyze and process large data sets using SQL-like queries. It is highly scalable and allows users to store and query massive amounts of data in real time.

Check out our [Snowflake guides](/connectors/snowflake/authorize-snowflake) to get started and sync data to your other systems and databases!

## Supported Objects

Stacksync lets you sync the following Snowflake table types:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Standard tables (including Permanent, Transient and Temporary tables)</td><td><span>✅ Supported</span></td></tr><tr><td>Views (including materialized and non-materialized views)</td><td><span>🕘 Coming soon</span></td></tr><tr><td>External tables</td><td><span>❌ Not supported</span></td></tr></tbody>
</table>

**All field types are supported** except for [geospatial datatypes](https://docs.snowflake.com/en/sql-reference/data-types-geospatial) (i.e. geography and geometry).

## Things to keep in mind

* A Snowflake account with the `SECURITY_ADMIN` and `ACCOUNT_ADMIN` roles is required. The `SECURITY_ADMIN` role will be needed to create a Stacksync Role and User. The `ACCOUNT_ADMIN` will be needed to grant permissions to the Stacksync Role to grant access to the database and schemas, grant privilege to create schemas and tables in the specified database and allow read and write privilege to the tables in the specified database and schemas.
* To sync an existing table from Snowflake, the table must have a primary key which is not nullable and has a default value of `UUID_STRING()`.<br />

# Authorize SQL Server

> Authorize your Microsoft SQL Server database and start syncing data with Stacksync

Source: https://docs.stacksync.com/connectors/sql-server/authorize-sql-server

## Adding Credentials to Stacksync <a href="#adding-credentials-to-stacksync" id="adding-credentials-to-stacksync" />

### 1. Select SQL Server in the Create New Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-sql-server.webp" alt="Stacksync Create New Sync page, Connect Apps step, with an arrow pointing to the SQL Server tile." width="1600" height="879" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Add your SQL Server credentials as Connection String or as Parameters.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/sql-server-connection-credentials-form.webp" alt="Stacksync SQL Server dialog with a Connection String field or Server, Port, Database, Username, Password and Schema parameters." width="1600" height="919" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# SQL Server (MSSQL)

> Two-way sync between Microsoft SQL Server (MSSQL) and your other systems.

Source: https://docs.stacksync.com/connectors/sql-server

## Introduction

SQL Server is Microsoft's enterprise relational database management system known for high performance, advanced security features, and scalability. Stacksync enables seamless data\
synchronization between Microsoft SQL Server and other CRM and database systems.

## Things to keep in mind

### During setup

* [x] **All SQL Server tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column; composite primary keys are not supported.
* [x] **Primary keys must be auto-generated**\
  Ensure your primary keys are auto-generated by your database (e.g. use `IDENTITY` for primary keys).
* [x] **Check user permissions**\
  Verify that the SQL Server user used by Stacksync to connect to your database has sufficient privileges (e.g., `SELECT`, `INSERT`, `UPDATE`, and `DELETE`) on the tables you want to map. Additionally, the user must have `EXECUTE` permission on the StackSync CDC wrapper procedures (created during one-time setup).
* [x] **Native CDC Setup**\
  SQL Server connector uses Native Change Data Capture (CDC) for efficient change tracking. A database administrator must run a one-time setup script to enable CDC and create wrapper\
  procedures.\
  To enable CDC functionality, the DBA should execute the CDC setup script. See the setup instructions below.
* [x] **Why CDC Setup is Required:**\
  Stacksync uses SQL Server's built-in Change Data Capture to track data changes. Since enabling CDC requires elevated privileges, a DBA must run a setup script once. After this setup,\
  your regular Stacksync user can enable CDC on tables without needing sysadmin privileges.
* [x] **CDC Setup Script:**\
  The setup script must be executed by a user with **sysadmin** privileges.<br />

  ```sql
  -- ================================================================
  -- StackSync CDC Setup Script
  --
  -- Run this ONCE as a database administrator with sysadmin privileges.
  --
  -- StackSync automatically manages CDC using capture instances named:
  --   stacksync_{app_id}_{table_name}
  --
  -- This allows multiple StackSync apps to use CDC on the same tables.
  -- SQL Server supports maximum 2 capture instances per table.
  -- ================================================================

  USE [YOUR_DATABASE];
  GO

  -- ================================================================
  -- Step 1: Enable CDC on database
  -- ================================================================
  EXEC sys.sp_cdc_enable_db;
  GO

  -- ================================================================
  -- Step 2: Create helper procedures for StackSync
  -- ================================================================

  -- Drop existing procedures if they exist
  IF OBJECT_ID('SCHEMA.sp_stacksync_enable_cdc_db', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_enable_cdc_db;
  GO

  IF OBJECT_ID('SCHEMA.sp_stacksync_enable_cdc_table', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_enable_cdc_table;
  GO

  IF OBJECT_ID('SCHEMA.sp_stacksync_disable_cdc_table', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_disable_cdc_table;
  GO

  IF OBJECT_ID('SCHEMA.sp_stacksync_disable_cdc_db', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_disable_cdc_db;
  GO

  -- Create procedure to enable CDC on database
  CREATE PROCEDURE SCHEMA.sp_stacksync_enable_cdc_db
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      DECLARE @is_cdc_enabled BIT;
      DECLARE @database_name NVARCHAR(128) = DB_NAME();

      SELECT @is_cdc_enabled = is_cdc_enabled
      FROM sys.databases
      WHERE name = @database_name;

      IF @is_cdc_enabled = 1
          BEGIN
              RETURN 0;
          END

      EXEC sys.sp_cdc_enable_db;
      RETURN 0;
  END;
  GO

  -- Create procedure to enable CDC on table
  CREATE PROCEDURE SCHEMA.sp_stacksync_enable_cdc_table
      @source_schema NVARCHAR(128),
      @source_name NVARCHAR(128),
      @capture_instance NVARCHAR(128) = NULL,
      @supports_net_changes BIT = 1,
      @role_name NVARCHAR(128) = NULL
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      DECLARE @instance_exists INT;

      IF @capture_instance IS NULL
          SET @capture_instance = @source_schema + '_' + @source_name;

      IF LEN(@capture_instance) > 100
          SET @capture_instance = LEFT(@capture_instance, 100);

      -- Check if THIS specific capture instance already exists
      -- (Not just if table is tracked - we support up to 2 capture instances per table)
      SELECT @instance_exists = COUNT(*)
      FROM cdc.change_tables
      WHERE capture_instance = @capture_instance;

      IF @instance_exists > 0
          BEGIN
              -- This specific capture instance already exists, nothing to do
              RETURN 0;
          END

      -- Enable CDC with the specified capture instance name
      -- SQL Server supports up to 2 capture instances per table
      EXEC sys.sp_cdc_enable_table
           @source_schema = @source_schema,
           @source_name = @source_name,
           @role_name = @role_name,
           @supports_net_changes = @supports_net_changes,
           @capture_instance = @capture_instance;

      RETURN 0;
  END;
  GO

  -- Create procedure to disable CDC on table
  CREATE PROCEDURE SCHEMA.sp_stacksync_disable_cdc_table
      @source_schema NVARCHAR(128),
      @source_name NVARCHAR(128),
      @capture_instance NVARCHAR(128) = NULL
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      IF @capture_instance IS NULL
          SET @capture_instance = @source_schema + '_' + @source_name;

      IF LEN(@capture_instance) > 100
          SET @capture_instance = LEFT(@capture_instance, 100);

      EXEC sys.sp_cdc_disable_table
           @source_schema = @source_schema,
           @source_name = @source_name,
           @capture_instance = @capture_instance;

      RETURN 0;
  END;
  GO

  -- Create procedure to disable CDC on database
  CREATE PROCEDURE SCHEMA.sp_stacksync_disable_cdc_db
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      EXEC sys.sp_cdc_disable_db;
      RETURN 0;
  END;
  GO

  -- ================================================================
  -- Step 3: Grant permissions to StackSync user
  -- ================================================================

  GRANT EXECUTE ON SCHEMA.sp_stacksync_enable_cdc_db TO [USERNAME];
  GRANT EXECUTE ON SCHEMA.sp_stacksync_enable_cdc_table TO [USERNAME];
  GRANT EXECUTE ON SCHEMA.sp_stacksync_disable_cdc_table TO [USERNAME];
  GRANT EXECUTE ON SCHEMA.sp_stacksync_disable_cdc_db TO [USERNAME];
  GO

  -- Read CDC metadata and change data
  GRANT SELECT ON SCHEMA::cdc TO [USERNAME];
  PRINT 'Granted SELECT on cdc schema';
  GO

  -- Query DMVs for partitioning and row counts
  GRANT VIEW DATABASE STATE TO [USERNAME];
  PRINT 'Granted VIEW DATABASE STATE';
  GO

  -- Read user tables and system catalog
  ALTER ROLE db_datareader ADD MEMBER [USERNAME];
  PRINT 'Added to db_datareader role';
  GO

  -- Write to user tables (for bidirectional sync)
  ALTER ROLE db_datawriter ADD MEMBER [USERNAME];
  PRINT 'Added to db_datawriter role';
  GO

  -- Create temporary tables during write operations
  GRANT CREATE TABLE TO [USERNAME];
  PRINT 'Granted CREATE TABLE';
  GO

  -- Drop temporary tables after write operations
  GRANT ALTER ON SCHEMA::SCHEMA TO [USERNAME];
  PRINT 'Granted ALTER on schema';
  GO

  -- Required: To Check SQL Server Agent status
  GRANT VIEW SERVER STATE TO [USERNAME];
  PRINT 'Granted VIEW SERVER STATE';
  GO

  ```
* [x] **SQL Server Agent**\
  SQL Server Agent must be running for CDC to capture changes:
  * **On-premise:** Start SQL Server Agent via SQL Server Configuration Manager
  * **AWS RDS:** Enable via RDS Parameter Group setting `agent XPs = 1`
  * **Azure SQL Database:** CDC is managed automatically

#### Important Considerations

* **Renaming schemas, tables, or columns will break Stacksync configuration.** If you need to rename objects, refer to the Update Sync Configuration guide for remediation steps.
* **Schema Names:** SQL Server supports multiple schemas per database. Ensure you specify the correct schema when setting up your connection (default is `dbo`).

### Troubleshooting

If tables don't appear in Stacksync during setup, one of the above requirements is likely unmet. Common issues include:

* Missing primary keys or composite primary keys
* Insufficient user permissions
* CDC wrapper procedures not created (setup script not run)
* SQL Server Agent not running

For diagnostic queries and troubleshooting steps, refer to the SQL Server Snippets page.

Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com)

# Authorize Twilio

> 5min read

Source: https://docs.stacksync.com/connectors/twilio/authorize-twilio

1. Log in to your [Twilio account](https://console.twilio.com/).<br />
2. Navigate to **Account Info** > Copy **Account SID** and **Auth Token**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/twilio-account-sid-auth-token.webp" alt="Twilio console Account Info panel with the Account SID and Auth Token fields highlighted for copying." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Copy Account SID and Auth Token</p></figcaption>
   </figure>
3. You now have all the necessary credentials to grant Stacksync access to your Twilio Objects. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com).<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-twilio.webp" alt="Stacksync Create New Sync page, Connect Apps step, with the Twilio app tile highlighted." width="1600" height="918" loading="lazy" decoding="async" />

     <figcaption><p>Click on Twilio Connector<br /></p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/twilio-connection-credentials-form.webp" alt="Stacksync Twilio Credentials dialog with Account SID and Auth Token fields and an &#x22;Authorize App&#x22; button." width="1600" height="922" loading="lazy" decoding="async" />

     <figcaption><p>Insert the credentials obtained from the preview steps in the Twilio Connector<br /></p></figcaption>
   </figure>

You successfully granted Stacksync access to your Twilio resources! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# Twilio

> Read-only sync between Twilio and your other systems.

Source: https://docs.stacksync.com/connectors/twilio

Stacksync lets you sync the following Twilio resources:

## Messaging Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Messages</td><td>✅ Supported</td></tr><tr><td>Messaging Services</td><td>✅ Supported</td></tr></tbody>
</table>

## Voice Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Calls</td><td>✅ Supported</td></tr><tr><td>Incoming Phone Numbers</td><td>✅ Supported</td></tr><tr><td>Outgoing Caller IDs</td><td>✅ Supported</td></tr></tbody>
</table>

## Account Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Accounts</td><td>✅ Supported</td></tr><tr><td>Roles</td><td>✅ Supported</td></tr><tr><td>Addresses</td><td>✅ Supported</td></tr></tbody>
</table>

## Studio Objects

<table>
  <thead><tr><th width="312">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Flows</td><td>✅ Supported</td></tr></tbody>
</table>

## Analytics Objects

<table>
  <thead><tr><th width="314.66796875">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Usage Records</td><td>✅ Supported</td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Authorize Zendesk

> Authenticate your Zendesk app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/zendesk/authorize-zendesk

## Authorize Zendesk <a href="#authorize-motherduck" id="authorize-motherduck" />

1. Copy your Zendesk subdomain name from the Zendesk dashboard URL: `http://{sub_domain_name}.zendesk.com`.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/zendesk-subdomain-in-url.webp" alt="Browser address bar on a Zendesk agent page with the subdomain &#x22;stacksync&#x22; highlighted in the zendesk.com URL." width="838" height="344" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Log into Stacksync and click on **Connections** > **Create new connection**.
3. Search for Zendesk and select it.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-zendesk.webp" alt="Stacksync Create a Connection page with the Zendesk app tile highlighted in the Select App grid." width="1600" height="546" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. Paste the sub domain name here, and click **Authorize App**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/zendesk-subdomain-authorize-app.webp" alt="Stacksync Zendesk dialog with the &#x22;Zendesk Sub Domain Name&#x22; field and &#x22;Authorize App&#x22; button highlighted." width="1488" height="554" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can now use your Zendesk connection in a sync! 🎉

# Zendesk

> Two-way sync between Zendesk and your other systems.

Source: https://docs.stacksync.com/connectors/zendesk

<YouTube id="V2h9RmXgqPY" title="Sync Zendesk and Snowflake two-way in real time" />

## Supported Objects

| Object           | Status        |
| ---------------- | ------------- |
| Tickets          | ✅ Supported   |
| Tickets Comments | ✅ Supported   |
| Users            | ✅ Supported   |
| Organizations    | 🕐 On Request |
| Attachments      | 🕐 On Request |
| Ticket Forms     | 🕐 On Request |

<Callout type="info">
  Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!
</Callout>

# Authorize Zoho

> Authorize your Zoho app and sync data with Stacksync

Source: https://docs.stacksync.com/connectors/zoho/authorize-zoho

Connecting to Zoho is done without any coding required in a few steps.

1. In Stacksync, click on "Create new sync".

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/stacksync-syncs-page-create-new-sync.webp" alt="Stacksync Syncs page listing an existing sync, with the &#x22;Create New Sync&#x22; button highlighted in the top right." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Select "Zoho CRM".

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-zoho-crm.webp" alt="Stacksync Create New Sync page, Connect Apps step, with the Zoho CRM app tile highlighted." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. A new tab will open. Log in to Zoho and authorize Stacksync.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/zoho-authorize-stacksync-access.webp" alt="Zoho consent screen listing CRM permissions requested by Stacksync, with the &#x22;Accept&#x22; button highlighted." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Connect your database and click continue.
5. Map which Zoho objects to sync. Choose between an existing table in your database, or generating a new one.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/zoho-crm-postgres-link-tables.webp" alt="Stacksync Link Tables step mapping Zoho CRM objects like Account, Lead and Deal to Postgres tables with sync direction arrows." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Finally, link the fields to sync between Zoho and your target database.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/zoho-crm-postgres-map-fields.webp" alt="Stacksync Map Fields step linking Zoho CRM Account fields such as Account Name and Phone to Postgres zoho_account columns." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. Click "Create sync". Click on the toggle to activate your sync. Data is now flowing!

# Zoho

> Two-way sync between Zoho and your other systems.

Source: https://docs.stacksync.com/connectors/zoho

Stacksync lets you sync the following Zoho CRM objects:

| Object         | Status      |
| -------------- | ----------- |
| Lead           | ✅ Supported |
| Contact        | ✅ Supported |
| Account        | ✅ Supported |
| Deal           | ✅ Supported |
| Task           | ✅ Supported |
| Meeting        | ✅ Supported |
| Call           | ✅ Supported |
| Product        | ✅ Supported |
| Quote          | ✅ Supported |
| Sales Order    | ✅ Supported |
| Purchase Order | ✅ Supported |
| Invoice        | ✅ Supported |
| Campaign       | ✅ Supported |
| Vendor         | ✅ Supported |
| Price Book     | ✅ Supported |
| Case           | ✅ Supported |
| Solution       | ✅ Supported |
| Note           | ✅ Supported |
| Attachment     | ✅ Supported |

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Build your first workflow connector

> Create a workflow connector with the Stacksync CLI, build its modules with the CDK, test it in your workspace and deploy it.

Source: https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector

In this guide you create a workflow connector, build a module, test it in the workflow builder while it runs on your machine, and deploy it. The example connects to a CRM called Acme CRM. Replace it with the system you want to connect.

A **workflow connector** connects Stacksync to one system, such as an API, a database or an internal service. It contains **modules**: each module is one step a workflow can run, such as **Create records**. You build the connector with the [Workflow Connector Development Kit](/developers/stacksync-cdk/workflow-connector-development-kit) (CDK), a Python library.

## Prerequisites

* The Stacksync CLI installed and logged in. See the [Quickstart](/developers/getting-started-with-stacksync-cli/quickstart).
* Python 3.10 or later.
* The API documentation of the system you are connecting, and an account to test with.

## Build with an AI coding assistant

The generated project includes `AGENTS.md`, `CLAUDE.md` and a `guide/` folder, so an AI coding assistant such as Claude Code, Codex or Cursor follows the same rules that Stacksync checks at deployment. Paste this prompt into your assistant, or follow the steps below yourself.

<details>
  <summary>
    Prompt for an AI coding assistant
  </summary>

  ```text
  Build a Stacksync workflow connector with the Stacksync CLI and the Stacksync CDK.

  Requirements:
  - Application: <application name>. Ask me if it is missing.
  - Operations: <the operations the connector must support>. If I don't know, propose them from the API documentation.
  - API documentation: <official documentation URL, optional>. Find it if it is missing.
  - Other requirements: <optional>

  Process:
  1. Read these pages fully before you start. They are the reference for the CLI and the CDK:
     https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector.md
     https://docs.stacksync.com/developers/stacksync-cdk/workflow-connector-development-kit.md
     https://docs.stacksync.com/developers/stacksync-cdk/modules.md
     https://docs.stacksync.com/developers/stacksync-cdk/context.md
     https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector.md
     https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference.md
  2. Research the application's API: authentication, base URL, every standard object, how custom objects and fields are listed, endpoints, pagination and rate limits.
  3. Run `stacksync --version`. If the command is missing, install the CLI:
     curl -fsSL https://cli.stacksync.com/install.sh | sh
  4. Run `stacksync login --check`. If it prints "Not logged in", ask me to run `stacksync login` (it opens a browser), or to give you an API key for `stacksync login --api-key <key> --workspace <id>`.
  5. Create the project and enter it:
     stacksync workflow-connector create "<Application Name>"
     cd workflows-app-<application-name>
  6. Read AGENTS.md and every file in guide/ before you change anything. Follow them exactly.
  7. Fill in stacksync.yml: app_name, app_description, app_icon_svg_url (a stable https link to an SVG logo) and connection_app_type. Keep generic_api_credentials unless I say Stacksync set up a dedicated connection type for this app.
  8. Build one module per operation (create_records, update_records, get_records, ...), with the object chosen in a dropdown. Never one module per object. Add modules with:
     stacksync workflow-module create "<Module Name>"
     Remove the sample module if it is not used: stacksync workflow-module delete create_records
  9. Write the connector's context.md and each module's context.md completely. No TODO may remain.
  10. Run the connector standard check and fix every problem it reports:
      .venv/bin/python -m stacksync_cdk.connector_checks
      (The .venv folder exists after the first `stacksync workflow-connector run`.)
  11. Start the connector: stacksync workflow-connector run
      Tell me to create a connection of the type in connection_app_type in Stacksync (Connections > Create connection), then to refresh the workflow builder, add an Action step and pick the connector. Tell me how to test each module.
  12. Stop after local testing. Deploy only when I ask: stacksync workflow-connector deploy, then report the deployment id and check it with stacksync workflow-connector deploy-status <id>.

  Ask only for what the API documentation and the project guides cannot answer. Never invent endpoints, fields, credentials, connection types or workspace values. Never print or commit credentials.
  ```
</details>

## Build, test and deploy

<Steps>
  <Step>
    ### Create the connector

    ```bash
    stacksync workflow-connector create "Acme CRM"
    cd workflows-app-acme-crm
    ```

    The project has everything a connector needs, plus a working sample module, `create_records`:

    ```text
    workflows-app-acme-crm/
      stacksync.yml        connector settings
      context.md           what the connector is, for Stacksync's AI
      requirements.txt     the Stacksync CDK and your dependencies
      main.py              entry point (leave as is)
      AGENTS.md            rules for AI coding assistants (CLAUDE.md points to it)
      README.md
      guide/               how to build each part
      utils/               helpers shared by modules
      modules/
        create_records/v1/ schema.py, content.py, execute.py, config.py, context.md
    ```

    Each file is explained in [Workflow Connector Development Kit](/developers/stacksync-cdk/workflow-connector-development-kit#project-layout).
  </Step>

  <Step>
    ### Fill in the connector settings

    Open `stacksync.yml`. `create` already set the workspace, `app_type` and the names. Fill in the rest:

    ```yaml
    deployment_settings:
      workspace: "1234"
      region: "usnv"

    app_settings:
      app_type: "acme_crm"
      app_name: "Acme CRM"
      app_type_display: "Acme CRM"
      app_icon_svg_url: "https://www.example.com/acme-crm-logo.svg"
      app_description: "Create, update and look up Acme CRM records."
      connection_app_type: "generic_api_credentials"
    ```

    * `region` is where `run` registers the temporary connector: `usnv` (United States) or `besg` (Europe). Use your workspace's default region. A deployed connector is available in every region.
    * `app_icon_svg_url` must be a stable `https://` link to an SVG logo.
    * `connection_app_type` decides what users connect with. Keep `generic_api_credentials` to start: the user pastes one value, such as an API key.
    * `app_type` is the connector's permanent id: lowercase words joined by underscores, at most 24 characters, unique across Stacksync. See [Connections and credentials](/developers/stacksync-cdk/modules#connections-and-credentials).

    Every field is described in [stacksync.yml](/developers/stacksync-cdk/workflow-connector-development-kit#stacksyncyml).
  </Step>

  <Step>
    ### Plan the modules

    Build one module per **operation**, and let the user pick the **object** inside it:

    | Do                                                               | Don't                                             |
    | ---------------------------------------------------------------- | ------------------------------------------------- |
    | `create_records` with an object dropdown: Contact, Company, Deal | `create_contact`, `create_company`, `create_deal` |

    Most connectors need some of `create_records`, `update_records`, `upsert_records`, `delete_records`, `get_records` and `list_records`, plus a module for each action that is not record work, such as `send_email`. Stacksync reviewers reject connectors with one module per object.

    Add a module:

    ```bash
    stacksync workflow-module create "Get Records"
    ```

    Remove the sample if you don't need it:

    ```bash
    stacksync workflow-module delete create_records
    ```
  </Step>

  <Step>
    ### Build the module

    A module is a folder of small Python functions. The CDK turns them into the endpoints Stacksync calls.

    | File         | Function                              | What it does                                                   |
    | ------------ | ------------------------------------- | -------------------------------------------------------------- |
    | `schema.py`  | `schema(request) -> SchemaResponse`   | Returns the form the user fills in.                            |
    | `content.py` | `content(request) -> ContentResponse` | Returns the options of dropdowns, such as the list of objects. |
    | `execute.py` | `execute(request) -> ExecuteResponse` | Runs the step: calls your API and returns the result.          |
    | `config.py`  | `CONFIG = ModuleConfig(...)`          | Name, description and settings of the module.                  |
    | `context.md` |                                       | Explains the module to Stacksync's AI.                         |

    A minimal `execute.py` that reads an API key from a `generic_api_credentials` connection:

    ```python
    import requests

    from stacksync_cdk import ExecuteResponse, ManagedError, Request

    BASE_URL = "https://api.acme-crm.example.com/v1"


    def execute(request: Request) -> ExecuteResponse:
        selected_object = request.data.get("select_object")
        records = request.data.get(f"{selected_object}s") or []
        if not records:
            raise ManagedError.validation_error(f"At least one {selected_object} is required.")

        api_key = request.credentials.get("api_credentials")
        if not api_key:
            raise ManagedError.unauthorized(
                'This connection has no API key. Its value should look like {"api_credentials": "your-api-key"}.'
            )

        created = []
        for record in records:
            response = requests.post(
                f"{BASE_URL}/{selected_object}s",
                json=record,
                headers={"Authorization": f"Bearer {api_key}"},
                timeout=30,
            )
            if response.status_code == 401:
                raise ManagedError.unauthorized("Acme CRM rejected the API key. Update the connection.")
            response.raise_for_status()
            created.append(response.json())

        return ExecuteResponse(created, metadata={"affected_records": len(created)})
    ```

    The form, dropdowns, credentials, errors and field types are covered in [Build modules](/developers/stacksync-cdk/modules).
  </Step>

  <Step>
    ### Write the context

    Stacksync's AI reads `context.md` to choose your module, fill its form and run it. Fill in the connector's `context.md` and each module's `context.md`, section by section. Stacksync refuses to deploy while a required section is missing, empty or still contains `TODO`. See [Context and the /context endpoint](/developers/stacksync-cdk/context).
  </Step>

  <Step>
    ### Check the connector

    Check the connector against the [connector standard](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector#the-connector-standard), the same check Stacksync runs when you deploy:

    ```bash
    .venv/bin/python -m stacksync_cdk.connector_checks
    ```

    `.venv` is created by the first `stacksync workflow-connector run`. If you manage your own virtual environment, activate it and run `python -m stacksync_cdk.connector_checks`. Fix every problem until it reports none.
  </Step>

  <Step>
    ### Run and test

    ```bash
    stacksync workflow-connector run
    ```

    ```text
    Stacksync CDK 1.1.1 (tracking @v1)
    Starting application on http://127.0.0.1:2323 (Ctrl+C to stop)
    Temporary connector registered with Stacksync.
    ```

    The connector now runs on your machine and is available in your workspace while `run` keeps running. To test it:

    1. In Stacksync, create a connection of the type in `connection_app_type` under **Connections** → **Create connection**. For `generic_api_credentials`, paste your API key.
    2. Create or open a workflow and refresh the workflow builder.
    3. Add an **Action** step and choose your connector and module.
    4. Select the connection, fill in the form and run the step.

    Each request is handled by your local code. Saved changes reload automatically. If a step fails, fix the code and send the same request again without rerunning the workflow:

    ```bash
    stacksync workflow-connector replay last
    ```

    Press **Ctrl+C** to stop. The temporary connector is removed from the workspace.
  </Step>

  <Step>
    ### Deploy

    When every module works, deploy the connector:

    ```bash
    stacksync workflow-connector deploy
    ```

    ```text
    Deployment 3f2a9c0e8b7d4e1fa6c5b4d3e2f1a0b9 submitted for review.
    It is built and deployed once a Stacksync reviewer approves it. You will get an email when it ends.
    ```

    A Stacksync reviewer checks the connector before it is built. Follow it with:

    ```bash
    stacksync workflow-connector deploy-status 3f2a9c0e8b7d4e1fa6c5b4d3e2f1a0b9
    ```

    When the status is `Live`, the connector is available in the workflow builder of every Stacksync workspace, without `run`. See [Deploy a workflow connector](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector) for the review, the statuses and how to ship updates.
  </Step>
</Steps>

## Next steps

<Cards>
  <Card title="Build modules" href="/https/docs.stacksync.com/developers/stacksync-cdk/modules" />

  <Card title="Context and the /context endpoint" href="/https/docs.stacksync.com/developers/stacksync-cdk/context" />

  <Card title="Deploy a workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector" />

  <Card title="CLI command reference" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference" />
</Cards>

# CLI command reference

> Every Stacksync CLI command with its arguments, options, environment variables, files and exit codes.

Source: https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference

This page covers Stacksync CLI 1.0.11. Run `stacksync -v` to see your version. The CLI keeps itself up to date.

```bash
stacksync <command> [options]
stacksync <command> -h
```

`stacksync -h` lists every command, including the subcommands of `workflow-connector` and `workflow-module`. Each command's `-h` ends with a link to its section on this page.

## Summary

| Command                                                      | What it does                                                            | Run it from                               |
| ------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------------------------------------- |
| `stacksync`                                                  | Show the welcome screen and the getting-started commands.               | Anywhere                                  |
| `stacksync login`                                            | Log in to Stacksync and choose a default workspace.                     | Anywhere                                  |
| `stacksync logout`                                           | Log this machine out.                                                   | Anywhere                                  |
| `stacksync hello`                                            | Show the welcome screen to confirm the CLI works.                       | Anywhere                                  |
| `stacksync update`                                           | Install the latest CLI release now.                                     | Anywhere                                  |
| `stacksync -v`, `-V`, `--version`                            | Print the installed version.                                            | Anywhere                                  |
| `stacksync <command> -h`, `--help`                           | Show a command's options and its link on this page.                     | Anywhere                                  |
| `stacksync workflow-connector create "<name>"`               | Create a connector project in a new folder.                             | The parent folder                         |
| `stacksync workflow-connector run`                           | Run the connector on your machine and make it usable in your workspace. | The connector folder                      |
| `stacksync workflow-connector deploy`                        | Submit the connector for review and deployment.                         | The connector folder                      |
| `stacksync workflow-connector deploy-status <deployment-id>` | Show where a deployment stands.                                         | Anywhere                                  |
| `stacksync workflow-connector replay <selector>`             | Send a recorded request to the running connector again.                 | The connector folder                      |
| `stacksync workflow-connector cdk [ref]`                     | Show or change the CDK version the connector uses.                      | The connector folder                      |
| `stacksync workflow-module create "<name>"`                  | Add a module to the connector.                                          | The connector folder                      |
| `stacksync workflow-module delete ["<name>"]`                | Remove a module from the connector.                                     | The connector folder or the module folder |

Commands that run in the connector folder read its `stacksync.yml`. Outside a connector they stop with `No stacksync.yml found`. Commands that talk to Stacksync need a login and otherwise stop with `Not authenticated. Run 'stacksync login' to set your API key.`

## login

```bash
stacksync login [--api-key <key>] [--workspace <id>] [--check]
```

Without options, `login` asks how to authenticate: **Log in via the web** opens the browser, and **Copy/Paste API key** takes a workspace API key. After a web login you choose the default workspace. If a login already exists on this machine, it offers to keep it.

| Option             | Environment variable  | Description                                                                                   |
| ------------------ | --------------------- | --------------------------------------------------------------------------------------------- |
| `--api-key <key>`  | `STACKSYNC_API_KEY`   | Save this API key and skip every prompt. Use it in CI, on remote machines and with AI agents. |
| `--workspace <id>` | `STACKSYNC_WORKSPACE` | Save this workspace id as the default. Use it with `--api-key`.                               |
| `--check`          |                       | Print `Logged in` or `Not logged in` and exit with `0` or `1`. Nothing changes.               |

Without a terminal and without an API key, `login` stops and tells you to pass `--api-key`.

```bash
stacksync login --api-key "$STACKSYNC_API_KEY" --workspace 1234
```

## logout

```bash
stacksync logout
```

Removes the saved API key and default workspace from this machine. The next command that talks to Stacksync asks you to log in again.

## hello

```bash
stacksync hello
```

Shows the welcome screen with the getting-started commands, the same as running `stacksync` on its own. Use it to confirm the CLI is installed and on your `PATH`.

## update

```bash
stacksync update [--force]
```

Installs the latest release now. It does nothing when you already have the latest version, unless you pass `--force`. The CLI keeps itself up to date, so you only need this on version 1.0.10 or earlier: run it once, and later updates are automatic.

## workflow-connector create

```bash
stacksync workflow-connector create "<name>"
```

Creates the folder `workflows-app-<name>` in the current folder from the official connector template. The name is turned into lowercase words joined by hyphens: `"Acme CRM"` creates `workflows-app-acme-crm`.

`create` fills in `stacksync.yml`:

* `app_type` is the name in lowercase with underscores, for example `acme_crm`.
* `app_name` and `app_type_display` are the name as you typed it.
* `deployment_settings.workspace` is your default workspace. If none is set, `create` asks for one. It is where `run` tests the connector and where `deploy` submits it from; it doesn't limit who can use the deployed connector.

When `git` is installed, it also starts a Git repository with a first commit. It stops if the folder already exists. The project layout is described in [Workflow Connector Development Kit](/developers/stacksync-cdk/workflow-connector-development-kit).

## workflow-connector run

```bash
stacksync workflow-connector run [--port <n>] [--sync-build | --no-sync-build]
```

Runs the connector on your machine and adds it to your workspace as a temporary private connector, so you can use its modules in the workflow builder while you develop.

What `run` does, in order:

1. Validates `stacksync.yml`.
2. Copies the project into `.stacksync_build/`.
3. Uses the active virtual environment, or creates `.venv/` in the project, and installs `requirements.txt`. When the CDK requirement follows a moving version (`@v1`, `@v2`, `@prod`), it reinstalls the CDK so you always have the latest release of that line.
4. Prints the installed CDK version, for example `Stacksync CDK 1.1.1 (tracking @v1)`.
5. Starts the connector on `http://127.0.0.1:<port>`.
6. Registers the temporary connector in your workspace, in the `region` of `stacksync.yml`, and forwards its requests to your machine through a secure connection.

While it runs, every request from Stacksync is handled by the code on your machine and recorded for [replay](#workflow-connector-replay). A request that takes longer than 10 seconds locally times out. Saved file changes are copied into the build and reloaded. Added files are picked up too; after you delete or rename a file, restart `run`.

Press **Ctrl+C** to stop. `run` then removes the temporary connector from the workspace.

| Option                             | Default        | Description                                                            |
| ---------------------------------- | -------------- | ---------------------------------------------------------------------- |
| `--port <n>`                       | `2323`         | Local port. If it is taken, `run` uses the next free port and says so. |
| `--sync-build` / `--no-sync-build` | `--sync-build` | Copy changed files into `.stacksync_build/` while running.             |

`run` needs Python 3.10 or later. If `.venv/` was created with an older Python, delete it and run again.

## workflow-connector deploy

```bash
stacksync workflow-connector deploy
```

Packages the connector's source and submits it to Stacksync. Unlike `run`, which keeps the connector on your computer and links it to your workspace only while it runs, a deployed connector is hosted by Stacksync and is available in every Stacksync workspace: see [Who can use a deployed connector](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector#who-can-use-a-deployed-connector). A Stacksync reviewer approves each deployment before it is built, so `deploy` returns as soon as the source is accepted:

```text
Deployment 3f2a9c0e8b7d4e1fa6c5b4d3e2f1a0b9 submitted for review.
It is built and deployed once a Stacksync reviewer approves it. You will get an email when it ends.
```

The source package is `.stacksync_deployment/source.zip`. It leaves out `.git`, `.venv`, `venv`, `__pycache__`, `.stacksync_build`, `.stacksync_deployment`, `.logs`, `.DS_Store` and every `.env` file except `.env.example`, `.env.sample` and `.env.template`. It must be smaller than 32 MiB: list dependencies in `requirements.txt` instead of including them.

Stacksync refuses the submission when the connector does not meet the [connector standard](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector#the-connector-standard) or a deployment rule, and `deploy` prints the reason. Only one deployment of a connector can wait for review or be in progress at a time. The whole process is described in [Deploy a workflow connector](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector).

## workflow-connector deploy-status

```bash
stacksync workflow-connector deploy-status <deployment-id>
```

Prints the current state of a deployment. The id is the 32-character id that `deploy` printed. Only the person who submitted the deployment can see its status.

| Printed                                | Meaning                                                                                                                      |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `Waiting for approval by Stacksync...` | A Stacksync reviewer has to approve it. This can take hours.                                                                 |
| `Building...`                          | Approved and being built.                                                                                                    |
| `Deploying...`                         | Being started.                                                                                                               |
| `Registering modules...`               | Its modules are being added to the workflow builder.                                                                         |
| `Live`                                 | Deployed and usable in workflows.                                                                                            |
| `Failed`                               | It could not be completed. The command exits with code `1` and asks you to contact Stacksync support with the deployment id. |

## workflow-connector replay

```bash
stacksync workflow-connector replay <selector> [--port <n>]
```

Sends a request recorded during `run` to the connector running locally, and prints the status and response. Use it to debug a module without running the workflow again. `run` keeps the last 100 requests in `.logs/<app name>.json`.

| Selector        | Request                                               |
| --------------- | ----------------------------------------------------- |
| `<trace-id>`    | The request with this trace id (a UUID from the log). |
| `first`, `last` | The oldest or the newest request.                     |
| `first+n`       | The request `n` places after the oldest.              |
| `last-n`        | The request `n` places before the newest.             |

`--port` is the port of the running connector, `2323` by default.

The log contains the request bodies, including connection credentials. It stays on your machine and is never deployed. Keep `.logs/` out of version control, as the template's `.gitignore` does.

## workflow-connector cdk

```bash
stacksync workflow-connector cdk [ref]
```

Shows or changes the [CDK version](/developers/stacksync-cdk/workflow-connector-development-kit#cdk-versions) in `requirements.txt`.

| Command                                   | Effect                                                                    |
| ----------------------------------------- | ------------------------------------------------------------------------- |
| `stacksync workflow-connector cdk`        | Print the version line the connector follows, for example `tracking @v1`. |
| `stacksync workflow-connector cdk v1`     | Follow the latest `v1.x` release. Recommended.                            |
| `stacksync workflow-connector cdk v1.1.1` | Pin one exact release.                                                    |
| `stacksync workflow-connector cdk v2`     | Move to the next major version when it exists.                            |
| `stacksync workflow-connector cdk prod`   | Follow the newest unreleased changes.                                     |

Run `stacksync workflow-connector run` afterwards to install the new version.

## workflow-module create

```bash
stacksync workflow-module create "<name>"
```

Adds the module folder `modules/<name>/v1/` with `schema.py`, `content.py`, `execute.py`, `config.py` and `context.md`. The name is turned into lowercase words joined by underscores: `"Create Records"` creates `modules/create_records/`. It stops if the module exists. The new files contain `TODO` placeholders, which you replace before deploying. Modules are found on disk, so there is nothing to register.

## workflow-module delete

```bash
stacksync workflow-module delete ["<name>"]
```

Deletes `modules/<name>/` and all its versions after you confirm. Run it from the connector folder, or from inside the module's folder and leave out the name.

## Environment variables

| Variable                    | Used by                     | Description                                                                                                                                                                  |
| --------------------------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `STACKSYNC_API_KEY`         | `login`                     | API key to log in with, the same as `--api-key`.                                                                                                                             |
| `STACKSYNC_WORKSPACE`       | `login`                     | Default workspace id, the same as `--workspace`.                                                                                                                             |
| `STACKSYNC_NO_UPDATE_CHECK` | every command               | Any value turns off the check for a newer release.                                                                                                                           |
| `STACKSYNC_INSTALL_DIR`     | `install.sh`, `install.ps1` | Folder for the `stacksync` command. Default `~/.local/bin` on macOS and Linux, `%LOCALAPPDATA%\stacksync` on Windows. An update keeps the folder of the install it replaces. |
| `STACKSYNC_VERSION`         | `install.sh`, `install.ps1` | Version to install, for example `v1.0.11`.                                                                                                                                   |
| `STACKSYNC_SKIP_PATH_SETUP` | `install.sh`, `install.ps1` | Set to `1` to leave your shell startup files and `PATH` unchanged.                                                                                                           |

## Files

| Path                                           | Contents                                                              |
| ---------------------------------------------- | --------------------------------------------------------------------- |
| `~/.stacksync/env.json`                        | Your login (API key) and default workspace. Treat it like a password. |
| `~/.stacksync/cache.json`                      | The result of the last check for a newer release.                     |
| `~/.stacksync/path.sh`                         | Adds the CLI to your `PATH`.                                          |
| `<connector>/.venv/`                           | The Python environment `run` creates when none is active.             |
| `<connector>/.stacksync_build/`                | The copy of the project that `run` serves.                            |
| `<connector>/.stacksync_deployment/source.zip` | The package `deploy` submits.                                         |
| `<connector>/.logs/`                           | Requests recorded by `run`, for `replay`. Contains credentials.       |

All of these except the files in `~/.stacksync` are in the template's `.gitignore`.

## Exit codes

Every command exits with `0` on success and `1` on an error, and prints the reason. `login --check` exits with `1` when you are not logged in, and `deploy-status` exits with `1` when the deployment failed.

# Deploy a workflow connector

> How a workflow connector is deployed: the connector standard, the checks on submission, Stacksync's review, the build, the statuses, the emails and how to ship updates.

Source: https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector

`stacksync workflow-connector deploy` turns the connector you tested with `run` into a connector that Stacksync hosts. You run no servers: Stacksync builds, runs and scales it.

## The process

<Steps>
  <Step>
    ### Check the connector yourself

    Run the same standard check that Stacksync runs, and fix every problem it lists:

    ```bash
    .venv/bin/python -m stacksync_cdk.connector_checks
    ```

    Then test every module with `stacksync workflow-connector run` against a real account.
  </Step>

  <Step>
    ### Submit it

    ```bash
    stacksync workflow-connector deploy
    ```

    The CLI packages the source into `.stacksync_deployment/source.zip` and uploads it. Your virtual environment, Git data, build folders, recorded requests (`.logs/`) and `.env` files are left out. List dependencies in `requirements.txt`: Stacksync installs them.
  </Step>

  <Step>
    ### Stacksync checks it

    Before anything is built, Stacksync checks the package, the settings, the [connector standard](#the-connector-standard) and the icon. If something fails, `deploy` prints the reason and nothing is submitted. See [Why a deployment is refused](#why-a-deployment-is-refused).
  </Step>

  <Step>
    ### A Stacksync reviewer approves it

    The deployment waits for a Stacksync reviewer, who reads the source and sees which modules are new or changed. This can take hours. `deploy` doesn't wait:

    ```text
    Deployment 3f2a9c0e8b7d4e1fa6c5b4d3e2f1a0b9 submitted for review.
    It is built and deployed once a Stacksync reviewer approves it. You will get an email when it ends.
    ```

    Reviewers check what the automatic checks can't: one module per operation, real fields instead of free-text bodies, correct errors, accurate context, no credentials or customer data in the code. If the connector is not approved, you get an email with the reviewer's note. Fix it and deploy again.
  </Step>

  <Step>
    ### Stacksync builds and registers it

    After approval, Stacksync builds the connector with Python 3.11, installs `requirements.txt` and serves the `app` defined in your `main.py`. It then reads `/app-config` and adds the modules to the workflow builder. The modules it finds must be exactly the ones that were reviewed. If any step fails, the version that was live before stays live.
  </Step>

  <Step>
    ### It is live

    You get the email **Connector \<app_type> is live**. The modules are available in the workflow builder of every Stacksync workspace. Users add a step, choose your connector, connect their account and run it.
  </Step>
</Steps>

## Who can use a deployed connector

`run` doesn't deploy anything. The connector runs on your own computer, and a secure connection links it to your workspace while `run` is open. Only your workspace sees it, and it stops working when you stop `run` or turn off your computer.

A deployed connector is public: Stacksync hosts it, and once live it is available in every Stacksync workspace. Each user connects their own account to it.

|                     | `run`                                                          | `deploy`                         |
| ------------------- | -------------------------------------------------------------- | -------------------------------- |
| Who can use it      | Your workspace only                                            | Every Stacksync workspace        |
| Where the code runs | Your computer, linked to your workspace by a secure connection | Stacksync's servers              |
| How long it lasts   | While `run` is open on your computer                           | Until it's removed               |
| Review              | None                                                           | A Stacksync reviewer approves it |

`deployment_settings.workspace` in `stacksync.yml` is the workspace you submit from: you must be able to deploy to it, and only you can follow the deployment. It doesn't limit which workspaces can use the connector.

A deployed connector can't be limited to one workspace. If your connector must stay private to your workspace, [host it yourself](/developers/getting-started-with-stacksync-cli/host-a-private-workflow-connector) and add it in Developer Studio instead.

## Follow a deployment

```bash
stacksync workflow-connector deploy-status <deployment-id>
```

| Status                                 | Meaning                                                                                           |
| -------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `Waiting for approval by Stacksync...` | Waiting for a reviewer.                                                                           |
| `Building...`                          | Approved and being built.                                                                         |
| `Deploying...`                         | Being started.                                                                                    |
| `Registering modules...`               | Its modules are being added to the workflow builder.                                              |
| `Live`                                 | Available in workflows.                                                                           |
| `Failed`                               | Not completed. Contact Stacksync support with the deployment id. The command exits with code `1`. |

Only the person who submitted the deployment can see its status. Only one deployment of a connector can wait for review or be in progress at a time.

You also get an email when the deployment ends:

| Email                                       | Meaning                                         |
| ------------------------------------------- | ----------------------------------------------- |
| Connector \<app_type> is live               | Approved and deployed.                          |
| Connector \<app_type> was not approved      | Rejected, with the reviewer's note.             |
| Connector \<app_type> could not be deployed | Failed. Contact support with the deployment id. |

## The connector standard

The connector standard is the set of rules every deployed connector meets. It is checked from your files only: your code is not run.

```bash
.venv/bin/python -m stacksync_cdk.connector_checks
```

```text
stacksync.yml: app_settings.app_icon_svg_url must start with https://
context.md: the "## Objects" section is missing
modules/create_records/v1/context.md: still has TODO items; fill them in

3 problem(s) to fix before this connector can be deployed.
```

It exits with `0` and prints `The connector meets the Stacksync standard.` when there is nothing to fix. Pass a folder to check another connector: `python -m stacksync_cdk.connector_checks path/to/connector`. The same problems are logged as warnings when the connector starts.

| Rule                                                                                                                                              | Problem it reports                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `stacksync.yml` exists and is valid YAML with `app_settings`                                                                                      | `stacksync.yml: the file is missing`, `the file is not valid YAML`, `app_settings is missing`                                                                         |
| Every `app_settings` field is filled in: `app_type`, `app_name`, `app_type_display`, `app_description`, `app_icon_svg_url`, `connection_app_type` | `app_settings.<field> is required`                                                                                                                                    |
| No value is left from the template                                                                                                                | `app_settings.<field> still has the template value`                                                                                                                   |
| The icon is an `https://` link                                                                                                                    | `app_settings.app_icon_svg_url must start with https://`                                                                                                              |
| The connection type is allowed                                                                                                                    | `app_settings.connection_app_type must be one of generic_api_credentials, stacksync_user_api_key, stacksync_workspace_api_key or the app's own app_type (<app_type>)` |
| Only connector files at the root                                                                                                                  | `<entry>: is not part of a connector; move it out of the connector folder`                                                                                            |
| The connector and every module version have a complete `context.md`                                                                               | `the file is missing`, `the "## <Section>" section is missing`, `is empty`, `still has TODO items; fill them in`, `still has the placeholder text; write the context` |
| Every module has an example                                                                                                                       | `needs at least one example between "## EXAMPLES start ##" and "## EXAMPLES end ##"`                                                                                  |

The allowed root entries are listed in [Project layout](/developers/stacksync-cdk/workflow-connector-development-kit#project-layout), and the context sections in [Context](/developers/stacksync-cdk/context).

## Why a deployment is refused

When `deploy` is refused, it prints the reason. Nothing is submitted for review.

| Message                                                                                       | Fix                                                                                                                                                    |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `the connector does not meet the Stacksync standard:` followed by a list                      | Fix each [connector standard](#the-connector-standard) problem.                                                                                        |
| `stacksync.yml workspace does not match the authorized workspace`                             | Set `deployment_settings.workspace` to a workspace you belong to, or log in to the right one.                                                          |
| `not authorized to deploy to workspace <id>`                                                  | Log in with an account or API key of that workspace.                                                                                                   |
| `app_type ... must be lowercase letters and digits, in words separated by single underscores` | Rename `app_type`, for example `acme_crm`.                                                                                                             |
| `app_type must be at most 24 characters`                                                      | Shorten `app_type`.                                                                                                                                    |
| `The app type '<app_type>' is already in use. Choose a different app_type.`                   | Another connector already uses that id. Choose another one.                                                                                            |
| `module folder '<name>' must be lowercase letters and digits...`                              | Rename the module folder, for example `create_records`.                                                                                                |
| `the connector has no module versions under modules/<module>/v<N>/`                           | Add at least one module with `stacksync workflow-module create`.                                                                                       |
| `this update removes module versions that are already deployed: <ids>`                        | Restore those version folders. Deployed versions can't be removed.                                                                                     |
| `a deployment of this connector is already waiting for review or in progress`                 | Wait for the current deployment to end, then deploy again.                                                                                             |
| An icon error                                                                                 | `app_icon_svg_url` must answer `200` over HTTPS from a public address without a redirect, be at most 512 KiB, start with `<svg` and contain no script. |
| `Deployment artifact too large`                                                               | The package must be under 32 MiB. Remove large files; list dependencies in `requirements.txt`.                                                         |
| `archive does not contain a stacksync.yml at its root`                                        | Run `deploy` from the connector folder.                                                                                                                |
| `the Stacksync platform is unavailable; try again later`                                      | Try again later.                                                                                                                                       |

## Update a connector

Deploy again from the same folder. Each update goes through the same checks and review.

* An update replaces the code of every version of every module.
* A new version folder (`v2`) adds a new version. Workflows on `v1` keep using `v1`.
* Deployed versions can't be removed, so keep their folders.
* A version's name, description, icon and settings are recorded when it is first deployed. To change them, add a new version.
* Never change `app_type` after the first deployment: it would be a different connector.

To remove a deployed connector, contact Stacksync support with its `app_type`.

## Runtime limits

| Limit         | Value                                                                                                     |
| ------------- | --------------------------------------------------------------------------------------------------------- |
| Time per call | About 6 minutes, then the call is cut off. Split longer work into smaller steps.                          |
| State         | None between calls. The connector runs as several processes, so keep no caches, mutable globals or files. |
| Python        | 3.11.                                                                                                     |

## Next steps

<Cards>
  <Card title="Build modules" href="/https/docs.stacksync.com/developers/stacksync-cdk/modules" />

  <Card title="CLI command reference" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference" />
</Cards>

# Host a private workflow connector

> Run a workflow connector on your own servers and add it to your workspace, where workflows, Genies and AI assistants connected through Stacksync MCP can use it.

Source: https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/host-a-private-workflow-connector

A private workflow connector is one you build with the Stacksync CLI and host yourself. You add its URL to your workspace in **Developer Studio**, and only your workspace can use it. There is no Stacksync review: its modules are available as soon as you add it.

Use it for an internal system, a proprietary application or an API that must not leave your infrastructure. To publish a connector that Stacksync hosts for every workspace, [deploy it](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector) instead. The same project works both ways.

## Where your workspace can use it

| Where         | How                                                                                           |
| ------------- | --------------------------------------------------------------------------------------------- |
| Workflows     | Add a step and choose the connector, as with any other app.                                   |
| Genies        | Add its modules as [skills](/ai-agents#4-add-skills) on the genie's **Skills** step.          |
| Stacksync MCP | Your AI assistant can find and run its actions through [Stacksync MCP Gateway](/mcp/gateway). |

## Host it

<Steps>
  <Step>
    ### Build and test the connector

    [Build the connector](/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector), run the standard check, and test every module with `stacksync workflow-connector run`.
  </Step>

  <Step>
    ### Serve it from your own servers

    The project that `stacksync workflow-connector create` made is a standard Python web app: `main.py` defines `app`. Host it on any server or container platform:

    1. Use Python 3.10 or later, with `git` available while installing: `requirements.txt` installs the Stacksync CDK from GitHub.
    2. Install the dependencies with `pip install -r requirements.txt`, then a web server with `pip install gunicorn`: `requirements.txt` doesn't include one.
    3. Start it with `gunicorn main:app`, or any other WSGI server, on any port.

    Keep `stacksync.yml` in the project: its `app_settings` (name, icon and connection type) are what the connector reports to Stacksync. Its `deployment_settings` are only used by the CLI.

    If you use containers, write your own Dockerfile, for example:

    ```dockerfile
    FROM python:3.11-slim
    WORKDIR /usr/src/app
    # git: requirements.txt installs the Stacksync CDK from GitHub
    RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
    COPY requirements.txt ./
    RUN pip install --no-cache-dir -r requirements.txt gunicorn==26.2.0
    COPY . .
    RUN useradd --create-home app
    USER app
    EXPOSE 8080
    CMD exec gunicorn --bind 0.0.0.0:8080 --timeout 360 main:app
    ```

    Add a `.dockerignore` next to it so local files stay out of the image:

    ```text
    .env*
    .venv
    .logs
    .stacksync_*
    ```

    If you later [deploy](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector) the same project, Stacksync builds and hosts it its own way, so your Dockerfile doesn't affect it.

    Stacksync reaches your connector over the internet. Developer Studio accepts its address only when it:

    * uses `https`; plain `http` is refused
    * is public; `localhost`, private networks and internal addresses are refused
    * answers `/app-config` within 10 seconds

    Treat the connector's URL as public. Each request carries the credentials of the connection the user chose: take every credential from the request, never from secrets stored on your server, and refuse a request that carries none.
  </Step>

  <Step>
    ### Turn on Developer Options

    In Stacksync, open your **Profile** and turn on **Developer Options**. **Developer Studio** appears in the side menu.
  </Step>

  <Step>
    ### Add it in Developer Studio

    The connector is created in the region you have selected in Stacksync, so switch to the region you want first. Then open **Developer Studio** and select **Create app**. Enter the connector's URL in **Serving URL** and select **Create**.

    <figure>
      <img src="/https/docs.stacksync.com/images/developers/developer-studio-create-private-app.webp" alt="Developer Studio with the Create private app dialog: the Serving URL https://connectors.acme.com/order-desk is entered, with arrows to the Create app button and the Create button." width="1600" height="900" loading="lazy" decoding="async" />
    </figure>

    Stacksync reads the connector's `/app-config` to find its modules. If it can't reach the URL or read `/app-config`, the connector is not added and Developer Studio shows an error.

    The connector is listed with its status, app type and modules. **Status: Healthy** means Stacksync can reach it.

    <figure>
      <img src="/https/docs.stacksync.com/images/developers/developer-studio-private-app-details.webp" alt="Developer Studio listing the private app Acme Order Desk with Status Healthy, its serving URL, app type and six modules with their descriptions." width="1600" height="900" loading="lazy" decoding="async" />
    </figure>
  </Step>
</Steps>

## Use it in a Genie

Private connector modules appear in the Genie skill picker with your other apps. A skill asks for the connection type the connector declares, such as Generic API Credentials. A module whose connection is optional can be used without one.

When the Genie setup suggests a private connector module as a skill, it turns on **Require approval**, because the module's name and description come from your code rather than from Stacksync. You can change this on the **Skills** step.

## Use it through Stacksync MCP

Your AI assistant can list the connector's actions, read their forms and run them, like the actions of any connected app.

* Running a private connector action counts as a change, so it needs the editor role or higher and follows **Ask before every change**.
* [MCP Gateway Policies](/mcp/gateway-policies) allow private connectors only when the policy allows **All apps**. A policy that selects specific apps doesn't include them.
* Every call appears in the [MCP Activity Log](/mcp/activity-log).

## Update or remove it

To update the connector, restart your server with the new code. When you add or change a module, Genies and AI assistants see it within 5 minutes.

If the connector doesn't answer, its modules are left out of Genies and MCP until it answers again; your other apps keep working. Workflow steps that use it fail while it is down.

To move the connector to a new address, open it in **Developer Studio**, change **Serving URL** and select **Save**. To remove it, select **Delete**.

## Three ways to run a connector

|                     | `stacksync workflow-connector run` | Private connector                        | [Deployed connector](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector) |
| ------------------- | ---------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------ |
| What it is for      | Developing and testing             | Your own systems, kept in your workspace | Publishing to every workspace                                                                    |
| Where the code runs | Your computer                      | Your servers                             | Stacksync's servers                                                                              |
| Who can use it      | Your workspace only                | Your workspace only                      | Every Stacksync workspace                                                                        |
| How long it lasts   | Until you stop `run`               | Until you delete it in Developer Studio  | Until it's removed                                                                               |
| Review              | None                               | None                                     | A Stacksync reviewer approves it                                                                 |
| How you add it      | `stacksync workflow-connector run` | **Create app** in Developer Studio       | `stacksync workflow-connector deploy`                                                            |

There is no CLI command that registers a self hosted connector: add its URL in Developer Studio.

# Overview

> What the Stacksync CLI does, how a workflow connector goes from your machine to your workspace, and where to start.

Source: https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/overview

The Stacksync CLI is the command-line tool for building on Stacksync. Today it builds **workflow connectors**: connectors that add your own actions to Stacksync workflows, for internal systems, proprietary applications or any API that Stacksync does not cover yet.

```bash
curl -fsSL https://cli.stacksync.com/install.sh | sh
stacksync login
stacksync workflow-connector create "My App"
cd workflows-app-my-app
stacksync workflow-connector run
stacksync workflow-connector deploy
```

## How it works

<Steps>
  <Step>
    ### Create

    `stacksync workflow-connector create` generates a project from the official template: settings, a sample module, the guides and the rules for AI coding assistants.
  </Step>

  <Step>
    ### Build

    You write the modules in Python with the [Workflow Connector Development Kit](/developers/stacksync-cdk/workflow-connector-development-kit) (CDK). Each module is one step a workflow can run.
  </Step>

  <Step>
    ### Test in your workspace

    `stacksync workflow-connector run` starts the connector on your machine and adds it to your workspace as a temporary private connector. You use it in the workflow builder like any other connector, and every request runs your local code. Saved changes reload immediately. When you stop `run`, the temporary connector is removed. Nothing is published.
  </Step>

  <Step>
    ### Deploy

    `stacksync workflow-connector deploy` sends the connector's source to Stacksync. Stacksync checks it against the connector standard, and a Stacksync reviewer approves it.
  </Step>

  <Step>
    ### Live

    Stacksync builds and hosts the connector. You get an email when it's done, and its modules appear in the workflow builder of every Stacksync workspace, not only yours. You run no servers.
  </Step>
</Steps>

The full process is described in [Deploy a workflow connector](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector).

## The CLI and the CDK

|                | Stacksync CLI                                                                                   | Stacksync CDK                                                   |
| -------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| What it is     | A command-line program.                                                                         | A Python library, `stacksync_cdk`.                              |
| What it does   | Creates projects, runs them on your machine, deploys them.                                      | Turns your module functions into the endpoints Stacksync calls. |
| Where it runs  | Your terminal.                                                                                  | Inside your connector, locally and once deployed.               |
| How you get it | The installer. See the [Quickstart](/developers/getting-started-with-stacksync-cli/quickstart). | `requirements.txt` of the project. `run` installs it.           |

## Built for humans and AI agents

Every step can be done by an AI coding assistant:

* The generated project contains `AGENTS.md` (and `CLAUDE.md`), the rules an assistant must follow, and a `guide/` folder that explains each part.
* `stacksync login --api-key` and `stacksync login --check` work without prompts.
* `python -m stacksync_cdk.connector_checks` lists every problem that would block a deployment.
* `workflow-module delete` only works inside the connector, so an agent cannot remove a module of another project.
* Each page of these docs is also available as Markdown: add `.md` to its URL.

## Next steps

<Cards>
  <Card title="Quickstart" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/quickstart" />

  <Card title="Build your first workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector" />

  <Card title="Deploy a workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector" />

  <Card title="CLI command reference" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference" />

  <Card title="Workflow Connector Development Kit" href="/https/docs.stacksync.com/developers/stacksync-cdk/workflow-connector-development-kit" />
</Cards>

# Quickstart

> Install the Stacksync CLI on macOS, Linux or Windows, log in to your workspace and check that everything works.

Source: https://docs.stacksync.com/developers/getting-started-with-stacksync-cli/quickstart

This page gets the Stacksync CLI installed and logged in. It takes about two minutes. When you are done, [build your first workflow connector](/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector).

## Prerequisites

* A Stacksync account with access to a workspace. [Create an account](https://app.stacksync.com/) if you don't have one.
* macOS (Apple Silicon or Intel), Linux (x64 or arm64) or Windows (x64).
* Python 3.10 or later. The CLI itself needs no Python, but `stacksync workflow-connector run` uses it to run your connector on your machine.
* `git` is optional. When it is installed, `create` starts a Git repository in the new project.

## Install and log in

<Steps>
  <Step>
    ### Install the CLI

    The CLI is a standalone program. You don't need `pip` or a virtual environment to install it.

    <Tabs items="[&#x22;macOS and Linux&#x22;,&#x22;Windows&#x22;]">
      <Tab value="macOS and Linux">
        ```bash
        curl -fsSL https://cli.stacksync.com/install.sh | sh
        ```

        The installer detects your operating system and CPU, downloads the matching archive and installs the `stacksync` command in your home folder (`~/.local/bin`). It never asks for a password. It also adds that folder to your shell's `PATH`, so `stacksync` runs from any folder once you open a new terminal.

        To install somewhere else:

        ```bash
        curl -fsSL https://cli.stacksync.com/install.sh | STACKSYNC_INSTALL_DIR=~/bin sh
        ```

        To install a specific version instead of the latest one:

        ```bash
        curl -fsSL https://cli.stacksync.com/install.sh | sh -s -- v1.0.11
        ```
      </Tab>

      <Tab value="Windows">
        Run this in PowerShell. Administrator rights are not needed. The installer puts the CLI under `%LOCALAPPDATA%\stacksync` and adds it to your user `PATH`.

        ```powershell
        irm https://cli.stacksync.com/install.ps1 | iex
        ```

        Open a new terminal afterwards so that it picks up the updated `PATH`.
      </Tab>
    </Tabs>

    Check the installation:

    ```bash
    stacksync --version
    ```

    ```text
    stacksync, version 1.0.11
    ```

    <details>
      <summary>
        Read the installer before running it
      </summary>

      The installer is a short shell script. To read it before it runs, download it first:

      ```bash
      curl -fsSL https://cli.stacksync.com/install.sh -o install.sh
      less install.sh
      sh install.sh
      ```

      Every release is published at `https://cli.stacksync.com/<version>/`, and `https://cli.stacksync.com/latest` returns the current version. The archives are:

      | Archive                        | Platform             |
      | ------------------------------ | -------------------- |
      | `stacksync-macos-arm64.tar.gz` | macOS, Apple Silicon |
      | `stacksync-macos-x64.tar.gz`   | macOS, Intel         |
      | `stacksync-linux-x64.tar.gz`   | Linux, x64           |
      | `stacksync-linux-arm64.tar.gz` | Linux, arm64         |
      | `stacksync-windows-x64.zip`    | Windows, x64         |
    </details>
  </Step>

  <Step>
    ### Log in

    ```bash
    stacksync login
    ```

    Choose how to authenticate:

    <Tabs items="[&#x22;Log in via the web&#x22;,&#x22;Use an API key&#x22;]">
      <Tab value="Log in via the web">
        Select **Log in via the web**. Your browser opens the Stacksync login page. If it doesn't open, copy the link that the terminal prints. After you sign in, pick the default workspace in the terminal.

        <figure>
          <img src="/https/docs.stacksync.com/images/developers/stacksync-cli-login-via-web.webp" alt="Terminal running &#x22;stacksync login&#x22;, choosing &#x22;Log in via the web&#x22;, selecting a workspace and showing &#x22;You're logged in.&#x22;" width="986" height="578" loading="lazy" decoding="async" />

          <figcaption />
        </figure>
      </Tab>

      <Tab value="Use an API key">
        Log in to [Stacksync](https://app.stacksync.com/) and open **Workspace Settings** with the gear icon.

        <figure>
          <img src="/https/docs.stacksync.com/images/developers/stacksync-all-resources-settings-icon.webp" alt="Stacksync All Resources page with an arrow pointing to the settings gear icon in the top right to open Workspace Settings." width="1600" height="824" loading="lazy" decoding="async" />

          <figcaption />
        </figure>

        Generate a new API key under **Stacksync Workspace API Key**.

        <figure>
          <img src="/https/docs.stacksync.com/images/developers/workspace-settings-generate-api-key.webp" alt="Stacksync Workspace Settings with the &#x22;Stacksync Workspace API Key&#x22; section and &#x22;Generate new API key&#x22; button highlighted." width="1600" height="825" loading="lazy" decoding="async" />

          <figcaption />
        </figure>

        Select **Copy/Paste API key** in the terminal and paste the key. The key is not shown while you type.

        <figure>
          <img src="/https/docs.stacksync.com/images/developers/stacksync-cli-login-api-key.webp" alt="Terminal running &#x22;stacksync login&#x22; with &#x22;Copy/Paste API key&#x22; selected, a masked workspace key and &#x22;You're logged in.&#x22;" width="1164" height="452" loading="lazy" decoding="async" />

          <figcaption />
        </figure>
      </Tab>
    </Tabs>

    If you are already logged in on this machine, `stacksync login` offers to keep the existing login. If you log in again through the web, Stacksync generates a new key and the previous one stops working.

    #### Log in without prompts

    In CI, on a remote machine, or when an AI agent drives the CLI, there is no terminal to answer the prompts. Pass the API key and the workspace id instead:

    ```bash
    stacksync login --api-key <api-key> --workspace <workspace-id>
    ```

    The CLI also reads them from the `STACKSYNC_API_KEY` and `STACKSYNC_WORKSPACE` environment variables:

    ```bash
    export STACKSYNC_API_KEY=<api-key>
    export STACKSYNC_WORKSPACE=<workspace-id>
    stacksync login
    ```

    To find the workspace id, see [Workspaces and regions](/api-reference/workspaces-and-regions).
  </Step>

  <Step>
    ### Check your setup

    ```bash
    stacksync login --check
    ```

    It prints `Logged in` and exits with code `0`, or prints `Not logged in` and exits with code `1`. Scripts and AI agents can use it to decide whether to log in first.

    Run `stacksync` on its own to see the welcome screen with the getting-started commands, and `stacksync -h` to list every command. `stacksync logout` logs this machine out.
  </Step>
</Steps>

## Keep the CLI up to date

The CLI keeps itself up to date. To update on demand, run `stacksync update`.

On version 1.0.10 or earlier, run `stacksync update` once; after that, updates are automatic.

## Uninstall

On macOS and Linux, remove the program and its saved login:

```bash
rm -rf ~/.local/lib/stacksync ~/.local/bin/stacksync ~/.stacksync
```

Then delete the line ending in `# stacksync CLI PATH` from `~/.zshrc`, `~/.zprofile`, `~/.bashrc` and `~/.profile`. If you installed with `STACKSYNC_INSTALL_DIR`, remove the `stacksync` link from that folder and the `lib/stacksync` folder next to it. On Windows, delete `%LOCALAPPDATA%\stacksync`, remove it from your user `PATH`, and delete the `.stacksync` folder in your user folder.

## Next steps

<Cards>
  <Card title="Build your first workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector" />

  <Card title="CLI command reference" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference" />
</Cards>

# Welcome to the Stacksync Developer Platform

> Build workflow connectors with the Stacksync CLI and CDK, and manage workspaces with the Stacksync API.

Source: https://docs.stacksync.com/developers

The Stacksync Developer Platform lets you extend Stacksync with your own code. With **workflow connectors**, you add actions for internal systems, proprietary applications or any API to Stacksync workflows. You build and test a connector on your machine, and Stacksync reviews, hosts and runs it once you deploy it.

👉 New here? [Install the CLI](/developers/getting-started-with-stacksync-cli/quickstart), then [build your first workflow connector](/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector).

## Stacksync CLI

The command-line tool that creates a connector project, runs it in your workspace while you develop, and deploys it.

<Cards>
  <Card title="Overview" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/overview" />

  <Card title="Quickstart" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/quickstart" />

  <Card title="Build your first workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector" />

  <Card title="Deploy a workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector" />

  <Card title="Host a private workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/host-a-private-workflow-connector" />

  <Card title="CLI command reference" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/cli-command-reference" />
</Cards>

## Stacksync CDK

The Python library you write a connector's modules with: their forms, dropdowns, actions, credentials, errors and context.

<Cards>
  <Card title="Workflow Connector Development Kit" href="/https/docs.stacksync.com/developers/stacksync-cdk/workflow-connector-development-kit" />

  <Card title="Build modules" href="/https/docs.stacksync.com/developers/stacksync-cdk/modules" />

  <Card title="Context and the /context endpoint" href="/https/docs.stacksync.com/developers/stacksync-cdk/context" />
</Cards>

## Stacksync API

The Stacksync API lets your own code manage the syncs, workflows, Genies and other resources of a workspace over HTTPS. The API Reference documents every operation, and is also published as an OpenAPI document.

<Cards>
  <Card title="API Reference" href="/https/docs.stacksync.com/api-reference" />
</Cards>

## For AI agents

Every page is also available as Markdown: add `.md` to its URL, for example [/developers/stacksync-cdk/modules.md](/developers/stacksync-cdk/modules.md). [/llms.txt](/llms.txt) lists every page. A connector project generated by the CLI includes `AGENTS.md` and a `guide/` folder, so a coding assistant follows the same rules that Stacksync checks at deployment.

# Context and the /context endpoint

> Write the context.md files that explain a workflow connector and its modules to Stacksync's AI, and read them back from the /context endpoints.

Source: https://docs.stacksync.com/developers/stacksync-cdk/context

Stacksync's AI builds and fixes workflows for users. To use your connector, it needs to know what each module does, what its inputs mean and what it returns. It learns this from the connector's `context.md` files, which the CDK serves at the `/context` endpoints.

A module with a clear `context.md` gets chosen, filled in and wired correctly by the AI. Write it for a capable colleague who has never seen your code: in the third person, concretely, with real field ids and real error messages.

Context is required. Stacksync refuses to deploy a connector while a required section is missing, empty or still contains `TODO`.

## Two files, two endpoints

| File                               | Endpoint                     | Describes                                                                                                                                              |
| ---------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `context.md` at the connector root | `GET /context`               | The connector: the system, its connection, its objects and the limits that apply to every module. Stacksync adds it in front of each module's context. |
| `modules/<module>/v<N>/context.md` | `GET /<module>/v<N>/context` | One version of one module. Most of the content goes here.                                                                                              |

Each module version has its own `context.md`, so `v2` can describe different inputs from `v1`. Update the file whenever you change the module.

## The endpoints

Both endpoints take no parameters and return the file's Markdown as a string inside JSON. The file is read on every request, so edits show up while `run` is running.

```bash
curl http://127.0.0.1:2323/context
```

```json
{
  "data": {
    "connector_context": "# Acme CRM\n\n## What this app is\nConnects to Acme CRM through its REST API at https://api.acme-crm.example.com/v1.\n..."
  }
}
```

```bash
curl http://127.0.0.1:2323/create_records/v1/context
```

```json
{
  "data": {
    "module_context": "# Create Records\n\n## What it does\nCreates one or more records of the chosen object...\n..."
  }
}
```

A missing file answers `404`:

```json
{
  "error": "context.md not found: create_records/v1",
  "data": { "resource": "context.md", "identifier": "create_records/v1" }
}
```

For the connector file the message is `context.md not found: connector (app-level)`.

## Connector context

Sections of the root `context.md`:

| Section                   | Required | Contents                                                                                                                         |
| ------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `## What this app is`     | Yes      | The system and the API it calls, with the base URL.                                                                              |
| `## Connection`           | Yes      | The `connection_app_type`, the exact keys read from it and what each holds.                                                      |
| `## Objects`              | Yes      | Every standard object, how the account's custom objects and custom fields are listed, and which operations each object supports. |
| `## App-wide conventions` | No       | Only what is true for every module, such as id formats or time zones.                                                            |
| `## App-wide limits`      | Yes      | Rate limits, page sizes and the error each limit produces.                                                                       |

Keep it short. Fields, examples and outputs of a module belong in the module's file.

```markdown
# Acme CRM

## What this app is
Connects to Acme CRM through its REST API at https://api.acme-crm.example.com/v1.

## Connection
A generic_api_credentials connection. `api_credentials` holds the API token, sent as
`Authorization: Bearer <token>`. A 401 means the token expired and the connection must be updated.

## Objects
Standard objects: contact, company, deal. Custom objects and custom fields are listed live from
GET /v1/schema and appear in every module's object dropdown. Deals cannot be deleted.

## App-wide limits
100 requests per minute; over it the API returns 429 with Retry-After, and the module waits and retries reads.
```

## Module context

Sections of `modules/<module>/v<N>/context.md`:

| Section                           | Required | Contents                                                                                                                                                                   |
| --------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `## What it does`                 | Yes      | The operation, the API call it makes and what it returns.                                                                                                                  |
| `## When to use it / when not to` | No       | When this module fits, and which module to use instead.                                                                                                                    |
| `## Connection`                   | Yes      | The connection the module uses and the keys it reads.                                                                                                                      |
| `## Inputs`                       | Yes      | One line per field: id, required or optional, type, allowed values or exact format, where a dropdown's options come from, and which fields appear after another is chosen. |
| `## Output`                       | Yes      | The shape of `data` and `metadata`.                                                                                                                                        |
| `## Limits & errors`              | Yes      | Hard limits, the exact error message for each, and how to avoid it.                                                                                                        |
| `## Prerequisites & order`        | No       | What must exist or happen first, such as "the company must exist before a contact is linked to it".                                                                        |
| Examples block                    | Yes      | At least one example. See below.                                                                                                                                           |

```markdown
# Create Records

## What it does
Creates one or more records of the chosen object with POST /v1/{object}s and returns the created
records as `data`, in input order, with their count in `metadata.affected_records`.

## When to use it / when not to
- Use when: a workflow creates new records.
- Don't use when: the record may already exist (use Upsert Records).

## Connection
The connector's generic_api_credentials connection; `api_credentials` holds the API token.

## Inputs
- `select_object` (required, string): the object to create. Options come from /content and list
  every standard and custom object. Choosing one reloads the form with that object's fields.
- `<object>s` (required, array): the records to create, one item per record, keyed by field id.
  `email` must be a valid address; `close_date` is YYYY-MM-DD.

## Output
`data` is `{"total", "successful", "failed", "results": [{"index", "status", "id" | "error"}]}`.

## Limits & errors
- At most 100 records per run -> "Maximum 100 records per request" -> split the input upstream.
- Unknown object -> "object not found: <name>".
```

Headings are matched without regard to case, and a trailing `##` is allowed (`## Inputs ##`).

## The examples block

Put worked examples between the exact lines `## EXAMPLES start ##` and `## EXAMPLES end ##`. Each example has a heading with the scenario, the filled-in form under `FORM DATA:`, and notes under `COMMENTS:`. At least one `FORM DATA:` is required.

````markdown
## EXAMPLES start ##

### Create one contact from the trigger

FORM DATA:
```json
{
  "summary": "Create one contact",
  "changes": [
    {
      "field_id": "select_object",
      "field_value": "contact",
      "reason": "The object to create; choosing it reloads the form with the contact fields.",
      "summary": "Object"
    },
    {
      "field_id": "contacts",
      "field_value": [{ "name": "{{ trigger_1.data.name }}", "email": "{{ trigger_1.data.email }}" }],
      "reason": "One record, keyed by the contact fields, with values from the trigger.",
      "summary": "One contact"
    }
  ]
}
```
COMMENTS:
`select_object` -> changing it reloads the records sub-form
`contacts` -> one item per record

## EXAMPLES end ##
````

* `changes` lists the fields to fill: `field_id`, the `field_value` to set, the `reason` and a short `summary`.
* Use single braces for JSON. Use double braces only for real references to another step, such as `{{ trigger_1.data.id }}`. The file is served as plain text, so don't escape them.

## Check your context

The [connector standard](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector#the-connector-standard) checks every `context.md`:

```bash
.venv/bin/python -m stacksync_cdk.connector_checks
```

| Problem                                                                                          | Fix                                                                                     |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| `context.md: the file is missing`                                                                | Add the file.                                                                           |
| `context.md: the "## Objects" section is missing` (or `is empty`)                                | Add the section with real content.                                                      |
| `context.md: still has TODO items; fill them in`                                                 | Replace every line that starts with `TODO`. Text inside `<!-- -->` comments is ignored. |
| `context.md: still has the placeholder text; write the context`                                  | Replace the template text.                                                              |
| `context.md: needs at least one example between "## EXAMPLES start ##" and "## EXAMPLES end ##"` | Add an example with `FORM DATA:`.                                                       |

The checks confirm the structure. Reviewers read the content: it must be accurate and specific to your system.

## Next steps

<Cards>
  <Card title="Deploy a workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector" />

  <Card title="Build modules" href="/https/docs.stacksync.com/developers/stacksync-cdk/modules" />
</Cards>

# Build modules

> Write a module's form, dropdowns and action with the Stacksync CDK: requests, responses, field types, connections, credentials and errors.

Source: https://docs.stacksync.com/developers/stacksync-cdk/modules

A module is a folder `modules/<module>/v<N>/` with three handler functions. Each file defines one function with the same name:

| File         | Function                                       | Stacksync calls it when                                                 |
| ------------ | ---------------------------------------------- | ----------------------------------------------------------------------- |
| `schema.py`  | `schema(request: Request) -> SchemaResponse`   | The step's form opens, and again when a field marked to reload changes. |
| `content.py` | `content(request: Request) -> ContentResponse` | A dropdown needs its options.                                           |
| `execute.py` | `execute(request: Request) -> ExecuteResponse` | The workflow runs the step.                                             |

`config.py` holds the [module settings](/developers/stacksync-cdk/workflow-connector-development-kit#module-settings-configpy) and `context.md` the [context](/developers/stacksync-cdk/context). Add a module with `stacksync workflow-module create "<name>"`.

## One module per operation

Build one module per **operation** and let the user choose the **object** in a dropdown inside it. This is the rule Stacksync reviewers check first.

```text
modules/
  create_records/    the object is a dropdown: Contact, Company, Deal, custom objects
  update_records/
  upsert_records/
  delete_records/
  get_records/
  list_records/
  send_email/        an action that is not record work gets its own module
```

* Never build `create_contact`, `create_company`, `create_deal`.
* The object dropdown lists every standard object and the account's custom objects. Fetch them from the API's metadata endpoint when it has one.
* Choosing the object rebuilds the form with that object's fields.
* Never special-case one object with its own code path, and never replace real fields with a free-text JSON body field.
* Put code that several modules use, such as the API client, in `utils/` and import it with `from utils.api_client import ...`.

## How the form works

1. The step opens. Stacksync calls `/schema` and shows the connection picker and the object dropdown.
2. The user picks a connection. Stacksync calls `/content` for the dropdown options.
3. The user picks an object. The field has `on_action: {"load_schema": true}`, so Stacksync calls `/schema` again with the choice in `form_data`.
4. The form shows that object's fields. When the workflow runs, Stacksync calls `/execute` with the values and the connection.

## schema()

Return the full form each time. It replaces the current one.

```python
from stacksync_cdk import Request, SchemaResponse

BASE_SCHEMA = {
    "metadata": {"workflows_module_schema_version": "1.0.0"},
    "fields": [
        {
            "id": "select_object",
            "type": "string",
            "label": "Select object",
            "validation": {"required": True},
            "ui_options": {"ui_widget": "SelectWidget"},
            "content": {"content_objects": [{"id": "objects"}]},
            "on_action": {"load_schema": True},
        }
    ],
}


def schema(request: Request) -> SchemaResponse:
    selected_object = request.form_data.get("select_object")
    if not selected_object:
        return SchemaResponse.from_schema(BASE_SCHEMA)

    item_fields = fields_for(selected_object, request.credentials)
    return SchemaResponse.from_schema(BASE_SCHEMA).add_record_array(selected_object, item_fields)
```

* `SchemaResponse.from_schema(dict)` takes a whole form. `SchemaResponse(fields, connections=None, ui_options=None, metadata=None)` builds one from a list of fields.
* `add_record_array(object_name, item_fields, min_items=1, label=None)` adds an array field `"<object_name>s"` whose rows hold `item_fields`, so one run can handle several records. For `contact`, `execute()` receives `contacts`.
* Every field needs `id` and `type`.
* Don't add a connection picker. The CDK adds it from `connection_app_type`.
* Never raise because the connection is missing. Return the base form.
* When the fields come from your API, set `requires_credentials_for_schema=True` in `config.py`.
* Keep `schema()` deterministic: the same `form_data` and connection give the same form.

### Field types

Use `"type": "string"` for almost every field, including numbers, dates and dropdowns. Users can then type a value or a reference to an earlier step, such as `{{ trigger_1.data.amount }}`. Convert the strings to real types in `execute()`. Only booleans, arrays and objects keep their own type.

| Input                  | Field                                                                                                                                                                                                                                                            |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Text                   | `{"id": "name", "type": "string", "label": "Name", "validation": {"required": True}}`                                                                                                                                                                            |
| Number, amount         | `{"id": "amount", "type": "string", "label": "Amount"}`                                                                                                                                                                                                          |
| Date                   | `{"id": "due_date", "type": "string", "label": "Due date", "description": "Format: YYYY-MM-DD"}`                                                                                                                                                                 |
| Checkbox               | `{"id": "active", "type": "boolean", "label": "Active", "default": False, "disable_replacement": True}`                                                                                                                                                          |
| Fixed dropdown         | `{"id": "priority", "type": "string", "label": "Priority", "ui_options": {"ui_widget": "SelectWidget"}, "choices": {"values": [{"value": "low", "label": "Low"}, {"value": "high", "label": "High"}]}, "validation": {"pattern": ".*"}}`                         |
| Dropdown from your API | `{"id": "owner", "type": "string", "label": "Owner", "ui_options": {"ui_widget": "SelectWidget"}, "content": {"content_objects": [{"id": "owners"}]}, "validation": {"pattern": ".*"}}`                                                                          |
| Several values         | `{"id": "tags", "type": "string", "label": "Tags", "description": "Comma-separated."}`                                                                                                                                                                           |
| JSON                   | `{"id": "config", "type": "string", "label": "Config", "ui_options": {"ui_widget": "CodeblockWidget", "ui_options": {"language": "json"}}, "validation": {"pattern": ".*"}}`                                                                                     |
| List of rows           | `{"id": "line_items", "type": "array", "label": "Line items", "default": [{}], "validation": {"required": True, "min_items": 1}, "items": {"type": "object", "default": {}, "fields": item_fields, "ui_options": {"ui_order": [f["id"] for f in item_fields]}}}` |
| Group                  | `{"id": "address", "type": "object", "label": "Address", "default": {}, "fields": sub_fields, "ui_options": {"ui_order": [f["id"] for f in sub_fields]}}`                                                                                                        |

Rules behind the table:

* Dropdowns use `"validation": {"pattern": ".*"}`, never `enum`. An `enum` rejects a value typed from an earlier step. Add `"required": True` next to the pattern when needed.
* An option is always `{"value": ..., "label": ...}`.
* Booleans need `"disable_replacement": True` to show as a checkbox.
* Arrays and objects need `ui_options.ui_order`.
* Leave out `validation` for optional fields.
* For update modules, make every field optional and show booleans as a dropdown with empty, `true` and `false`, so an untouched field never overwrites data. For upsert modules, add an optional `id` field that matches existing records.

### Reloading on change

| Field setting                                                                             | Effect                                                                                                                     |
| ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `"on_action": {"load_schema": True}`                                                      | Changing the field calls `/schema` again. Use it on the object dropdown and on any field that changes which fields appear. |
| `"on_action": {"load_content": True}` with `"reload_content_objects": [{"id": "tables"}]` | Changing the field reloads the listed dropdowns. The reloaded dropdown reads this field from `request.form_data`.          |

A field can have both. Example of a dropdown that depends on another:

```python
{"id": "schema_name", "type": "string", "ui_options": {"ui_widget": "SelectWidget"},
 "content": {"content_objects": [{"id": "schemas"}]},
 "on_action": {"load_content": True}, "reload_content_objects": [{"id": "tables"}],
 "validation": {"pattern": ".*"}}
```

## content()

```python
from stacksync_cdk import ContentResponse, Request

OBJECTS = [{"value": "contact", "label": "Contact"}, {"value": "company", "label": "Company"}]


def content(request: Request) -> ContentResponse:
    if not request.credentials:
        return ContentResponse()

    content_objects = {}
    for name in request.content_object_names:
        if name == "objects":
            content_objects["objects"] = OBJECTS + list_custom_objects(request.credentials)
        elif name == "owners":
            content_objects["owners"] = list_owners(request.credentials)
    return ContentResponse(content_objects)
```

* `request.content_object_names` lists the dropdown ids to fill in this call. Fill only those.
* Return `ContentResponse({id: [{"value": ..., "label": ...}]})`. `preview` is optional. The CDK adds the rest of the answer.
* `value` is what `execute()` receives. Keep it a stable id, not a display name.
* For long lists, return one page and mark that more exist: `ContentResponse().add("owners", options, has_next_page=True)`.
* Never raise. Without a connection, or when your API fails, return no options for that dropdown so the form still works. Set a timeout on every call.

## execute()

```python
from stacksync_cdk import ExecuteResponse, ManagedError, Request


def execute(request: Request) -> ExecuteResponse:
    selected_object = request.data.get("select_object")
    if not selected_object:
        raise ManagedError.validation_error("select_object is required.")

    records = request.data.get(f"{selected_object}s") or []
    if not records:
        raise ManagedError.validation_error(f"At least one {selected_object} is required.")

    results = [create_one(selected_object, to_api(record), request.credentials) for record in records]
    successful = sum(1 for result in results if result["status"] == "success")
    return ExecuteResponse(
        {"total": len(results), "successful": successful, "failed": len(results) - successful, "results": results},
        metadata={"affected_records": successful},
    )
```

* `request.data` holds the step's values, with references to earlier steps already resolved.
* Validate required inputs first, with clear messages.
* Convert strings back to real types (numbers, `"true"` and `"false"`, comma-separated lists) and drop empty values before calling your API.
* For several records, report each record's result and keep going when one fails.
* `ExecuteResponse(data, metadata=None, data_type=None)`. Later steps read `data` as `{{ MODULE.<step id>.output }}`, so keep its shape predictable. Returning a plain value also works: it becomes `data`.
* Set a timeout on every call. Retry reads, and a `429` after its `Retry-After`. Never retry a create, update or delete after a server error, because the first call may have succeeded.
* Keep no state between calls: no module-level caches, no global variables that change, no files on disk. The connector runs as several processes.
* Do nothing at import time: no network calls and no reading of the environment.

## What Stacksync sends

Each handler gets a `Request`:

| Property                       | Contents                                                                                    |
| ------------------------------ | ------------------------------------------------------------------------------------------- |
| `request.data`                 | `/execute`: the step's input values. `/schema` and `/content`: the request's `data` object. |
| `request.form_data`            | `/schema` and `/content`: the values entered so far. Empty when the form first opens.       |
| `request.content_object_names` | `/content`: the ids of the dropdowns to fill, such as `["objects"]`.                        |
| `request.credentials`          | The selected connection. Empty until the user picks one.                                    |
| `request.json`                 | The whole request body.                                                                     |

The bodies Stacksync sends:

```jsonc
// POST /<module>/v<N>/schema
{ "data": { "form_data": { "select_object": "contact" } }, "credentials": { … } }

// POST /<module>/v<N>/content
{ "data": { "form_data": { … }, "content_object_names": [ { "id": "objects" } ] }, "credentials": { … } }

// POST /<module>/v<N>/execute
{ "data": { "select_object": "contact", "contacts": [ { "name": "Ada" } ] },
  "credentials": { … },
  "workspace_id": "…", "workflow_id": "…", "workflow_module_instance_id": "…" }
```

The answers the CDK builds from your return values:

```jsonc
// schema
{ "data": { "schema": { "metadata": { … }, "fields": [ … ], "connections": { … } } } }

// content
{ "data": { "content_objects": [ { "id": "objects", "content_object_name": "objects",
    "data": [ { "value": "contact", "label": "Contact", "index": 0 } ],
    "pagination": { "data": {}, "has_next_page": false } } ] } }

// execute
{ "data": { … }, "metadata": { "affected_records": 1 } }
```

## Connections and credentials

`connection_app_type` in `stacksync.yml` sets the connection users choose for every module. The CDK adds the connection picker to each form, and Stacksync passes the chosen connection with each call. Users create connections in Stacksync under **Connections**. Credentials never appear in your code or settings.

| `connection_app_type`           | Use it when                                                                                                       | What `request.credentials` holds                                                                                 |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `generic_api_credentials`       | Default. Works for any system. The user pastes one value.                                                         | One key: `api_credentials`, a string. It can be an API key, a token, a connection string or JSON that you parse. |
| Your connector's own `app_type` | Stacksync has set up a dedicated connection type for your app, with named fields or OAuth. Ask Stacksync support. | That type's own fields.                                                                                          |
| `stacksync_user_api_key`        | The modules call the Stacksync API as the user.                                                                   | `api_key`: the user's Stacksync API key. The connection is private to the user who created it.                   |
| `stacksync_workspace_api_key`   | The modules call the Stacksync API for the workspace.                                                             | `api_key`: a workspace API key.                                                                                  |

No other value is accepted.

Reading credentials:

```python
token = request.credentials.get("api_credentials")       # generic_api_credentials
api_key = request.credentials.api_key                    # api_key or api_key_bearer
access_token = request.credentials.access_token          # OAuth: already refreshed by Stacksync
dsn = request.credentials.connection_string              # database connections
instance_url = request.credentials.get("instance_url")   # any other field by name
```

* `if request.credentials:` tells you whether a connection is selected.
* `request.credentials.value` is the whole credential object. `.token_type`, `.expires_at`, `.connection_app_type` and `.connection_id` are also available.
* Read exactly the keys of your connection type. A key that is always `None` means the code reads a name that the type doesn't have: with `generic_api_credentials`, everything is in `api_credentials`.
* When a key is missing, raise an error that shows the expected shape with a fake value, so the user knows what to fix:

```python
if not request.credentials.get("api_credentials"):
    raise ManagedError.validation_error(
        "This connection has no API key. Create a generic_api_credentials connection whose value looks like this:\n"
        '{"api_credentials": "your-api-key"}'
    )
```

* Never log credentials, return them, or put them in an error message.
* Describe the connection and the exact keys you read in the `## Connection` section of every `context.md`.

## Errors

Raise `ManagedError` for every failure the user can act on. Its message is shown in the step's result in Stacksync.

| Raise                                                              | Status | Example                                                                    |
| ------------------------------------------------------------------ | ------ | -------------------------------------------------------------------------- |
| `ManagedError.validation_error(message, data=None, metadata=None)` | 400    | A required input is missing or has the wrong format.                       |
| `ManagedError.unauthorized(message)`                               | 401    | The API rejected the credentials.                                          |
| `ManagedError.forbidden(message)`                                  | 403    | The credentials lack a permission.                                         |
| `ManagedError.not_found(resource, identifier)`                     | 404    | The record doesn't exist. Message: `"<resource> not found: <identifier>"`. |
| `ManagedError.server_error(message)`                               | 500    | The API failed.                                                            |
| `ManagedError(message, data={}, metadata={}, status_code=400)`     | Any    | Any other case. Use `data` to return partial results.                      |

The answer is `{"error": "<message>"}` with the status, plus `data` and `metadata` when you pass them. For example, a missing input answers `400` with `{"error": "select_object is required."}`. Any other exception becomes a `500` with the exception's text, so don't wrap whole handlers in `try`/`except` only to hide errors, and never report success when the API failed.

## Next steps

<Cards>
  <Card title="Context and the /context endpoint" href="/https/docs.stacksync.com/developers/stacksync-cdk/context" />

  <Card title="Deploy a workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector" />
</Cards>

# Workflow Connector Development Kit

> The Stacksync CDK: how a workflow connector project is laid out, its settings, module versions, CDK versions and the endpoints a connector serves.

Source: https://docs.stacksync.com/developers/stacksync-cdk/workflow-connector-development-kit

The Workflow Connector Development Kit (CDK) is the Python library you build workflow connectors with. You write each module as a few plain functions. The CDK finds them on disk and serves them as the endpoints Stacksync calls when someone builds or runs a workflow.

The [Stacksync CLI](/developers/getting-started-with-stacksync-cli/overview) creates the project, runs it on your machine and deploys it. New to both? Start with [Build your first workflow connector](/developers/getting-started-with-stacksync-cli/build-your-first-workflow-connector).

## Concepts

| Term                   | Meaning                                                                                                        |
| ---------------------- | -------------------------------------------------------------------------------------------------------------- |
| **Workflow connector** | A project that connects Stacksync to one system. Identified by its `app_type`, such as `acme_crm`.             |
| **Module**             | One step a workflow can run, such as **Create records**. A connector has one or more.                          |
| **Module version**     | A folder `modules/<module>/v<N>/`. Workflows keep using the version they were built with.                      |
| **Connection**         | The credentials a user stores in Stacksync for your system. Stacksync passes them to your module on each call. |
| **Context**            | The `context.md` files that explain the connector and each module to Stacksync's AI.                           |

## Install

The CDK is installed from GitHub through the project's `requirements.txt`. The CLI installs it for you when you run the connector.

```text
git+https://github.com/stacksyncdata/stacksync-workflows-cdk.git@v1#subdirectory=lib
```

* Package: `stacksync-cdk`. Import: `stacksync_cdk`. It is not published on PyPI.
* Python 3.10 or later on your machine. Deployed connectors run on Python 3.11.
* Dependencies: Flask 3.1.3 or later, Pydantic 2 and PyYAML 6.

## Project layout

`stacksync workflow-connector create "Acme CRM"` creates:

```text
workflows-app-acme-crm/
├── stacksync.yml            connector settings
├── context.md               the connector's context for Stacksync's AI (required)
├── main.py                  entry point: app = create_app(...)
├── requirements.txt         the CDK and your dependencies
├── AGENTS.md                rules for AI coding assistants
├── CLAUDE.md                points Claude Code to AGENTS.md
├── README.md
├── LICENSE
├── .gitignore
├── guide/                   architecture, building, schema, content, execute and context guides
├── utils/                   code shared by modules, such as an API client
└── modules/
    └── create_records/      a sample module
        └── v1/
            ├── schema.py    the input form
            ├── content.py   dropdown options
            ├── execute.py   the action
            ├── config.py    module name, description and settings
            └── context.md   the module's context (required)
```

Rules for the project folder:

* Modules are found on disk. Add a folder `modules/<module>/v<N>/` and the module exists. Nothing is listed in `stacksync.yml`.
* Module folder names are lowercase words joined by underscores, such as `create_records`. Version folders are `v` followed by digits, such as `v1`.
* `main.py` must keep defining `app`. Stacksync serves that object once deployed.
* The connector root may contain only `main.py`, `stacksync.yml`, `requirements.txt`, `context.md`, `README.md`, `LICENSE`, `AGENTS.md`, `CLAUDE.md`, `modules/`, `utils/`, `tests/`, `guide/`, `pyproject.toml`, `uv.lock`, `requirements-dev.txt`, `conftest.py`, `pytest.ini`, and hidden files. A `Dockerfile` or `gunicorn_config.py` is allowed but replaced by Stacksync's own. Anything else blocks the deployment. Keep scripts and notes outside the connector folder.

## stacksync.yml

```yaml
deployment_settings:
  workspace: "1234"
  region: "usnv"

app_settings:
  app_type: "acme_crm"
  app_name: "Acme CRM"
  app_type_display: "Acme CRM"
  app_icon_svg_url: "https://www.example.com/acme-crm-logo.svg"
  app_description: "Create, update and look up Acme CRM records."
  connection_app_type: "generic_api_credentials"
```

| Field                              | Required | Description                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `deployment_settings.workspace`    | Yes      | Your workspace: `run` adds the temporary connector to it, and `deploy` submits the connector from it. `create` fills it with your default workspace. You must be able to deploy to it. It doesn't limit who can use the deployed connector: see [Who can use a deployed connector](/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector#who-can-use-a-deployed-connector). |
| `deployment_settings.region`       | Yes      | Where `run` registers the temporary connector: `usnv` (United States) or `besg` (Europe). Use your workspace's default region. Deployed connectors are available in every region.                                                                                                                                                                                                                |
| `app_settings.app_type`            | Yes      | The permanent id of the connector: lowercase letters and digits in words joined by single underscores, at most 24 characters, unique across Stacksync. It is part of every module id. Never change it after the first deployment.                                                                                                                                                                |
| `app_settings.app_name`            | Yes      | The name shown in the workflow builder.                                                                                                                                                                                                                                                                                                                                                          |
| `app_settings.app_type_display`    | Yes      | The display name of the app. Usually the same as `app_name`.                                                                                                                                                                                                                                                                                                                                     |
| `app_settings.app_icon_svg_url`    | Yes      | A stable public `https://` link to an SVG logo. It must answer directly (no redirect), be at most 512 KiB, start with `<svg` and contain no script.                                                                                                                                                                                                                                              |
| `app_settings.app_description`     | Yes      | One sentence on what the connector does.                                                                                                                                                                                                                                                                                                                                                         |
| `app_settings.connection_app_type` | Yes      | The connection users choose for every module. See [Connections and credentials](/developers/stacksync-cdk/modules#connections-and-credentials).                                                                                                                                                                                                                                                  |
| `app_settings.options`             | No       | Extra app settings, passed through as they are.                                                                                                                                                                                                                                                                                                                                                  |

Never put credentials in `stacksync.yml` or in code. Users store them in a Stacksync connection.

## Module settings: config.py

Each module version has a `config.py` that exports `CONFIG`. Every field has a default, so set only what differs:

```python
from stacksync_cdk import ModuleConfig

CONFIG = ModuleConfig(
    module_name="Create Records",
    module_description="Create one or more records of any object type.",
)
```

| Field                                 | Default                       | Description                                                                                                         |
| ------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `module_name`                         | The folder name in title case | Name in the workflow builder.                                                                                       |
| `module_description`                  | `""`                          | One-line description.                                                                                               |
| `module_category`                     | `"action"`                    | Must stay `"action"`. Other values work locally but the deployment fails.                                           |
| `supports_action`                     | `True`                        | The module runs as a workflow action.                                                                               |
| `supports_trigger`                    | `False`                       | Reserved. Connector triggers are not available yet.                                                                 |
| `requires_credentials_for_schema`     | `False`                       | Set `True` when `schema()` calls your API, so Stacksync sends the connection to `/schema`.                          |
| `module_icon_svg_url`                 | None                          | The module's icon. Defaults to the connector's icon.                                                                |
| `on_content_update`                   | `True`                        | Stacksync rebuilds the form with the step's values before it runs. Keep it on for any form that changes with input. |
| `on_content_initialized`              | `True`                        | Load dropdown options when the form first opens.                                                                    |
| `on_create`, `on_update`, `on_delete` | `False`                       | Reserved for platform hooks. Leave them off.                                                                        |

## Module versions

The module id is `<app_type>-<module>-<N>`, for example `acme_crm-create_records-1`.

* Start every module at `v1`.
* Edit `v1` in place for changes that keep existing workflows working: a new optional field, a bug fix, a clearer label.
* Add `modules/<module>/v2/` next to `v1` for a breaking change to inputs or behavior. Both versions are served, so workflows built on `v1` keep working and new workflows use `v2`.
* Never delete a deployed version: Stacksync refuses the deployment.
* The name, description, icon and settings of a version are recorded the first time it is deployed. Changes to them later don't appear. Ship such a change in a new version.

## CDK versions

The CDK follows semantic versioning. The `@ref` in `requirements.txt` decides which release you get:

| Reference | Effect                                                                                        |
| --------- | --------------------------------------------------------------------------------------------- |
| `@v1`     | The latest `1.x` release. Recommended: fixes and new features arrive, breaking changes don't. |
| `@v1.1.1` | Exactly this release.                                                                         |
| `@v2`     | The next major version, when you are ready to move to it.                                     |
| `@prod`   | The newest unreleased changes.                                                                |

Change it with `stacksync workflow-connector cdk <ref>`. `run` reinstalls the moving references (`@v1`, `@v2`, `@prod`) each time it starts and prints the installed version. Deployed connectors install the reference in `requirements.txt` when they are built. The current release is 1.1.1. Deployments need 1.1.0 or later.

## The library

Everything you need is imported from `stacksync_cdk`:

| Name                                                                                | What it is                                                                                       |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `create_app(root)`                                                                  | Builds the connector's web app from the project folder. Used by `main.py`.                       |
| `Request`                                                                           | What every handler receives: `data`, `form_data`, `content_object_names`, `credentials`, `json`. |
| `Credentials`                                                                       | The connection, read from `request.credentials`.                                                 |
| `SchemaResponse`                                                                    | The return value of `schema()`.                                                                  |
| `ContentResponse`                                                                   | The return value of `content()`.                                                                 |
| `ExecuteResponse`                                                                   | The return value of `execute()`.                                                                 |
| `ManagedError`                                                                      | An error with a message for the user and an HTTP status.                                         |
| `ModuleConfig`                                                                      | The module settings in `config.py`.                                                              |
| `validate_and_parse_json`, `validate_array`, `validate_object`, `parse_str_to_json` | Turn JSON text from a form field into Python values. They raise `ValueError` on bad input.       |

How to use them is covered in [Build modules](/developers/stacksync-cdk/modules).

`create_app` refuses to start without `app_type`. It still starts when the connector breaks the connector standard, and logs each problem as `Must fix before deploying: …`. Logging is set to `INFO` unless you configure it. Use Python's `logging` module in handlers, and never log credentials.

## Endpoints

The CDK serves these endpoints. Stacksync calls them, so you never write them yourself. You can call them on the local server that `run` starts, which helps with testing.

| Endpoint                      | Purpose                                                                                                  |
| ----------------------------- | -------------------------------------------------------------------------------------------------------- |
| `POST /<module>/v<N>/schema`  | The module's input form, from `schema()`.                                                                |
| `POST /<module>/v<N>/content` | Dropdown options, from `content()`.                                                                      |
| `POST /<module>/v<N>/execute` | Runs the step, with `execute()`.                                                                         |
| `GET /<module>/v<N>/context`  | The module's `context.md`. See [Context](/developers/stacksync-cdk/context).                             |
| `GET /context`                | The connector's `context.md`.                                                                            |
| `GET /app-config`             | The connector's settings and every module with its settings. Stacksync reads it to register the modules. |
| `GET /health`                 | `{"data": {"status": "healthy"}}`                                                                        |

Every answer is JSON with a `data` key. Errors answer `{"error": "<message>"}` with the HTTP status of the error. The request and response bodies of each endpoint are described in [Build modules](/developers/stacksync-cdk/modules#what-stacksync-sends).

```bash
curl http://127.0.0.1:2323/app-config
curl http://127.0.0.1:2323/create_records/v1/context
```

## Limits

| Limit                         | Value                                                                |
| ----------------------------- | -------------------------------------------------------------------- |
| Request time, deployed        | About 6 minutes per call. Longer calls are cut off.                  |
| Request time, during `run`    | 10 seconds per call.                                                 |
| `app_type`                    | 24 characters.                                                       |
| Module versions per connector | 200.                                                                 |
| Deployment package            | Less than 32 MiB, at most 5,000 files, at most 100 MiB uncompressed. |

## Next steps

<Cards>
  <Card title="Build modules" href="/https/docs.stacksync.com/developers/stacksync-cdk/modules" />

  <Card title="Context and the /context endpoint" href="/https/docs.stacksync.com/developers/stacksync-cdk/context" />

  <Card title="Deploy a workflow connector" href="/https/docs.stacksync.com/developers/getting-started-with-stacksync-cli/deploy-a-workflow-connector" />
</Cards>

# Electronic Data Interchange

Source: https://docs.stacksync.com/edi

<Callout type="info">
  Coming Soon!

  In the meantime, if you have any questions reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com)
</Callout>

# Access and permissions

> Share every EOS resource with the people and groups who need it, using clear management roles.

Source: https://docs.stacksync.com/enterprise-os/access-and-permissions

EOS lets teams collaborate on applications, databases, inference keys, and storage buckets while keeping each resource's access explicit. Resource Owners share access with users or groups from **Users and Access**.

There are three distinct decisions: who belongs to the workspace, who may manage a resource, and who may use a deployed application. Keeping these separate lets an administrator invite a team without automatically exposing every application's source or every database's credentials.

## Resource roles

| Role         | Intended use                           | Capabilities                                                                                                                                                                                                      |
| ------------ | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Owner**    | Resource administrators                | Configure the resource, manage sharing, and delete it.                                                                                                                                                            |
| **Editor**   | Builders and operators of the resource | Modify supported configuration and access permitted source, credentials, file contents, or diagnostic logs. Cannot manage sharing or delete the resource. Some product administration controls remain Owner-only. |
| **Viewer**   | People who need visibility             | List the resource and read approved metadata. Cannot read secret variables, credentials, source contents, file contents, or diagnostic logs.                                                                      |
| **Operator** | End users of an application            | Use an app when its runtime policy permits. Does not grant management access through the EOS UI, CLI, or API.                                                                                                     |

Operator is for application use, not a way to obtain database or inference credentials. Storage grants use Owner, Editor, or Viewer.

Workspace Admin status does not automatically make someone a resource Owner. Access checks apply to CLI and API requests as well as the dashboard.

## Custom application roles

An application's `app_role` is separate from its `eos_resource_role`. Default app roles are Admin, Editor, and Viewer, and owners can replace them with custom roles such as Accountant. Your backend enforces their meaning; an app Admin does not become an EOS Owner or workspace Admin.

An app member without an infrastructure grant receives EOS Operator access for app use. App access tokens allow a backend to manage its own app memberships and custom roles without granting infrastructure administration. See [app roles, users, and access tokens](/enterprise-os/applications/roles-and-app-tokens).

## Share a resource

1. Open the application, database, inference key, or bucket.
2. Select **Users and Access**. You must be an Owner to manage sharing.
3. Select **Add Users** for an individual or pending invitee, or **Add Groups** for a team.
4. Choose the recipient and role, then confirm the grant.
5. Check the resulting user or group entry.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/bucket-users-and-access.webp" alt="The Users and Access tab manages direct user grants and group grants separately; the same sharing pattern applies across EOS resources." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Users and Access tab manages direct user grants and group grants separately; the same sharing pattern applies across EOS resources.</figcaption></figure>
</div>

Pending invitees receive their assigned resource access only after accepting a valid workspace invitation. Expired or revoked invitations do not grant access.

## Direct and inherited access

The **highest applicable role wins** across direct and group grants. For example, a person with direct Viewer access and group Editor access has Editor access.

Removing a direct grant does not remove access inherited through a group. Removing a group grant affects everyone who relies on that group for this resource. Removing someone from a group affects all resources shared with that group, while their other grants remain in effect.

At least one direct Owner must remain on a resource. Keep ownership with people who can maintain sharing and manage its lifecycle.

## Share from the CLI

Resolve exact resource and recipient IDs before granting access:

```sh
eos workspace users --json
eos workspace groups --json
eos app list --json
eos access list apps APP_ID --json
eos access grant apps APP_ID group GROUP_ID operator
eos access grant databases DATABASE_ID user USER_ID editor
eos access grant storage BUCKET_ID user USER_ID viewer
```

Resource kinds are `apps`, `databases`, `inference`, and `storage`. Use `invitation` instead of `user` when granting a pending invitation. Granting again with a different role changes the existing grant.

```sh
eos access revoke apps APP_ID group GROUP_ID
```

Use returned IDs rather than guessing them. App project names are accepted by the `eos app share` shortcut, but `eos access` uses the numeric app ID:

```sh
eos app share partner-portal teammate@example.com viewer
```

## Protect application access separately

The app's runtime policy can admit people beyond its management grants. **All workspace members** admits internal workspace members automatically, while **Specific members** requires an applicable explicit grant. See [managed authentication](/enterprise-os/applications/managed-authentication) before using resource grant removal as a way to revoke app use.

Resource sharing also does not rotate credentials previously copied into applications. Rotate or revoke database, inference, or storage credentials separately when your access change requires it.

# Budgets and request logs

> Set recurring AI allowances, follow request costs, and manage the lifecycle of inference keys.

Source: https://docs.stacksync.com/enterprise-os/ai-inference/budgets-and-logs

Make AI usage visible and controllable for each application. Every inference key has a spending limit and reset schedule, with request-level diagnostics for the people authorized to operate it.

Open **AI inference → your key → Details** to see its status, spending limit, spending this period, reserved allowance, remaining allowance, and next reset.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/inference-details.webp" alt="Inference key details show the budget, usage, reserved allowance, and reset schedule." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Inference key details show the budget, usage, reserved allowance, and reset schedule.</figcaption></figure>
</div>

## Set an allowance

Choose a USD limit and a recurring interval in days, weeks, or months when creating the key. A limit of zero blocks requests. Resets are anchored to the key's creation time in UTC; unused budget does not roll over.

Use **Edit key** to change its name or spending limit. Changing the limit does not reset spending. The reset schedule is fixed after creation; create a new key if you need a different schedule.

```sh
eos inference keys list --json
eos inference keys update KEY_ID --name 'Support assistant' --limit 150 --every 1 --unit months
```

Use the key's existing schedule in the update command.

## Understand reservations

Before admitting a request, EOS reserves allowance to cover it. The final charge is reconciled after completion. This means a key can need more available allowance than a request ultimately costs, particularly for models with large context capacity.

**Reserved for requests** is allowance held for pending or unreconciled requests. Do not treat a missing log entry or interrupted response as free usage. Unconfirmed usage retains its reservation, including across a reset, until reconciled.

## Inspect request logs

Open **Request logs** and refresh after a request. Logs are recorded asynchronously and include the request's model, status, token counts, cache information, cost, and duration. Prompts and response contents are not stored in these logs.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/inference-request-logs.webp" alt="Request logs show model, HTTP status, token usage, cost, and duration without retaining prompts or responses." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Request logs show model, HTTP status, token usage, cost, and duration without retaining prompts or responses.</figcaption></figure>
</div>

```sh
eos inference logs KEY_ID --json
eos inference logs KEY_ID --before CURSOR --json
```

Use the returned `next_cursor` to retrieve older entries. Displayed currency is rounded to two decimals, so a very small charge can appear as `$0.00`; API values retain finer precision. Treat monetary API values as decimals when doing calculations.

Workspace Admins can inspect the workspace usage ledger with `eos inference usage`. Consumed usage remains recorded even when a key is deleted or its budget resets.

## Revoke or delete a key

**Revoke key** stops new requests and retains request history; in-flight requests can finish. Revocation is irreversible. **Delete key** also removes the key from lists and removes access to its details and logs. Consumed workspace usage is retained.

```sh
eos inference keys revoke KEY_ID
eos inference keys delete KEY_ID
```

Only use these actions when you intend to stop the applications using that key. Create and configure a replacement first if they need uninterrupted access.

# Connect an AI application

> Call AI models from your backend with an EOS inference key and a current model ID.

Source: https://docs.stacksync.com/enterprise-os/ai-inference/connect

Use an EOS inference key to make model requests from your application's backend. Each request specifies a model from the current catalog, so you can change models without replacing the application's key, provided the workspace policy permits the new model.

## Configure the client

| Setting              | Value                                                 |
| -------------------- | ----------------------------------------------------- |
| API base URL         | `https://eos.stacksync.com/api/inference/v1`          |
| Chat completion path | `/chat/completions`                                   |
| Authentication       | `Authorization: Bearer` followed by the inference key |
| Model                | An exact ID from the current available model catalog  |

Keep the key in a server-side variable such as `STACKSYNC_AI_KEY`, and the selected model in `STACKSYNC_AI_MODEL`. Inference requests use the inference key, not your EOS CLI management token. The key supplies its workspace context; inference calls do not require a workspace header.

## Use a chat-completions-compatible SDK

For a Python client using the OpenAI-compatible interface:

```python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["STACKSYNC_AI_KEY"],
    base_url="https://eos.stacksync.com/api/inference/v1",
)

result = client.chat.completions.create(
    model=os.environ["STACKSYNC_AI_MODEL"],
    messages=[{"role": "user", "content": "Draft a friendly partner welcome message."}],
    max_tokens=256,
)
print(result.choices[0].message.content)
```

Install the SDK used by your application, and select a model that supports the request's features. Supported request features include text chat, function tools, JSON output options, reasoning, and streaming, subject to the selected model. This endpoint does not provide embeddings, audio, image generation, or provider routing overrides.

## Call the API directly

With the key and model supplied securely in your environment:

```sh
jq -n --arg model "$STACKSYNC_AI_MODEL"   '{model:$model,messages:[{role:"user",content:"Draft a partner welcome message."}],max_tokens:256}' |
  curl --fail-with-body     https://eos.stacksync.com/api/inference/v1/chat/completions     -H "Authorization: Bearer $STACKSYNC_AI_KEY"     -H 'Content-Type: application/json' --data-binary @-
```

Set `stream: true` for a server-sent events response. Specify `max_tokens` or `max_completion_tokens` to control the requested output limit rather than relying on the endpoint default.

## Try a request from the CLI

```sh
eos inference models
eos inference chat "$STACKSYNC_AI_MODEL" --prompt 'Draft a partner welcome message.' --max-tokens 256
eos inference chat "$STACKSYNC_AI_MODEL" --prompt 'Draft a partner welcome message.' --max-tokens 256 --stream
```

`eos inference chat` reads `STACKSYNC_AI_KEY` from your environment. Management commands such as creating or sharing keys still use your EOS sign-in.

## Handle failures

| Response      | What to check                                                                                                       |
| ------------- | ------------------------------------------------------------------------------------------------------------------- |
| **401**       | The key may be invalid or revoked, or its owner may no longer have access.                                          |
| **402**       | Available allowance is insufficient for the request's reservation. Inspect spending and pending reservations.       |
| **429**       | Model capacity is busy; retry with backoff.                                                                         |
| **502 / 503** | A model or inference service may be unavailable. Avoid blindly repeating a paid request after an ambiguous failure. |

If a model is unavailable, refresh the catalog and check the workspace's allowed-model policy. Use [request logs](/enterprise-os/ai-inference/budgets-and-logs) to inspect status, cost, tokens, and duration.

# AI inference

> Give applications one API for AI models, with spending controls and request visibility built in.

Source: https://docs.stacksync.com/enterprise-os/ai-inference

Build AI into business applications without managing a separate integration and credential for every model provider. EOS inference keys give applications access to the available model catalog through one API.

Give teams room to experiment with AI while keeping model access and spending under control. Separate keys and budgets let you distinguish an early pilot from a tool the department uses every day.

**A key is not tied to a single model.** Each request chooses a model ID. By default, keys can use all models available to the workspace. The catalog is updated regularly, and workspace Admins can restrict which models their team may use in **Workspace settings → AI Settings**.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/inference-list.webp" alt="AI inference keys in the Stacksync EOS workspace, with spending limits, reset schedules, and status." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>AI inference keys in the Stacksync EOS workspace, with spending limits, reset schedules, and status.</figcaption></figure>
</div>

## Create an inference key

1. Open **AI inference → API keys**.
2. Select **Create API key** and give it a name that identifies the app or purpose.
3. Set a spending limit in USD and a reset schedule.
4. Create the key and store its value securely. The complete key is shown only once.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/inference-create.webp" alt="Create an inference key with a name, USD spending limit, and recurring reset schedule." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Create an inference key with a name, USD spending limit, and recurring reset schedule.</figcaption></figure>
</div>

For example, give an experimental assistant a smaller allowance and a production support assistant its own key and budget. Separate keys make usage easier to understand and let you revoke one application's access independently.

```sh
eos inference keys create 'Support assistant' --limit 100 --every 1 --unit months --json
```

This command returns the secret key value. Capture the response privately and supply the key to your application as a server-side variable.

## Choose a model

Open the **Models** tab to browse the catalog. Search by model name and filter by provider. Review model IDs, context capacity, and the displayed customer-facing prices before choosing a model for your application.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/inference-models.webp" alt="The Models tab provides a searchable catalog with model IDs, context lengths, and pricing. Availability changes over time." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Models tab provides a searchable catalog with model IDs, context lengths, and pricing. Availability changes over time.</figcaption></figure>
</div>

Use the exact current model ID:

```sh
eos inference models
eos inference models --provider OpenAI --search gpt
```

A provider's presence and the model list can change. Use live discovery rather than copying a model name from an old screenshot. A workspace model restriction applies across its inference keys, so model selection is governed centrally.

## Share and operate AI resources

Open a key to inspect its allowance and request logs. The key's Owner manages sharing through **Users and Access**. Sharing a key resource lets authorized teammates manage or inspect it according to their role; it does not reveal the original secret key value.

<Cards>
  <Card title="Connect an AI application" description="Use the API, a compatible SDK, or the CLI." href="/https/docs.stacksync.com/enterprise-os/ai-inference/connect" />

  <Card title="Budgets and request logs" description="Understand spending, reservations, resets, and diagnostics." href="/https/docs.stacksync.com/enterprise-os/ai-inference/budgets-and-logs" />

  <Card title="Workspace model policy" description="Choose the models your team can access." href="/https/docs.stacksync.com/enterprise-os/workspace-settings" />
</Cards>

# Connect resources to an app

> Combine managed PostgreSQL, AI inference, and private file storage in a single application.

Source: https://docs.stacksync.com/enterprise-os/applications/connect-resources

EOS resources work together through your application's server-side configuration. A partner portal can store its records in PostgreSQL, send model requests with an inference key, and upload documents to a storage bucket.

Create resources in the intended workspace, then configure your app with the credentials for those resources. A dashboard sharing grant lets a teammate manage a resource; your running application connects using its database credentials or scoped API key.

| Resource            | What the app receives                                | How it connects                             |
| ------------------- | ---------------------------------------------------- | ------------------------------------------- |
| PostgreSQL database | Dedicated connection string or connection parameters | Standard PostgreSQL driver or ORM.          |
| AI inference        | Inference API key and selected model ID              | EOS chat-completions API or compatible SDK. |
| Storage bucket      | Bucket API key with required scopes                  | EOS storage API or CLI file commands.       |

## 1. Provision the resources

Use the dashboard's **Create database**, **Create API key**, and **Create bucket** actions, or the CLI:

```sh
eos workspace current
eos database create 'Partner portal production' --json
eos inference keys create 'Partner portal AI' --limit 25 --every 1 --unit months --json
eos storage buckets create 'partner-portal-files' --region EU --json
```

Database and key creation can return credentials. Capture those responses privately rather than in shared logs. Give each app its own credentials so you can manage its access and spending independently.

For storage, create a key for the returned bucket ID:

```sh
eos storage keys create BUCKET_ID 'Portal backend' --scopes read,write,list
```

Add `delete` only if the application needs to remove files. AI and storage key values are shown once at creation; sharing the resource later does not reveal the original key.

## 2. Make the application read its configuration

Choose clear variable names, for example:

```text
DATABASE_URL
STACKSYNC_AI_KEY
STACKSYNC_AI_MODEL
STORAGE_API_KEY
```

Use project-specific names when several projects share your development environment. Read the values in the backend; never place secret values in public frontend environment variables.

A Node.js application might read `process.env.DATABASE_URL` when initializing its PostgreSQL client. Its AI client uses `STACKSYNC_AI_KEY` and the EOS inference base URL. Its storage client sends `STORAGE_API_KEY` as a bearer credential to the storage API.

## 3. Supply the variables when deploying

With values already loaded securely in your shell environment:

```sh
eos deploy --dry-run --project=partner-portal   "--variable=DATABASE_URL=$DATABASE_URL"   "--variable=STACKSYNC_AI_KEY=$STACKSYNC_AI_KEY"   "--variable=STACKSYNC_AI_MODEL=$STACKSYNC_AI_MODEL"   "--variable=STORAGE_API_KEY=$STORAGE_API_KEY"
```

After reviewing the dry run, run the same command without `--dry-run`. A dry run does not persist configuration. Keep shell tracing off when passing secrets. You can also edit the variable JSON in the app's **Deployments** tab and deploy a new version.

## 4. Verify the complete workflow

Open the app and exercise a representative action: create a record, make an AI request, and upload a file. Check the database table, inference request log, and bucket file list in EOS. Then review the app's [managed authentication](/enterprise-os/applications/managed-authentication) and share it with its intended users.

See [database connections](/enterprise-os/databases/connect-and-query), [AI integration](/enterprise-os/ai-inference/connect), and [storage API keys](/enterprise-os/storage/api-access) for resource-specific instructions.

# Custom domains

> Serve an EOS application's interface and API from a hostname you own, with DNS verification and managed HTTPS.

Source: https://docs.stacksync.com/enterprise-os/applications/custom-domains

Give colleagues and customers an address they recognize, such as `portal.example.com`. A custom domain connects to an existing EOS application, so its interface, API routes, and assets can share that address without redeploying the app to another hosting service.

## Before you start

You need **Owner** access to the application, a claimed EOS workspace, and permission to edit DNS records for your domain. [Claim a guest workspace](/enterprise-os/guest-workspaces) before adding a custom domain.

Start with a subdomain such as `portal.example.com`. Your existing DNS provider can continue managing the domain. Using the root address, such as `example.com`, requires a DNS provider that supports a suitable ALIAS record or CNAME flattening. Do not copy an IP address from a DNS lookup into an A record as a substitute.

Each hostname belongs to one EOS application. An app can have up to 5 custom domains. Different apps can use different hostnames under the same domain, for example `portal.example.com` and `reports.example.com`.

## Add the domain

1. Open the workspace containing your application.
2. Select **Applications → your application → Custom Domains**.
3. Select **Add custom domain** to open the setup dialog. For an address such as `example.com`, select **Use root domain**. Then enter the hostname, for example `portal.example.com`. Omit `https://`, a port, and any path. Wildcards such as `*.example.com` are not supported by this flow. Use punycode for an internationalized hostname.
4. Select **Add domain**.
5. Use the copy icon beside each DNS name and value to copy the records into your DNS provider.
6. Select **Done** to close the dialog. Verification continues automatically. The domain appears in the table with a **Pending** or green **Connected** badge.

Use the domain’s actions menu → **Edit** to reopen its DNS records. Edit shows the existing hostname and setup instructions; to change the hostname, delete it and add the new one.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/app-custom-domains.png" alt="The Custom Domains tab in the Stacksync EOS example workspace shows the domain table, verification status, and available actions for a deployed app." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Custom Domains table displays the latest status for each app domain. Copy the exact values from your own EOS workspace.</figcaption></figure>
</div>

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/app-custom-domain-setup.png" alt="The custom domain setup dialog shows DNS names, copy icons, and verification guidance. The verification value is concealed." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Copy the DNS records from the setup dialog, then select Done.</figcaption></figure>
</div>

EOS displays full DNS names. Many DNS editors append your zone automatically. For the zone `example.com`, use the short Name/Host values below if your provider does this. Entering the full name in that editor would incorrectly create a name such as `_eos-domain.portal.example.com.example.com`.

| Type                | Full DNS name                                    | Name/Host when your provider appends `example.com` | Value/Data                                                                        |
| ------------------- | ------------------------------------------------ | -------------------------------------------------- | --------------------------------------------------------------------------------- |
| TXT                 | `_eos-domain.portal.example.com`                 | `_eos-domain.portal`                               | The complete unique verification value displayed by EOS, including `eos-domain=`. |
| CNAME               | `portal.example.com`                             | `portal`                                           | The target displayed by EOS, normally `customers.stacksync.app`.                  |
| TXT, when requested | The additional validation name displayed by EOS. | Follow your provider's naming convention.          | The corresponding hostname or certificate validation value.                       |

The ownership TXT record proves that you control the hostname. The CNAME sends requests to EOS. A CNAME does not redirect visitors to the target address: the browser keeps `portal.example.com`.

If your DNS provider is Cloudflare, keep the customer CNAME set to **DNS only (gray cloud)**, including after setup. Do not enable **Proxied (orange cloud)**: it can hide the CNAME target and prevent EOS from verifying the domain. EOS handles HTTPS and Cloudflare routing on its side. Remove conflicting records for that same hostname when you are ready to move its traffic. Do not remove unrelated email or other domain records.

Keep the ownership TXT and routing records in place while using the domain. EOS rechecks them. An unverified reservation that has not started provider registration expires after seven days; add it again if needed.

## Use a root domain

To connect `example.com` instead of `portal.example.com`, select **Use root domain** in the Add custom domain dialog and enter `example.com`. You can also enable the checkbox from **Edit** for a domain you already added. The checkbox changes the DNS setup instructions; it does not strip a subdomain from the hostname or rename an existing connection.

The modal shows these **Name / Host** values, with copy icons and the full DNS names underneath:

| Purpose      | Record type                                   | Name / Host   | Value / Target                                                                  |
| ------------ | --------------------------------------------- | ------------- | ------------------------------------------------------------------------------- |
| Ownership    | TXT                                           | `_eos-domain` | Copy the complete verification value displayed by EOS, including `eos-domain=`. |
| Root routing | ALIAS, ANAME, or a CNAME with root flattening | `@`           | Copy the target displayed by EOS, normally `customers.stacksync.app`.           |

Use these short names when the DNS editor appends `example.com`. If your provider requires full DNS names, use `_eos-domain.example.com` and `example.com`, which the modal also displays. Some providers represent the root with a blank Name/Host field instead of `@`.

**Cloudflare DNS:** choose **CNAME**, set Name to **@**, paste the target, and select **DNS only**. Cloudflare automatically flattens CNAME records at the root. Other providers may call the supported record **ALIAS** or **ANAME**. A conventional CNAME cannot be used at the root without flattening.

If your DNS provider does not support any of these root-domain options, use a subdomain or move DNS hosting to a provider that does. Do not create an A record using an IP copied from a DNS lookup.

When you are ready to switch the existing root website, replace conflicting root A/AAAA or routing records. Keep unrelated MX and TXT records for email and other services. Add `www.example.com` as a separate custom domain if you want it too; the checkbox does not create a `www` alias or redirect.

Select **Refresh Status** after saving the DNS records, then wait for **Connected** before using the URL. Your original EOS app URL remains available.

## Wait for verification and HTTPS

EOS checks DNS and requests the hostname's HTTPS certificate automatically after ownership is verified. Select **Refresh Status** for a pending domain to queue another verification. Checks normally begin within a minute, but DNS propagation and certificate issuance can take longer.

The visible Custom Domains tab refreshes status automatically every ten seconds and shows **Last checked** for each hostname. This fetches the latest result; it does not run a fresh DNS check every ten seconds. The **Refresh Status** button queues a fresh check for a pending domain. Automatic updates preserve anything you are typing in the hostname field.

| Status                               | What to do                                                                                                  |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| **Pending**                          | Follow the message shown for the domain. Check ownership TXT, CNAME, and any additional validation records. |
| **Connected**                        | Select **Open app** and test the interface and API through the custom hostname.                             |
| **Deleting**                         | EOS has disabled the hostname and is cleaning up its provider registration.                                 |
| Verification temporarily unavailable | EOS will retry automatically. Keep the DNS records in place.                                                |

Do not announce a new URL as ready until it shows **Connected** and you have tested it. If the hostname already serves a live website, coordinate the DNS change with its owner: this onboarding flow does not promise a zero-downtime migration while the certificate is being issued.

## Use the same hostname for the interface and API

One domain covers all application paths:

| Purpose       | Example                                     |
| ------------- | ------------------------------------------- |
| App interface | `https://portal.example.com/`               |
| App API       | `https://portal.example.com/api/orders`     |
| App assets    | `https://portal.example.com/assets/main.js` |

Use relative URLs in the frontend, such as `fetch('/api/orders')`, so requests stay on the current hostname. Configure the app's public base URL, OAuth callback allowlists, absolute links, and cookies for the custom domain. Host-only cookies work well when an app has multiple domain aliases. If the app needs a configuration change, deploy that change through the normal EOS workflow.

EOS preserves request paths, query parameters, methods, and bodies. The gateway supplies the original hostname and HTTPS scheme through trusted forwarding headers. It does not rewrite application HTML, JavaScript, or hardcoded links to another API, storage service, or identity provider.

The app's [managed authentication policy](/enterprise-os/applications/managed-authentication) also applies through its custom domain. Connecting a domain does not make a restricted app public. Browser sign-in uses the existing central EOS login and returns to the custom hostname; the domain does not replace the EOS dashboard or identity-provider URLs.

The default `stacksync.app` URL remains available. Domain aliases point to the same app across subsequent deployments; adding a domain does not create a second app or redirect the default URL automatically.

## Remove or move a domain

In **Custom Domains**, open the domain’s actions menu, select **Delete**, and confirm. EOS stops authorizing new requests for that hostname immediately, revokes its app sessions, and queues provider cleanup. The default app URL and other connected domains remain available. Connections that were already open are not forcibly terminated.

Remove the routing and verification records from your DNS provider when they are no longer needed. To connect the hostname to another EOS app, wait for the existing connection to disappear, add it to the new app, and replace the ownership TXT record with the new value.

## Troubleshoot a pending domain

* **The domain name was appended twice:** EOS identifies the misplaced TXT record and displays the corrected Name/Host. For example, change `_eos-domain.portal.example.com` to `_eos-domain.portal` when your DNS editor appends `example.com`. Keep Value/Data unchanged.
* **No ownership TXT record was found:** add the displayed TXT record at the expected name. Check whether your DNS editor expects the full name or a relative name, and allow time for DNS caches to update.
* **The TXT value does not match this app:** replace Value/Data with the complete value shown in EOS, including `eos-domain=`. Keep unrelated TXT records.
* **The TXT is correct, but the hostname does not point to EOS:** set the CNAME target to the value shown in EOS. Use DNS-only mode for a Cloudflare customer CNAME; root domains need supported ALIAS or flattening.
* **HTTPS is still pending:** if ownership and routing are correct, allow time for certificate validation. Inspect any additional validation records. If you use restrictive CAA records, ask your DNS administrator to check which certificate authority is being requested.
* **The hostname is already connected:** remove its existing EOS connection first. A hostname cannot serve two apps at once.
* **The app opens, but API calls use another domain:** update the app's hardcoded API base URL or use relative paths. DNS cannot change URLs embedded in an application.
* **The Custom Domains tab is missing:** confirm that you have app Owner access. If the page says the feature is not enabled, contact your platform administrator.

## Configure domains with the EOS CLI

Update to EOS 5.1.0 or later with `eos update`. Check your selected workspace with `eos workspace current`, then run:

```sh
eos app domains list my-app
eos app domains add my-app portal.example.com
eos app domains show my-app portal.example.com
eos app domains refresh my-app portal.example.com
eos app domains delete my-app portal.example.com
```

Use a project name or numeric app ID in place of `my-app`. Show, refresh, and delete also accept the domain UUID. Add/show print the DNS records, HTTPS status, and troubleshooting messages. Refresh queues another check; run show/list again after DNS changes propagate. Delete requires typing the exact hostname, and leaves the original app URL and other domains available.

Every command supports `--json` for automation; deletion still requires exact-hostname confirmation. The CLI uses your EOS credentials and selected workspace, without a Cloudflare API key. The same Owner permission and five-domain limit apply.

## Automate domain management

The management API exposes these owner-only endpoints under your workspace URL:

| Method | Path                                                                      |
| ------ | ------------------------------------------------------------------------- |
| GET    | `/workspace/WORKSPACE_ID/api/access/apps/APP_ID/domains`                  |
| POST   | `/workspace/WORKSPACE_ID/api/access/apps/APP_ID/domains`                  |
| POST   | `/workspace/WORKSPACE_ID/api/access/apps/APP_ID/domains/DOMAIN_ID/verify` |
| DELETE | `/workspace/WORKSPACE_ID/api/access/apps/APP_ID/domains/DOMAIN_ID`        |

For creation, send `{"hostname":"portal.example.com"}` as JSON. Use the app's numeric ID, a management bearer token, and the matching `X-Workspace-Id` header. Mutations return HTTP 202; poll the list endpoint for verification and cleanup. Creation is idempotent for the same hostname on the same app.

These management endpoints are different from your application's API paths under the custom hostname.

# Deployments and settings

> Control application versions, environment variables, container memory, and autoscaling from one place.

Source: https://docs.stacksync.com/enterprise-os/applications/deployments-and-settings

A deployment version records the source and configuration used to run your application. EOS keeps version history so your team can inspect what was deployed and diagnose problems with the corresponding build output.

Open **Applications → your application → Deployments**. Select a version in the list to review its status, timing, source information, variables, and resource settings.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/deployment-settings-safe.webp" alt="The Deployments tab combines version history, environment variables, container memory, and the autoscaling limit. Credential-bearing variables are masked." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Deployments tab combines version history, environment variables, container memory, and the autoscaling limit. Credential-bearing variables are masked.</figcaption></figure>
</div>

## GitHub deployments and the serving revision

The [Deploy from GitHub](/enterprise-os/applications/github-deployments) tab connects a repository and target branch. You can deploy its current state immediately, deploy after merged pull requests, or receive runtime variables from an optional GitHub Actions workflow. GitHub deployments appear in the same version history with the GitHub logo in the Source column.

A new build does not immediately replace the serving revision. The previous successful version remains **Healthy and serving traffic** while the new version is deploying, fails, or is cancelled. After a successful deployment, the green badge moves to the new version and older ready versions show **Healthy no traffic**. No version is marked as serving if the app has never deployed successfully.

## Container memory

**Container memory** is the memory available to each running container. Select the size that fits the application's runtime and workload. Increasing memory can help memory-intensive applications, but it does not fix a memory leak or replace performance testing.

Supported CLI values are `512Mi`, `1Gi`, `2Gi`, and `4Gi`:

```sh
eos deploy --project=partner-portal --memory=1Gi
```

## Maximum containers autoscaling

**Maximum containers autoscaling** sets the upper bound on the number of application containers EOS can scale to. The current supported range is **1–20 containers**.

This is a ceiling, not a request to keep that many containers running. A higher ceiling allows more concurrent capacity when the platform scales the app; a lower ceiling constrains its maximum footprint. Choose it alongside database connection limits and the capacity of other dependencies.

```sh
eos deploy --project=partner-portal --memory=1Gi --max-instances=5
```

Omitting these flags keeps the existing app settings; new apps use server defaults. Memory and scaling are fixed for each version. Changing either setting creates a new deployment version.

## Change configuration in the dashboard

1. Select the version you want to use as the starting point.
2. Review the **Environment variables used by this version** JSON object.
3. Choose **Container memory** and **Maximum containers autoscaling**.
4. Select **Deploy new version with these settings**.
5. Follow the deployment output and verify the app after the new version becomes ready.

The dashboard submits the variable set for the new version, so preserve every variable the app still needs. Values can be strings, numbers, or booleans; keep the editor content a JSON object.

```json
{
  "NODE_ENV": "production",
  "APP_TITLE": "Partner portal",
  "LOG_LEVEL": "info"
}
```

From the CLI, repeat `--variable=KEY=VALUE` to supply variables. Existing keys omitted from a normal CLI update remain unchanged; supplied keys replace their previous values. Keep secrets in server-side variables and out of browser bundles and source control.

## Inspect source and deployment output

Use **Browse files** to inspect the selected version's retained source, or **Download source ZIP** to retrieve it. **Retry this version** starts another deployment attempt from the retained version; review its configuration first.

```sh
eos deployment versions partner-portal
eos deployment logs DEPLOYMENT_ID
eos deployment download DEPLOYMENT_ID ./source.zip
```

Use the deployment ID returned by EOS. Deployment logs describe the build and rollout. The app's **Logs** tab is for runtime behavior after deployment.

## Diagnose a failed deployment

Start with the failed version's output. Check that the source includes the correct manifest and start command, dependencies install successfully, and the server listens on the supplied `PORT`. Build and test locally, run `eos deploy --dry-run`, then deploy the corrected version.

A failed status means that deployment attempt did not complete successfully. Verify the application's URL and current ready version separately before drawing conclusions about availability.

# Deploy from GitHub

> Deploy an app from a GitHub repository, release changes after a merge, and optionally send runtime variables from your pipeline.

Source: https://docs.stacksync.com/enterprise-os/applications/github-deployments

A repository should be enough to start deploying an application. EOS can build your app directly from GitHub, publish its first version from the dashboard, and deploy future changes when a pull request is merged into your chosen branch. You do not need a terminal or a GitHub Actions workflow for this flow.

## Choose a deployment mode

| Mode                                          | What starts a deployment                                                                    | Where runtime variables come from                                                    |
| --------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| **Deploy on merge — no workflow required**    | A GitHub App webhook after a pull request is merged into the configured branch.             | Variables already saved in EOS.                                                      |
| **Deploy from pipeline — send variables**     | The generated GitHub Actions workflow submits the merged commit and selected values to EOS. | Your pipeline supplies the configured names; other saved EOS variables are retained. |
| **Deploy now from current GitHub repository** | You choose to deploy the current state of the saved branch, before another merge.           | Saved EOS variables. Values available only in a pipeline are not loaded.             |

Terminal deployments and redeploying a retained version from **Deployments** remain available. Each EOS app has one configured GitHub repository and target branch. A direct push to the branch is not a merged pull request and does not trigger the default merge flow.

## Before you start

Sign in to a claimed EOS workspace. Creating an app requires workspace membership; configuring an existing app requires **Editor** or **Owner** access. Your GitHub account must be able to authorize the Stacksync GitHub App for the repository. An organization may require an owner to approve the installation or repository access.

The GitHub App needs read access to repository contents and pull requests. EOS checks both the app installation's access and your GitHub account's access when you choose a repository.

## Create an app without the terminal

1. Open **Applications** and select **Deploy a new app from GitHub**.
2. Enter an application name using lowercase letters, numbers, and hyphens.
3. Optionally add runtime variables with a name, value, and optional description. Select **Add variable** for more rows, or paste `NAME=value` pairs separated by commas or newlines into a name or value field. EOS stores these values; they are not sent to GitHub or committed to your repository.
4. Select **Continue to GitHub** and authorize access with the GitHub account you want to use. If no installation is available, use **Install GitHub App** and grant access to the repository.
5. Return to the app's **Deploy from GitHub** tab and select the repository and target branch.
6. Leave **Application directory** as `.` for the repository root, or enter a relative subdirectory such as `apps/portal`.
7. Choose **Deploy on merge — no workflow required**, leave automatic deployments enabled, and select **Save configuration**.
8. In the prompt, select **Deploy now from current GitHub repository** to publish the branch's current state. You can instead wait for the next merge.

Creating the app reserves its configuration; it does not start a build until you explicitly deploy or an enabled trigger runs.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/github-create-app.png" alt="The new GitHub app dialog in the Stacksync EOS workspace asks for an application name and optional runtime variables, with Continue to GitHub as the next action." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Create an app and save its runtime variables in EOS before choosing its GitHub repository.</figcaption></figure>
</div>

## Connect an existing app

Open **Applications → your application → Deploy from GitHub**, then select **Connect to GitHub App**. Authorize GitHub, select the repository and branch, and save the configuration. GitHub authorization belongs to your EOS user in the selected workspace and can be reused across its apps. Other users and workspaces must authorize their own GitHub access. Existing installations are reused; you do not need to install the App again for each EOS application.

**Save configuration** stays disabled until valid settings differ from the saved configuration. Saving a new or changed configuration offers an immediate deployment. Saving alone does not deploy, and declining the prompt keeps the saved configuration for future merges.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/github-connect-app.png" alt="The partner-crm application's Deploy from GitHub tab in the Stacksync EOS workspace offers Connect to GitHub App." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Connect an existing EOS application from its Deploy from GitHub tab.</figcaption></figure>
</div>

## Add repository access

Select **Add repositories** in a connected app. EOS opens the existing GitHub installation's settings in a new tab. Add the repositories under repository access, save on GitHub, and return to EOS. Repository and branch dropdowns refresh automatically when you return or interact with them; valid selections and unsaved form edits are preserved.

Adding access does not change an app's saved repository. Select the newly available repository and branch, then save to change that application's deployment source. If GitHub authorization has expired, disconnect and reconnect to renew repository selection. Disconnecting stops future GitHub deployments for that app and leaves its running version available.

## Deploy after a merge

With **Deploy on merge** enabled, merging a pull request into the selected target branch sends a signed GitHub webhook to EOS. EOS fetches the exact merged commit, builds the configured application directory, and deploys it with the saved runtime variables. No workflow file or EOS API key is required in the repository.

Use **Recent GitHub deployments** to follow the commit and deployment request. Open **Deployments** for version details and build output. The previous successful revision remains **Healthy and serving traffic** while a new revision builds, fails, or is cancelled. The green badge moves after the new deployment succeeds. An app with no successful deployment has no serving revision yet.

To pause future automatic deployments, clear **Enable automatic deployments** and save. Explicit manual deployments remain available. Changing or disconnecting the GitHub configuration invalidates work queued against the old configuration.

## Environment variables without committing secrets

For the default merge flow, save variables in EOS when creating the app or manage them through the deployment's **Environment** tab. GitHub only notifies EOS about the merge; it does not need to store or send those values.

If your deployment pipeline already loads configuration from a secret manager or another approved source, use **Deploy from pipeline — send variables**:

1. Select pipeline mode in **Deploy from GitHub**.
2. Enter only the variable **names** to receive from the pipeline, one per line, and save.
3. Select **View workflow** or **Download workflow**. Save the generated file as `.github/workflows/eos-deploy.yml` on the selected branch.
4. Add your existing configuration-loading step before **Submit to EOS**. Make the selected values available to that step through its environment or GitHub Actions' `GITHUB_ENV` mechanism. Keep secret values out of logs and source control.
5. Merge a pull request into the configured branch. The workflow authenticates to EOS with a short-lived GitHub OIDC identity and submits the commit and selected runtime values.

You can use GitHub Actions secrets if that is your chosen secret store, but they are not required. EOS receives values from the running workflow; it does not read secret values back from GitHub's settings. The configured names must match the submitted values. Other saved EOS variables are retained.

In pipeline mode, merge webhooks do not start a second deployment. A successful **Submit to EOS** step means the request was queued; follow the actual build in EOS. Update the generated workflow after changing the target branch or variable names. Fork-originated pull requests can be subject to GitHub Actions permission restrictions; check that the workflow can obtain its OIDC identity and run its configuration-loading step.

These are **runtime** variables. They are not injected into compilation or frontend bundles. An explicit **Deploy now from current GitHub repository** uses saved EOS values, even in pipeline mode; it does not execute your workflow to retrieve new values.

## Variable descriptions and templates

The GitHub creation dialog, deployment **Environment** tab, and redeploy dialog all support an optional description for each variable. Describe what another user should supply, without putting secrets in descriptions. Descriptions are saved separately from runtime values and retained with deployment snapshots; they are never injected into the running app.

With **EOS CLI 5.5.0** or later:

```sh
eos deploy --variable API_URL=https://example.com --variable-description "API_URL=Base URL of your API"
eos app github create partner-portal --variables-file values.json --descriptions-file descriptions.json
eos deployment variables dep_123 --metadata --json
```

`descriptions.json` maps names to descriptions, for example `{"API_URL":"Base URL of your API"}`. Repeat `--variable-description` to describe more variables. An empty description clears it. `--metadata` returns only names and descriptions, without values, so agents can ask for the right configuration when reusing an app. Use `--details` only when you need values too; that output can contain secrets.

## Use the CLI

Requires **EOS CLI 5.4.1** or later. Run `eos update`, sign in, and select the intended workspace. `APP` accepts an app name or numeric ID.

```sh
eos app github create partner-portal --variables-file runtime-variables.json
eos app github connect partner-portal
eos app github repositories partner-portal --json
eos app github branches partner-portal REPOSITORY_ID --json
```

`connect` opens the app's GitHub tab. Complete authorization in the browser with the same EOS account as the CLI. This keeps GitHub consent and browser authentication interactive; an API token alone does not authorize a GitHub repository. Use `--json` to return the browser URL without opening it.

Save a configuration file such as `github.json`:

```json
{
  "repository_id": "123456789",
  "branch": "main",
  "root_directory": ".",
  "mode": "merge",
  "enabled": true,
  "variable_names": []
}
```

Replace the example repository ID with one returned by `repositories`.

```sh
eos app github configure partner-portal github.json
eos app github deploy partner-portal
eos app github show partner-portal --json
```

`configure` saves settings; `deploy` explicitly queues the saved branch's current state using saved EOS variables. `show` returns the connection and recent requests. For pipeline mode, set `mode` to `pipeline`, list the expected names in `variable_names`, and download its workflow:

```sh
eos app github workflow partner-portal --output eos-deploy.yml
eos app github disconnect partner-portal
```

Move the downloaded workflow to `.github/workflows/eos-deploy.yml` after review. `--output` refuses to overwrite an existing file. Configuration and runtime-variable JSON inputs also accept `-` for standard input. Keep variable files private and outside source control.

## API and troubleshooting

Management endpoints are scoped to an EOS workspace and require the same permissions as the dashboard:

| Method                 | Path                                                     | Purpose                                                                         |
| ---------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `POST`                 | `/api/access/github/apps`                                | Create an app with optional saved runtime variables, without deploying it.      |
| `GET`, `PUT`, `DELETE` | `/api/access/apps/{id}/github`                           | Read, save, or disconnect configuration.                                        |
| `POST`                 | `/api/access/apps/{id}/github/connect`                   | Begin browser-bound GitHub authorization.                                       |
| `GET`                  | `/api/access/apps/{id}/github/repositories`              | List repositories accessible through the user's current GitHub authorization.   |
| `GET`                  | `/api/access/apps/{id}/github/branches?repository_id=ID` | List branches for an authorized repository.                                     |
| `POST`                 | `/api/access/apps/{id}/github/deploy`                    | Queue the saved branch's current state; send the saved connection's `revision`. |
| `GET`                  | `/api/access/apps/{id}/github/workflow`                  | Retrieve the generated workflow for pipeline mode.                              |

Use the workspace URL prefix `/workspace/{workspace_id}` or the supported workspace header for management calls. See the current [EOS OpenAPI specification](https://eos.stacksync.com/openapi.json) for request schemas. The webhook, OAuth callback, and pipeline-submission endpoints use their respective GitHub authentication mechanisms; they are not ordinary personal-token deployment endpoints.

* **A repository is missing:** check GitHub installation access and your own repository permissions, then return to EOS. Renew expired authorization by reconnecting.
* **A merge did not deploy:** check the saved target branch, automatic-deployment setting, installation access, and selected mode. Pipeline mode also requires its workflow to complete submission.
* **Manual deployment was rejected after changing settings:** save or reload the configuration and retry. EOS checks its revision to avoid deploying with stale settings.
* **The build failed:** inspect **Deployments** and confirm the application directory, manifests, start command, and use of the supplied `PORT`.
* **Source retrieval failed:** check installation access and repository size. Git submodules and Git LFS files are not supported by this GitHub source flow.

# Applications

> Turn application code into a live business tool with managed deployment, version history, and access control.

Source: https://docs.stacksync.com/enterprise-os/applications

Give every team a place to run the applications it builds. EOS packages your application, builds it, deploys it, and provides a URL your users can open. You can deploy internal tools, portals, web applications, and APIs from the dashboard through GitHub or from the CLI.

A working prototype creates value when colleagues can use it reliably in their daily process. EOS gives that prototype a shared URL, managed access, and a repeatable deployment path. Teams can improve a workflow without setting up a separate build and hosting stack for every application.

## Find and open an application

Select **Applications** in your workspace. The table shows each app's name, detected app type, region, deployment status, current version, and service URL. Search to locate an app, then open its **Settings** link or its project name.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/applications.webp" alt="Applications in the Stacksync EOS workspace, with status, version, and service URL for each project." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Applications in the Stacksync EOS workspace, with status, version, and service URL for each project.</figcaption></figure>
</div>

The app detail view brings together:

| Tab                    | Use it to                                                                                                                                       |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **Deployments**        | Review versions, build output, environment variables, container memory, and maximum autoscaling containers. Browse or download retained source. |
| **Logs**               | Inspect application runtime logs when diagnosing behavior after deployment.                                                                     |
| **Deploy from GitHub** | Connect a repository and branch, deploy its current state, and choose merge or pipeline triggers.                                               |
| **Custom Domains**     | Connect a hostname you own and check DNS and HTTPS status (Owner only).                                                                         |
| **Settings**           | Add a resource description and manage the application's lifecycle.                                                                              |
| **Users and Access**   | Share management access and choose who may use the application.                                                                                 |

## Deploy from GitHub

Select **Deploy a new app from GitHub** on the Applications page to name an app, save optional runtime variables, and authorize a repository. For an existing app, open its **Deploy from GitHub** tab. Deploy the current branch state immediately or enable deployments after merged pull requests. The default merge flow needs no workflow file.

Follow the [GitHub deployment guide](/enterprise-os/applications/github-deployments) for repository access, branch selection, and optional pipeline-supplied variables.

## Deploy from your terminal

```sh
eos deploy --dry-run --project=partner-portal
eos deploy --project=partner-portal --variable=NODE_ENV=production
```

Run deployment commands from the application root. Use a stable URL-safe name containing lowercase letters, numbers, and hyphens. The application name is fixed after creation. Reuse the same project name in the same workspace to deploy a new version.

For a new app, `--region` selects a supported deployment region. An existing app keeps its region when redeployed. Changing region requires recreating the application; use the region choices exposed by the current product rather than guessing an identifier.

## Operate the application as a team

Give builders **Editor** access when they need to deploy and configure the app. Give a business user **Operator** access when they only need to use it under a policy that requires explicit grants. Owners manage sharing and deletion.

For apps created in account workspaces, the default runtime policy admits workspace Admins and Members. Guest apps are public; claiming a workspace preserves that policy. Choose **Specific members** when only a particular team should be able to use it. See [managed authentication](/enterprise-os/applications/managed-authentication) for all policies.

## Delete an application

An Owner can use **Settings → Delete application** or `eos app delete PROJECT`. The CLI requires the exact application name. Deletion removes the running app, deployment history, and retained source archives. Separately provisioned databases and other resources have their own lifecycle.

<Cards>
  <Card title="Deploy from GitHub" description="Deploy a repository without a terminal and release changes after merges." href="/https/docs.stacksync.com/enterprise-os/applications/github-deployments" />

  <Card title="Custom domains" description="Connect your app interface and API to up to five hostnames you own." href="/https/docs.stacksync.com/enterprise-os/applications/custom-domains" />

  <Card title="Deployments and settings" description="Manage versions, variables, memory, and scaling." href="/https/docs.stacksync.com/enterprise-os/applications/deployments-and-settings" />

  <Card title="Connect resources" description="Attach database, AI, and storage capabilities to your app." href="/https/docs.stacksync.com/enterprise-os/applications/connect-resources" />

  <Card title="Managed authentication" description="Choose exactly who can use the deployed application." href="/https/docs.stacksync.com/enterprise-os/applications/managed-authentication" />
</Cards>

# Managed authentication

> Secure application access with EOS sign-in, workspace policies, and user or group grants.

Source: https://docs.stacksync.com/enterprise-os/applications/managed-authentication

Make an internal tool available to the people who need it without building a separate sign-in system for each app. EOS managed authentication controls access to deployed applications on their Stacksync app routes.

For a business team, this makes a new tool easier to share. For IT, it provides a consistent application access layer: the people who use a workflow do not need permission to administer its code, credentials, or deployment settings.

## Connect to your enterprise identity environment

**Microsoft Entra ID and Okta connections are available through enterprise setup.** Coordinate with your identity administrator and the Stacksync team to configure the connection for your organization. This brings EOS managed authentication into your existing identity environment and reduces the need for a separate identity integration in each application.

Enterprise identity setup and application permissions serve different purposes: the identity connection establishes who the user is; EOS workspace membership, app policies, and resource grants determine what they can access. Agree the sign-in and user-management configuration during enterprise setup, then use the controls below to share each application with its intended audience.

Workspaces without enterprise identity setup use the EOS sign-in flow described in the [Quick start](/enterprise-os/quick-start).

## Configure application access

The app's Owner chooses an access policy in **Applications → your application → Users and Access → Who can access the app?**

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/app-authentication.webp" alt="The app access selector offers four runtime policies, alongside direct user and group sharing." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The app access selector offers four runtime policies, alongside direct user and group sharing.</figcaption></figure>
</div>

## Choose who can use the app

| Policy                                 | Who can open the application                                                                                                             |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **Specific members**                   | Active users with an explicit app membership or an applicable direct or group app grant. External Operators can receive Operator grants. |
| **All workspace members**              | Workspace Admins and Members, plus explicit app members and authorized External Operators.                                               |
| **Public, authentication required**    | Any active EOS account with a valid sign-in credential, including people outside the workspace.                                          |
| **Public, no authentication required** | Anyone, including visitors who have not signed in.                                                                                       |

New applications created in account workspaces default to **All workspace members**. Guest apps are public, and claiming their workspace preserves the public policy. Redeploying an existing app preserves its selected policy. Policy changes apply to subsequent requests.

For an internal finance tool, choose **Specific members** and grant the Finance group **Operator** access. For a company-wide tool, **All workspace members** admits the internal workspace automatically. Use a public policy only when the application is intended for that audience.

## Public routes

Keep an app private while allowing anonymous access to selected pages, such as a customer form. As the app Owner, open **Users and Access → Publicly accessible routes** to add, search, or delete paths. Fully public apps show **All routes**; their saved exceptions remain available when you switch back to a private policy.

Rules contain a path beginning with `/`, without a domain name, query string, or fragment. They apply on both the Stacksync hostname and custom domains. Matching is case-sensitive, and query strings are ignored:

| Rule       | Allows anonymous access to                                                |
| ---------- | ------------------------------------------------------------------------- |
| `/contact` | That exact path, including requests such as `/contact?source=email`.      |
| `/forms/*` | Paths below `/forms/`, including nested paths; not `/forms` itself.       |
| `/*`       | All application paths. EOS login and identity endpoints remain protected. |

Rules apply to every HTTP method. Exposing a form page does not automatically expose its submission API. Your application still enforces its own business permissions. At most 100 rules can be saved per app; changes take effect on subsequent requests.

### Check a public page's assets

A page may load its CSS, JavaScript, fonts, or images from separate paths. If those paths still require EOS authentication, visitors can see unstyled HTML or broken images.

After adding a page, EOS inspects its public HTML and suggests exact referenced static file paths. Review the list, select the files to expose, then choose **Allow selected assets**. Suggestions do not change access until you approve them. To retry later, use **Check assets** beside a saved rule. For a wildcard rule, enter a concrete public page such as `/forms/contact`.

Detection does not execute the page's JavaScript or inspect nested CSS dependencies. External assets, query-dependent resources, and assets loaded dynamically may need a separate check in the browser's Network panel. Review any additional route before making it public; avoid using `/*` merely to fix missing styles.

With **EOS CLI 5.7.2 or later**:

```sh
eos update
eos app public-routes list APP --json
eos app public-routes add APP '/contact' --json
eos app public-routes add APP '/forms/*' --json
eos app public-routes check APP /contact --json
# After reviewing the returned suggestions:
eos app public-routes add APP '/styles/contact.css' --json
eos app public-routes delete APP '/contact' --json
```

Adding a route returns `asset_check` alongside the saved rules. `check` returns `page_path`, `suggestions` (each with `route` and `kind`), and a message. Neither operation approves suggested routes automatically. Quote wildcard rules so your shell does not expand them.

## What a user experiences

1. The user opens the application's Stacksync URL.
2. If the policy requires authentication, EOS asks the user to sign in when no valid app session exists.
3. EOS checks the user's identity against the current app policy and applicable workspace or resource grants.
4. An authorized user receives an app-scoped session and can use the app. A user who does not qualify is denied access.

The check happens on each request at the application access boundary, including API requests. The gateway checks the policy for public apps too: anonymous traffic passes only when the app is configured to allow it. If the policy service is unavailable, the gateway refuses the request rather than assuming the app is public. Your application still enforces business-specific permissions, such as which customer records a salesperson may edit.

## App use and app management are separate

**Operator** lets someone use an app without discovering or configuring it in the EOS management interface. **Editor** and **Owner** grant broader management capabilities. Public runtime access does not make the application's source, deployment variables, or management settings public.

Likewise, a broad runtime policy can still admit a user after you remove a direct grant. To restrict an application to a particular team, choose **Specific members**, then manage the relevant user and group grants.

## Use groups for team access

1. A workspace Admin creates a group under **Users and Groups** and adds its members.
2. The app Owner opens **Users and Access → Add Groups**.
3. Select the group and grant **Operator** for app use, or a management role if the group needs to build or administer the app.
4. Use **Specific members** when only explicitly shared users and groups should be admitted.

Removing a person from the group removes access inherited through that group. Their direct grants and membership in other authorized groups still apply.

External Operators are useful for partners who should use a particular app without access to the workspace directory. Groups containing External Operators can receive only Operator grants on apps.

## Call an authenticated app from a backend

Create a personal API key in your EOS profile and send it directly to the app as a bearer credential:

```sh
curl "$APP_URL/api/orders" \
  -H "Authorization: Bearer $EOS_PERSONAL_API_KEY"
```

The key is an opaque bearer token. You do not need to mint or exchange a JWT. EOS resolves the key to its active user and checks that user's current app access and role on every request. Revoked keys and disabled users cannot authenticate. On public apps, a request without a valid identity can still pass anonymously under the public policy.

Personal keys identify a **person**. [App access tokens](/enterprise-os/applications/roles-and-app-tokens#give-your-backend-its-own-access-token) identify the **application** when its backend manages app roles and users. CLI management tokens, AI inference keys, and storage keys have separate purposes. Do not expose a personal key to frontend code.

## Read the current user

Browser code can request the current identity from its own app URL:

```js
const response = await fetch('/__stacksync/identity');
if (response.status === 401) {
  // Offer sign-in with /__stacksync/login?return_to=/ on this app.
} else if (response.ok) {
  const identity = await response.json();
  // Use identity.app_role to choose which controls to display.
  // Enforce the same permissions in your backend.
}
```

An authenticated response contains exactly these five fields:

```json
{
  "app_id": "42",
  "eos_resource_role": "operator",
  "app_role": "accountant",
  "email": "person@example.com",
  "user_id": "7"
}
```

IDs are strings. `app_role` is the assigned custom role ID, or `null` when no role is assigned. A user without an EOS resource grant defaults to `operator`; this does not grant EOS management access. The identity endpoint returns `401` with a `login_url` when there is no authenticated user, even when the app itself is public.

API callers can read the same endpoint using their personal bearer key. Backend handlers receive the equivalent verified identity in request headers:

| Header                          | Value                                                                           |
| ------------------------------- | ------------------------------------------------------------------------------- |
| `X-Stacksync-App-Id`            | App ID.                                                                         |
| `X-Stacksync-User-Id`           | User ID for an authenticated request.                                           |
| `X-Stacksync-User-Email`        | Percent-encoded email; decode once with `decodeURIComponent` or the equivalent. |
| `X-Stacksync-Eos-Resource-Role` | Effective EOS resource role.                                                    |
| `X-Stacksync-App-Role`          | Custom app role ID; absent when unassigned.                                     |

The gateway removes caller-supplied identity headers and strips EOS bearer credentials and authentication cookies before forwarding requests. An anonymous public request has no user identity headers. Build authorization on the user ID and app role verified by your backend, not an email or role supplied by browser JavaScript. A frontend role check only controls presentation.

These headers are trustworthy only on requests received through the EOS gateway. Restrict separately reachable origins before relying on forwarded headers as the sole authorization boundary.

## Sign in and out

Link to `/__stacksync/login?return_to=/your-page` on the app to start sign-in. EOS reuses a valid EOS session or asks the person to sign in, then returns them to the app with a Secure, HttpOnly, app-scoped session cookie. Protected browser navigations redirect to sign-in; API requests return `401` and a `login_url` instead of replaying the request after login.

For app logout, make a same-origin `POST /__stacksync/logout`. This revokes the app session and clears its cookie. EOS account logout also invalidates app sessions tied to that account session. Role assignments and policy changes are evaluated on subsequent requests.

Managed authentication protects Stacksync application routes. Treat any separately exposed origin or alternate URL as a separate infrastructure access boundary.

Continue with [access and permissions](/enterprise-os/access-and-permissions) for the full role model.

# App roles, users, and access tokens

> Give your application custom business roles and let its backend manage app users through a scoped bearer token.

Source: https://docs.stacksync.com/enterprise-os/applications/roles-and-app-tokens

A finance app may need Accountants and Approvers, while a customer portal needs Customers and Support agents. These permissions belong to your application. EOS authenticates the person, stores their app membership and role, and returns that identity so your backend can enforce the right permissions.

## Separate app roles from EOS resource roles

| Field               | What it controls                             | Examples                                |
| ------------------- | -------------------------------------------- | --------------------------------------- |
| `eos_resource_role` | EOS infrastructure and resource management   | `owner`, `editor`, `viewer`, `operator` |
| `app_role`          | Business permissions implemented by your app | `accountant`, `approver`, `customer`    |

An app member without an EOS resource grant receives `eos_resource_role: "operator"`. Adding an app user does not make them a member of your workspace or give them access to deployment settings, source code, or credentials. An app role called `admin` has no EOS administration privileges.

Each app starts with **Admin** (`admin`), **Editor** (`editor`), and **Viewer** (`viewer`) roles. Existing apps receive these defaults too. They are editable and deletable, and deleted defaults are not recreated during redeployment. No user is automatically assigned an app role. A role can be deleted only after you clear or change its assignments, including pending invitations.

Each role has a name, an ID unique within the app, and an informative description. IDs start with a lowercase letter and contain up to 64 lowercase letters, digits, underscores, or hyphens. The ID is immutable; update the name or description, or create a replacement role and move its users. Your application defines what each role permits.

## Manage roles and users in the dashboard

1. Open **Applications → your application → Users and Access** as an app Owner.
2. Use **App roles → Add app role** to create a role. You can also create one from a user's **App role** dropdown.
3. Use **Add Users** for EOS resource sharing, or **Add app user** for application membership.
4. Assign the business role in **App role**. Use **No app role** to clear the assignment.

The App roles, Users, and Groups tables each have a search field. Search matches text across each row's fields. The tables distinguish an empty list from a search with no matches. Pending workspace invitees receive their assigned app role only after accepting their invitation.

App membership is independent of EOS resource grants. Removing an app member clears that membership and app role; an independent resource grant or a broader runtime policy can still allow the person to open the app. For an app limited to explicitly admitted people, choose **Specific members** in [managed authentication](/enterprise-os/applications/managed-authentication).

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/app-roles-and-users.png" alt="The EOS Users and Access tab shows default Admin, Editor, and Viewer app roles, independent EOS resource and app role columns, and searchable tables." width="1600" height="1310" loading="lazy" decoding="async" /><figcaption>Keep application roles separate from EOS resource permissions in Users and Access.</figcaption></figure>
</div>

## Automate with EOS CLI 5.2.0

Run `eos update`, sign in, and select the workspace. These commands require app Owner access and accept an app ID or project name:

```sh
eos app roles list finance-portal --json
eos app roles create finance-portal accountant --name Accountant --description 'Reviews accounts and prepares reports'
eos app roles update finance-portal accountant --name Accountant --description 'Reviews accounts, prepares reports, and exports statements'
eos app users set finance-portal person@example.com --role accountant
eos app users list finance-portal --json
```

Setting a user without `--role` clears their app role while keeping membership. Use the returned numeric user ID when removing membership:

```sh
eos app users set finance-portal USER_ID
eos app users remove finance-portal USER_ID
eos app roles delete finance-portal accountant
```

## Give your backend its own access token

An app access token identifies **the application**, not a visiting user. Use it when your backend needs to add users, assign roles, or create custom roles in its own app.

Create a token in **Applications → your application → App access tokens → Create access token**. The token table includes search, creation dates, and revocation status. Or create one through the CLI:

```sh
eos app tokens create finance-portal backend --token-file /private/finance-portal-token
eos app tokens list finance-portal --json
```

The token secret is returned only at creation. `--token-file` creates a new private file with mode `0600` on POSIX systems and refuses to overwrite an existing file. Without that flag, creation output includes the secret.

Store the token in a server-side deployment variable such as `EOS_APP_ACCESS_TOKEN`. Never include it in a frontend bundle, a public environment variable, a URL, or source control. The app must authorize its own user before using this credential to change roles or memberships.

Multiple tokens can be active for the same app. To rotate, create a replacement, deploy it, verify your backend's calls, then revoke the old token:

```sh
eos app tokens revoke finance-portal TOKEN_ID
```

Revocation affects subsequent requests. App access tokens cannot create other tokens, change EOS resource roles, manage workspace members, administer deployments, or access another app.

## Manage users and roles through the app API

Send the app access token as `Authorization: Bearer ...` to the EOS API. These endpoints derive the app from the token; no workspace or app ID is required in the URL or body.

| Method and path                            | Behavior                                                                    |
| ------------------------------------------ | --------------------------------------------------------------------------- |
| `GET /api/app-access/v1/roles`             | List the app's roles.                                                       |
| `POST /api/app-access/v1/roles`            | Create a role with `id`, `name`, and optional `description`.                |
| `PUT /api/app-access/v1/roles/{roleId}`    | Update the role's `name` and `description`.                                 |
| `DELETE /api/app-access/v1/roles/{roleId}` | Delete an unassigned role.                                                  |
| `GET /api/app-access/v1/users`             | List explicit app members and their role assignments.                       |
| `PUT /api/app-access/v1/users`             | Add or update a member using `email` or a known `user_id`, plus `app_role`. |
| `DELETE /api/app-access/v1/users/{userId}` | Remove app membership and the app role.                                     |

For example, from server-side JavaScript:

```js
const response = await fetch(
  'https://eos.stacksync.com/api/app-access/v1/users',
  {
    method: 'PUT',
    headers: {
      Authorization: `Bearer ${process.env.EOS_APP_ACCESS_TOKEN}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      email: 'person@example.com',
      app_role: 'accountant',
    }),
  },
);
if (!response.ok) throw new Error(`EOS membership update failed: ${response.status}`);
const { user } = await response.json();
```

Add a new person by email. They authenticate through EOS; adding membership does not sign them in or send an invitation automatically. A user ID can address only someone already visible in the app or workspace. Pass `app_role: null` to clear an assignment. Disabled users cannot be added. App collaboration requires a claimed workspace.

Owner-authenticated management clients can use `/workspace/{workspace_id}/api/access/apps/{app_id}/app-roles`, `/app-members`, and `/app-tokens` instead. These routes use the owner's EOS management credential and permissions. See the [EOS OpenAPI document](https://eos.stacksync.com/openapi.json) for request details.

Read [the verified identity contract](/enterprise-os/applications/managed-authentication#read-the-current-user) to use these assignments in your application.

# From idea to business impact

> Give the people closest to the work a practical path to build, deploy, and share better ways of working.

Source: https://docs.stacksync.com/enterprise-os/business-value

## Close the gap between building and deploying

**Everyone can build, but too few people can put what they build into use.** A team may create a useful prototype in an afternoon, then spend far longer finding hosting, setting up a deployment pipeline, connecting data, and arranging secure access. Good ideas stall before they reach the colleagues who would benefit.

Stacksync Enterprise OS closes that gap with a common platform for deploying and operating business applications. Teams can bring their code or work with an AI coding agent, then use EOS to deploy the application, provision its resources, and share access. The result is a practical path from individual experimentation to a process the company can use.

## Put operational insight to work

Your employees know where work slows down: the spreadsheet that needs daily reconciliation, the customer handoff that loses context, or the approval process that depends on someone chasing an email. Their experience is a source of specific, testable improvements.

EOS helps those teams turn an insight into software built around their workflow. Start with one recurring problem, put a working application in front of the people doing the work, and improve it as they use it. Successful tools can then serve a broader team through managed access and shared resources.

| An insight from the field                                      | A practical application                                                      | The outcome to measure                                           |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Operations repeatedly copies information between spreadsheets. | A shared exception queue with status, ownership, and supporting files.       | Time spent reconciling records and resolving exceptions.         |
| Sales loses context when handing a partner to another team.    | A partner portal with shared records, documents, and AI-assisted follow-ups. | Handoff time and completeness of partner information.            |
| Finance chases the same missing evidence each month.           | An evidence collection tool with a clear submission workflow.                | Time spent following up and preparing a review.                  |
| Support searches several sources to prepare an answer.         | An internal assistant that combines the team's chosen data and AI model.     | Time to prepare an answer and the quality of reviewed responses. |

These are application ideas you can build on EOS; the business workflow and its rules are defined by your application.

## Value for leaders, operators, and IT

### Leaders: turn initiative into repeatable improvements

Create a path for useful ideas to reach real users. Instead of measuring innovation only by the number of prototypes created, measure whether colleagues adopt the application and whether the process improves. EOS supplies the deployment and resource layer that helps a team move beyond a personal experiment.

A shared workspace also gives initiatives a place in the company: applications have owners, resources have permissions, and teams can control access as participation grows. Leaders can encourage experimentation while asking clear questions about accountability, usage, and business value.

### Operators: build for the way work actually happens

Describe the workflow you need to a coding agent, or collaborate with a developer. Keep the feedback loop close to the people using the result. With EOS, the same team can deploy an application and make it available to colleagues without becoming an infrastructure team.

A personal tool becomes more valuable when others can use it. A shared app URL, managed sign-in, a common database, and file storage let a useful improvement become part of daily operations.

### IT: provide a common path for team-built software

Give teams an established place to deploy and a consistent way to manage access. EOS brings application builds, hosting, authentication, and supporting resources together, reducing the need to assemble and maintain a separate stack for each tool.

IT can organize workspace membership, grant resource access through users and groups, and define the AI models available to the workspace. Application owners choose who can use each app independently of who can administer it. Microsoft Entra ID and Okta connections are available through enterprise setup; coordinate that setup with your identity administrators and the Stacksync team.

## Remove repeated setup from each initiative

| Common obstacle                                                               | How EOS helps                                                                                                                            |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| A prototype needs a deployment pipeline and hosting before anyone can try it. | Managed packaging, builds, and deployment reduce per-application CI/CD setup. Each deployed application has a URL and version history.   |
| Every internal tool needs secure sign-in.                                     | Managed authentication provides application access policies and user or group grants without a separate sign-in implementation per app.  |
| A useful workflow needs persistent data and documents.                        | Managed PostgreSQL and private storage buckets provide reusable building blocks for business records and files.                          |
| AI experiments create fragmented credentials and unclear spending.            | Inference keys use a common model API with per-key spending limits and workspace model controls.                                         |
| An application needs to grow beyond its first users.                          | Memory and maximum container settings let owners adjust runtime capacity, while sharing grants extend access to colleagues.              |
| A coding agent can write code but needs a way to operate it.                  | The EOS CLI supports deployment and management of applications, databases, inference, storage, and sharing under the user's permissions. |

EOS supports a more consistent approach to compliant application deployment by providing access controls and managed resources. Use those controls alongside your company's requirements for application review, sensitive data, and ongoing ownership. Compliance depends on the application and how it is configured and operated.

## From a personal experiment to a company process

1. **Choose a concrete problem.** Identify the people who do the work, the recurring friction, and one outcome to improve, such as turnaround time or manual re-entry.
2. **Build a focused first version.** Use your development tools or a coding agent. Connect only the database, inference, and storage resources the workflow needs.
3. **Deploy for a pilot group.** Use managed authentication and specific user or group grants to put the application in the hands of a small team.
4. **Learn from real use.** Check the workflow with users, inspect application logs when needed, and deploy improvements. Compare the result with the starting process.
5. **Make the successful workflow shared.** Assign ongoing ownership, broaden access deliberately, review resource settings and budgets, and document how colleagues should use the application.

EOS makes the deployment path repeatable, so a team can spend more of its effort on the process it is improving.

## Built for people working with AI agents

An AI coding agent can help carry an idea through implementation, resource provisioning, configuration, and deployment. EOS exposes the core resource lifecycle through the CLI, with structured output for supported commands, so the agent can work in the same environment as a developer.

The agent operates with the authenticated user's permissions. This makes automation compatible with the workspace's access model. Some administrative settings still use the dashboard or documented APIs; see the [CLI reference](/enterprise-os/cli-reference) for the current command coverage.

Start with the [Quick start](/enterprise-os/quick-start), explore [Applications](/enterprise-os/applications), or plan your rollout with [Managed authentication](/enterprise-os/applications/managed-authentication) and [Access and permissions](/enterprise-os/access-and-permissions).

# CLI reference

> Deploy and manage EOS resources from a terminal or coding agent with the same workspace permissions as the dashboard.

Source: https://docs.stacksync.com/enterprise-os/cli-reference

Deploying an app or creating a database from the CLI does not require login. To invite users or manage collaboration in a guest workspace, first sign in and claim it with `eos workspace claim WORKSPACE_ID`. See [guest workspaces](/enterprise-os/guest-workspaces) for the 14-day deadline and device credential requirements.

The EOS CLI gives developers and coding agents a repeatable way to deploy applications and manage the resources around them. It uses the same identity, workspace boundaries, and resource permissions as the dashboard.

This gives AI-assisted development a path beyond generating code: an agent can provision resources, connect them to an application, deploy it, and help inspect the result. Developers can use the same commands to make the workflow repeatable across iterations. Administrative command coverage is described below.

Install or update the CLI, then use its current help as the command reference:

```sh
curl -fsSL https://eos.stacksync.com/downloads/install.sh | sh
eos update
eos --version
eos --help
```

The tables below focus on common workflows. Capitalized values such as `WORKSPACE_ID` and `KEY_ID` are placeholders for IDs returned by EOS. Append `--json` to supported data commands when scripting.

## Sign in and choose a workspace

```sh
eos auth login
eos auth status
eos workspace list
eos workspace switch WORKSPACE_ID
eos workspace current
```

Follow the browser sign-in URL. Select the workspace explicitly before managing resources. `eos auth logout` removes this endpoint's account sign-in while preserving any unclaimed guest credential and guest workspace selection; it does not delete cloud resources.

## Applications and deployments

| Command                                              | Purpose                                                 |
| ---------------------------------------------------- | ------------------------------------------------------- |
| `eos app list`                                       | List applications you can access.                       |
| `eos deploy --dry-run --project=partner-portal`      | Inspect the planned deployment without uploading.       |
| `eos deploy --project=partner-portal`                | Build and deploy the current directory.                 |
| `eos deployment versions partner-portal`             | Inspect deployment history.                             |
| `eos deployment logs DEPLOYMENT_ID`                  | Read deployment build and rollout output.               |
| `eos deployment variables DEPLOYMENT_ID`             | Retrieve version variables; output can contain secrets. |
| `eos deployment download DEPLOYMENT_ID ./source.zip` | Download retained source.                               |
| `eos app delete partner-portal`                      | Delete an app after exact-name confirmation.            |

Deployment flags include `--variable=KEY=VALUE`, `--memory=1Gi`, `--max-instances=5`, and `--region` for a new app. See [deployment settings](/enterprise-os/applications/deployments-and-settings).

## GitHub deployments

Requires **EOS CLI 5.4.0**. Run `eos update` first. GitHub app creation requires a claimed workspace; configuring an existing app requires Editor or Owner access. `APP` accepts the name or numeric ID.

| Command                                            | Purpose                                                                                                       |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `eos app github create NAME --variables-file FILE` | Create an undeployed app with optional runtime variables from JSON; omit the flag if no variables are needed. |
| `eos app github connect APP`                       | Open the app's GitHub tab for browser authorization with the same EOS account.                                |
| `eos app github show APP`                          | Inspect the saved connection and recent deployment requests.                                                  |
| `eos app github repositories APP`                  | List repositories available through the current GitHub authorization.                                         |
| `eos app github branches APP REPOSITORY_ID`        | List branches for an authorized repository.                                                                   |
| `eos app github configure APP FILE`                | Save repository, branch, directory, trigger mode, and variable-name configuration from JSON.                  |
| `eos app github deploy APP`                        | Queue the current state of the saved branch using saved EOS runtime variables.                                |
| `eos app github workflow APP --output FILE`        | Save the generated pipeline-mode workflow without overwriting an existing file.                               |
| `eos app github disconnect APP`                    | Stop future GitHub triggers without removing the running app.                                                 |

Data commands support `--json`; `connect --json` returns the browser URL without opening it. Configuration and variable inputs accept `-` for stdin. `workflow` returns YAML to stdout when `--output` is omitted and does not accept `--json`.

Saving configuration does not start a deployment. `deploy` is the separate initial/manual deployment action; its response confirms submission, not a successful build. For merge-mode releases, no workflow file is needed. Pipeline mode uses the generated GitHub OIDC workflow to forward selected values from your existing secret/configuration source. Manual deployment does not retrieve pipeline-only values.

See [Deploy from GitHub](/enterprise-os/applications/github-deployments) for JSON examples, browser authorization, and workflow setup. Refresh the AI-agent instructions with `eos skill save`.

## Databases

```sh
eos database list
eos database create 'Partner portal production'
eos database credentials DATABASE_ID
eos database share DATABASE_ID teammate@example.com editor
```

Creation and credential retrieval return secrets. Capture their output privately. Database deletion requires both the ID and exact display name and permanently removes its data.

## AI inference

```sh
eos inference --help
eos inference models
eos inference keys list
eos inference keys create 'Support assistant' --limit 100 --every 1 --unit months
eos inference logs KEY_ID --json
eos inference usage
```

Use `STACKSYNC_AI_KEY` for `eos inference chat`; management commands use EOS sign-in. Key creation returns a secret once. See [AI inference](/enterprise-os/ai-inference) for model selection, budgets, and revocation.

## Storage

```sh
eos storage --help
eos storage buckets list
eos storage buckets create 'partner-documents' --region EU
eos storage keys create BUCKET_ID 'Portal backend' --scopes read,write,list
```

File commands use the bucket key in `STORAGE_API_KEY`:

```sh
eos storage upload ./contract.pdf partners/acme/contract.pdf
eos storage objects list --prefix partners/
eos storage download partners/acme/contract.pdf ./contract.pdf
```

Bucket and key management use EOS sign-in. See [storage API access](/enterprise-os/storage/api-access) for scopes and upload behavior.

## Sharing and groups

```sh
eos workspace users --json
eos workspace groups --json
eos workspace groups create 'Operations' --json
eos workspace groups add GROUP_ID user USER_ID
eos access list apps APP_ID --json
eos access grant apps APP_ID group GROUP_ID operator
eos access revoke apps APP_ID group GROUP_ID
```

Resource sharing requires Owner; group management requires workspace Admin. See [access and permissions](/enterprise-os/access-and-permissions) for recipient types and inherited access.

## App roles, users, and tokens

Available in **EOS CLI 5.2.0**. Run `eos update` first. These commands require the app's Owner and accept a project name or app ID in the selected workspace.

```sh
eos app roles list partner-portal --json
eos app roles create partner-portal accountant --name Accountant --description 'Reviews accounts'
eos app roles update partner-portal accountant --name Accountant --description 'Reviews and exports accounts'
eos app users set partner-portal person@example.com --role accountant
eos app users list partner-portal --json
eos app tokens create partner-portal backend --token-file /private/new-token
eos app tokens list partner-portal --json
eos app tokens revoke partner-portal TOKEN_ID
```

`eos app users set PROJECT USER_ID` without `--role` clears the role while retaining membership. `eos app users remove PROJECT USER_ID` removes app membership. `eos app roles delete PROJECT ROLE_ID` deletes an unassigned role. Use `--json` for structured output.

App roles describe your application's business permissions and grant no EOS infrastructure rights. App tokens let the backend manage only its own roles and users; they are distinct from the personal bearer keys used to call a protected app as a person. Keep token secrets in server-side deployment variables. `--token-file` saves the secret once to a new private file and omits it from command output.

See [app roles, users, and access tokens](/enterprise-os/applications/roles-and-app-tokens) for the API contract, default roles, and rotation procedure.

## Use EOS with a coding agent

```sh
eos skill
eos skill save
```

The published [EOS skill](https://eos.stacksync.com/skill.md) provides the current agent workflow. Saving it makes that workflow available in the project. Let the agent use CLI help to discover commands as EOS evolves.

Core resource workflows can be automated through the CLI. Some administrative actions, including changing app runtime presets, inviting workspace users, and editing the workspace model policy, currently use the dashboard or documented APIs rather than dedicated CLI subcommands.

## Troubleshooting

| Symptom                      | Next step                                                                                       |
| ---------------------------- | ----------------------------------------------------------------------------------------------- |
| Authentication required      | Run `eos auth login` again.                                                                     |
| Resource missing             | Check the selected workspace and your direct or group grants.                                   |
| Command unavailable          | Run `eos update`, then inspect `eos --help` or the product subcommand's help.                   |
| Deployment fails             | Read its deployment logs and check the manifest, dependencies, start command, and runtime port. |
| Storage upload conflicts     | Choose a new path or inspect the existing object; uploads do not overwrite.                     |
| Inference allowance exceeded | Check the key's remaining and reserved allowance and its reset time.                            |

Use the actual URLs and IDs returned by EOS. Do not infer a resource ID or construct an app URL from its display name.

Open your selected workspace with `eos open`. Dashboard links include `/workspace/{workspace_id}` so copied links retain their context. See [workspace URLs and opening EOS](/enterprise-os/workspace-urls).

## Public app routes

App Owners can manage anonymous access exceptions with `eos app public-routes list|add|delete APP`. Supply a path to add/delete. CLI 5.7.2 adds `eos app public-routes check APP /contact --json` for static asset suggestions. Review the suggestions before adding any of them. See [public routes](/enterprise-os/applications/managed-authentication#public-routes) for wildcard rules, examples, and asset detection limits.

# Connect and query

> Connect your application to PostgreSQL, browse tables, and run SQL in the EOS database workspace.

Source: https://docs.stacksync.com/enterprise-os/databases/connect-and-query

Open **Databases → your database** to work with application data. EOS combines connection management with a database workspace, so your team can inspect data and troubleshoot without switching tools.

## Connect an application

Select **Connect to database**, or open **Settings** to find the connection string. Use **Reveal** when you need to inspect it, then **Copy connection string**. The connection details can also be copied as individual parameters for clients that require separate host, port, database, user, and password fields.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/database-settings.webp" alt="Database settings include connection-string controls. The credential remains concealed in this screenshot." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Database settings include connection-string controls. The credential remains concealed in this screenshot.</figcaption></figure>
</div>

Supply the connection string as a server-side application variable and use a standard PostgreSQL driver or ORM. Preserve the connection options supplied by EOS. Editing the connection string in the dashboard is for one-time copying; it does not save new database credentials.

From a trusted terminal:

```sh
eos database list
eos database credentials DATABASE_ID
```

The credentials command displays secrets. Use the exact ID returned by the list command, and keep its output private. Owners and Editors can retrieve credentials; Viewers cannot.

## Add database users

Give each application, reporting tool, or integration its own PostgreSQL login with only the permissions it needs. You must be a database **Owner** to create or manage these users. PostgreSQL logins control connections to the database; EOS workspace sharing is managed separately in **Users and Access**.

### Create a user in EOS

1. Open **Databases → your database → Database users**.
2. Select **Create database user** and enter a user name, such as `reporting-service`.
3. Under **General Database Permissions**, enable **Create schemas** only if needed. **Delete schemas** applies to the selected schemas and requires them to be empty.
4. Search for a schema or table, then tick a schema to reveal its permissions.
5. Select the required **Data access** and **Metadata access** permissions. All permissions start off.
6. Select **Create user**. Copy the password and connection string from the confirmation dialog and store them privately before closing it. The additional user's password is shown only once.

Use the returned connection string in your application's server-side configuration.

### Choose permissions

| Scope                        | Available permissions                                                          |
| ---------------------------- | ------------------------------------------------------------------------------ |
| General database permissions | Create schemas; delete selected empty schemas.                                 |
| Schema metadata              | Create tables and rename the selected schema.                                  |
| Table data                   | Read, insert rows, update rows, and delete rows, independently for each table. |
| Table metadata               | Update table schema or drop the table.                                         |

For example, a reporting user can have **Read** on `sales.orders` with every write and metadata permission left off. Another integration can have **Read**, **Insert rows**, and **Update rows** on that table without permission to delete rows or change the table schema.

The schema-level **Data access · all current tables** controls apply permissions to existing tables. New tables require an explicit permission update. Views support read-only access in this editor.

Metadata permissions use EOS's controlled SQL helper rather than granting table ownership or unrestricted PostgreSQL `ALTER` rights. **Update table schema** supports renaming a table and adding or removing columns. Drop operations do not cascade into other objects. For example, a user with the relevant permission can add a text column with:

```sql
SELECT eos_access.change_structure('table.add_column', 'sales', 'orders',
  '{"name":"reference","type":"text"}');
```

### Edit access and reset passwords

In **Database users**, select **Edit permissions** to change an additional user's access, **Reset password** to replace its password, or **Revoke** to block new connections and terminate existing sessions.

The **Default** row represents the main database user and shows its actual PostgreSQL username. It cannot be revoked or have its permissions edited here. Reset its password from that row or from the database's **Settings** tab.

After a password reset, update the credentials in connected applications and integrations. Existing connections stay open; new connections need the new password.

### Manage users with the CLI

Use `catalog` to discover the current schemas and tables, then create a JSON permissions file. This example grants read-only access to the existing `sales.orders` table:

```json
{
  "name": "reporting-service",
  "permissions": {
    "create_schema": false,
    "schemas": [{
      "name": "sales",
      "access": true,
      "structure": {"create_table": false, "rename": false, "drop": false},
      "tables": [{
        "name": "orders",
        "data": ["select"],
        "structure": {"alter": false, "drop": false}
      }]
    }]
  }
}
```

Save it as `permissions.json`, replacing schema and table names with those in your database:

```sh
eos database users catalog DATABASE_ID --json
eos database users create DATABASE_ID permissions.json --json
eos database users list DATABASE_ID --json
eos database users update DATABASE_ID USER_ID permissions.json --json
eos database users reset-password DATABASE_ID USER_ID --json
eos database users revoke DATABASE_ID USER_ID --json
```

Run only the operation you need: `update` replaces the complete permission set, and `revoke` disconnects the user. Creation and password-reset output includes credentials; keep it private. Create and update also accept `-` to read JSON from stdin.

Use `eos database reset-password DATABASE_ID --json` to reset the main user's password. Password resets generate a new password by default; add `--password-stdin` to supply a password of 16–256 characters through stdin without putting it in command-line arguments.

## Explore tables and run SQL

1. Open **Table viewer**.
2. Expand a schema in the left-hand tree, then inspect a table and its columns.
3. Open a query tab and enter SQL.
4. Select **Run query**, or use Command+Enter on macOS / Control+Enter on other platforms.
5. Inspect the results, use pagination for larger results, or export results as CSV.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/database-query.webp" alt="The database workspace shows the schema tree, SQL editor, and results for a sample partner query." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The database workspace shows the schema tree, SQL editor, and results for a sample partner query.</figcaption></figure>
</div>

For a table created by your application, a first exploration query might be:

```sql
SELECT id, name, status
FROM public.partners
ORDER BY id
LIMIT 50;
```

Replace the table and column names with those in your database. The screenshot uses sample documentation data; a newly created database will not contain application tables until you create them or run migrations.

Query tabs preserve your SQL workspace. The editor includes formatting and AI assistance controls; review suggested SQL before running it. SQL executes against the actual database, so modifications change its data.

## Review activity

Open **Activity logs** for Stacksync-generated events such as database actions, credential access, and query execution metadata. These are application-level audit events, not native PostgreSQL server logs. Query events record metadata such as timing, command type, and row count rather than returned data or SQL text.

Share the database through [Users and Access](/enterprise-os/access-and-permissions) to collaborate without sharing a personal EOS sign-in.

# Databases

> Provision managed PostgreSQL for business applications, with dedicated credentials and a built-in data workspace.

Source: https://docs.stacksync.com/enterprise-os/databases

You can create one PostgreSQL database from the CLI without signing in. EOS creates a guest workspace and stores a private device credential. Claim the workspace before its 14-day deadline to keep the database. See [guest workspaces](/enterprise-os/guest-workspaces).

Give an application a durable place to store its business data without provisioning a database server yourself. EOS creates managed PostgreSQL databases with a dedicated database user and generated credentials.

Move a useful tool beyond one person's local files. A shared database gives the application a common place for business records, so the team can work from the same information as the workflow grows.

Databases are currently **co-located per workspace**: they share the workspace's database infrastructure, while each provisioned database has its own database and dedicated role. A managed database is logically isolated; it is not a dedicated database server.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/databases.webp" alt="Managed PostgreSQL databases in the Stacksync EOS workspace." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Managed PostgreSQL databases in the Stacksync EOS workspace.</figcaption></figure>
</div>

## Create a database

1. Select **Databases** in the sidebar.
2. Select **Create database**.
3. Enter a descriptive display name, such as `Partner portal production`.
4. Select **Create database** and open the resulting resource.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/database-create.webp" alt="Create a managed PostgreSQL database with a descriptive name; EOS provisions the database, user, and password." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Create a managed PostgreSQL database with a descriptive name; EOS provisions the database, user, and password.</figcaption></figure>
</div>

The display name helps your team identify the resource. Use separate names for distinct applications and environments. Database credentials should be supplied to the application through server-side configuration.

From the CLI:

```sh
eos database list
eos database create 'Partner portal production' --json
```

The create response contains credentials. Store it privately and keep credentials out of source control and shared logs.

## Work with the database

| Area                 | What it provides                                                                   |
| -------------------- | ---------------------------------------------------------------------------------- |
| **Table viewer**     | Schema and table browsing, SQL editing, query execution, and result inspection.    |
| **Settings**         | Resource description, display name, connection information, and database deletion. |
| **Activity logs**    | Stacksync database and credential activity from the UI, CLI, and API.              |
| **Users and Access** | Direct user and group sharing, managed by the resource Owner.                      |

Give developers Editor access when they need database credentials and SQL tools. Use Viewer for approved metadata without credentials. Workspace membership alone does not grant database access.

## Manage the lifecycle

Renaming a display name changes how the resource is identified in EOS; connect using the database's returned connection information. Deleting a database permanently removes its data and dedicated PostgreSQL user. Only an Owner can delete it, and the CLI requires the database ID and exact display name:

```sh
eos database delete DATABASE_ID 'Partner portal production'
```

Continue with [connect and query](/enterprise-os/databases/connect-and-query) to connect an app and explore its data.

# Deploy without signing in

> Deploy an app and PostgreSQL database, then claim your workspace when you are ready.

Source: https://docs.stacksync.com/enterprise-os/guest-workspaces

Deploy your first application without creating an account or approving a browser sign-in. EOS automatically creates a guest workspace when you deploy an app or create a database from the CLI.

```sh
eos deploy --project=my-app
# Optional PostgreSQL database:
eos database create my-app-db
```

A guest workspace supports one application and one database. EOS adds no guest-specific limits on build frequency, build duration, runtime scaling, database connections, storage usage, or network usage. Existing platform limits still apply. AI inference, API keys, File Storage, accessories, and collaboration require an account.

## Keep access from your device

The CLI saves a private guest credential on your device. The server stores a hash of that credential and associates it with the guest identity and workspace. Subsequent deployments from the same CLI installation reuse the workspace.

Treat the credential as a secret. Anyone with it can manage the guest resources and claim the workspace. Losing it means losing the proof needed to claim the workspace; signing in alone cannot recover it. Do not commit or share credential files.

Guest applications are public. Database credentials remain private and belong in server-side configuration.

## Claim before the deadline

EOS 4.15.5 shows a unique **Activate workspace** link before upload and again after a guest deployment. Open it to sign in with a new or existing account while the build continues; the browser opens the claimed workspace. The link expires after 30 minutes. Keep it private. The CLI waits until the source upload is accepted before claiming, and its background login helper can finish after the deployment command returns, while the device stays online. If the link expires or the device disconnects, run `eos login`.

Unclaimed workspaces and their applications and databases are deleted **14 days after workspace creation**. Deploying again does not extend the deadline. The CLI displays the expiration time.

```sh
eos workspace current
eos auth login
```

Use the ID shown by `eos workspace current`. Login automatically claims and selects the guest workspace for the account you sign in with. This works for both existing accounts and accounts created during sign-in, in interactive and noninteractive CLI sessions. Your existing workspaces stay unchanged. If the automatic claim fails, the CLI preserves the guest credential; retry with `eos workspace claim WORKSPACE_ID`.

Claiming requires both your account login and the guest credential on this device. EOS transfers ownership to your account, revokes the guest credential, and removes the guest expiration deadline. Your application and database remain in the same workspace. You can claim additional guest workspaces when you hold their credentials.

You must **sign in and claim the workspace before inviting users**, including External Operators. Signing in without claiming does not unlock collaboration in that guest workspace.

Claiming does not change an application's public access policy. After claiming, review [managed authentication](/enterprise-os/applications/managed-authentication) and configure the intended audience.

Open your selected workspace with `eos open`. Dashboard links include `/workspace/{workspace_id}` so copied links retain their context. See [workspace URLs and opening EOS](/enterprise-os/workspace-urls).

# Stacksync Enterprise OS

> Turn employee ideas into secure, shared business applications with managed deployment, authentication, data, AI, and storage.

Source: https://docs.stacksync.com/enterprise-os

**Everyone can build. Getting that software into everyday use is the harder part.** AI coding tools have made it easier for employees to create useful applications. Deployment, infrastructure, authentication, and access controls still stand between a promising prototype and a process the company can rely on.

**Stacksync Enterprise OS (EOS) gives teams a managed path from an idea to a secure, shared business application.** The people closest to the work can build software around their real workflows, deploy it, and share it with colleagues. Leaders can turn local improvements into wider operational value, while IT teams establish access and resource controls in a common workspace.

EOS brings application deployment, PostgreSQL databases, AI inference, file storage, and managed authentication together. Teams can move from experimentation to everyday use without assembling a separate deployment stack for every initiative.

## Software built around the way your team works

The people handling customer requests, reconciling invoices, or coordinating partners see friction that a generic tool may miss. Give them a practical way to test an improvement, put it in colleagues' hands, and refine it with real feedback.

| For your team                    | The business advantage                                                                                                      |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **Company leaders**              | Turn employee initiative into shared processes. Give successful experiments a path to adoption across a team or department. |
| **Operators and business teams** | Build tools around the steps, exceptions, and decisions in your actual work, then share the improvement with colleagues.    |
| **IT and platform teams**        | Provide a common deployment path with managed authentication, user and group access, and workspace policies.                |
| **Developers and AI agents**     | Deploy applications and connect their data, AI, and storage through a repeatable CLI workflow.                              |

## Less deployment friction, more operational value

EOS handles application packaging, builds, and deployment, reducing the CI/CD and infrastructure setup required to put each tool into use. Managed authentication removes the need to build a separate sign-in system for every internal application. Microsoft Entra ID and Okta connections are available through enterprise setup, so application access can fit into your company's identity environment.

Resource permissions, workspace model policies, inference budgets, and application runtime settings give teams controls they can apply as an experiment grows. These capabilities support your organization's security and compliance requirements; application design, data handling, and internal approval policies remain part of deploying responsibly.

Read [From idea to business impact](/enterprise-os/business-value) for a practical adoption approach, or follow the [Quick start](/enterprise-os/quick-start) to deploy your first application.

## From idea to a working business application

Consider a partner portal: your sales team needs a place to manage partners, store documents, and draft follow-ups with AI. With EOS, the team can deploy the portal, provision its PostgreSQL database, create an inference key with a spending limit, and give the application a private storage bucket. Managed authentication controls who can open it.

An individual improvement can become a shared workflow: colleagues use the same application, work from the same business data, and benefit from each iteration. The same building blocks support operations dashboards, finance tools, customer-facing services, and departmental AI assistants.

| Building block           | What your team can accomplish                                                                                        |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| **Applications**         | Publish web applications and APIs, inspect deployments, configure memory and autoscaling, and control app access.    |
| **Databases**            | Provision managed PostgreSQL, explore tables, run SQL, and connect applications with dedicated database credentials. |
| **AI inference**         | Use one API key across the available model catalog, with per-key spending limits and request visibility.             |
| **Storage**              | Create private buckets, organize and preview files, and give applications scoped API access.                         |
| **Workspace governance** | Organize people into groups, share individual resources, and choose which AI models teams may use.                   |

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/quick-start.webp" alt="The Quick start page in the Stacksync EOS workspace: start with a coding agent or set up the CLI." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Quick start page in the Stacksync EOS workspace: start with a coding agent or set up the CLI.</figcaption></figure>
</div>

## Built for teams, ready for automation

Business teams can describe what they need to a coding agent. Developers can work from their terminal. Both use the same EOS platform and permissions. The CLI covers deployment, databases, inference, storage, workspace selection, and resource sharing; the dashboard adds visual resource management and administration.

Security follows the resource. Joining a workspace does not automatically let someone read database credentials or change an application. Grant resource roles to individuals or groups, and choose the separate authentication policy for people using an app.

<Cards>
  <Card title="From idea to business impact" description="Turn frontline insights into shared company workflows." href="/https/docs.stacksync.com/enterprise-os/business-value" />

  <Card title="Quick start" description="Take an idea or an existing app to its first deployment." href="/https/docs.stacksync.com/enterprise-os/quick-start" />

  <Card title="Applications" description="Deploy, configure, and operate business applications." href="/https/docs.stacksync.com/enterprise-os/applications" />

  <Card title="Databases" description="Give applications managed PostgreSQL and explore their data." href="/https/docs.stacksync.com/enterprise-os/databases" />

  <Card title="AI inference" description="Connect to AI models with budgets and workspace controls." href="/https/docs.stacksync.com/enterprise-os/ai-inference" />

  <Card title="Storage" description="Store, explore, and serve application files securely." href="/https/docs.stacksync.com/enterprise-os/storage" />

  <Card title="Access and permissions" description="Share resources and separate app use from administration." href="/https/docs.stacksync.com/enterprise-os/access-and-permissions" />
</Cards>

Screenshots throughout these guides were captured in the **Stacksync EOS** workspace. Resource names, usage, and available models are examples; your workspace will reflect its own resources and current catalog.

# Quick start

> Go from a business idea to a live application with a coding agent or the EOS CLI.

Source: https://docs.stacksync.com/enterprise-os/quick-start

Deploy the tool your team needs without setting up a build server or managing application infrastructure. Deploy your first app from the CLI without creating an account. EOS creates a guest workspace automatically. Guest apps are public, and unclaimed workspaces and their resources are deleted 14 days after creation.

## Deploy a GitHub repository without a terminal

Sign in to a claimed workspace, open **Applications**, and select **Deploy a new app from GitHub**. Name the app, optionally save runtime variables, and authorize GitHub. Choose a repository and branch, save, then deploy the current branch state from the confirmation prompt. Future merged pull requests can deploy automatically without a workflow file. See [Deploy from GitHub](/enterprise-os/applications/github-deployments).

## Build with a coding agent

For the dashboard workflow, sign in at [Enterprise OS](https://eos.stacksync.com), select your workspace, and open **Quick start → Build with a coding agent**. Describe the outcome you want, select **Copy prompt**, and paste the prompt into your coding agent. The generated prompt points the agent to the current EOS skill so it can install the CLI, authenticate, provision resources, and deploy.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/quick-start-agent.webp" alt="Describe an application and copy the deployment prompt from Quick start." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Describe an application and copy the deployment prompt from Quick start.</figcaption></figure>
</div>

For example:

> Build a partner portal for our sales team. Store partners and deals in PostgreSQL, keep partner documents in private storage, and use AI to draft follow-up messages. Require team members to sign in before using the application.

Approve the CLI sign-in in your browser when requested. The agent should keep database credentials and API keys in server-side application configuration, build and test the app, run a dry run, and then deploy it. Once deployed, open its returned URL and check the result.

You can also start your own agent conversation with:

```text
Build and deploy this application using Stacksync EOS:
[Describe the application and who should use it.]

Read https://eos.stacksync.com/skill.md and follow its current
instructions. Use eos --help for available commands. Choose my intended
workspace before creating resources. Keep credentials out of source code.
Build and test the app, run a deployment dry run, then deploy and verify it.
```

## Deploy an existing application

### 1. Install EOS

EOS CLI 5 runs natively on Windows, macOS, and Linux, with x64 and ARM64 support. Windows does not require WSL.

On macOS or Linux, run this in Terminal:

```sh
curl -fsSL https://eos.stacksync.com/downloads/install.sh | sh
```

On Windows, run this in PowerShell:

```powershell
$installer = Join-Path $env:TEMP 'eos-install.ps1'
Invoke-WebRequest -UseBasicParsing https://eos.stacksync.com/downloads/install.ps1 -OutFile $installer
powershell -NoProfile -ExecutionPolicy Bypass -File $installer
```

Open a new terminal, then check `eos --version`. The installer selects the executable for your operating system and architecture and verifies its release signature.

Existing shell CLI installations automatically migrate to version 5 on their next ordinary command with updates enabled. Credentials and workspace selection are preserved. If you run `eos update` on the old CLI, run `eos --version` afterward to complete the migration. Once on version 5, use `eos update` for subsequent updates.

### 2. Check and deploy the application

No sign-in is required. If you are already signed in, EOS uses your selected account workspace.

From the folder containing the app's source and package manifest:

```sh
cd ~/projects/partner-portal
eos deploy --dry-run --project=partner-portal
eos deploy --project=partner-portal
```

Your web server must listen on `0.0.0.0` and the `PORT` provided at runtime. A dry run checks the intended package and configuration without uploading or deploying it.

### 3. Open the live application

EOS streams deployment progress and prints the application URL when it succeeds. Use that returned URL: EOS assigns workspace-aware addresses, and you do not need to construct one yourself.

Guest apps are public. Keep the local EOS credential files: they let this device manage and claim your workspace. Run `eos auth login` before the 14-day deadline; the CLI automatically claims the workspace for your new or existing account to keep your resources and invite colleagues. Find the ID with `eos workspace current`. Claiming preserves the app’s public policy; review [managed authentication](/enterprise-os/applications/managed-authentication) before sharing sensitive information.

For new apps created in an account workspace, managed access defaults to **All workspace members**.

## Try a starter application

If you want to try deployment before building your own app:

```sh
eos project quickstart todo-list deploy
```

This downloads a sample to-do application into a new folder and deploys it in the selected workspace, creating a guest workspace if you are not signed in.

Continue with [connecting resources](/enterprise-os/applications/connect-resources) to add a database, AI, or file storage.

Open your selected workspace with `eos open`. Dashboard links include `/workspace/{workspace_id}` so copied links retain their context. See [workspace URLs and opening EOS](/enterprise-os/workspace-urls).

# Storage API access

> Connect applications to private buckets with scoped credentials and simple file operations.

Source: https://docs.stacksync.com/enterprise-os/storage/api-access

A bucket API key lets a backend upload, list, read, or delete files without using a person's EOS management token. The key selects its bucket, so the application does not send a bucket ID with each file request.

## Create a key with the right permissions

Open **Storage → your bucket → API keys → Create API key**. Give the key a descriptive name, choose its scopes, and set an expiry if needed. Store the complete value when it is shown; it is only available once.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/bucket-api-keys.webp" alt="Bucket API keys have explicit permissions and can be updated or revoked independently." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Bucket API keys have explicit permissions and can be updated or revoked independently.</figcaption></figure>
</div>

| Scope    | Allows                         |
| -------- | ------------------------------ |
| `read`   | Download file contents.        |
| `write`  | Upload new files.              |
| `list`   | List objects and browse paths. |
| `delete` | Delete stored objects.         |

For an uploader that does not need to delete existing documents, use `read,write,list`:

```sh
eos storage keys create BUCKET_ID 'Portal backend' --scopes read,write,list
```

Management commands require EOS sign-in and the selected workspace. File commands use the separately supplied `STORAGE_API_KEY`. Sharing the bucket with another user does not reveal existing key values.

## Connect the application

Open the bucket's **Connect** tab for API and CLI examples.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/bucket-connect.webp" alt="The Connect tab provides storage API and CLI examples for the selected bucket." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Connect tab provides storage API and CLI examples for the selected bucket.</figcaption></figure>
</div>

The storage API base path is:

```text
https://eos.stacksync.com/api/storage/v1
```

Upload a file with its destination object path and the key in the Authorization header:

```sh
curl --fail-with-body --request PUT   'https://eos.stacksync.com/api/storage/v1/objects/invoices/2026/october.pdf'   --header "Authorization: Bearer $STORAGE_API_KEY"   --upload-file ./october.pdf
```

Requests need a Content-Length, and the default maximum upload is 50 MiB. Existing object paths return a conflict rather than being overwritten. Keep the key server-side and have your application's own backend enforce which files its end users may access.

## Rotate or reduce access

Use **Edit permissions** to update a key's scopes, or **Revoke** to stop its use. For a replacement key, configure and verify the new key in the application before revoking the old one.

```sh
eos storage keys update BUCKET_ID KEY_ID --scopes read,list
eos storage keys revoke BUCKET_ID KEY_ID
```

The management permission to administer a bucket and the application's key scopes are independent. Removing a teammate's sharing grant is not a substitute for revoking an application key that they already possess.

## Inspect interrupted uploads

```sh
eos storage uploads list BUCKET_ID
eos storage uploads cancel BUCKET_ID UPLOAD_ID
```

Use returned IDs, inspect pending uploads before retrying, and cancel only the upload you intend to abandon. For repeatable upload workflows, the CLI also accepts `--idempotency-key KEY` on `eos storage upload`.

# File Storage

> Give applications private file buckets, a visual file explorer, and scoped API access.

Source: https://docs.stacksync.com/enterprise-os/storage

Store the documents, images, and exports that make business applications useful. EOS Storage combines private buckets with a visual file explorer and API keys for application access.

Keep the supporting files alongside the workflow they belong to. Teams can explore and manage those files in the dashboard, while applications use scoped API access to work with the same bucket.

Use a bucket for a coherent purpose, such as partner documents, marketing assets, or customer exports. Each bucket has its own region, limits, sharing grants, and API keys.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/storage.webp" alt="Storage buckets in the Stacksync EOS workspace, showing region, usage, file count, and access role." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Storage buckets in the Stacksync EOS workspace, showing region, usage, file count, and access role.</figcaption></figure>
</div>

## Create a bucket

1. Select **Storage → Create bucket**.
2. Enter a name that describes its purpose.
3. Choose the region, **US** or **EU**.
4. Create the bucket, then open it to upload and manage files.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/storage-create.webp" alt="Create a private bucket and choose its storage region." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Create a private bucket and choose its storage region.</figcaption></figure>
</div>

The region is fixed at creation. New buckets default to US when no region is specified through the CLI.

```sh
eos storage buckets list
eos storage buckets create 'partner-documents' --region EU
```

## Explore the bucket

| Tab                  | What you can do                                                                       |
| -------------------- | ------------------------------------------------------------------------------------- |
| **Files**            | Upload, search, explore folders, preview supported files, download, and delete files. |
| **API keys**         | Create application credentials and manage their permissions or revocation.            |
| **Settings**         | Add a description and set storage and file-count limits.                              |
| **Users and Access** | Share the bucket with users and groups using resource roles.                          |
| **Connect**          | Find connection examples for applications and the CLI.                                |

Owners manage the bucket's settings, keys, and sharing. Editors can work with its files. Viewers can inspect approved metadata, but do not gain file-content access simply by having a Viewer grant. Bucket API keys grant separate application access through their scopes.

## Set capacity limits

Open **Settings** to configure **Storage limit (MB)** and **Maximum number of files**, then select **Save settings**. These limits help keep a bucket's footprint aligned with its purpose.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/bucket-settings.webp" alt="Bucket settings combine a description with storage and file-count limits." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Bucket settings combine a description with storage and file-count limits.</figcaption></figure>
</div>

CLI updates use a byte count for the storage limit:

```sh
eos storage buckets update BUCKET_ID --byte-limit 1073741824 --object-limit 10000
eos storage usage --json
```

## Delete a bucket

The bucket must be empty and have no pending uploads before deletion. Deleting it revokes its API keys. Use the Owner-only deletion action in **Settings**, or provide the exact bucket name in the CLI:

```sh
eos storage buckets delete BUCKET_ID 'partner-documents'
```

<Cards>
  <Card title="Manage files" description="Upload, browse, search, preview, and download bucket contents." href="/https/docs.stacksync.com/enterprise-os/storage/manage-files" />

  <Card title="Application API access" description="Create scoped keys and connect an application to storage." href="/https/docs.stacksync.com/enterprise-os/storage/api-access" />
</Cards>

# Manage files

> Explore bucket folders, upload documents, preview supported formats, and manage stored objects.

Source: https://docs.stacksync.com/enterprise-os/storage/manage-files

Use the **Files** tab to work with bucket contents directly in EOS. Your operations team can inspect uploads, your marketing team can find assets, and developers can confirm that their application is storing the right files.

## Browse folders and search

Open a bucket, then expand the arrow beside a folder. The table shows file names, sizes, upload times, and actions. Use search to find matching files and folders across the bucket, including files in nested folders.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/storage-folders.webp" alt="The marketing-assets bucket expanded to show files inside the brand folder." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The marketing-assets bucket expanded to show files inside the brand folder.</figcaption></figure>
</div>

Folders are represented by object paths. For example, `invoices/2026/october.pdf` appears under the `invoices` and `2026` folders. You do not need to create those folders separately before uploading the file.

## Upload a file

1. Open the bucket's **Files** tab.
2. Select **Upload file**.
3. Choose a local file and enter its destination path.
4. Upload it, then confirm that it appears in the file list.

Use meaningful paths such as `partners/acme/contract.pdf`. The current default upload limit is 50 MiB per file. Existing paths are not overwritten: a conflicting path is rejected, so use a new path for a new version or deliberately remove the old object first.

If an upload is interrupted, inspect **Pending uploads** before retrying. An ambiguous client response does not necessarily mean that nothing was uploaded.

## Preview a file

Use the file's **View** action to open a preview for supported formats. The viewer supports common images, PDFs, text, and CSV files. Unsupported formats can still be downloaded.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/storage-preview.webp" alt="Preview a stored image without leaving its bucket." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Preview a stored image without leaving its bucket.</figcaption></figure>
</div>

The CSV viewer presents supported tabular files as a table; files it cannot interpret reliably fall back to text. Previewing is a way to inspect stored content without first saving it to your laptop.

## Download or delete

Use **Download** to retrieve a file. Downloads are delivered as attachments. Use **Delete** to remove an object after checking its path and confirming the action. It disappears from listings while underlying storage cleanup may take additional time.

Dashboard file access follows the user's bucket role. For application access, use a [bucket API key](/enterprise-os/storage/api-access) with the relevant scopes.

## Work from the CLI

With `STORAGE_API_KEY` securely set for this bucket:

```sh
eos storage upload ./october.pdf invoices/2026/october.pdf
eos storage objects list --prefix invoices/
eos storage download invoices/2026/october.pdf ./downloaded-october.pdf
```

List responses can include a cursor. Pass it with `--cursor` to continue retrieving objects. To deliberately delete a file, use `eos storage objects delete OBJECT_PATH` with a key that includes the `delete` scope.

# Users and groups

> Organize your company and external app users in a workspace, then share resources with the right teams.

Source: https://docs.stacksync.com/enterprise-os/users-and-groups

Deploying an app or creating a database from the CLI does not require login. To invite users or manage collaboration in a guest workspace, first sign in and claim it with `eos workspace claim WORKSPACE_ID`. See [guest workspaces](/enterprise-os/guest-workspaces) for the 14-day deadline and device credential requirements.

A workspace brings people and resources together. Use **Users and Groups** to invite colleagues and organize teams; use each resource's **Users and Access** tab to decide what those teams can manage or use.

## Workspace roles

| Role                  | Workspace capabilities                                                                                                         |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Admin**             | Manage workspace membership, roles, groups, and settings. Can see the full workspace group directory.                          |
| **Member**            | Collaborate in the workspace and see its user directory. Can see groups they belong to. Resource access still requires grants. |
| **External Operator** | Use explicitly shared applications without access to the workspace directory or management APIs.                               |

At least one Admin must remain. An Admin does not automatically gain management access to every resource. A Member can own a resource without becoming a workspace Admin.

## Invite colleagues

1. Open **Users and Groups → Users** as a workspace Admin.
2. Enter one email address or a comma-separated list.
3. Select the intended workspace role.
4. Select **Send invitations**.
5. Follow each invitation's status in the user table.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/users.webp" alt="The Users tab combines workspace invitations with active and pending membership. Additional email addresses are concealed in this screenshot." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>The Users tab combines workspace invitations with active and pending membership. Additional email addresses are concealed in this screenshot.</figcaption></figure>
</div>

Invitations expire after seven days. Invitees sign in with the invited email address and accept their invitation. Administrators can copy an invitation link or revoke a pending invitation.

You can preassign resource or group access to a pending invitation. That access becomes active only after valid acceptance. External Operators are added directly by email rather than through the normal invitation acceptance flow; give them an explicit Operator grant on the app they should use.

## Organize groups

Open the **Groups** tab, select **Create group**, and name it for a team or function, such as Engineering, Finance, or Operations. Edit the group to add or remove existing users or valid pending invitations.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/users-groups.webp" alt="Workspace groups organize teams for sharing resources; membership and resource grants are managed separately." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>Workspace groups organize teams for sharing resources; membership and resource grants are managed separately.</figcaption></figure>
</div>

Groups make recurring access decisions easier: share a reporting database with Engineering as Editor, or an internal app with Operations as Operator. Adding or removing group members then updates inherited access across the resources shared with that group.

Groups containing External Operators may receive only Operator grants on applications. They cannot receive management roles or grants to databases, inference keys, or storage buckets. Remove or separate incompatible group membership rather than broadening a partner's access to internal resources.

## Manage groups from the CLI

```sh
eos workspace users --json
eos workspace groups --json
eos workspace groups create 'Operations' --json
eos workspace groups add GROUP_ID user USER_ID
eos workspace groups add GROUP_ID invitation INVITATION_ID
eos workspace groups remove GROUP_ID user USER_ID
```

The explicit `user` or `invitation` type matters: these IDs belong to different recipient types. Group changes require a workspace Admin. Use the dashboard for workspace invitations, workspace role changes, and group deletion; dedicated CLI commands for those actions are not currently exposed.

Removing a workspace member clears their resource grants in that workspace. Review application policies and any previously distributed application credentials as part of your offboarding process.

# Workspace settings

> Manage the workspace identity and govern which AI models are available to every inference key.

Source: https://docs.stacksync.com/enterprise-os/workspace-settings

Deploying an app or creating a database from the CLI does not require login. To invite users or manage collaboration in a guest workspace, first sign in and claim it with `eos workspace claim WORKSPACE_ID`. See [guest workspaces](/enterprise-os/guest-workspaces) for the 14-day deadline and device credential requirements.

A workspace is the shared boundary for your team's applications, databases, AI keys, storage, and membership. Confirm the workspace in the sidebar before creating resources or changing settings.

## General settings

Open **Workspace settings → General Settings**. Workspace Admins can edit the workspace name and save it. Use **Manage users and groups** to maintain membership and team groups.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/workspace-settings.webp" alt="General Settings identifies the selected workspace and provides access to people and group management." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>General Settings identifies the selected workspace and provides access to people and group management.</figcaption></figure>
</div>

Switch workspaces from the sidebar when working with another team. In the CLI:

```sh
eos workspace list
eos workspace switch WORKSPACE_ID
eos workspace current
```

`EOS_WORKSPACE_ID` overrides the saved CLI selection for a command or environment. Check it if commands appear to use a different workspace than expected.

## Control available AI models

Open **AI Settings** to choose which models workspace inference keys can use. This policy applies centrally across the workspace: individual keys retain their own spending limits, but do not override the workspace's allowed-model list.

<div data-with-frame="true">
  <figure><img src="/https/docs.stacksync.com/images/enterprise-os/workspace-model-policy.webp" alt="AI Settings provides provider and model search, model selection, and a workspace-wide availability policy." width="1600" height="1050" loading="lazy" decoding="async" /><figcaption>AI Settings provides provider and model search, model selection, and a workspace-wide availability policy.</figcaption></figure>
</div>

### Make every model available

Use **Select all** and save if there are changes. This allows the full catalog, including new models added later. It is useful when teams should be able to evaluate new capabilities as the regularly updated catalog evolves.

### Allow a specific selection

1. Use **Unselect all** as a starting point, or adjust the existing selection.
2. Search for a provider, model name, ID, or capability.
3. Enable the models your team may use.
4. Select **Save AI Settings**.

With a specific selection, newly added models are not automatically enabled. An Admin must explicitly approve them. Automatic routing models are excluded from specific selections because they may route requests to models outside the approved list.

An empty approved selection leaves no models available. Review the selected count and the needs of running applications before saving a restriction.

## Combine model policy with budgets

The model policy controls **which models** an application can call. Each inference key's allowance controls **how much it can spend**. Use both: approve the models appropriate for your company, then set budgets by application or team.

Workspace administration does not replace resource sharing. Use [access and permissions](/enterprise-os/access-and-permissions) to grant access to a particular application, database, key, or bucket.

Open your selected workspace with `eos open`. Dashboard links include `/workspace/{workspace_id}` so copied links retain their context. See [workspace URLs and opening EOS](/enterprise-os/workspace-urls).

# Workspace URLs and opening EOS

> Open the CLI workspace in your browser and share links that retain their workspace context.

Source: https://docs.stacksync.com/enterprise-os/workspace-urls

Every EOS dashboard page includes its workspace ID in the URL:

```text
https://eos.stacksync.com/workspace/123
https://eos.stacksync.com/workspace/123/databases?database=456
https://eos.stacksync.com/workspace/123/inference
https://eos.stacksync.com/workspace/123/storage
```

Copy the full URL to return to the same workspace and resource. The recipient must sign in and have access to that workspace and resource. Links do not grant access. Query parameters and tabs stay in the URL.

Opening a link without a workspace, with an invalid ID, or for an inaccessible workspace falls back to your current default workspace. If you need to sign in first, EOS preserves the destination through login. Each open tab keeps the workspace from its URL, even when you switch workspaces in another tab.

## Open from the CLI

```sh
eos update
eos workspace current
eos open
```

`eos open` opens the selected CLI workspace in your browser and prints its URL. On a remote or headless machine, open the printed link on your own computer. If the selected workspace is still a guest workspace, the CLI asks you to sign in, claims it for that account, and then opens it.

When login claims a guest workspace, the authorization page waits for the claim and opens that workspace's Applications page. This works for new and existing accounts.

## Workspace API requests

Use the workspace ID in the management API URL:

```sh
curl --fail-with-body \
  "https://eos.stacksync.com/workspace/$WORKSPACE_ID/api/projects" \
  -H "Authorization: Bearer $EOS_TOKEN"
```

The CLI sends workspace-scoped resource requests in this format. Existing `/api/...` endpoints remain supported with `X-Workspace-Id`. If both the URL and header specify a workspace, they must match. Invalid or inaccessible API scope returns an error; API writes never silently fall back to another workspace.

Authentication and runtime authentication endpoints remain global. AI inference `/api/inference/v1` and File Storage `/api/storage/v1` data endpoints remain global because their API keys already determine resource access. Workspace management URLs do not change deployed application URLs or database connection strings. The [OpenAPI specification](https://eos.stacksync.com/openapi.json) lists the scoped management endpoints and compatibility routes.

## Guest workspace names

Before claiming, the workspace is called **Guest workspace**. Claiming assigns a welcoming name using the account's email or display name. A company address such as `person@company.com` becomes **Company's workspace**. Personal email addresses use a first-name clue when available; for example, `rubenburdin@gmail.com` becomes **Ruben's workspace**. If no useful clue is available, EOS uses **Claimed Guest workspace**.

Names are best-effort suggestions and can be changed in Workspace settings. Naming does not change workspace IDs, permissions, or URLs. Unclaimed guest resources still expire 14 days after creation.

# MCP Activity Log

> Every call AI assistants made in your workspace through the Stacksync MCP: who, through which assistant, what, and how it ended

Source: https://docs.stacksync.com/mcp/activity-log

The MCP Activity Log shows what AI assistants did in your workspace through the [Stacksync MCP](/mcp): every read, every change, every call an [MCP Gateway Policy](/mcp/gateway-policies) blocked, every change waiting for a member's approval, and every assistant connected or disconnected.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-activity-log.webp" alt="The MCP Activity Log page in the Stacksync app, with the counts of the last 24 hours, the filters and the entries of an AI assistant." width="1721" height="830" loading="lazy" decoding="async" />
  </figure>
</div>

## Open the Activity Log

In the Stacksync app, open the **MCP** page and select **Activity Log**. The log opens in a new browser tab and refreshes by itself. Use the page controls under the list to move through older entries.

## Who sees what

* **Workspace owners** see the whole workspace: every member, every assistant and every API key.
* **Other members** see their own activity: the calls made through their own sign-ins and their own user API key.

Calls made with a workspace API key act as the workspace, so only owners see them.

## What each entry shows

| Column                 | What it holds                                                                                                                                                                                                                                                                                                                     |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Time**               | When the call was made.                                                                                                                                                                                                                                                                                                           |
| **Channel**            | The AI assistant the call came through, by the name it signed in with (Claude, ChatGPT, Cursor, ...). **API key** for a call made with an API key, and **Web app** for an MCP Gateway Policy changed in the Stacksync app.                                                                                                        |
| **Member**             | The person the call was made for: the signed-in member, or the person an API key acts as, with the key named under them.                                                                                                                                                                                                          |
| **Resource**           | What the call acted on, by name as it was at the time: an app and its connection for an app action, or a sync, workflow, Genie, connection, folder, queue, variable, API proxy, knowledge base or file. A list names the kind of resource listed.                                                                                 |
| **Action**             | What was done: the app action's own name (for example *Update Records*), or the operation on the resource (*Read sync*, *List workflows*, *Create folder*, *Run workflow*, ...).                                                                                                                                                  |
| **MCP Gateway Policy** | The policy whose verdict set the outcome, and **N policies evaluated** when several policies apply to the member: select it to see [every policy evaluated for the call](#policies-evaluated-for-a-call). **Default** when no other policy applies. A dash for calls policies don't govern, such as listing syncs or connections. |
| **Status**             | How the call ended, see below.                                                                                                                                                                                                                                                                                                    |

## Statuses

| Status                   | Meaning                                                                                                                                                                                |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Success**              | The call ran.                                                                                                                                                                          |
| **Approved**             | The change ran after the member accepted its preview, under [Ask before every change](/mcp/governance) or a [guardrail](/mcp/gateway-policies#guardrails) that asked for confirmation. |
| **Blocked**              | An MCP Gateway Policy refused the call: the app or action is not allowed, or a guardrail refused the change. Nothing ran. The entry names the policy and the reason.                   |
| **Waiting for approval** | The change was previewed and the member has not answered yet. A preview expires after 10 minutes.                                                                                      |
| **Not approved**         | The member didn't accept the change before its preview expired. Nothing ran.                                                                                                           |
| **Error**                | The app or Stacksync answered an error. The entry shows it.                                                                                                                            |

## Policies evaluated for a call

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-activity-log-evaluated-policies-guardrail.webp" alt="The MCP Activity Log in the Stacksync app with the Policies evaluated for this call panel open, listing each MCP Gateway Policy with its result and the reason." width="1915" height="675" loading="lazy" decoding="async" />
  </figure>
</div>

For a call an [MCP Gateway Policy](/mcp/gateway-policies) governs, every policy that reaches the member, directly or through their groups, is evaluated one by one. Select **N policies evaluated** under the policy name to see each of them:

| Column     | What it holds                                                                                                                                                                                                                         |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Policy** | The policy, linked to the **MCP Gateway Policies** tab.                                                                                                                                                                               |
| **Result** | What the policy said on its own: **Allowed**, **Blocked**, **Asked the person** when its guardrails couldn't decide the change from the call alone, or **Not applied** for the Default Policy when the member has their own policies. |
| **Reason** | Why, in plain words: the app or action switch that decided, or the guardrail the policy applied, quoted, with the explanation of the check.                                                                                           |

The most permissive verdict sets the outcome shown in **Status**: a call one policy allows runs even when another policy blocks it. The first row is the policy the outcome follows.

## Counts and filters

Above the log, four counts cover the selected time range: **Calls**, **Blocked**, **Waiting for approval** and **Errors**.

Filter the log by **time range** (last 24 hours, 7 days or 30 days), **member**, **channel**, **MCP Gateway Policy** and **status**, or search by member, channel, resource or action. The link of a filtered view keeps its filters, so you can share it with another owner.

## Good to know

* **What is recorded.** The action, the resource and its name, the assistant, the member, the policy and the outcome. Never the data an assistant read or sent, and never a credential.
* **Names at the time.** Entries keep the name a resource had when the call was made, so a renamed or deleted resource still reads as it did then.
* **Where it comes from.** The entries are the workspace's audit log, written in the region of the resource. The log shows both regions together.

# Authentication

> How AI assistants sign in to the Stacksync MCP, how long sessions last, and when to use API keys

Source: https://docs.stacksync.com/mcp/authentication

One Stacksync MCP connection and one sign-in give your assistant access to both [Stacksync platform management](/mcp/platform) and [MCP Gateway](/mcp/gateway), subject to your permissions and workspace settings.

## Sign in with your Stacksync login

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/stacksync-login.webp" alt="The Stacksync login page with the Log in tab, the Continue with Google button and the work email field." width="1728" height="947" loading="lazy" decoding="async" />
  </figure>
</div>

The Stacksync MCP uses OAuth. The first time your assistant uses the server, it opens the Stacksync sign-in page:

* Sign in with your Stacksync login, as in the Stacksync app.
* Choose a **default workspace**. Your assistant uses it for requests that don't name a workspace.
* To grant read-only access, clear **Make changes**. Your assistant can then read your resources but not change them.

## Your permissions, nothing more

Your assistant acts on your behalf, with your role in each Stacksync workspace you belong to. It sees only the resources and data you can see in the Stacksync app. Workspace owners can limit it further with [governance settings](/mcp/governance) and [MCP Gateway Policies](/mcp/gateway-policies).

One server URL serves all your workspaces, in every Stacksync region.

## Sessions

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-sessions.webp" alt="The Sessions tab of the MCP page in the Stacksync app, with the AI clients authorized on the workspace and a Revoke link on each." width="1728" height="997" loading="lazy" decoding="async" />
  </figure>
</div>

Your assistant stays signed in. You sign in again only after 30 days of inactivity, and at least every 90 days.

The **Sessions** tab of the **MCP** page lists the assistants you have signed in, with their last activity. Select **Revoke** to end a session immediately.

## API keys

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/workspace-api-key.webp" alt="The Workspace Settings page in the Stacksync app, with the Settings icon and the Generate new API key button highlighted." width="1728" height="898" loading="lazy" decoding="async" />
  </figure>
</div>

Use an API key instead of signing in when no person is present to sign in: scripts, CI pipelines, and MCP clients without OAuth. Send the key in the `Authorization` header:

```
Authorization: Bearer <api-key>
```

Stacksync has two types of API keys:

|                          | User API key                                                                                                                  | Workspace API key                              |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| **Acts as**              | You                                                                                                                           | The workspace, with the workspace owner's role |
| **Workspaces**           | Every Stacksync workspace you belong to, with your role in each. When you belong to several, the request names the workspace. | Only the workspace that created it             |
| **Where to create it**   | Your **Profile** page, under **Stacksync User API Key**. Each user has one key, and regenerating it replaces the old one.     | **Workspace settings → Security & API keys**   |
| **MCP Gateway Policies** | The policies that include you, or the Default Policy                                                                          | The Default Policy                             |
| **Rate limit**           | 120 tool calls per minute, shared with your signed-in assistants                                                              | 120 tool calls per minute for each key         |
| **Shown in activity as** | You                                                                                                                           | The API key                                    |

An API key can read and make changes, with no read-only option. When **Ask before every change** is on, changes made with an API key also wait for acceptance. [Learn more](/mcp/governance).

Keep API keys secret: anyone with a key can act with its access. Use sign-in for AI assistants that people use directly.

# Connect your AI assistant

> Add the Stacksync MCP server to Claude, ChatGPT, Codex, Cursor, VS Code, Windsurf, Gemini CLI and other MCP clients

Source: https://docs.stacksync.com/mcp/connect

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/connect-your-ai-client.webp" alt="The Connect tab of the MCP page in the Stacksync app, with the list of AI clients, the setup steps for Claude and the Copy button next to the MCP server URL." width="1319" height="700" loading="lazy" decoding="async" />
  </figure>
</div>

This single connection provides both [Stacksync platform management](/mcp/platform) and [Stacksync MCP Gateway](/mcp/gateway). You do not need to add a second server for gateway access.

Add the Stacksync MCP server to your AI assistant with the server URL below, then sign in with your Stacksync login. You can also copy the URL from the **Connect** tab of the **MCP** page in the Stacksync app.

```
https://mcp.stacksync.com/mcp
```

<Tabs items="[&#x22;Claude&#x22;,&#x22;Claude Code&#x22;,&#x22;ChatGPT&#x22;,&#x22;Codex&#x22;,&#x22;Cursor&#x22;,&#x22;VS Code&#x22;,&#x22;Windsurf&#x22;,&#x22;Gemini CLI&#x22;,&#x22;Other&#x22;]">
  <Tab value="Claude">
    In Claude on the web or desktop:

    1. Open **Customize → Connectors**, select **+ Add**, then **Add custom connector**.
    2. Name the connector `Stacksync` and enter the server URL `https://mcp.stacksync.com/mcp`.
    3. Select **Connect**, sign in to Stacksync and choose your default workspace.

    On Team and Enterprise plans, an owner first adds the connector in **Organization settings → Connectors**. Members then connect to it individually.
  </Tab>

  <Tab value="Claude Code">
    ```bash
    claude mcp add --transport http stacksync https://mcp.stacksync.com/mcp
    ```

    Add `--scope user` to make the server available in every project. Start Claude Code, run `/mcp`, select `stacksync` and complete the sign-in in your browser.
  </Tab>

  <Tab value="ChatGPT">
    On ChatGPT Plus, Pro, Business, Enterprise and Edu plans:

    1. Open **Settings → Apps → Advanced settings** and turn on **Developer mode**. On Business and Enterprise plans, an administrator may need to allow it.
    2. Select **Create app**, name it `Stacksync`, enter the server URL `https://mcp.stacksync.com/mcp` and choose **OAuth**.
    3. Sign in to Stacksync, then enable Stacksync from the tools menu in any chat.
  </Tab>

  <Tab value="Codex">
    ```bash
    codex mcp add stacksync --url https://mcp.stacksync.com/mcp
    codex mcp login stacksync
    ```
  </Tab>

  <Tab value="Cursor">
    [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=stacksync\&config=eyJ1cmwiOiJodHRwczovL21jcC5zdGFja3N5bmMuY29tL21jcCJ9), or add the server to `~/.cursor/mcp.json`:

    ```json
    {
      "mcpServers": {
        "stacksync": {
          "url": "https://mcp.stacksync.com/mcp"
        }
      }
    }
    ```

    Then select **Connect** next to `stacksync` in Cursor's MCP settings and sign in.
  </Tab>

  <Tab value="VS Code">
    ```bash
    code --add-mcp '{"name":"stacksync","type":"http","url":"https://mcp.stacksync.com/mcp"}'
    ```

    Or add the server to `.vscode/mcp.json` in your project:

    ```json
    {
      "servers": {
        "stacksync": {
          "type": "http",
          "url": "https://mcp.stacksync.com/mcp"
        }
      }
    }
    ```

    Then open Copilot Chat in **Agent** mode, start `stacksync` from the tools picker and sign in.
  </Tab>

  <Tab value="Windsurf">
    In the Cascade panel, open the **…** menu, select **Open MCP config file** (`mcp_config.json`) and add:

    ```json
    {
      "mcpServers": {
        "stacksync": {
          "serverUrl": "https://mcp.stacksync.com/mcp"
        }
      }
    }
    ```

    Save the file. Cascade opens the Stacksync sign-in the first time it uses the server.
  </Tab>

  <Tab value="Gemini CLI">
    ```bash
    gemini mcp add --transport http stacksync https://mcp.stacksync.com/mcp
    ```

    Then run `/mcp auth stacksync` and sign in to Stacksync.
  </Tab>

  <Tab value="Other">
    Any MCP client that supports streamable HTTP and OAuth connects with the server URL `https://mcp.stacksync.com/mcp`.

    For clients that only run local servers, use [`mcp-remote`](https://www.npmjs.com/package/mcp-remote):

    ```json
    {
      "mcpServers": {
        "stacksync": {
          "command": "npx",
          "args": ["-y", "mcp-remote", "https://mcp.stacksync.com/mcp"]
        }
      }
    }
    ```
  </Tab>
</Tabs>

## Check the connection

Ask your assistant: *"List my Stacksync workspaces."* It answers with the Stacksync workspaces you belong to.

To see every assistant you have signed in, open the **Sessions** tab of the **MCP** page. [Learn more about sign-in and sessions](/mcp/authentication).

# MCP Gateway Policies

> Control which apps, and which actions of each app, your members' AI assistants can use through the Stacksync MCP

Source: https://docs.stacksync.com/mcp/gateway-policies

MCP Gateway Policies let workspace owners decide which apps their members' AI assistants can use directly through [Stacksync MCP Gateway](/mcp/gateway), which actions of each app they can run, and the [guardrails](#guardrails) that limit what assistants can see and change in each app.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-gateway-policies-custom-policy.webp" alt="An MCP Gateway Policy open in the Stacksync app, with the members it applies to and the apps and actions they can access." width="1728" height="996" loading="lazy" decoding="async" />
  </figure>
</div>

## How MCP Gateway Policies work

* **Default Policy.** Every workspace has a Default Policy. It allows all apps until a workspace owner restricts it, and it is always active.
* **Custom policies.** Workspace owners can create policies for specific users and groups. Members included in an active custom policy follow that policy instead of the Default Policy.
* **Multiple policies.** Every policy that includes a member, directly or through one of their groups, is evaluated on each call, one by one. The most permissive verdict sets the outcome: a call one policy allows runs, even when another policy refuses it. See [How a call is decided](#how-a-call-is-decided).
* **Workspace owners.** Policies apply to workspace owners as well. Owners can always change the policies on the **MCP** page, which policies never limit.
* **Guardrails.** Each app a policy allows can carry guardrails: rules in plain language that limit what assistants can see in that app and every change through it. See [Guardrails](#guardrails).
* **Apps only.** MCP Gateway Policies limit direct use of apps: running an app's actions and reading its forms. Workflows, Genies and syncs continue to follow workspace roles, and Stacksync's built-in apps, such as Stacksync AI, email, variables and queues, are always available.

## How a call is decided

When an AI assistant calls an app directly, Stacksync evaluates every MCP Gateway Policy that reaches the member, one by one, and records each verdict:

1. **Which policies apply.** The active custom policies that include the member, directly or through their groups. A member no custom policy includes follows the Default Policy.
2. **Apps and actions.** Each policy says whether it allows the app and the action: allowed or blocked.
3. **Guardrails.** For a change, each policy that allows the action is checked against its own guardrails: allowed, blocked, or confirmation needed. A policy without guardrails allows the change. For a read, the fields a policy's guardrails hide are removed from the result before the assistant sees it.
4. **The most permissive verdict wins.** If any policy allows the call, it runs. Otherwise, if any policy needs the member's confirmation, the member sees a preview. Otherwise the call is blocked, and the assistant names the policy that blocked it.

Every verdict is kept with the call in the [MCP Activity Log](/mcp/activity-log#policies-evaluated-for-a-call), where workspace owners see each policy evaluated, its result and the reason.

## Change the Default Policy

Only workspace owners can change the Default Policy. It can't be renamed, paused or deleted, and it always applies to all workspace users.

1. In the Stacksync app, open the **MCP** page and select the **MCP Gateway Policies** tab.
2. Select **Default Policy**, the first row of the list.
3. Under **What can members access?**, choose **All apps**, **Only selected apps**, or **No apps**. With **No apps**, members can use only Stacksync's built-in apps.
4. Select **Save MCP Gateway Policy**.

## Create an MCP Gateway Policy

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/create-policy-button.webp" alt="The MCP Gateway Policies tab of the MCP page in the Stacksync app, with the Create MCP Gateway Policy button, the Default Policy and a custom policy." width="1310" height="552" loading="lazy" decoding="async" />
  </figure>
</div>

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/create-policy-form.webp" alt="An MCP Gateway Policy form in the Stacksync app, with the name, the status, the members it applies to, and the selected apps with their Guardrails fields." width="1728" height="996" loading="lazy" decoding="async" />
  </figure>
</div>

Only workspace owners can create, change and delete MCP Gateway Policies.

1. In the Stacksync app, open the **MCP** page and select the **MCP Gateway Policies** tab.
2. Select **Create MCP Gateway Policy**.
3. Under **What is the name of this policy?**, enter a **Name** and, optionally, a **Description**.
4. Under **Who does this policy apply to?**, add the users and groups it applies to.
5. Under **What can members access?**, choose **All apps**, or **Only selected apps** and add them. Expand an app to turn each of its actions on or off. An app with every action on also allows the actions the app gains later.
6. Optionally, expand an app and add its **Guardrails**: the rules every change through that app must follow, in plain language. See [Guardrails](#guardrails).
7. Select **Save MCP Gateway Policy**.

## Pause or delete a policy

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/pause-delete-policy.webp" alt="The MCP Gateway Policies list in the Stacksync app, with the Status switch and the delete icon of a custom policy." width="1728" height="998" loading="lazy" decoding="async" />
  </figure>
</div>

* **Pause:** turn off the policy's **Status** switch in the list. A paused policy is saved but not enforced. Turn the switch back on to enforce it again.
* **Delete:** select the delete icon in the policy's row. The members it applied to follow their other policies, or the Default Policy when no other policy includes them. Deleting a policy can't be undone.

The Default Policy can't be paused or deleted.

## Guardrails

Guardrails are rules written in plain language for one app of a policy. They can limit what assistants see and what they change, for example:

```
Marketing cannot see deal amounts or revenue.
Never change a deal's amount.
Don't delete or archive records.
Discounts above 20% need approval.
```

### How guardrails are applied

When a policy is saved, Stacksync turns each app's guardrails into rules. Expand the app in the policy to see how the **Stacksync AI Guardrail check** applies them:

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-gateway-policy-guardrail-rules.webp" alt="An app in an MCP Gateway Policy expanded in the Stacksync app: its guardrails in plain language, and how the Stacksync AI Guardrail check applies them, with fields hidden from reads, fields never changed, actions not allowed and a condition checked on each change." width="1218" height="258" loading="lazy" decoding="async" />
  </figure>
</div>

| Rule                                       | What happens on every direct call of the app                                                                                    |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
| **Hidden from what AI clients read**       | These fields are removed from what the app returns, with the free-text fields that could repeat them.                           |
| **Never changed**                          | A change writing these fields is blocked, including the related records they are computed from, such as a deal's line items.    |
| **Only these can change**                  | A change writing any other field is blocked.                                                                                    |
| **Not allowed**                            | The action is blocked. Deleting includes archiving, inactivating or emptying a record.                                          |
| **No change allowed**                      | Every change through the app is blocked.                                                                                        |
| **Checked by Stacksync AI on each change** | Stacksync AI decides from the values of each change, such as a discount above a threshold.                                      |
| **The person confirms each change**        | The rule depends on facts a single change doesn't carry, such as who owns the record, so the member confirms each change first. |

When you edit the guardrails, the rules are updated on the next save. If Stacksync can't read the guardrails at that moment, the policy isn't saved and you are asked to save it again, so a policy never runs with guardrails that weren't applied.

### What assistants read

When a policy's guardrails hide fields, they are removed from what an app action returns before the assistant sees it. The rest of each record is still returned, and the assistant tells the member which fields were hidden and that a workspace owner can change the policy:

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-guardrail-hidden-fields-answer.webp" alt="An AI assistant listing HubSpot deals through the Stacksync MCP, with the deal amount and total hidden by the Stacksync AI Guardrail check and the other fields shown." width="674" height="310" loading="lazy" decoding="async" />
  </figure>
</div>

A field Stacksync hasn't seen before, such as a custom field, is checked by its name the first time it appears and remembered after that. Stacksync AI reads field names only, never their values. A value typed into another field, such as an amount written in a deal's name, is not detected.

### How a change ends

| Outcome                 | What happens                                                                                                                                             |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Allowed**             | The change runs.                                                                                                                                         |
| **Blocked**             | Nothing runs or changes. The assistant tells the member which guardrail blocked the change.                                                              |
| **Confirmation needed** | The member sees a preview of the change with the reason, and it runs only after they select **Accept**, like [Ask before every change](/mcp/governance). |

To set guardrails, open the policy in the **MCP Gateway Policies** tab, expand the app under **What can members access?**, and write the rules under **Guardrails**. Each app has its own guardrails. A member covered by several policies has the guardrails of every policy checked, and gets the most permissive outcome: a change one of their policies allows runs, and a field stays visible when one of their policies shows it. The verdict of each policy, with the guardrail it applied, is recorded in the [MCP Activity Log](/mcp/activity-log#policies-evaluated-for-a-call).

For a change, only the change itself is checked: the action, the app and the values the assistant sends. Stacksync never reads other records of the app for the check.

## What your members see

When an MCP Gateway Policy blocks a request, nothing runs or changes. The AI assistant tells the member which policy blocked it and to ask a workspace owner, for example:

```
Blocked by the MCP Gateway Policy "Sales team": the Update record action of hubspot is not allowed. Nothing was changed. Ask a workspace owner to change it.
```

A change a guardrail blocks names the guardrail and the reason from the Stacksync AI Guardrail check:

```
Blocked by the MCP Gateway Policy "Marketing Team": this change with Update Records of hubspot, under the guardrail "Never change a deal's amount." (Stacksync AI Guardrail check: The change writes amount, which may not be changed) is not allowed. Nothing was changed. Ask a workspace owner to change it.
```

A read whose guardrails hide fields returns the rest of the result and names what was hidden:

```
Hidden by the Stacksync AI Guardrail check of the workspace's MCP Gateway Policy: amount, total. To see them, ask a workspace owner to change the policy.
```

Every call an MCP Gateway Policy decides is recorded in the [MCP Activity Log](/mcp/activity-log), with the verdict of every policy evaluated and its reason.

Members who are not owners see the Default Policy and the policies that apply to them in the **MCP Gateway Policies** tab.

## Good to know

* **API keys.** A workspace API key follows the Default Policy. A user API key follows the policies of its user. [Learn more about API keys](/mcp/authentication#api-keys).
* **When changes apply.** A saved policy applies right away. A change of group membership applies within 5 minutes.

# Stacksync MCP Gateway

> Give AI assistants controlled access to external apps through your existing Stacksync connections

Source: https://docs.stacksync.com/mcp/gateway

Stacksync MCP Gateway lets your AI assistant read data and take actions in external systems through a controlled layer. It uses the apps connected to your Stacksync workspace, including CRMs, ERPs and databases, with access controls, guardrails and activity logging managed in Stacksync.

The gateway is powered by the same Stacksync MCP server you use to [manage the Stacksync platform](/mcp/platform). Connect your AI assistant once: the same connection gives it both capabilities, subject to your permissions and workspace settings.

## How it works

1. You [connect your AI assistant](/mcp/connect) to Stacksync and [authenticate](/mcp/authentication).
2. Your assistant finds the connected app and the action needed for your request, and fills in the action's form with live values from the app.
3. Stacksync checks the applicable [MCP Gateway Policies](/mcp/gateway-policies) for access to the app and action. Changes also pass through the policy's guardrails and any required approval, and the fields the guardrails hide are removed from what the assistant reads.
4. An allowed action runs through the workspace's existing connection. Its outcome appears in the [MCP Activity Log](/mcp/activity-log).

You can run an app action directly without building a workflow. Credentials stay in Stacksync. To connect a new app, your assistant gives you a link to connect it in the Stacksync app rather than asking for credentials in chat.

## Example requests

* *"Find the HubSpot contact for [jane@acme.com](mailto:jane@acme.com) and set her lifecycle stage to Customer."*
* *"Search Salesforce for the Acme account and show its open opportunities."*
* *"Read the orders table in PostgreSQL and show the latest ten orders."*

The available actions depend on the app, its connection and your access. They include the actions of your workspace's [private workflow connectors](/developers/getting-started-with-stacksync-cli/host-a-private-workflow-connector), which policies allow only when they allow **All apps**.

## Access controls and custom guardrails

Workspace owners use **MCP Gateway Policies** to choose which apps and actions users and groups can access. Every workspace has a Default Policy; custom policies provide access for specific teams.

Guardrails add rules in plain language for an app, such as hiding deal amounts from what assistants read, limiting purchase orders to a subsidiary or restricting which fields can be updated. Stacksync turns them into rules when the policy is saved: hidden fields are removed from reads, changes that violate a rule are blocked, and changes whose outcome depends on facts the change doesn't carry ask the member to confirm.

[Configure MCP Gateway Policies and guardrails](/mcp/gateway-policies).

## Logging and monitoring

The MCP Activity Log shows calls, blocked actions, approval requests and errors, with the member, assistant, resource and outcome. Owners can filter activity across the workspace; other members see their own activity. It records call metadata, not the data an assistant reads or sends, or credentials.

[Explore the MCP Activity Log](/mcp/activity-log).

## Governance and security

Your assistant acts on your behalf with your workspace permissions. Owners can require approval with **Ask before every change** and control access to troubleshooting logs. You can revoke an assistant's session from the MCP page.

[Review governance settings](/mcp/governance) and [authentication and sessions](/mcp/authentication).

# Governance and security

> Workspace settings and limits that control what AI assistants can do through the Stacksync MCP

Source: https://docs.stacksync.com/mcp/governance

These controls apply to the shared Stacksync MCP connection for [platform management](/mcp/platform) and [MCP Gateway](/mcp/gateway). Workspace roles govern Stacksync resources; MCP Gateway Policies add controls for direct access to connected apps.

Workspace owners control what AI assistants can do in their workspace from the **Settings** tab of the **MCP** page in the Stacksync app. Other members can see the settings but not change them.

<div data-with-frame="true">
  <figure>
    <img src="/https/docs.stacksync.com/images/mcp/mcp-settings-workspace.webp" alt="The Settings tab of the MCP page in the Stacksync app, with the Ask before every change and Allow log access settings." width="1728" height="996" loading="lazy" decoding="async" />
  </figure>
</div>

## Workspace settings

| Setting                     | What it does                                                                                                                                                                                                                                                                                                                                                                                                                   | Default |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| **Ask before every change** | Every create, update, delete or run shows a preview of the change and runs only after the member selects **Accept**. Assistants that support [MCP Apps](https://modelcontextprotocol.io/extensions/apps/overview) display a review card; others ask the member to confirm in the chat. With the setting off, a change is still previewed when a [guardrail](/mcp/gateway-policies#guardrails) needs the member's confirmation. | Off     |
| **Allow log access**        | Lets assistants read run logs and payloads to troubleshoot failures.                                                                                                                                                                                                                                                                                                                                                           | On      |

<Callout type="warn">
  An AI assistant can follow instructions it finds in the data it reads. For workspaces with production data, turn on **Ask before every change** and review each proposed change before you accept it.
</Callout>

## MCP Gateway Policies

MCP Gateway Policies limit which apps, and which actions of each app, members' assistants can use directly, and carry the guardrails that limit what assistants can see and change in each app. Every workspace has a Default Policy, and workspace owners can add policies for specific users and groups in the **MCP Gateway Policies** tab. [Learn more about MCP Gateway Policies](/mcp/gateway-policies).

## MCP Activity Log

The MCP Activity Log records every call AI assistants make in the workspace: who made it and through which assistant, what it acted on, which MCP Gateway Policy decided it with the verdict of every policy evaluated, and how it ended. Workspace owners see the whole workspace; other members see their own activity. [Learn more about the MCP Activity Log](/mcp/activity-log).

## Rate limits

Each user and each workspace API key can make up to 120 tool calls per minute.

# Introduction to MCP

> One Stacksync MCP connection to manage your platform and access external systems through MCP Gateway

Source: https://docs.stacksync.com/mcp

Stacksync connects your AI assistant to two capabilities through one MCP server: **Stacksync MCP** for managing the Stacksync platform, and **Stacksync MCP Gateway** for working in external systems through a controlled layer.

Connect Stacksync once in your AI assistant. That same connection gives you access to both capabilities, subject to your permissions and workspace settings. You do not need a separate gateway connection.

## What is MCP?

The Model Context Protocol (MCP) is a way for AI assistants to discover and use tools provided by a service. With Stacksync, it lets your assistant turn a request in plain language into actions on your platform resources or connected apps.

## Stacksync MCP and MCP Gateway

|                        | Stacksync MCP                                                       | Stacksync MCP Gateway                                                                    |
| ---------------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| **Purpose**            | Configure and operate the Stacksync platform                        | Access and act on external systems through Stacksync                                     |
| **What it works with** | Stacksync resources: connections, syncs, workflows, Genies and more | Connected apps: CRMs, ERPs, databases and other systems                                  |
| **Example request**    | "Create a two-way sync between Salesforce and PostgreSQL."          | "Find the Acme account in Salesforce and update its phone number."                       |
| **Access controls**    | Your Stacksync workspace role and workspace governance settings     | Your permissions, MCP Gateway Policies, app guardrails and workspace governance settings |
| **Connection**         | The same Stacksync MCP server                                       | The same Stacksync MCP server                                                            |

### Manage the Stacksync platform

Use **Stacksync MCP** to create and configure resources, run workflows, start or pause syncs, and investigate issues. Your assistant operates on your behalf with your Stacksync permissions.

[Explore Stacksync platform management](/mcp/platform).

### Work in external systems through MCP Gateway

An MCP gateway sits between an AI assistant and the systems it accesses. **Stacksync MCP Gateway** uses your workspace's existing app connections to let your assistant search, read, create and update data directly. Workspace owners control access, set custom guardrails and monitor activity in Stacksync.

For example, creating a sync is a Stacksync platform operation. Updating a Salesforce record directly is a gateway action. Both requests go through the same MCP connection.

[Explore Stacksync MCP Gateway](/mcp/gateway).

## Connect once

Add this server URL to your AI assistant:

```text
https://mcp.stacksync.com/mcp
```

In the Stacksync app, open **MCP → Connect** to copy the URL and find setup instructions. After connecting and signing in, ask: *"List my Stacksync workspaces."*

[Connect your AI assistant](/mcp/connect) has instructions for supported clients.

## Authentication

Sign in with your Stacksync login using OAuth and choose a default workspace. Your assistant acts on your behalf, with your role in each workspace. You can grant read-only access by clearing **Make changes** during sign-in.

The same sign-in covers platform management and gateway access. For scripts, CI pipelines and clients without OAuth, use an API key. You can review and revoke signed-in assistants from the **Sessions** tab of the MCP page.

[Learn about authentication, sessions and API keys](/mcp/authentication).

## MCP Gateway Policies

Policies decide which external apps and actions members' assistants can use directly. Every workspace has a Default Policy. Owners can create custom policies for users and groups and add app-specific guardrails in plain language. When several policies apply to a member, every one is evaluated and the most permissive verdict sets the outcome.

Policies govern direct app access. Stacksync resources such as workflows, Genies and syncs continue to follow workspace roles.

[Configure MCP Gateway Policies](/mcp/gateway-policies).

## MCP Activity Log

The Activity Log brings platform and gateway activity together: who made a call, through which assistant, what it acted on and how it ended. Use it to monitor successful calls, blocked actions, approval requests and errors. Owners see workspace activity; other members see their own.

[Explore the MCP Activity Log](/mcp/activity-log).

## Governance and security

Workspace owners can turn on **Ask before every change** to require approval for changes and control whether assistants can read troubleshooting logs. Workspace roles, gateway policies and guardrails work together to control access. App credentials stay in Stacksync.

[Review governance and security](/mcp/governance).

## Explore the documentation

<Cards>
  <Card title="Stacksync MCP: manage your platform" href="/https/docs.stacksync.com/mcp/platform" description="Create, configure and operate Stacksync resources." />

  <Card title="Stacksync MCP Gateway" href="/https/docs.stacksync.com/mcp/gateway" description="Work in external systems with access controls, guardrails and monitoring." />

  <Card title="Connect your AI assistant" href="/https/docs.stacksync.com/mcp/connect" description="Set up the single connection for both capabilities." />

  <Card title="Authentication" href="/https/docs.stacksync.com/mcp/authentication" description="Sign-in, sessions and API keys." />

  <Card title="MCP Gateway Policies" href="/https/docs.stacksync.com/mcp/gateway-policies" description="Control app access and configure custom guardrails." />

  <Card title="MCP Activity Log" href="/https/docs.stacksync.com/mcp/activity-log" description="Monitor calls, approvals, blocks and errors." />

  <Card title="Governance and security" href="/https/docs.stacksync.com/mcp/governance" description="Workspace settings, approvals and limits." />

  <Card title="Docs MCP server" href="/https/docs.stacksync.com/docs-for-ai/mcp-server" description="A separate server for reading Stacksync documentation without signing in." />
</Cards>

# Stacksync MCP: manage your platform

> Use your AI assistant to create, configure and operate Stacksync resources

Source: https://docs.stacksync.com/mcp/platform

Stacksync MCP lets your AI assistant operate the Stacksync platform on your behalf. Ask it to create and configure resources, run automations, investigate failures and resolve issues in your workspace.

This is the platform management capability of the [single Stacksync MCP connection](/mcp). When you want your assistant to act directly in an external app, such as updating a CRM contact, use [Stacksync MCP Gateway](/mcp/gateway) through that same connection.

## What your assistant can do

| Resource              | What your assistant can do                                                                                                                    |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connections**       | List connections, connect or reauthorize an app, rename and share a connection, list an app's tables and columns, and delete a connection     |
| **Two-way syncs**     | Create, edit and delete syncs, start and pause them, review and resolve sync issues, and manage their event triggers and webhooks             |
| **Workflows**         | Create, edit, duplicate and delete workflows, deploy and run them, and review, replay and resolve their runs                                  |
| **Genies**            | Create, configure, share and delete Genies, send them requests, review their activity, approve their paused actions, and schedule their tasks |
| **Queues**            | Create, edit and delete queues, flush them now, and clear them                                                                                |
| **Variables**         | Create, edit and delete variables                                                                                                             |
| **API proxies**       | Create, edit and delete API proxies                                                                                                           |
| **Knowledge bases**   | Create, edit and delete knowledge bases, and add and remove their documents                                                                   |
| **Files and folders** | Find and read files, and create, delete and organize folders                                                                                  |
| **Workspaces**        | List your Stacksync workspaces and show their details                                                                                         |

## Example requests

* *"Create a two-way sync between Salesforce and PostgreSQL."*
* *"Which syncs in this workspace have open issues? Resolve them."*
* *"Build a workflow that posts closed HubSpot deals to Slack."*
* *"List the workflows in my workspace and show their latest failed runs."*

## Permissions and approvals

Your assistant acts with your Stacksync workspace role and can access only the resources you can access. Workspace roles govern platform resources such as syncs, workflows and Genies. MCP Gateway Policies control direct app access; they do not replace those workspace roles.

Workspace owners can enable **Ask before every change** to require approval before a create, update, delete or run. Calls appear in the [MCP Activity Log](/mcp/activity-log). See [Governance and security](/mcp/governance) for settings and limits.

## Stacksync skills

Your assistant also follows [Stacksync skills](https://github.com/stacksyncdata/skills): guides that describe how to build and troubleshoot each resource the right way. The Stacksync MCP serves them to every connected assistant, so there is nothing to install. To install them in your assistant as well:

* **Claude Code:** run `/plugin marketplace add stacksyncdata/skills`, then `/plugin install stacksync@stacksync`. The plugin also connects the Stacksync MCP.
* **Cursor, Gemini CLI, GitHub Copilot, VS Code and others:** run `npx skills add stacksyncdata/skills`.

## Get started

[Connect your AI assistant](/mcp/connect), sign in and ask it to list your Stacksync workspaces.

# Stacksync Marketplace

> Share templates with the community. Create your partner profile on the Stacksync Marketplace and publish templates from your AI assistant, through the Stacksync MCP.

Source: https://docs.stacksync.com/mcp/share-templates

The [Stacksync Marketplace](https://marketplace.stacksync.com) lists ready-to-deploy templates: syncs, workflows, Genies and the other resources that solve a common integration. Partners and customers share templates there, each under their own partner profile.

There is no form to fill in. You create your profile and publish your templates by asking your AI assistant, connected to the [Stacksync MCP](/mcp/connect). The assistant uses the [marketplace tools](#marketplace-tools); deletes always ask you to accept a preview first.

## How it works

* **One profile per workspace.** Your partner profile belongs to the Stacksync workspace you work in. Each workspace can have one profile, and every template you publish appears under it.
* **Nothing is public until you publish it.** A new profile is hidden, and a new template is a draft. You choose when each goes live.
* **Change one thing at a time.** Ask for a new logo, a new name or a new paragraph, and only that changes. Everything else stays as it is.
* **Who can do what.** Workspace editors and owners can create and change the profile and its templates. Only a workspace owner can delete the profile.

## Before you start

1. [Connect your AI assistant](/mcp/connect) to the Stacksync MCP, and sign in with the workspace that should own the profile.
2. Have ready: your company name, a one-sentence description, your website, and a public `https://` link to your logo (PNG, JPEG, WebP or SVG, up to 2 MB).

## Create your partner profile

Ask your assistant, for example:

```
Create our Stacksync Marketplace partner profile.
Name: Acme Consulting
Description: NetSuite and HubSpot integrations for growing finance teams.
Website: https://acme.example
Category: Implementation
We work with NetSuite, HubSpot and Postgres, mostly in manufacturing and retail.
```

Your profile is created, hidden from the marketplace for now. If your workspace has **Ask before every change** turned on, you accept a preview first.

Then add your images:

```
Set our marketplace logo to https://acme.example/brand/logo.svg
and our icon to https://acme.example/brand/icon.png
```

* **Logo**: your full logo, mark and wordmark.
* **Icon**: the square mark alone, shown in small places such as template cards.

You can enrich the profile whenever you like, in as many steps as you want:

| Ask for                     | Shown on your profile                                                                             |
| --------------------------- | ------------------------------------------------------------------------------------------------- |
| Tagline, about paragraphs   | The introduction at the top of your page                                                          |
| Category                    | Implementation, Managed services, Referral, Resellers, Solution providers or Technology solutions |
| Industries and connectors   | What you specialise in, and the apps you know                                                     |
| Details                     | Extra facts, such as languages or regions served                                                  |
| Links                       | Your website, case studies or booking page                                                        |
| Services and offer          | What you sell, and an optional offer for marketplace visitors                                     |
| Quote, with an author photo | A client or partnership quote                                                                     |
| Success stories             | Projects with their results                                                                       |
| FAQ                         | Questions and answers about working with you                                                      |

Ask "Show our marketplace profile" at any time to see what it holds.

## Share a template

A template has two parts:

* **Its page**: a title, a description, the resource types it deploys, the apps it connects, and optionally an overview and the list of resources it creates.
* **Its instructions**: a Markdown file an AI agent follows to build the template in a user's workspace. Write it as a step-by-step prompt: which connections to use, which syncs, workflows or Genies to create, with which settings, and what to check at the end. A template can't be published without instructions.

A good way to start is from something that already works in your workspace:

```
Look at our "HubSpot deals to NetSuite invoices" workflow and the
HubSpot ↔ NetSuite customer sync. Turn them into a Stacksync Marketplace
template called "HubSpot deals to NetSuite invoices", with a short description,
an overview, and instructions an AI agent can follow to build the same setup
in another workspace. Don't include any credentials or customer data.
```

The assistant reads your resources, drafts the page and the instructions, and saves the template as a draft. Ask it to show you the draft before you publish.

To review or change the draft:

```
Show our marketplace template hubspot-deals-to-netsuite-invoices with its instructions.
Change its description to "Closed-won deals become NetSuite invoices, with customers matched automatically."
```

<Callout type="warn">
  Templates are public once published. Never put passwords, API keys, customer names or record data in a template's page or instructions. Users connect their own apps when they deploy it.
</Callout>

## Publish

When the profile and at least one template are ready:

```
Publish our marketplace template hubspot-deals-to-netsuite-invoices,
then publish our partner profile.
```

* **Publishing a template** makes it ready. It appears on the marketplace once your profile is published too.
* **Publishing your profile** shows your page at `https://marketplace.stacksync.com/partners/<your-slug>` and every template you published.

The assistant answers with the public links. Changes to a published profile or template appear on the marketplace right away.

## Update, hide or remove

| To                                | Ask, for example                                                                     |
| --------------------------------- | ------------------------------------------------------------------------------------ |
| Change one field                  | "Change our marketplace profile's tagline to …"                                      |
| Replace a template's instructions | "Update the instructions of our template … with this version: …"                     |
| List your templates               | "List our marketplace templates and whether each is live."                           |
| Hide a template                   | "Unpublish our marketplace template …". It becomes a draft again.                    |
| Hide everything                   | "Unpublish our marketplace profile." Your profile and all its templates are hidden.  |
| Delete a template                 | "Delete our marketplace template …"                                                  |
| Delete the profile                | "Delete our marketplace profile." Workspace owners only; deletes every template too. |

Deleting can't be undone. To take something offline for a while, unpublish it instead.

## Marketplace tools

The assistant picks these tools for you. They're listed here for reference, for example for an MCP client's allowlist.

| Tool                            | What it does                                                                 |
| ------------------------------- | ---------------------------------------------------------------------------- |
| `marketplace_profile_get`       | Shows the workspace's profile, or says it has none                           |
| `marketplace_profile_save`      | Creates the profile, or changes any of its fields                            |
| `marketplace_profile_set_image` | Sets or removes the logo, icon or quote photo, from a public `https://` link |
| `marketplace_profile_publish`   | Shows or hides the profile and its templates                                 |
| `marketplace_profile_delete`    | Deletes the profile and all its templates (workspace owners)                 |
| `marketplace_templates_list`    | Lists the workspace's templates and whether each is live                     |
| `marketplace_templates_get`     | Shows one template, optionally with its instructions                         |
| `marketplace_templates_save`    | Creates a draft template, or changes its fields or instructions              |
| `marketplace_templates_publish` | Publishes a template, or turns it back into a draft                          |
| `marketplace_templates_delete`  | Deletes a template                                                           |

Changes run directly unless the workspace owner turned on **Ask before every change** (see [Governance](/mcp/governance)); then each one shows a preview to accept. Deletes always ask.

## Become a Stacksync partner

Sharing templates is open to every workspace. To join the Stacksync partner program, with referrals and co-selling, see [Become a partner](https://www.stacksync.com/partners/become-a-partner).

# MFA

> Required MFA (Multi Factor Authentication) for all users in a workspace. This enhances workspace security for users and logins.

Source: https://docs.stacksync.com/security-and-other-resources/identity-and-access-management/mfa

MFA (Multi Factor Authentication) can be activated for your workspace. Requiring MFA for a workspace will immediately activate MFA for all workspace collaborators. They will be logged out and be prompted to an MFA setup page at their next login.

To activate MFA, go to Workspace settings > scroll down to Security > Toggle ON the MFA

<figure>
  <img src="/https/docs.stacksync.com/images/security-and-other-resources/workspace-security-mfa-toggle.webp" alt="Stacksync workspace settings Security section with the &#x22;Multi Factor Authentication (MFA)&#x22; toggle under Status, switched off." width="1600" height="338" loading="lazy" decoding="async" />

  <figcaption><p>MFA (Multi Factor Authentication) in Stacksync Workspace settings.</p></figcaption>
</figure>

# SCIM

> Activate SCIM for your Stacksync workspace (System for Cross-domain Identity Management)

Source: https://docs.stacksync.com/security-and-other-resources/identity-and-access-management/scim

[Contact us](/two-way-sync/start-here/community) to activate your SCIM! This is a feature part of our Enterprise plan.

Currently Stacksync supports OKTA and Azure Entra ID, and can add support for other identity providers on short notice.

SCIM stands for System for Cross-domain Identity Management, and it's an open standard protocol that automates the exchange of user identity information between IT systems and identity domains. SCIM is used to simplify the process of granting access to cloud-based applications for people and groups.

# Azure Entra ID

Source: https://docs.stacksync.com/security-and-other-resources/identity-and-access-management/sso/azure-entra-id

This guide will walk you through setting up automatic user provisioning between Azure Entra ID (formerly Azure Active Directory) and stacksync.

## Overview

By the end of this guide, you will have:

* ✅ SAML-based Single Sign-On configured
* ✅ Automatic user provisioning via SCIM
* ✅ Role-based access control
* ✅ Users automatically created/updated/deactivated in stacksync

**Estimated time:** 30-45 minutes

***

## Prerequisites

Before you begin, ensure you have:

* [ ] **Azure Entra ID admin access** with at least **Cloud Application Administrator** role
* [ ] **stacksync owner account**
* [ ] Your company's **email domain** (e.g., `acme.com`)
* [ ] List of users who should have access

***

## Part 1: Create Enterprise Application in Azure

### Step 1.1: Navigate to Enterprise Applications

1. Sign in to the **Azure Portal**: [https://portal.azure.com](https://portal.azure.com)
2. In the search bar at the top, type **"Microsoft Entra ID"** and select it
3. In the left sidebar, click **Enterprise applications**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-enterprise-applications-new-application.webp" alt="Azure Entra ID Enterprise applications list with the &#x22;New application&#x22; button highlighted." width="1600" height="484" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.2: Create New Application

1. Click **+ New application** (top left)
2. Click **+ Create your own application**
3. Enter the application name: **stacksync-example**
4. Select: **"Integrate any other application you don't find in the gallery (Non-gallery)"**
5. Click **Create**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-create-own-application-non-gallery.webp" alt="Azure &#x22;Create your own application&#x22; panel named stacksync-example, &#x22;Integrate any other application&#x22; (Non-gallery) selected, and Create." width="1600" height="800" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Wait a few seconds for Azure to create the application.

***

## Part 2: Configure SAML Single Sign-On

### Step 2.1: Start SAML Setup

1. In your **stacksync-example** enterprise application, click **Single sign-on** in the left sidebar
2. Click the **SAML** tile

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-single-sign-on-saml-method.webp" alt="Azure stacksync-example Single sign-on page with the &#x22;SAML&#x22; sign-on method tile highlighted." width="1600" height="511" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.2: Download Azure Metadata

**Before** configuring anything, download your Azure metadata file:

1. Scroll down to section **"3. SAML Certificates"**
2. Under **"Token signing certificate"**, click **Edit** (pencil icon on the right)
3. Click the **three dots menu (...)** next to the Active certificate
4. Select **"Download federated certificate XML"** from the dropdown menu
5. Save the file (e.g., `AzureMetadata.xml`)

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-download-federated-certificate-xml.webp" alt="Azure SAML Signing Certificate panel with the &#x22;...&#x22; menu open and &#x22;Download federated certificate XML&#x22; highlighted." width="1600" height="750" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.3: Configure SSO in your workspace

The SSO configuration should only be done once per company domain. All domains will be connected under the same SSO configuration

1. Navigate to your workspace settings
2. Choose Azure AD (Entra ID) as your identity provider
3. Upload the federated certificate XML file you downloaded from Azure in the step above
4. You can choose to "Restrict login to SSO only for this domain" using the checkbox. This will make it so users with this domain will only be able to login via the SSO flow
5. Click continue

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-sso-azure-metadata-upload.webp" alt="Stacksync Workspace Settings SCIM & SSO: Identity Provider &#x22;Azure AD (Entra ID)&#x22;, metadata XML uploaded, restrict-domain checkbox." width="1600" height="544" loading="lazy" decoding="async" />

  <figcaption />
</figure>

6. You should now see a page with all the necessary info to continue the setup in Azure.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-current-sso-configuration-azure.webp" alt="Stacksync &#x22;Current SSO configuration&#x22; showing azure_ad provider, Connection Name, Entity ID, ACS URL and Sign-In URL for Azure setup." width="1565" height="297" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

### Step 2.4: Configure Basic SAML Settings

Once you have terminated the SSO configuration in your workspace you can continue with the setup in Azure:

1. Go back to your Azure SAML setup page
2. Click **Edit** on section **"1. Basic SAML Configuration"**
3. Fill in the values **provided by stacksync support**:

**Identifier (Entity ID):**

```
urn:auth0:stacksync:companydomain-com-sso-azure-ad
```

*(Use the exact value from the above step)*

**Reply URL (Assertion Consumer Service URL):**

```
https://auth.stacksync.com/login/callback?connection=companydomain-com-sso-azure-ad
```

*(Use the exact value from the above step)*

**Sign on URL (optional):**

```
https://stacksync.com/login
```

4. Click **Save**
5. Close the panel by clicking **X**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-basic-saml-configuration-panel.webp" alt="Azure Basic SAML Configuration panel with Identifier (Entity ID) and Reply URL (ACS URL) fields filled in and the Save button highlighted." width="1600" height="777" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.5: Configuring email claim

This is needed because some emails could have upper case letter making the SSO login not work as expected.

1. Edit the Attributes & Claims section

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-attributes-claims-edit.webp" alt="Azure stacksync-example SAML-based Sign-on page with the &#x22;Edit&#x22; button on the Attributes & Claims section highlighted." width="1108" height="770" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Click on the user.mail claim to start editing it

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-email-claim-user-mail.webp" alt="Azure Attributes & Claims list with the emailaddress claim mapped to user.mail highlighted under Additional claims." width="853" height="577" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Change the source radio button to Transformation (this action should open a side pabel)
4. In the Transformation field drop down choose ToLowercase()
5. In the Attribute name field dropdown choose user.mail
6. Click add and then Save on the main page

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-email-claim-tolowercase-transformation.webp" alt="Azure Manage claim with Source &#x22;Transformation&#x22; and a Manage transformation panel set to ToLowercase() on attribute user.mail." width="1600" height="682" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 3: Set Up Automatic User Provisioning (SCIM)

### Step 3.1: Generate a api token for your workspace

1. In your stacksync workspace settings scroll down to "Stacksync Workspace API Key"
2. Create a api key for scim use.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-generate-workspace-api-key.webp" alt="Stacksync Workspace Settings with Key Name &#x22;SCIM API KEY&#x22; entered and the &#x22;Generate new API key&#x22; button highlighted." width="1532" height="446" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-workspace-api-key-preview.webp" alt="Stacksync &#x22;Workspace API Key Preview&#x22; dialog showing the generated key with a copy icon and a Close button." width="507" height="266" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.2: Enable Automatic Provisioning

1. In your **stacksync** enterprise application, click **Provisioning** in the left sidebar
2. Click **+ New configuration** button (at the top)
3. On the "New provisioning configuration" page:
   * **Select authentication method:** Bearer authentication (default)
   * **Tenant URL:** Paste the URL provided by stacksync support

```
     https://api.stacksync.com/v1/workspaces/[your-workspace-id]/scim/v2
```

* **Secret Token:** Paste the token that you generated in your workspace

4. Click **Test connection**
   * You should see: ✅ "Connection test for 'stacksync-example' was successful"
5. Click **Create** (bottom left)

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-scim-provisioning-bearer-token.webp" alt="Azure New provisioning configuration with Bearer authentication, Stacksync SCIM Tenant URL and Secret token, a successful test, and Create." width="1600" height="774" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 4: Create App Roles for stacksync

App Roles define which permission level users have in stacksync (viewer or editor).

### Step 4.1: Navigate to App Registrations

1. In the Azure Portal search bar, type: **"App registrations"**
2. Click **App registrations**
3. Click the **"View all applications in directory"** button
4. Find and click **stacksync-example**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-app-registrations-view-all.webp" alt="Azure App registrations page with the &#x22;View all applications in the directory&#x22; button highlighted." width="1600" height="389" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.2: Create "viewer" Role

1. In the left sidebar, click **App roles**
2. Click **+ Create app role**

Fill in:

* **Display name:** `viewer`
* **Allowed member types:** Users/Groups
* **Value:** `viewer`
* **Description:** `Viewer with read-only access`
* **Do you want to enable this app role?** ✅ Checked

3. Click **Apply**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-create-viewer-app-role.webp" alt="Azure stacksync-example App roles with a &#x22;Create app role&#x22; panel for a &#x22;viewer&#x22; role (Users/Groups, read-only access) and Apply." width="1600" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.3: Create "editor" Role

1. Click **+ Create app role** again

Fill in:

* **Display name:** `editor`
* **Allowed member types:** Users/Groups
* **Value:** `editor`
* **Description:** `Editor with standard access`
* **Do you want to enable this app role?** ✅ Checked

2. Click **Apply**

***

## Part 5: Configure Attribute Mappings

### Step 5.1: Access Attribute Mappings

1. Go back to **Enterprise applications** → **stacksync-example**
2. Click **Provisioning** in the left sidebar
3. Under **Attribute Mappings**, click **Provision Microsoft Entra ID Users**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-attribute-mapping-provision-users.webp" alt="Azure Attribute mapping page for stacksync-example with &#x22;Provision Microsoft Entra ID Users&#x22; highlighted." width="1421" height="515" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 5.2: Add Roles Mapping

1. Scroll to the bottom and click **Add New Mapping**

Fill in:

* **Mapping type:** Expression
* **Expression:**

```
  SingleAppRoleAssignment([appRoleAssignments])
```

* **Target attribute:** `roles[primary eq "True"].value`
* **Default value if null:** `viewer`
* **Apply this mapping:** Always
* **Match objects using this attribute:** No

2. Click **OK**
3. Click **Save** at the top

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-roles-expression-attribute-mapping.webp" alt="Azure Edit Attribute with Expression SingleAppRoleAssignment([appRoleAssignments]), default &#x22;viewer&#x22;, target roles[primary eq &#x22;True&#x22;].value." width="792" height="1019" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 6: Start Provisioning

### Step 6.1: Enable Provisioning

1. Go back to the main **Provisioning** page (Preview
2. Click **Start provisioning**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-start-provisioning.webp" alt="Azure stacksync-example provisioning Overview page with the &#x22;Start provisioning&#x22; button highlighted." width="1600" height="763" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Azure will now start provisioning users. The initial sync takes **5-10 minutes**.

***

## Part 7: Assign Roles to Users

### Step 7.1: Assign a Role to a User

1. Go to **Users and groups** in the left sidebar
2. Click **+ Add user/group**
3. Under **Users**, click **None Selected**
4. Select a user
5. Click **Select**
6. Under **Select a role**, click **None Selected**
7. Choose either **viewer** or **editor**
8. Click **Select**
9. Click **Assign**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-add-assignment-select-user.webp" alt="Azure Add Assignment for stacksync-example with the Users panel open and the user test_2 selected." width="1600" height="809" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-add-assignment-select-editor-role.webp" alt="Azure Add Assignment &#x22;Select a role&#x22; panel listing editor, User and viewer, with &#x22;editor&#x22; and the Select button highlighted." width="1600" height="804" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Repeat this for each user, assigning them the appropriate role.

***

## Part 8: Test the Setup

### Step 8.1: Test Provisioning

1. Go to **Provisioning** → **Provision on demand** (if available)
2. Select a test user (you'l need to search for the user)
3. Click **Provision**
4. Verify the user is successfully created in your stacksync workspace

***

## Troubleshooting

### Users Not Provisioning

**Check:**

* Provisioning Status is **On**
* Users are **assigned** to the stacksync application
* Users have a **role assigned** (viewer or editor)
* User has email property
* Wait 10-40 minutes for initial sync

**View logs:**

* Go to **Provisioning** → **View provisioning logs**

### Wrong Role Assigned

**Check:**

* Role is assigned correctly in **Users and groups**
* Roles attribute mapping includes default value `viewer`
* App roles display names are lowercase: `viewer`, `editor` (not `Viewer`, `Editor`)

# SSO

> Manage all your user logins with your SSO (Single Sign On).

Source: https://docs.stacksync.com/security-and-other-resources/identity-and-access-management/sso

[Contact us](https://www.stacksync.com/contact) to activate SSO on your Workspace! This is a feature part of our Enterprise plan.

Currently Stacksync supports OKTA and Azure Entra ID, and can add support for other identity providers on short notice.

# OKTA Stacksync

> SSO and SCIM for OKTA

Source: https://docs.stacksync.com/security-and-other-resources/identity-and-access-management/sso/okta-stacksync

<Callout type="info">
  The Stacksync OKTA app is currently under review by OKTA. Until the app is published on OKTA marketplace, here is a guide to synchronize your OKTA users automatically into Stacksync by creating the SCIM app yourself

  This setup takes \~10min
</Callout>

<Callout type="info">
  SSO is part of Stacksync Enterprise plan, you need to contact us at [sso@stacksync.com](mailto:sso@stacksync.com) to have set it up
</Callout>

Notes:

* This setup needs to be implemented by an OKTA **ADMIN**
* The SCIM integration is associated to a unique Stacksync workspace. If you have multiple workspaces (such as dev, stage and prod) you will need to set up an SCIM app for each of these Stacksync workspaces. Each workspace has independent RBAC enforcement.

## SSO (SAML) setup instructions

1. On your OKTA homepage go on the admin section

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-my-apps-admin-button.webp" alt="Okta My Apps homepage with the &#x22;Admin&#x22; button highlighted in the top bar." width="1600" height="169" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. In the Applications section, create an App integration of type SAML 2.0

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-create-app-integration.webp" alt="Okta Applications page with the &#x22;Create App Integration&#x22; button highlighted." width="856" height="592" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-new-app-integration-saml.webp" alt="Okta &#x22;Create a new app integration&#x22; dialog with sign-in method &#x22;SAML 2.0&#x22; selected and a Next button." width="1474" height="843" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Give the App name to `Stacksync` and you can add the Stacksync app logo (download file below)

<FileDownload name="stacksync_logo.png" href="/https/docs.stacksync.com/images/home/stacksync-app-logo.webp" kind="image" size="21KB" />

4. Configure your SAML settings with:
   1. Single sign-on URL: `https://auth.stacksync.com/login/callback?connection=<sso_id_provided_by_stacksync_team_for_you>`
   2. Audience URI: `urn:auth0:stacksync:<sso_id_provided_by_stacksync_team_for_you>`
   3. Application username: `Email`
   4. Update application username on `Create and update`
   5. Attribute Statements:
      1. name=`emails`
      2. name format=`Basic`
      3. value=`user.email`<br />

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-saml-settings-email-attribute.webp" alt="Okta SAML Settings with Stacksync Single sign-on URL, Audience URI, Application username &#x22;Email&#x22; and attribute email = user.email." width="630" height="720" loading="lazy" decoding="async" />

           <figcaption />
         </figure>
   6. You can skip the `Feedback` section and click `Finish`
      1. Send us at `sso@stacksync.com` the following details:

         1. `Identity Provider Single Sign-On URL` at the top of the SAML setup instructions page.<br />

            <figure>
              <img src="/https/docs.stacksync.com/images/home/okta-view-saml-setup-instructions.webp" alt="Okta sso_connection_demo app Sign On tab with the &#x22;View SAML setup instructions&#x22; button highlighted." width="1558" height="912" loading="lazy" decoding="async" />

              <figcaption />
            </figure>

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-identity-provider-sso-url.webp" alt="Okta &#x22;How to Configure SAML 2.0&#x22; page with the Identity Provider Single Sign-On URL highlighted." width="1547" height="411" loading="lazy" decoding="async" />

           <figcaption />
         </figure>

         `2.SAML Signing Certificates` for `SHA2`

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-saml-sha2-certificate-download.webp" alt="Okta SAML Signing Certificates with the SHA-2 Actions menu open, showing &#x22;View IdP metadata&#x22; and &#x22;Download certificate&#x22;." width="1508" height="824" loading="lazy" decoding="async" />

           <figcaption />
         </figure>

         1. Once we have received the above informations, we will activate SSO and you're all set! 🎉

## SCIM setup instructions

1. On the General page of the SAML app you just created, enable SCIM provisioning.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-app-settings-enable-scim.webp" alt="Okta sso_connection_demo General tab App Settings with Edit and the &#x22;SCIM&#x22; provisioning option highlighted." width="1600" height="702" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Go to the Stacksync Workspace Settings page at `https://app.stacksync.com` to find the informations necessary for the next steps.
   1. Find your Stacksync `workspace_id` on top of the page.

      <figure>
        <img src="/https/docs.stacksync.com/images/home/stacksync-settings-workspace-id.webp" alt="Stacksync Settings Workspace Details with the &#x22;Workspace Id&#x22; field (2610) highlighted." width="1016" height="384" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   2. Generate a `workspace_api_key` at the bottom of the same page. **Only the owner** of the Stacksync workspace can Stacksync workspace api keys.

      <figure>
        <img src="/https/docs.stacksync.com/images/home/stacksync-workspace-api-key-section.webp" alt="Stacksync Settings page with the &#x22;Stacksync Workspace API Key&#x22; section highlighted: Key Name field and &#x22;Generate new API key&#x22; button." width="1600" height="683" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
3. Go back to your SAML app on the Provisioning page. Fill in the following parameter:
   1. **Base URL:** `https://api.stacksync.com/v1/workspaces/<your_stacksync_workspace_id>/scim/v2/`
   2. **API Token:** `Bearer <your_stacksync_workspace_api_key>`<br />

      <figure>
        <img src="/https/docs.stacksync.com/images/home/okta-scim-connection-bearer-auth.webp" alt="Okta SCIM Connection: Stacksync base URL, unique identifier &#x22;email&#x22;, provisioning actions checked, HTTP Header Bearer authorization." width="1526" height="906" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
4. Allow your SCIM app to create, update and deactivate users. Stacksync users never use passwords to connect to Stacksync therefore the `Sync Password` feature should be disabled.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-sync-password.webp" alt="Okta Provisioning to App with Create Users, Update User Attributes and Deactivate Users enabled and Sync Password unchecked." width="1501" height="910" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Go to the Profile Editor and add a new Attribute a new `roles`to the app. This is a standard SCIM attribute with the following fields:
   1. Data type: `string array`
   2. Display name: `roles`
   3. Variables name: `roles`
   4. External name: `roles`
   5. External namespace: `urn:ietf:params:scim:schemas:core:2.0:User`
   6. Description: `SCIM role attribute for Stacksync app`
   7. Enum: `true`
   8. Attribute member: `viewer` and `editor`
   9. Attribute required: `true`
   10. Attribute type: `Group`
   11. Group Priority: Use `Group Priority`<br />

       <figure>
         <img src="/https/docs.stacksync.com/images/home/okta-add-roles-attribute.webp" alt="Okta Add Attribute dialog for a &#x22;roles&#x22; string array with enum members Viewer/viewer and Editor/editor, Group type, Use Group Priority." width="1449" height="959" loading="lazy" decoding="async" />

         <figcaption />
       </figure>
6. Go to Directory/Groups, create 2 groups: `Stacksync Editors` and `Stacksync Viewers`. Each group will be assigned a different role in Stacksync (`editor` and `viewer`)<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-directory-groups-add-group.webp" alt="Okta Directory Groups page with the &#x22;Add group&#x22; button highlighted, used to create Stacksync Editors and Viewers groups." width="1577" height="493" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. Assign to the Stacksync Groups you just created the people you want to give access to Stacksync<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-stacksync-editors-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1473" height="729" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. Go back to your application and under `Assignments` assign these 2 groups to the application. Make sure you select the right role for each group. You can ignore the other fields, Stacksync is not reading them.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-sso-app-assign-groups.webp" alt="Okta sso_connection_demo app Assignments tab with the &#x22;Assign&#x22; dropdown and &#x22;Groups&#x22; filter highlighted." width="1185" height="733" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

That's it! 🎉

# OKTA

> SCIM setup instructions

Source: https://docs.stacksync.com/security-and-other-resources/identity-and-access-management/sso/okta

This guide will walk you through setting up automatic user provisioning between Okta and Stacksync.

## Overview

By the end of this guide, you will have:

* ✅ SAML-based Single Sign-On configured
* ✅ Automatic user provisioning via SCIM
* ✅ Role-based access control
* ✅ Users automatically created/updated/deactivated in stacksync

**Estimated time:** 30-45 minutes

## Prerequisites

Before you begin, ensure you have:

* Okta admin access
* Stacksync owner account
* Your company's email domain (e.g., acme.com)
* List of users who should have access

## Supported Features

The following SAML 2.0 features are supported:

| Feature                         | Supported |
| ------------------------------- | --------- |
| SP-initiated SSO                | Yes       |
| IdP-initiated SSO               | Yes       |
| Just-In-Time (JIT) Provisioning | Yes       |
| Single Logout (SLO)             | No        |

## SCIM Provisioning Features

The following SCIM 2.0 provisioning features are supported:

| Feature                | Supported |
| ---------------------- | --------- |
| Push New Users         | Yes       |
| Push Profile Updates   | Yes       |
| Push User Deactivation | Yes       |
| Reactivate Users       | Yes       |
| Push Groups            | No        |
| Import Users           | No        |
| Import Groups          | No        |
| Sync Password          | No        |

## SCIM Attributes

The following user attributes are supported for SCIM provisioning operations:

| Attribute  | Required | Immutable | Description                                       |
| ---------- | -------- | --------- | ------------------------------------------------- |
| userName   | Yes      | No        | User's unique identifier (typically email)        |
| email      | Yes      | Yes       | User's email address (cannot be changed via SCIM) |
| givenName  | No       | No        | User's first name                                 |
| familyName | No       | No        | User's last name                                  |
| roles      | Yes      | No        | User's role: `viewer` or `editor`                 |

> **Note:** The `email` attribute is immutable. Once a user is created, their email address cannot be updated through SCIM. To change a user's email, you must deactivate the existing user and create a new one with the updated email.

## Additional Features

| Feature              | Supported |
| -------------------- | --------- |
| Force Authentication | No        |
| Encrypted Assertions | No        |
| Signed Requests      | Yes       |

## Notes

* **SP-initiated SSO**: Users can initiate login from the Stacksync login page by entering their email address. They will be redirected to Okta for authentication.
* **IdP-initiated SSO**: Users can initiate login directly from their Okta dashboard by clicking the Stacksync app tile.
* **SCIM Provisioning**: Automatic user lifecycle management including creation, updates, and deactivation. Each workspace requires a separate SCIM app configuration.
* **Role-Based Access Control**: Users can be assigned `viewer` or `editor` roles through Okta group membership.

## Important Notes

* You will create **one** "Stacksync - SSO" app for your entire organization
* You will create **one** "Stacksync - SCIM" app **per workspace**
* If you have multiple workspaces (e.g., dev, staging, production), you must set up a separate SCIM app for each
* Each workspace has independent RBAC enforcement

## Part 1: Configure SAML Single Sign-On

The SSO configuration connects your Okta organization to Stacksync. You only need to complete this once for your entire organization.

### Step 1.1: Add the Stacksync SSO App

1. Sign in to your Okta Admin Console
2. Navigate to **Applications** → **Applications**
3. Click **Browse App Catalog**
4. Search for and select **Stacksync - SSO**
5. Click **Add Integration**

### Step 1.2: Configure Application Settings

1. In the application setup form, enter:
   * **Organization Domain:** Your company domain with dashes instead of dots (e.g., `acme-com` for acme.com)
2. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-stacksync-sso-general-settings.webp" alt="Okta &#x22;Add Stacksync - SSO&#x22; General Settings form with Application label, Organization Domain and a Done button." width="1045" height="555" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Step 1.3: Retrieve SAML Configuration URLs

1. Navigate to the **General** tab
2. Scroll down to **App Embed Link**
3. Copy and save the embed link
4. Navigate to the **Sign On** tab
5. Copy and save the **Metadata URL**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-app-embed-link.webp" alt="Okta App Embed Link section with the Stacksync embed URL highlighted." width="728" height="477" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-sign-on-saml-metadata-url.webp" alt="Okta Sign On tab for the SAML 2.0 app with the Metadata URL under Metadata details highlighted and a Copy link." width="1025" height="842" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.4: Configure SSO in Stacksync

> **Note:** The SSO configuration should only be done once per company domain. All workspaces will share the same SSO configuration.

1. Navigate to your Stacksync workspace settings
2. Select **Okta** as your identity provider
3. Upload the SAML metadata or enter the metadata URL from Step 1.3
4. (Optional) Enable **Restrict login to SSO only for this domain** to require SSO authentication for all users with your domain
5. Click **Continue**

You should now see a confirmation page with all the necessary information to complete the setup.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-sso-okta-metadata-url.webp" alt="Stacksync Workspace Settings SCIM & SSO with Identity Provider &#x22;Okta&#x22;, Okta SAML Metadata URL field, restrict-domain checkbox and Continue." width="1182" height="706" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You should now see a confirmation page with all the necessary information to complete the setup.

## Part 2: Set Up Automatic User Provisioning (SCIM)

The SCIM configuration enables automatic user provisioning. You must complete this for each Stacksync workspace.

### Step 2.1: Add the Stacksync SCIM App

1. In your Okta Admin Console, navigate to **Applications** → **Applications**
2. Click **Browse App Catalog**
3. Search for and select **Stacksync - SCIM**
4. Click **Add Integration**
5. Enter your **Workspace ID** when prompted
6. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-stacksync-scim-general-settings.webp" alt="Okta &#x22;Add Stacksync - SCIM&#x22; General Settings form with Application label, Workspace ID &#x22;1234&#x22; and a Done button." width="1054" height="557" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.2: Generate a Workspace API Key

1. Navigate to your Stacksync workspace settings
2. Scroll down to **Stacksync Workspace API Key**
3. Click **Create API Key**
4. Save the generated API key securely

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-generate-scim-api-key-okta.webp" alt="Stacksync Workspace Settings with Key Name &#x22;SCIM API KEY&#x22; and the &#x22;Generate new API key&#x22; button highlighted, for Okta SCIM." width="1600" height="460" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-scim-api-key-preview-okta.webp" alt="Stacksync &#x22;Workspace API Key Preview&#x22; dialog with the generated key highlighted, a copy icon and a Close button." width="508" height="262" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.3: Enable API Integration

1. Return to your Okta Admin Console
2. Open the Stacksync SCIM application you created
3. Navigate to the **Provisioning** tab
4. Click **Configure API Integration**
5. Check **Enable API Integration**
6. Paste your API key from Step 2.2
7. Click **Test API Credentials**
8. Verify that you see a success message
9. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-enable-api-integration-token.webp" alt="Okta Provisioning Integration with &#x22;Enable API integration&#x22; checked, the API Token field and &#x22;Test API Credentials&#x22; highlighted." width="1021" height="694" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.4: Configure Provisioning Settings

1. After saving, the page will display additional options
2. Click **Edit** in the **To App** section
3. Enable the following options:
   * Create Users
   * Update User Attributes
   * Deactivate Users
4. Disable **Set password when creating new users**
5. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-edit.webp" alt="Okta Provisioning &#x22;To App&#x22; settings for Stacksync with the Edit button highlighted above Create, Update and Deactivate Users." width="1034" height="907" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-enable-users.webp" alt="Okta Provisioning to App with Create Users, Update User Attributes and Deactivate Users enabled, set password unchecked, and Save." width="1015" height="806" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Part 3: Configure Role Attribute Mappings

App roles define which permission level users have in Stacksync (viewer or editor).

### Step 3.1: Access the Profile Editor

1. In the **Provisioning** tab, scroll down to **Attribute Mappings**
2. Click **Go to Profile Editor**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-attribute-mappings-profile-editor.webp" alt="Okta Stacksync Attribute Mappings section with the &#x22;Go to Profile Editor&#x22; button highlighted." width="803" height="425" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.2: Add the Roles Attribute

1. Click **+ Add Attribute**
2. Fill in the following fields:
   * **Data type:** string array
   * **Display name:** roles
   * **Variable name:** roles
   * **External name:** roles
   * **External namespace:** `urn:ietf:params:scim:schemas:core:2.0:User`
   * **Description:** SCIM role attribute for Stacksync app
   * **Enum:** Enabled
   * **Attribute members:** `viewer`, `editor`
   * **Attribute required:** Yes
   * **Attribute type:** Group
   * **Group Priority:** Use Group Priority
3. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-profile-editor-add-attribute.webp" alt="Okta Profile Editor for the Stacksync app user with the &#x22;Add Attribute&#x22; button highlighted under Attributes." width="1046" height="560" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-roles-attribute.webp" alt="Okta Add Attribute dialog for a &#x22;roles&#x22; string array with enum members Viewer/viewer and Editor/editor, Group type, Use Group Priority." width="1449" height="959" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.3: Configure Role Mapping Expression

1. Return to your SCIM application
2. Under **Attributes**, click **Mappings**
3. Switch to the **Okta User to Stacksync** tab
4. Find the **roles** attribute in the mapping list
5. Add the following expression:

   ```
   isMemberOfGroupName("Stacksync editors") ? {"editor"} : {"viewer"}
   ```
6. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-profile-editor-mappings-button.webp" alt="Okta Profile Editor Attributes list with the &#x22;Mappings&#x22; button highlighted." width="1015" height="288" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-user-to-stacksync-mappings.webp" alt="Okta Stacksync User Profile Mappings with the &#x22;Okta User to Stacksync&#x22; tab highlighted and user fields mapped to Stacksync attributes." width="1011" height="578" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-roles-mapping-expression.webp" alt="Okta mapping row with an isMemberOfGroupName(&#x22;Stacksync editors&#x22;) expression mapped to the Stacksync &#x22;roles&#x22; attribute." width="941" height="205" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Part 4: Create Groups and Assign Users

### Step 4.1: Create Stacksync Groups

1. Navigate to **Directory** → **Groups**
2. Click **Add Group**
3. Create two groups:
   * **Stacksync Editors** — Users with editor permissions
   * **Stacksync Viewers** — Users with read-only permissions

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-groups-add-group.webp" alt="Okta Directory Groups page with the &#x22;Add group&#x22; button highlighted." width="1536" height="480" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.2: Add Users to Groups

1. Open each group you created
2. Click **Assign People**
3. Select the users who should have that access level
4. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-stacksync-editors-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1473" height="729" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.3: Assign Groups to the Application

1. Return to your Stacksync SCIM application
2. Navigate to the **Assignments** tab
3. Click **Assign** → **Assign to Groups**
4. Select **Stacksync Editors**
5. In the assignment dialog, set the **roles** field to `editor` by clicking the override text and choosing the radio button `editor`
6. Click **Save and Go Back**
7. Repeat for **Stacksync Viewers**, setting the **roles** field to `viewer`
8. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-stacksync-app-assign-groups.webp" alt="Okta Stacksync application Assignments tab with the &#x22;Assign&#x22; dropdown and &#x22;Groups&#x22; filter highlighted." width="1390" height="837" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-group-assignment-roles-override.webp" alt="Okta group assignment form showing the roles expression with the &#x22;Override&#x22; link highlighted." width="623" height="410" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-group-assignment-editor-role.webp" alt="Okta group assignment roles override with &#x22;Editor&#x22; checked instead of Viewer, and &#x22;Save and Go Back&#x22;." width="622" height="229" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! 🎉

## Troubleshooting

### Common Issues

### User not provisioned to Stacksync

* Verify the API key is correct in the Provisioning settings
* Check that the user is assigned to the Stacksync SCIM application
* Ensure the user has a valid role assigned (viewer or editor)

### Role not updating

* Verify the role mapping expression is correct
* Check that the user is in the correct Okta group (Stacksync Editors or Stacksync Viewers)
* Try removing and re-adding the user to the group

### SSO login fails

* Verify the Metadata URL is correct in Stacksync settings
* Check that the user's email domain matches the configured SSO domain
* Ensure the user is assigned to the Stacksync SSO application

### API credentials test fails

* Verify the Workspace ID is correct
* Regenerate the API key in Stacksync workspace settings
* Ensure you're using the correct workspace

### Support

For additional assistance, contact Stacksync support at [support@stacksync.com](mailto:support@stacksync.com)

# Quick Start

Source: https://docs.stacksync.com/security-and-other-resources

Welcome to the Security and Resources hub. At Stacksync, protecting your data is our top priority. This section covers our enterprise-grade security architecture, authentication setup for your workspace, and essential legal and compliance documentation.

Whether you are an IT admin setting up Single Sign-On (SSO) or a Compliance Officer reviewing our encryption standards, start with the topics below.

<CoverCards>
  <CoverCard title="Identity and Access Management" href="/https/docs.stacksync.com/security-and-other-resources/identity-and-access-management/sso" image="/images/security-and-other-resources/identity-access-management-card.webp" />

  <CoverCard title="Legal" href="/https/docs.stacksync.com/security-and-other-resources/legal/terms-of-service-and-conditions-tc" image="/images/security-and-other-resources/legal-card.webp" />

  <CoverCard title="Security" href="/https/docs.stacksync.com/security-and-other-resources/security/overview-security" image="/images/security-and-other-resources/security-card.webp" />
</CoverCards>

# Acceptable Use Policy (AUP)

Source: https://docs.stacksync.com/security-and-other-resources/legal/acceptable-use-policy-aup

## Stacksync Workspace & Cloud Identity Acceptable Use Policy <a href="#stacksync-workspace-and-cloud-identity-acceptable-use-policy" id="stacksync-workspace-and-cloud-identity-acceptable-use-policy" />

Last modified: October 31, 2025

Use of the Services is subject to this acceptable use policy ("AUP").

If not defined here, capitalized terms have the meaning stated in the applicable contract ("Agreement") between the customer, reseller or other authorized user ("You") and Stacksync.

You agree not, and not to allow third parties or Your End Users, to use the Services:

* to generate or facilitate unsolicited bulk commercial “spamming” operations;
* to violate, or encourage the violation of, the legal rights of others;
* to engage in, promote, or encourage illegal activity, including child sexual exploitation, child abuse, or terrorism or violence that can cause death, serious harm, or injury to individuals or groups of individuals;
* for any unlawful, invasive, infringing, defamatory, or fraudulent purpose including Non-consensual Explicit Imagery (NCEI), violating intellectual property rights of others, phishing, or creating a pyramid scheme;
* to distribute viruses, worms, Trojan horses, corrupted files, hoaxes or other items of a destructive or deceptive nature;
* to gain unauthorized access to, disrupt, or impair the use of the Services, or the equipment used to provide the Services, by customers, authorized resellers, or other authorized users;
* to alter, disable, interfere with or circumvent any aspect of the Services, Software, or the equipment used to provide the Services;
* to test or reverse-engineer the Services in order to find limitations or vulnerabilities, or to evade filtering capabilities;
* to grant multiple individuals access to an individual End User Account other than via the delegation and sharing features provided within the Services;
* to create End User Accounts assigned to business functions rather than to human beings for the purpose of sharing data within or outside of the domain;
* to use or resell End User Accounts, or parts thereof, as added into a commercial product offered to third parties (without the consent of Stacksync). It is also forbidden to do so in order to benefit from bulk discounts obtained from the common use of the same billing entity between different otherwise distinct business entities or companies;
* to process data of any kind without consent if such consent is required by applicable laws and regulations (You are solely responsible for ensuring compliance with all applicable laws and regulations in the relevant jurisdiction(s));
* to use the Services, or any interfaces provided with the Services, to access any other Stacksync product or service in a manner that violates the terms of service of such other Stacksync product or service.

Your failure to comply with the AUP may result in suspension or termination, or both, of the Services pursuant to the Agreement. You are solely responsible for any data you or your End Users transmit, process, or store through the Services. Stacksync will not be liable for, and You agree to indemnify and hold Stacksync harmless from, any claims, damages, or losses arising from the content, nature, or legality of such data or its transfer.

# AI Addendum

> Customer data protections, provider selection, and operational controls for Stacksync AI services.

Source: https://docs.stacksync.com/security-and-other-resources/legal/ai-addendum

Updated November 13, 2026

This AI Addendum supplements the agreement governing Customer’s use of the Stacksync Services (the “Agreement”) with respect to its AI-enabled products and functionality (collectively, the “AI Services”), including AI Inference and AI Genies. Capitalized terms not defined herein have the meanings given in the Agreement. The [Data Processing Addendum (DPA)](/security-and-other-resources/legal/data-processing-addendum-dpa) continues to govern the processing of Personal Data and shall prevail in the event of a conflict concerning such processing.

The AI Services include:

* **AI Inference:** access to AI models through a unified API for Customer’s applications, with model selection, AI Inference API keys, spending limits, and request visibility.
* **AI Genies:** Stacksync’s AI agents, which use Customer-configured instructions, knowledge sources, and skills to perform tasks through connected applications and communication channels.

The data-use protections below apply to both services. Product-specific controls apply only to the functionality Customer uses.

## 1. Customer Data and Model Training

“Customer Data” includes the prompts, instructions, files, knowledge sources, conversations, run records, and outputs processed through Customer’s use of the AI Services.

Customer Data is never used to train or fine-tune any model offered on the Stacksync platform, whether by Stacksync or any of its AI providers. This applies to both AI Inference and AI Genies, regardless of the provider’s data retention settings.

A Genie uses Customer’s instructions, knowledge base, and authorized memory to carry out its tasks. This provides context to the Genie at runtime; it does not train the underlying model.

## 2. Inference Providers and Processing Locations

Customer can choose, per resource, which AI model and provider is used by that resource. This applies to both direct inference requests and Genie runs. Inference is processed through the providers supporting the selected model and configuration. Inclusion on the [Subprocessors list](/security-and-other-resources/security/subprocessors) does not mean that every listed AI provider processes every Customer’s data.

AI inference is regional, never global. For Genies, inference is performed in the same processing region as the Genie itself. For standalone AI Inference, Customer should confirm the processing locations applicable to its selected model and configuration. Model availability varies by region. Customer should confirm that the selected model and provider meet its residency requirements before submitting data subject to geographic restrictions. The DPA governs applicable subprocessor and international transfer obligations.

Zero data retention is available for certain providers and configurations; it is not enabled universally. Customer may request assistance selecting a configuration appropriate to its retention requirements. When Customer uses its own AI provider API key, Customer’s separately negotiated provider terms apply to its use of that provider.

## 3. Customer Control and Human Oversight

Workspace administrators may restrict available models in AI Settings. These restrictions apply across all AI Services for the entire workspace, including AI Inference and AI Genies.

**AI Inference.** Customer selects the model for each request. Customer may create separate AI Inference API keys with spending limits, control access to key resources, inspect request usage, and revoke keys to stop new requests. Customer is responsible for implementing application-level validation, tool permissions, and approval mechanisms in applications it builds using the inference API.

**AI Genies.** Customer determines the Genie’s instructions, knowledge sources, enabled skills, connected applications, and approval requirements. A Genie may take actions through enabled skills, such as querying information, creating or updating records, or sending messages, subject to the permissions of the configured connections and any required approval. Customer may require approval before a skill executes and may deactivate a Genie to stop new messages and scheduled tasks.

For Genies, access to conversations, execution steps, and files is governed by workspace roles and permissions. Viewers may read conversations and steps; editors and owners may modify a Genie. Raw model prompts are not exposed to workspace users.

AI outputs may contain errors or omissions. Customer remains responsible for evaluating outputs and configuring human review appropriate to the intended use, particularly before consequential decisions or external actions. Instructions and knowledge sources guide responses but do not constitute a guarantee of accuracy, completeness, or freedom from bias.

## 4. Retention and Memory

Genies memory is segmented in several ways, and per-user segmentation is one of the main segmentation. Users only access their partition of memory which deterministically guarantees privacy and compliance.

Learning from edge cases: A genie operates from what Customer explicitly indicates in its instructions and its knowledge base. Automatic self-improvement memory allows a genie to remember what worked and each person’s preferences, subject to the memory access controls described below.

Memory is built enterprise-first. Never sharing a memory with someone who shouldn’t see it is a strict requirement and our number one priority. Here’s how it works:

* Every piece of memory has an audience: the exact list of people allowed to see it. By default it’s the people who were in the conversation when the memory content was created. For example, if you mention a preference in a private chat with the genie the audience is set to be only you.
* A genie only uses a memory if everyone in the conversation is part of its audience. If a partner or anyone else joins a shared channel, memories they’re not allowed to see are not used.
* This decision is strict and rule-based, never left to AI’s judgement. Memories are filtered before anything is sent to the model, so the model only ever receives a context that has already been cleared for everyone present in a given thread.
* Memory never leaves your workspace. It is not possible to transfer memory across workspaces.
* Full control: admins can review, correct and permanently delete what a genie remembers, per user, and every use of memory is auditable.

Access to conversations and files follows your workspace roles: viewers can read conversations and their steps, and only editors and owners can change a genie. Raw model prompts are never exposed.

## 5. Security

The AI Services are subject to Stacksync’s documented security policies and secure development practices described in the [Security Overview](/security-and-other-resources/security/overview-security). Stacksync performs regular, at least monthly, internal penetration testing and security scans, including for its AI Services.

## Common Questions

### Is Customer Data used to train models?

No. Neither Stacksync nor the AI inference providers engaged by Stacksync may use Customer Data to train models offered through the platform. Providing context or authorized memory to a Genie does not train the underlying model.

### Can Customer limit which providers its users use?

Yes. Workspace administrators can restrict available models in Workspace settings → AI Settings. These restrictions apply to all AI Services across the entire workspace, including AI Inference and AI Genies.

### Are all providers configured for zero data retention?

No. Retention varies by provider and configuration. Stacksync can help identify an appropriate model and configuration.

### What controls support reliable outputs?

For Genies, Customer can configure instructions, approved knowledge sources, enabled skills, connection permissions, and approval gates. For AI Inference, Customer implements validation and human review in its own application. These controls support oversight and reliability but do not guarantee correct outputs. Requirements for confidence thresholds, anomaly alerts, or specialized evaluations should be confirmed for the proposed deployment.

### Can Customer obtain deployment-specific details?

Yes. Customer may contact [hello@stacksync.com](mailto:hello@stacksync.com) to confirm model hosting, provider routing, retention, exports, workspace controls, or security assessment information for Customer’s intended configuration. Any additional contractual commitments must be agreed in writing by the parties.

# Data Processing Addendum (DPA)

Source: https://docs.stacksync.com/security-and-other-resources/legal/data-processing-addendum-dpa

Updated March 2nd, 2024

This Data Processing Addendum ("DPA"), is incorporated into and forms part of the terms and conditions of the Stacksync Terms and Conditions, Service Consumption Tables or other agreement under which Stacksync Inc. ("Stacksync") provides services to Customer ("Agreement") executed between the party identified as the "Customer" and Stacksync. This DPA is supplemental to the Agreement and sets out the roles and obligations that apply when Stacksync processes Personal Data on behalf of Customer in connection with Customer's use of Stacksync’s services ("Services"). If there is any conflict between the Agreement and this DPA, the terms of this DPA will prevail to the extent of such conflict. Any capitalized terms not defined in this DPA will have the meanings given to them in the Agreement.

1\. Definitions. For the purpose of this DPA:

1.1 "controller", "processor", "data subject", "personal data" and "processing" (and "process") will have the meanings given in EU/UK Data Protection Law;

1.2 "Applicable Data Protection Law" means all worldwide data protection and privacy laws and regulations applicable to the Personal Data in question, including, where applicable, EU/UK Data Protection Law, US Data Protection Law, Serbian Data Protection Law, Canadian Data Protection Law, and the Swiss DPA;

1.3 “Breach” means an accidental or unlawful destruction, loss, alteration, or unauthorised disclosure or access that is in violation of Stacksync’s security obligations under this Agreement by Stacksync or its agents of which Stacksync becomes aware. Breach will not include an unsuccessful Breach, which is one that results in no unauthorized access to Personal Data or to any Stacksync equipment or facilities storing the Personal Data, and could include (without limitation) pings and other broadcast attacks of firewalls or edge servers, port scans, unsuccessful log-on attempts, denial of service attacks, packet sniffing (or other unauthorized access to traffic data that does not result in access beyond headers) or similar incidents;

1.4 "Canadian Data Protection Law" means: (i) the Personal Information Protection and Electronic Documents Act S.C. 2000, c. 5; (ii) applicable provincial law; (iii) any and all applicable data protection laws made under, pursuant to or that apply in conjunction with any of (i) or (ii); in each case as may be amended or superseded from time to time;

1.5 “Data Privacy Framework” means the EU-US Data Privacy Framework, the UK extension to the EU-US Data Privacy Framework, and the Swiss-US Data Privacy Framework self-certification program operated by the US Department of Commerce;

1.6 “Data Privacy Principles” means the Data Privacy Framework principles (as supplemented by the Supplemental Principles);

1.7 "EU/UK Data Protection Law" means: (i) Regulation 2016/679 of the European Parliament and of the Council on the protection of natural persons with regard to the Processing of Personal Data and on the free movement of such data (General Data Protection Regulation) (the "EU GDPR"); (ii) the EU GDPR as saved into United Kingdom law by virtue of section 3 of the United Kingdom's European Union (Withdrawal) Act 2018 (the "UK GDPR"); (iii) the EU e-Privacy Directive (Directive 2002/58/EC); and (iv) any and all applicable national data protection laws made under, pursuant to or that apply in conjunction with any of (i), (ii) or (iii); in each case as may be amended or superseded from time to time;

1.8 "US Data Protection Law" means: (i) the California Consumer Privacy Act of 2018, including as amended by the California Privacy Rights Act of 2020, codified at Cal. Civ. Code §1798.100 et seq., upon the CPRA’s enforcement date of July 1, 2023 (together with its implementing regulations) (“CPRA”); (ii) the Virginia Consumer Data Protection Act; (iii) the Colorado Privacy Act; (iv) the Connecticut Personal Data Privacy and Online Monitoring Act; (v) the Utah Consumer Privacy Act; (vi) the Iowa Consumer Data Protection Act; (vii) the Indiana Consumer Data Protection Act; (viii) the Tennessee Information Protection Act; (ix) the Montana Consumer Data Privacy Act; (x) the Texas Data Privacy and Security Act; (xi) the Oregon Consumer Privacy Act; (xii) the Delaware Personal Data Privacy Act; and (xiii) any and all applicable comprehensive state data protection laws and regulations that are or are not yet in effect as of the Effective Date; in each case as may be amended or superseded from time to time;

1.9 "Serbian Data Protection Law" means: Law on Personal Data Protection (Zakon o zaštiti podataka o ličnosti; Official Gazette of the Republic of Serbia, no 87/2018). In the case of a transfer of Personal Data to a Non-Adequate Country, by entering into this DPA, the Customer is entering into the Serbian Standard Contractual Clauses (“Serbian SCCs”) as adopted by the "Serbian Commissioner for Information of Public Importance and Personal Data Protection", published at [https://www.poverenik.rs/images/stories/dokumentacija-nova/podzakonski-akti/Klauzulelat.docx](https://www.poverenik.rs/images/stories/dokumentacija-nova/podzakonski-akti/Klauzulelat.docx) to provide an adequate level of protection. References to the Standard Contractual Clauses in this DPA will include the Serbian SCCs. Information required to complete Appendices 1 to 8 of the Serbian SCCs for the purpose of governing the transfer of Personal Data to a Non-Adequate Country can be found in this DPA and accompanying appendices;

1.10 “Supplemental Principles” will have the meaning given in the Data Privacy Framework;

1.11 "Standard Contractual Clauses" means: (i) where the EU GDPR or Swiss DPA applies, the contractual clauses annexed to the European Commission's Implementing Decision 2021/914 of 4 June 2021 on standard contractual clauses for the transfer of Personal Data to third countries pursuant to Regulation (EU) 2016/679 of the European Parliament and of the Council ("EU SCCs"); and (ii) where the UK GDPR applies, standard data protection clauses adopted pursuant to or permitted under Article 46 of the UK GDPR ("UK SCCs"); and (iii) where Serbian Data Protection Law applies, the Serbian SCCs; and

1.12 "Swiss DPA" means the revised Swiss Federal Act on Data Protection enacted on September 25, 2020, and effective on September 1, 2023, as may be amended or superseded from time to time.

2\. Relationship of the parties: Customer instructs Stacksync to process the personal data described in Annex I (the "Personal Data") on its behalf. In respect of such processing, Customer will be the controller (or, where Customer is instructing Stacksync on behalf of a third party controller, a processor on behalf of that controller) and Stacksync will be a processor (or, where Customer is a processor on behalf of a third party controller, Stacksync will be a subprocessor to Customer). Each party will comply with the obligations that apply to it under Applicable Data Protection Law.

3\. Purpose limitation: Stacksync will process Personal Data for the purposes described in Annex I and strictly in accordance with the documented instructions of Customer (which instructions, where Customer is a processor, will reflect the instructions of its controller) (the "Permitted Purpose"), except where otherwise required by law(s) that are not incompatible with Applicable Data Protection Law. In no event will Stacksync process Personal Data for its own purposes or those of any third party. Stacksync will immediately inform Customer (who, where Customer is a processor, will inform its controller) if it becomes aware that such processing instructions infringe Applicable Data Protection Law.

4\. Cross border transfer mechanisms:

4.1 Order of precedence: To the extent Customer’s use of the Services requires an onward transfer mechanism to lawfully transfer personal data from a jurisdiction to Stacksync located outside of that jurisdiction (“Transfer Mechanism”), the terms set forth in this Section 4 will apply. In the event the Services are covered by more than one Transfer Mechanism, the transfer of Personal Data will be subject to a single Transfer Mechanism, as applicable, and in accordance with the following order of precedence: (i) the Data Privacy Framework as set forth in Section 4.2 (Data Privacy Framework) of this DPA; (ii) Standard Contractual Clauses as set forth in Section 4.3 (Standard Contractual Clauses) of this DPA; and, if neither (i) nor (ii) is applicable, then (iii) other applicable data Transfer Mechanisms permitted under Applicable Data Protection Law.

4.2 Data Privacy Framework: To the extent Stacksync processes any Personal Data via the services subject to EU/UK Data Protection Law and/or Swiss DPA, Stacksync represents that it is self-certified under the Data Privacy Framework and complies with the Data Privacy Principles when processing any such Personal Data. To the extent that Customer is either located in the United States of America and is self-certified under the Data Privacy Framework or subject to EU/UK Data Protection Law and/or Swiss DPA, Stacksync further agrees to (i) provide at least the same level of protection to any Personal Data as required by the Data Privacy Principles; (ii) notify Customer in writing, without undue delay, if its self-certification to the Data Privacy Framework is withdrawn, terminated, revoked, or otherwise invalidated; and (iii) upon written notice, work with Customer to take reasonable and appropriate steps to stop and remediate any unauthorized processing of Personal Data.

4.3 Standard Contractual Clauses: For cross border data transfers that are subject to Standard Contractual Clauses, the Standard Contractual Clauses will be deemed entered into, and incorporated into this DPA by this reference, and completed as follows:

4a. in relation to Personal Data that is protected by the EU GDPR, the EU SCCs will apply completed as follows:

(i) Module Two will apply to the extent that Customer is a controller of Personal Data, and Module Three will apply to the extent that Customer is a processor of Personal Data on behalf of a third party controller;

(ii) in Clause 7, the optional docking clause will not apply;

(iii) in Clause 9, Option 2 will apply, and the time period for prior notice of subprocessor changes will be as set out in Clause 8 of this DPA;

(iv) in Clause 11, the optional language will not apply;

(v) in Clause 17, Option 1 will apply, and the EU SCCs will be governed by Republic of Ireland law;

(vi) in Clause 18(b), disputes will be resolved before the courts of the Republic of Ireland;

(vii) Annex I of the EU SCCs will be deemed completed with the information set out in Annex I to this DPA;

(viii) Annex II of the EU SCCs will be deemed completed with the information set out in Annex II to this DPA; and

(ix) Annex III of the EU SCCs will be deemed completed with the information set out in Annex III to this DPA.

4b. in relation to Personal Data that is protected by the UK GDPR, the UK SCCs will apply completed as follows:

(i) for so long as Customer and Stacksync are lawfully permitted to rely on the EU SCCs for transfers of Personal Data from the United Kingdom subject to completion of a “UK Addendum to the EU Standard Contractual Clauses” (“UK Addendum”) issued by the Information Commissioner’s Office under s.119A(1) of the Data Protection Act 2018, then:

A. The EU SCCs, completed as set out above in Section 4.3(a) of this DPA will also apply to transfers of such Personal Data, subject to sub-clauses (B) and (C) below;

B. The UK Addendum will be deemed executed between the transferring Customer and Stacksync, and the EU SCCs will be deemed amended as specified by the UK Addendum in respect of the transfer of such Personal Data; and

C. The optional illustrative indemnification clause will not apply.

(ii) if Customer and Stacksync are no longer permitted to rely on the EU SCCs and the UK Addendum, then the Customer and Stacksync will cooperate in good faith to implement appropriate safeguards for transfers of such Personal Data as required or permitted by the UK GDPR without undue delay;

4c. in relation to Personal Data that is protected by the Swiss DPA, the EU SCCs will apply as set out in 4.3(a), amended as follows:

(i) references to ‘Regulation (EU) 2016/679’ in the EU SCCs will be deemed to refer to the Swiss DPA;

(ii) references to specific articles of ‘Regulation (EU) 2016/679’ will be deemed replaced with the equivalent article or section of the Swiss DPA;

(iii) references to ‘EU’, ‘Union’ and ‘Member State’ will be deemed replaced with ‘Switzerland’;

(iv) references to the ‘competent supervisory authority’ and ‘competent courts’ are replaced with the ‘Swiss Federal Data Protection Information Commissioner’ and ‘applicable courts of Switzerland’ (as applicable);

(v) in Clause 17, the EU SCCs will be governed by the laws of Switzerland; and

(vi) in Clause 18(b), disputes will be resolved before the competent courts of Switzerland.

4d. in the event that any provision of the Agreement (including this DPA) contradicts, directly or indirectly, the Standard Contractual Clauses, the Standard Contractual Clauses will prevail.

5\. Onward transfers: Stacksync will not participate in (nor permit any subprocessor to participate in) any other cross border transfers of Personal Data (whether as an exporter or an importer of Personal Data) unless it has taken such measures as are necessary to ensure the transfer is in compliance with Applicable Data Protection Law. Without prejudice to the foregoing, Customer consents to cross border transfers of Personal Data where Stacksync has implemented a transfer solution compliant with Applicable Data Protection Law.

6\. Confidentiality of processing: Stacksync will take appropriate measures to ensure the confidentiality of Personal Data as outlined in the Agreement.

7\. Security: Stacksync will implement appropriate technical and organisational measures to protect the Personal Data from a Breach. Such measures will have regard to the state of the art, the costs of implementation and the nature, scope, context and purposes of processing as well as the risk of varying likelihood and severity for the rights and freedoms of natural persons. Such measures will include, as appropriate:

(a) the pseudonymisation and encryption of Personal Data;

(b) the ability to ensure the ongoing confidentiality, integrity, availability and resilience of processing systems and services;

(c) the ability to restore the availability and access to Personal Data in a timely manner in the event of a physical or technical incident;

(d) a process for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures for ensuring the security of the processing;

(e) at a minimum, such measures will include the measures identified in Annex II.

8\. Subprocessing: Stacksync will not subcontract any processing of the Personal Data to a third party subprocessor without the prior written consent of Customer, which consent, where Customer is a processor, will reflect the instructions of its controller. Notwithstanding this, Customer consents to Stacksync engaging third party subprocessors to process the Personal Data provided that: (i) Stacksync provides at least 5 days' prior written notice of the addition or removal of any subprocessor (including details of the processing it performs or will perform), which will also include posting detail of such addition or removal at the following URL: [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors); and (ii) Stacksync imposes data protection terms on any subprocessor it appoints that protect the Personal Data, in substance, to the same standard provided for by this DPA. A list of approved subprocessors as of the date of this DPA is attached at Annex III, and Stacksync will maintain and provide updated copies of this list to Customer when it adds or removes subprocessors in accordance with this Section. If Customer refuses to consent to Stacksync's appointment of a third party subprocessor on reasonable grounds relating to the protection of the Personal Data, then either Stacksync will not appoint the subprocessor or Customer may elect to suspend or terminate the Agreement.

9\. Cooperation and data subjects' rights: Stacksync will provide all reasonable and timely assistance to Customer (at Customer's expense) to enable Customer (or, where Customer is a processor, its controller) to respond to: (i) any request from a data subject to exercise any of its rights under Applicable Data Protection Law (including its rights of access, correction, objection, erasure and data portability, as applicable); and (ii) any other correspondence, enquiry or complaint received from a data subject, regulator or other third party in connection with the processing of Personal Data. In the event that any such request, correspondence, enquiry or complaint is made directly to Stacksync, Stacksync will (unless prohibited by applicable law) promptly inform Customer (who, where Customer is a processor, will in turn inform its controller) providing full details of the same.

10\. Data Protection Impact Assessment: Stacksync will provide Customer with all such reasonable and timely assistance (at Customer’s expense) as Customer may require in order to enable it (or, where Customer is a processor, to enable its controller) to conduct a data protection impact assessment in accordance with Applicable Data Protection Law including, if necessary, assistance to Customer (or, where Customer is a processor, its controller) to consult with its relevant data protection authority.

11\. Breach notification: Upon becoming aware of a Breach, Stacksync will inform Customer (who, where Customer is a processor, will in turn inform its controller) without undue delay and will provide all such timely information and cooperation as Customer may require in order for Customer (or, where Customer is a processor, its controller) to fulfil its data breach reporting obligations under (and in accordance with the timescales required by) Applicable Data Protection Law. Stacksync will further take all such measures and actions as are necessary to remedy or mitigate the effects of the Breach and will keep Customer informed of all material developments in connection with the Breach.

12\. Deletion or return of Data: After a written request by Customer or the termination or expiration of the Agreement, Stacksync will destroy or return to Customer all Personal Data in its possession or control. This requirement will not apply to the extent that Stacksync: (i) is required by any applicable law to retain some or all Personal Data; and/or (ii) retains Personal Data in its backup systems until the backups have been overwritten or expunged in accordance with Stacksync’s backup policy; provided that, in the event of either (i) or (ii), Stacksync will isolate and protect Personal Data from any further processing except to the extent required until deletion is possible. Until Personal Data is deleted or returned, Stacksync will continue to ensure compliance with its security and privacy obligations in the Agreement and this DPA.

13\. Audit: Customer (and, where Customer is a processor, its controller) acknowledges that Stacksync has been certified and audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer (and, where Customer is a processor, its controller), which report(s) will be subject to the confidentiality provisions of the Agreement. Stacksync will also respond to any written audit questions submitted to it by Customer and meet by teleconference or in person (at Customer’s expense) to address follow up questions (and, where Customer is a processor, its controller), provided that Customer (and, where Customer is a processor, its controller) will not exercise this right more than once per year, except if and when required by instruction of a competent data protection authority.

14\. Processing in accordance with US Data Protection law:

14.1 Processing Of Personal Data: Customer appoints Stacksync as a processor (or, where Customer is a processor, Customer appoints Stacksync as a sub-processor) to process Personal Data only for the Business Purposes (as defined by CPRA) listed in Customer’s instructions under Annex I. Processing by Stacksync is outlined in Annex I that sets out the processing instructions to which Stacksync is bound, including the nature and purpose of the processing, the type of Personal Data subject to the processing, and the duration of the processing. Stacksync will adhere to Customer instructions as outlined in Section 3 and Annex I, and Stacksync will assist Customer in meeting its obligations under US Data Protection Law. Stacksync will comply with all applicable sections of US Data Protection Law, including providing the same level of protection for Personal Data as US Data Protection Law requires Customer to provide. Taking into account the nature of processing and the information available to Stacksync, Stacksync will assist Customer by:

(a) taking appropriate technical and organizational measures, insofar as this is possible, for the fulfillment of the controller's obligation to respond to data subject rights requests as outlined in Section 9;

(b) helping Customer meet its obligations in relation to the security of processing Personal Data and in relation to the notification of a breach of the security of the system as outlined in Section 7, Section 11, and Annex II;

(c) providing information to Customer necessary to enable Customer to conduct and document any data protection assessments as outlined in Section 10. Customer and Stacksync are each responsible for only the measures allocated to them;

(d) ensuring that each person processing Personal Data is subject to a duty of confidentiality with respect to Personal Data as outlined in Annex II; and

(e) after providing Customer an opportunity to object, engaging any subprocessor pursuant to a written contract in accordance with Section 8 that requires the subprocessor to meet the obligations of Stacksync with respect to Personal Data.

14.2 Security measures: Taking into account the context of processing, Customer and Stacksync will implement appropriate technical and organizational measures to ensure a level of security appropriate to the risk and establish a clear allocation of the responsibilities between them to implement the measures as outlined in Annex II.

14.3 Deletion or return of Personal Data: Stacksync will delete or return all Personal Data to Customer at the end of the provision of services as outlined in Section 12.

14.4 Audit rights: Stacksync grants Customer the right to take reasonable and appropriate steps to help ensure that Stacksync uses Personal Data consistent with US Data Protection Law and to stop and remediate unauthorized use of Personal Data. Stacksync will, upon the reasonable request of Customer, make available to Customer all information in its possession necessary to demonstrate Stacksync's compliance as outlined in Section 13. Stacksync will allow an audit of Stacksync's policies and technical and organizational measures in support of the obligations under US Data Protection Law and will provide a report of the audit to Customer upon request as outlined in Section 13.

14.5 Restrictions On Processing Personal Data: Stacksync is prohibited from: (i) processing Personal Data for any purposes but for the Business Purposes unless otherwise expressly permitted by US Data Protection Law; (ii) processing Personal Data for any additional commercial purpose (other than the Business Purposes) including in the servicing of a different business unless otherwise expressly permitted by US Data Protection Law; (iii) processing Personal Data outside the direct business relationship between Customer and Stacksync unless otherwise expressly permitted by US Data Protection Law; (iv) Selling or Sharing (as both are defined by CPRA) Personal Data; (v) combining Personal Data with Personal Data that it receives from, or on behalf of, another person or persons, or collects from its own interaction with a data subject unless otherwise expressly permitted by US Data Protection Law; or (vi) processing the Personal Data for any other purpose except as permitted by this DPA.

14.6 Inability To Comply With US Data Protection Law: Stacksync shall notify Customer after Stacksync determines that it no longer can meet its obligations under this DPA or US Data Protection Law. In the event of Stacksync’s inability to meet its obligations, Customer may, in its discretion; (i) take reasonable and appropriate steps to stop and remediate any unauthorized use of Personal Data; or (ii) terminate the Agreement.

14.7 Certification: Stacksync certifies that it understands and will comply with the restrictions set forth in this Section 14.

15\. System Data: Notwithstanding anything to the contrary in this Agreement, Stacksync may collect System Data and use such data internally to develop, improve, support, and operate its products and services. Stacksync’s use of System Data will comply with applicable data protection law. Stacksync may not share any System Data that includes Personal Data with a third party except to the extent the System Data is aggregated and anonymized such that Customer and Customer’s users cannot be identified.

16\. Local implementation agreement: If and when necessary to accommodate laws, regulations, and/or local business requirements in a particular country outside the United States, European Union, the European Economic Area and their member states, Switzerland and the United Kingdom, the parties may enter into a Local Implementation Addendum covering additional requirements under such laws that are not already addressed in the Agreement or this DPA.

17\. Personnel background checks: Prior to engaging any employee or contractor who may receive access to Personal Data Stacksync will conduct a criminal history background check (modified as appropriate to comply with applicable law in countries outside the United States) covering the three year period prior to the employment commencement date of such employee.

18\. Construction; Interpretation: This DPA is not a standalone agreement and is only effective if an Agreement is in effect between Stacksync and Customer. This DPA is part of the Agreement and is governed by its terms and conditions, including limitations of liability set forth therein. This DPA and the Agreement are the complete and exclusive statement of the mutual understanding of the parties and supersede and cancel all previous written and oral agreements and communications relating to the subject matter hereof. Headings contained in this DPA are for convenience of reference only and do not form part of this DPA.

19\. Severability: If any provision of this DPA is adjudicated invalid or unenforceable, this DPA will be amended to the minimum extent necessary to achieve, to the maximum extent possible, the same legal and commercial effect originally intended by the parties. To the extent permitted by applicable law, the parties waive any provision of law that would render any clause of this DPA prohibited or unenforceable in any respect.

20\. Amendment; Enforcement of rights: No modification of or amendment to this DPA, nor any waiver of any rights under this DPA, will be effective unless in writing signed by the parties to this DPA. The failure by either party to enforce any rights under this DPA will not be construed as a waiver of any rights of such party. This DPA may not be construed to create any right or cause of action on behalf of a third party, except to the minimum extent required available to data subjects under Applicable Data Protection Law.

21\. Assignment: This DPA may be assigned only in connection with a valid assignment pursuant to the Agreement. If the Agreement is assigned by a party in accordance with its terms, this DPA will be automatically assigned by the same party to the same assignee.

22\. Governing Law: This DPA will be governed by and construed in accordance with the laws of the jurisdiction governing the Agreement unless otherwise required by EU/UK Data Protection Law or Applicable Data Protection Law, in which case this DPA will be governed by the laws outlined in the relevant section of this DPA.

23\. Counterparts: This DPA may be executed and delivered by facsimile or electronic signature and in two or more counterparts, each of which will be deemed an original, but all of which together will constitute one and the same instrument.

24\. Supplementary terms to Standard Contractual Clauses

24.1 Documentation and compliance: For the purposes of Clause 8.9 the review and audit provisions in this DPA will apply.

24.2 Notification and transparency:

For purposes of Clause 8.3 – Modules 2 and 3 and Clause 15.1(a), the parties agree and acknowledge that it may not be possible for Stacksync to make the appropriate communications to data subjects and accordingly, Customer will (following notification by Stacksync) have the option to be the party who makes any communication to the data subject, and Stacksync will provide the level of assistance set out in this DPA.

24.3 Liability: For the purposes of Clause 12(a), the liability of the parties will be limited in accordance with the limitation of liability provisions in the Agreement. 

24.4 Signatories: Notwithstanding the fact that the Standard Contractual Clauses are incorporated herein by reference without being signed directly, Stacksync and Customer each agrees that their execution of the Agreement is deemed to constitute its execution of the Standard Contractual Clauses, and that it is duly authorized to do so on behalf of, and to contractually bind, the data exporter or data importer (as applicable) accordingly.

## Annex I

## Data Processing Description

This Annex I forms part of the DPA and describes the processing that the processor will perform on behalf of the controller.

A. LIST OF PARTIES

Controller(s) / Data exporter(s): \[Identity and contact details of the controller(s) /data exporter(s) and, where applicable, of its/their data protection officer and/or representative in the European Union]

| 1. | Name:                                                            | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|    | Address:                                                         | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|    | Contact person’s name, position and contact details:             | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|    | Activities relevant to the data transferred under these Clauses: | <p>Stacksync will process Customer personal data in order to facilitate the data transfer and synchronization of data between Customer’s data sources such as databases, data warehouses and business apps in a unidirectional or bidirectional data flow. The frequency and retention periods for which personal data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a></p><p><br /></p> |
|    | Role (controller/processor):                                     | Controller/processor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

Processor(s) / Data importer(s): \[Identity and contact details of the processor(s) /data importer(s), including any contact person with responsibility for data protection]

| 1. | Name:                                                                     | Stacksync Inc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|    | Address:                                                                  | 2611, 1007 N Orange St. 4th Floor , Wilmington, DE, New Castle, US, 19801                                                                                                                                                                                                                                                                                                                                                                                                                  |
|    | 2611, 1007 N Orange St. 4th Floor , Wilmington, DE, New Castle, US, 19801 | Data Protection Officer (DPO): Ruben Burdin; [privacy@stacksync.com](mailto:privacy@stacksync.com); [DPO@stacksync.cloud](mailto:DPO@stacksync.cloud)                                                                                                                                                                                                                                                                                                                                      |
|    | Activities relevant to the data transferred under these Clauses:          | Stacksync will process Customer personal data in order to facilitate the data transfer and synchronization of data between Customer’s data sources such as databases, data warehouses and business apps in a unidirectional or bidirectional data flow. The frequency and retention periods for which personal data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/](https://docs.stacksync.cloud/) |
|    | Role (controller/processor):                                              | Processor/Sub-processor                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |

В. DESCRIPTION OF TRANSFER

| Categories of data subjects whose Personal Data is transferred:                                                                                                                                                                                                                                                                                                                                                            | <p>Customer’s employees and consultants who use Stacksync’s Service.</p><p>Individuals whose Personal Data is stored in Customer’s data sources and processed by Stacksync.</p>                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Categories of Personal Data transferred:                                                                                                                                                                                                                                                                                                                                                                                   | <p>Stacksync may have access to Personal Data of Customer’s employees and consultants who use Stacksync’s Service.</p><p>Stacksync may have access to Personal Data of individuals whose Personal Data is stored in Customer’s data sources.</p><p>The types of Personal Data processed are determined by Customer and may include without limitation: Name, Email address, Physical address, IP-address and other online identifiers, Date of birth, Telephone/mobile number, Location Data.</p> |
| Sensitive data transferred (if applicable) and applied restrictions or safeguards that fully take into consideration the nature of the data and the risks involved, such as for instance strict purpose limitation, access restrictions (including access only for staff having followed specialised training), keeping a record of access to the data, restrictions for onward transfers or additional security measures: | As above                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| The frequency of the transfer (e.g. whether the data is transferred on a one-off or continuous basis):                                                                                                                                                                                                                                                                                                                     | <p>Duration of<br />account/agreement<br />life-cycle</p>                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Nature of the processing:                                                                                                                                                                                                                                                                                                                                                                                                  | The data processing activities carried out by Stacksync under the Agreement                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Purpose(s) of the data transfer and further processing:                                                                                                                                                                                                                                                                                                                                                                    | Stacksync will process Customer Personal Data in order to facilitate migration of data from Customer’s data sources into Customer’s data warehouse.                                                                                                                                                                                                                                                                                                                                               |
| The period for which the Personal Data will be retained, or, if that is not possible, the criteria used to determine that period:                                                                                                                                                                                                                                                                                          | The frequency and retention periods for which Personal Data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/](https://docs.stacksync.cloud/)                                                                                                                                                                                                                                                                |
| For transfers to (sub-) processors, also specify subject matter, nature and duration of the processing:                                                                                                                                                                                                                                                                                                                    | As outlined at [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors)                                                                                                                                                                                                                                                                                                                                                                           |

C. COMPETENT SUPERVISORY AUTHORITY

| Identify the competent supervisory authority/ies in accordance (e.g. in accordance with Clause 13 SCCs) | Irish Supervisory Authority (DPC) |
| ------------------------------------------------------------------------------------------------------- | --------------------------------- |

## Annex II

## Technical and Organisational Security Measures

Description of the technical and organisational measures implemented by the processor(s) / data importer(s) (including any relevant certifications) to ensure an appropriate level of security, taking into account the nature, scope, context and purpose of the processing, and the risks for the rights and freedoms of natural persons.

| Measure                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Measures of pseudonymisation and encryption of Personal Data                                                                                                           | <p>Technical and Organizational Security Measures</p><p>Description of the technical and organisational security measures implemented by Stacksync in accordance with Applicable Data Protection Law:</p><p>Stacksync security measures can be found on Stacksync's website at <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a></p><p>Security measures include:</p><p>Transport layer security</p><ul><li>All data is transmitted to or from Stacksync over an encrypted protocol using industry-standard cryptographic protocols (TLS 1.2+)</li><li>Stacksync redirects unencrypted requests (HTTP) to an encrypted protocol (HTTPS)</li></ul><p>Physical & Environmental Security</p><p>The Stacksync services are hosted in Microsoft Azure, Google Cloud Platform (GCP), and Amazon Web Services (AWS), OVH and Scaleway. Hosting providers maintain physical & environmental security protections including:</p><ul><li>Physical access is restricted to approved employees based on the principle of least privilege</li><li>Multi-factor authentication when approved personnel access facilities</li><li>Closed Circuit Television Camera (CCTV) video recording of access points</li><li>Fire detection and suppression systems</li><li>Redundant infrastructure for power, networking, and cooling</li></ul><p>Logical Access controls</p><p>Logical access to the Stacksync services is restricted to employees based on the principle of least privilege. All access is formally approved and requires multi-factor authentication.</p><p>Access is removed in the event of employee termination or if the employee changes roles and no longer requires access, as well as being reviewed on a quarterly basis.</p> |
| Measures for ensuring ongoing confidentiality, integrity, availability and resilience of processing systems and services                                               | See previous section that outlines our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Measures for ensuring the ability to restore the availability and access to Personal Data in a timely manner in the event of a physical or technical incident          | See previous section that outlines our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Processes for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures in order to ensure the security of the processing | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for user identification and authorisation                                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for the protection of data during transmission                                                                                                                | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for the protection of data during storage                                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring physical security of locations at which Personal Data are processed                                                                              | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring events logging                                                                                                                                   | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring system configuration, including default configuration                                                                                            | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for internal IT and IT security governance and management                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for certification/assurance of processes and products                                                                                                         | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring data minimisation                                                                                                                                | <p>Processing of Customer Data</p><p>Data pipes for each customer are managed separately within the host environment. Stacksync does not store Customer Data, other than while in transit, except as described in <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a>.</p><p>Stacksync does not control the host physical infrastructure. Stacksync relies on the fault-tolerant nature of Microsoft Azure, GCP and AWS across multiple availability zones, and can redeploy the platform to another region in case of catastrophic failure.</p><p>Except as described at <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a>, Stacksync will process Customer Data within the region specified by Customer during configuration of the data pipe. Current geographic regions supported by Stacksync are found here: <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Measures for ensuring data quality                                                                                                                                     | Based on the nature of the Stacksync services, Stacksync is a data pipeline, so the accuracy of the Personal Data depends on whether or not Customer has provided accurate information                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Measures for ensuring limited data retention                                                                                                                           | Except as described at [https://docs.stacksync.com/security/overview](https://docs.stacksync.cloud/security/overview) Stacksync does not store Customer Data, other than while in transit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Measures for ensuring accountability                                                                                                                                   | Stacksync has a Data Protection Officer and a Chief Information Security Officer (the CTO, if CISO is not appointed).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Measures for allowing data portability and ensuring erasure                                                                                                            | Except as described at [https://docs.stacksync.com/security/overview](https://docs.stacksync.cloud/security/overview) Stacksync does not store Customer Data, other than while in transit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

For transfers to (sub-) processors, also describe the specific technical and organisational measures to be taken by the (sub-) processor to be able to provide assistance to the controller (and, for transfers from a processor to a sub-processor, to the data exporter).

| Measure              | Description                                                                                                                                                   |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Contractual language | Stacksync ensures that its subprocessors are subject to equivalent terms                                                                                      |
| Due Diligence        | Stacksync conducts due diligence on third parties, including necessary privacy and security reviews, such as privacy threshold and privacy impact assessments |

## Annex III

## List of Subprocessors

Stacksync’s current list of subprocessors may be found at [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors)

# Global Employee and Applicant Privacy Notice

> Privacy notice for our recruiting activities and HR efforts.

Source: https://docs.stacksync.com/security-and-other-resources/legal/global-employee-and-applicant-privacy-notice

Last updated February 25, 2023.

## Permission to process personal data by Stacksync <a href="#permission-to-process-personal-data-by-stacksync" id="permission-to-process-personal-data-by-stacksync" />

By submitting an application for an open position with Stacksync, whether via our career page, or via external platforms such as Indeed, LinkedIn, or Xing, you express your interest in taking up work with us. In this context, you transmit personal data, which we will use and store exclusively for the purpose of your job search / application process.

This data privacy statement, which refers exclusively to data collected as part of the online application process, is to inform you about how your personal data that is collected as part of the online application process is handled at our end.

## The controller <a href="#the-controller" id="the-controller" />

The controller under data protection law is:

Stacksync SA

1 rte d’Eguechaudens

1030 Bussigny, Vaud, Switzerland

Commercial register entry number: HRB 211731

Registration Court: Lausanne Local Court

Data Protection Officer contact: [dpo@stacksync.com](mailto:dpo@stacksync.com)

## Personal data collected as part of the application process <a href="#personal-data-collected-as-part-of-the-application-process" id="personal-data-collected-as-part-of-the-application-process" />

Personal data means any information concerning the personal or material circumstances of an identified or identifiable individual. This includes information such as, for example, your name, address, telephone number and date of birth, but also data relating to your specific career etc. by reference to which a specific individual can be identified with reasonable effort. However, information which cannot be (in)directly associated with your real-life identity is not personal data.

In particular, the following data is collected during this process:

* Name (first and last names)
* Email address
* phone number
* LinkedIn profile (optional)
* Channel through which you found us
* Any information typically detected by senses (e.g. Audio conversations)

Furthermore, you can choose to send us expressive documents such as a cover letter, your CV and reference letters. These may contain additional personal data such as date of birth, address, etc.

## How does the Company collect data? <a href="#how-does-the-company-collect-data" id="how-does-the-company-collect-data" />

1. The Company mainly collects and records your personal data from you. You will provide this information directly to your managers or local Human Resources contact or enter it into our systems, your participation in HR processes, emails and instant messages you send or through verbal information which is recorded electronically or manually. In addition, further information about you will come from your managers, Human Resources or occasionally your colleagues.
2. We also obtain some information from third parties: for example, references from a previous employer, medical reports from external professionals, information from tax authorities, benefit providers or where we employ a third party to carry out a background check (where permitted by applicable law) or occasionally from customers.
3. In some circumstances, data is collected indirectly from monitoring devices or by other means (for example, building and location access control and monitoring systems, CCTV, telephone logs and recordings, instant message logs and email and Internet access logs), if and to the extent permitted by applicable laws. In these circumstances, the data may be collected by the Company or a third party provider of the relevant service. This type of data is generally not accessed on a routine basis but access is possible.
4. Some data may be obtained from publicly accessible sources.
5. In the event that particular information is required by the contract or statute this will be indicated at the time of collection. We will also let you know where there are consequences of you not providing the information requested. Failure to provide some information will mean that we cannot carry out certain HR processes. For example, if you do not provide us with your bank details, we will not be able to pay you. In some cases it may mean that we are unable to continue with your employment or engagement as the Company will not have the personal data we believe to be necessary for the effective and efficient administration and management of our relationship with you.

## Use of your personal data <a href="#use-of-your-personal-data" id="use-of-your-personal-data" />

During the application process, your personal data will be stored, evaluated, processed or forwarded internally within Stacksync. Only authorized HR staff and/or staff involved in the application process have access to your data. The personal data is stored, as a rule, exclusively for the purpose of filling the vacancy for which you have applied.

The data may be used and processed for statistical purposes (e.g. reporting). Any conclusions drawn will not be related to individual persons.

If you are employed at Stacksync, your personal data are collected and processed for various business purposes, in accordance with applicable laws and any applicable collective bargaining agreements. We have set out in this Notice the purposes we may use your personal data for. Data may occasionally be used for purposes not obvious to you where the circumstances warrant such use (eg in investigations or disciplinary proceedings). We may, where we think it is necessary, provide you with additional information in relevant HR policies to ensure that you understand how your personal data may be used.

## Rights of data subjects <a href="#rights-of-data-subjects" id="rights-of-data-subjects" />

If Stacksync as the controller processes personal data, you as the data subject have certain rights under Chapter III of the EU General Data Protection Regulation (GDPR), depending on the legal basis and the purpose of the processing, in particular the right of access (article 15 of the GDPR) and the rights to rectification (article 16 of the GDPR), erasure (article 17 of the GDPR), restriction of processing (article 18 of the GDPR), and data portability (article 20 of the GDPR), as well as the right to object (article 21 of the GDPR). If the personal data is processed with your consent, you have the right to withdraw this consent under article 7 III of the GDPR. To assert your rights as a data subject in relation to the data processed for the purpose of operating this recruitment website, please refer to Stacksync’s Data Protection Officer (see above).

## Personal data storage <a href="#personal-data-storage" id="personal-data-storage" />

Your data will be stored for a period of 12 months after the application process has been concluded. This is usually done to fulfill legal requirements and/or defending ourselves against any claims arising from legal provisions. After this period, we are obligated to delete or anonymize your data. In case of anonymization, the data will only be available to us in the form of so-called metadata, without any direct personal reference, for statistical analysis (for example, share of male and/or female applicants, number of applications per specified period of time etc.).

Furthermore, we reserve the right to store your data for 36 months after the application process has been concluded for the purpose of adding it to our Talent Pool in order to identify any other vacancies that may be of interest to you. This includes, for example, applications for apprenticeships or internships. By accepting the data privacy statement, you consent to any further storage of your data as well as its inclusion in our Talent Pool.

Should you be offered and accept a position with us during the application process, we will store the personal data collected as part of the application process for at least the duration of your employment.

You will not be notified directly when your data has been deleted.

## Concluding provisions <a href="#concluding-provisions" id="concluding-provisions" />

Stacksync reserves the right to adjust this data privacy statement at any point in time to ensure that it is in line with the current legal requirements at all times, or in order to accommodate changes in the services offered, for example when new services are introduced. In this case, the new data privacy statement applies to any later visit of this recruitment website or any later job application.

If you have any questions, feel free to contact us at [privacy@stacksync.com](mailto:privacy@stacksync.com).

# Privacy Notice

Source: https://docs.stacksync.com/security-and-other-resources/legal/privacy-notice

Last updated: January 10, 2023.

Stacksync Inc. ("Stacksync") respects your right to privacy. This Privacy Notice explains who we are, how we collect, store, share and use personal data about you, and how you can exercise your privacy rights. This Privacy Notice applies to personal data that we collect, including through our website at [www.stacksync.com](http://www.stacksync.cloud/), within our product(s) and on other websites that Stacksync operates and that link to this policy ("collectively Websites”).

If you have any questions or concerns about our use of your personal data, then please contact us using the contact details provided at the bottom of this Privacy Notice. This privacy notice is inspired by the documentation of industry peers and best practices such as Fivetran Inc.

## What personal data does Stacksync collect and why?

Broad Categories of personal data collected:

| Broad Categories Collected                | Examples                                                                                                                                                      |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Identifiers                               | Name, contact information, and other personal data that can directly or indirectly identify an consumer                                                       |
| Select Information in Customer Records    | Name, contact information, company information.                                                                                                               |
| Commercial Purchasing Information         | Records of products and services purchased                                                                                                                    |
| Internet or Network Activity              | <p>Browsing history,</p><p>search history,</p><p>information regarding a consumer’s interaction with an Internet Web site, application, or advertisement.</p> |
| Information Typically Detected by Senses  | Audio information (call recordings)                                                                                                                           |
| Employment Information                    | Role, title, and other relevant employer information                                                                                                          |
| Inferences Drawn from other Personal Data | Buying intent, and other relevant information to market or provide the services                                                                               |

The personal data that we may collect about you broadly falls into the following categories of sources:

* Information that you provide voluntarily Certain parts of our Website may ask you to provide personal data voluntarily: for example, we may ask you to provide your contact details in order to register an account with us, for technical support, to subscribe to marketing communications from us, to register for an event, to access content, and/or to submit inquiries to us. The personal data that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal data. If you decide not to provide some information voluntarily, you may still use our Websites though your access to some functionality and areas of our Websites may be restricted.
* Information that we collect automatically When you visit our Website, we may collect certain information automatically from your device. In some countries, including countries in the European Economic Area, this information may be considered personal data under applicable data protection laws. Specifically, the information we collect automatically may include information like your IP address, device type, unique device identification numbers, browser-type, broad geographic location (e.g. country or city-level location) and other technical information. We may also collect information about how your device has interacted with our Website, including the pages accessed and links clicked. Collecting this information enables us to better understand the visitors who come to our Website, where they come from, and what content on our Website is of interest to them. We use this information for our internal analytics purposes and to improve the quality and relevance of our Website to our visitors. Some of this information may be collected using cookies and similar tracking technology, as explained further under the heading “Cookies and similar tracking technology” below.
* Information that we obtain from third party sources From time to time, we may receive personal data about you from third-party sources (including, but not limited to, lead generation providers, partners, content syndication providers, third-party enrichment tools, and meeting maker vendors), but only where we have checked that these third parties either have your consent or are otherwise legally permitted or required to disclose your personal data to us. The types of information we collect from third parties include name, contact information, title and or role within your organization, internet activity, company data, and we use the information we receive from these third parties to market our services to you.

Sensitive Personal Data

We may collect sensitive personal data, or special category personal data, from customers as a part of providing our services. We do not use sensitive personal data for any other commercial purpose, we do not sell sensitive personal data, and do not share sensitive personal data for online advertising.

Who does Stacksync share my personal data with?

We may disclose your personal data to the following categories of recipients:

* to our group companies and third-party services providers who provide data processing services to us (for example, to support the delivery of, provide functionality on, or help to enhance the security of our Website), or who otherwise process personal data for purposes that are described in this Privacy Notice or notified to you when we collect your personal data. A list of our current subprocessors is available here [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors);
* to our partners, who we may share with in connection with, selling or distributing our products and services, or engaging in joint marketing activities, in accordance with your expressed marketing preferences.
* to any competent law enforcement body, regulatory, government agency, court or other third party where we believe disclosure is necessary (i) as a matter of applicable law or regulation, (ii) to exercise, establish or defend our legal rights, or (iii) to protect your vital interests or those of any other person;
* to an actual or potential buyer (and its agents and advisers) in connection with any actual or proposed purchase, merger or acquisition of any part of our business, provided that we inform the buyer it must use your personal data only for the purposes disclosed in this Privacy Notice;
* to any other person with your consent to the disclosure.

Third parties we share with for a business purpose (in the last 12 months):

| Broad Categories Collected                | Types of third parties we share with             |
| ----------------------------------------- | ------------------------------------------------ |
| Identifiers                               | Group companies, service providers, and partners |
| Select Information in Customer Records    | Group companies, service providers, and partners |
| Commercial Purchasing Information         | Group companies, service providers, and partners |
| Internet or Network Activity              | Group companies, service providers, and partners |
| Information Typically Detected by Senses  | Group companies, service providers, and partners |
| Employment Information                    | Group companies, service providers, and partners |
| Inferences Drawn from other Personal Data | Group companies, service providers, and partners |

Third parties we share with for a commercial purpose (including sale/online advertising in the past 12 months):

| Broad Categories Collected                | Types of third parties we share with                              |
| ----------------------------------------- | ----------------------------------------------------------------- |
| Identifiers                               | Group companies, partners, and any other person with your consent |
| Select Information in Customer Records    | Group companies, partners, and any other person with your consent |
| Commercial Purchasing Information         | Group companies, partners, and any other person with your consent |
| Internet or Network Activity              | Group companies, partners, and any other person with your consent |
| Information Typically Detected by Senses  | Group companies, partners, and any other person with your consent |
| Employment Information                    | Group companies, partners, and any other person with your consent |
| Inferences Drawn from other Personal Data | Group companies, partners, and any other person with your consent |

## Legal basis for processing personal data

Our legal basis for collecting and using the personal data described above will depend on the personal data concerned and the specific context in which we collect it.

However, we will normally collect personal data from you only (i) where we need the personal data to perform a contract with you, (ii) where the processing is in our legitimate interests and not overridden by your rights, or (iii) where we have your consent to do so. In some cases, we may also have a legal obligation to collect personal data from you or may otherwise need the personal data to protect your vital interests or those of another person.

If we ask you to provide personal data to comply with a legal requirement or to perform a contract with you, we will make this clear at the relevant time and advise you whether the provision of your personal data is mandatory or not (as well as of the possible consequences if you do not provide your personal data).

If we collect and use your personal data in reliance on our legitimate interests (or those of any third party), this will normally be to operate our platform and to communicate with you as necessary – for example, when responding to your queries, analyzing use of and improving our platform, undertaking marketing activities for existing customers as legally permitted, and detecting or preventing illegal activities. We may have other legitimate interests and we will make clear to you at the relevant time what those legitimate interests are. We rely on these legal bases to process data for the following purposes: to help provide the services (e.g. customer support and usage data) and to market our services to you (e.g. online advertising and gauging buyer intent).

If you have questions about or need further information concerning the legal basis on which we collect and use your personal data, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.

## Cookies and similar tracking technology

What are cookies?

Cookies are small data files that are placed on your computer or mobile device when you visit a website. Website owners can use cookies for a variety of reasons that can include enabling their websites to work (or work more efficiently), providing personalized content and advertising, and creating website analytics.

Cookies set by the website owner (in this case, Stacksync) are called "first-party cookies". Only the website owner can access the first-party cookies it sets. Cookies set by parties other than the website owner are called "third-party cookies.” Third-party cookies enable third party features or functionality to be provided on or through the website (e.g. like advertising, interactive content and social sharing). The parties that set these third-party cookies can recognize your device both when it visits the website in question and also when it visits other websites that have partnered with them.

Stacksync may use web beacons, tags, flash cookies, HTML5, and scripts (“Data Tools”) in the Websites or in emails to help deliver cookies, count visits, understand usage and campaign effectiveness and determine whether an email has been opened and acted upon. Stacksync may receive reports based on the use of these technologies by our service/analytics providers on an individual and aggregated basis.

If you want to learn more about cookies, or how to control, disable or delete them, please visit [https://allaboutcookies.org](https://allaboutcookies.org) for detailed guidance. For further information on how to manage Flash cookies, please click [here](http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html).

Why do we use cookies?

We use first-party and third-party cookies for several reasons. Some cookies are required for technical reasons that are strictly necessary for our Websites to operate, and we refer to these as "essential" cookies. Other cookies also enable us to provide website functionality, or to enhance visitors' experience on our Websites by providing them with personalized content and advertising. This is described in more detail below.

Cookies collect certain standard information that your browser sends to the Websites such as your browser type and language, access times, and the address of the website from which you arrived at a Website. They may also collect information about your Internet Protocol (IP) address, clickstream behavior (i.e. the pages you view, the links you click, and other actions you take when you use the Websites) and product information. These are called first-party cookies and they are essential to the Websites’ operation.

Stacksync may also contract with third-party advertising networks that collect non-personally identifiable information and personal data through the Websites and emails and on third-party web sites. Ad networks follow your online activities over time by collecting usage data through Data Tools. They use this information to provide advertisements about products and services tailored to your interests. You may see these advertisements on other websites. This process also helps us manage and track the effectiveness of Stacksync’s marketing efforts.

The Websites may include third-party social media features, such as the Facebook Like button, and third-party widgets, such as the ‘Share This’ button or interactive mini-programs that run on the Websites. These features may collect your IP address, which page you are visiting on the Websites, and set a cookie to enable the feature to function properly. Your interaction with these features is governed by the privacy policy of the third-party company providing it.

We use third-party advertising companies to display ads on the Websites tailored to your individual interests based on your internet activity, as well as to provide advertising-related services such as ad delivery, reporting, attribution, analytics, and market research. You can manage your preferences with regards to the receipt of tailored advertisements in the cookie settings described below. Please note if these cookies are switched off, you will continue to see advertisements, but they will no longer be tailored to your interests.

The specific types of first- and third-party cookies served through our Websites and the purposes they perform are described in our cookie settings page.

What about other tracking technologies, like web beacons?

Cookies are not the only way to recognize or track visitors to a website. We may use other, similar technologies from time to time, like web beacons (sometimes called "tracking pixels" or "clear gifs"). These are tiny graphics files that contain a unique identifier that enable us to recognize when someone has visited our Website or opened an email that we have sent them. This allows us, for example, to monitor the traffic patterns of users from one page within our Websites to another, to deliver or communicate with cookies, to understand whether you have come to our Websites from an online advertisement displayed on a third-party website, to improve site performance, and to measure the success of email marketing campaigns. In many instances, these technologies are reliant on cookies to function properly, and so declining cookies will often impair their functioning.

How can you control cookies?

You have the right to decide whether to accept or reject cookies. You can exercise your cookie preferences in our cookie settings page.

You can also set or amend your web browser controls to accept or refuse cookies. If you choose to reject cookies, you may still use our Websites though your access to some functionality and areas of our Websites may be restricted. As the means by which you can refuse cookies through your web browser controls vary from browser to browser, you should visit your browser's help menu for more information.

In addition, most advertising networks offer you a way to opt out of targeted advertising. If you would like to find out more information, please visit [https://www.aboutads.info/choices/](https://www.aboutads.info/choices/) or [https://www.youronlinechoices.eu/](https://www.youronlinechoices.eu/) if located in the European Union.

## How does Stacksync keep my personal data secure?

We use appropriate technical and organizational measures to protect the personal data that we collect and process about you. The measures we use are designed to provide a level of security appropriate to the risk of processing your personal data. Stacksync is hosted on leading cloud service providers (linked on our security page at [https://stacksync.com/docs/security#physicalandenvironmentalsafeguards](https://stacksync.com/docs/security#physicalandenvironmentalsafeguards)) and uses industry-standard security protocols to protect personal data. Personal data is stored on private servers. All connections between the end user and our servers are encrypted with SSL, and server software is kept continuously up to date with the latest security patches.

## Google User Data

When you connect your Google account (Gmail, Google Sheets, Google Docs, Google Drive) to Stacksync, Stacksync accesses, processes, and stores Google user data only as needed to deliver the specific workflow automations you configure.

What Google user data Stacksync accesses

* **Gmail** (`gmail.modify` scope): message metadata, message content, labels, threads, and the ability to send mail on your behalf. Accessed only when a workflow you have built explicitly reads, modifies, sends, or watches Gmail messages.
* **Google Sheets** (`spreadsheets`, `spreadsheets.readonly`): cell and row content of spreadsheets you have selected in your workflows.
* **Google Docs** (`docs`): document content of documents you have selected in your workflows.
* **Google Drive** (`drive`, `drive.metadata.readonly`): file metadata (so you can pick files in our UI) and file content for files your workflows create or operate on.

## How Stacksync uses Google user data

Stacksync uses Google user data exclusively to provide the workflow automation features you configure. We do not use it for advertising, ad personalization, or training generalized AI/ML models. We do not allow human access to your Google user data except (a) with your explicit consent, (b) for security investigations (e.g. responding to an incident report), (c) to comply with applicable law, or (d) where the data is aggregated and used for internal operations consistent with the Google API Services User Data Policy.

## How Stacksync stores and protects Google user data

OAuth tokens issued by Google are stored encrypted at rest using AES-128 in CTR mode. All data in transit is encrypted using TLS 1.2+. Google user data is processed only on infrastructure controlled by Stacksync (see [https://docs.stacksync.com/security-and-other-resources/security/subprocessors](/security-and-other-resources/security/subprocessors) for our subprocessors). We do not sell Google user data and we do not share it with third parties except as needed to operate the workflows you configure (e.g., delivering Gmail-sourced data to the downstream service you wired into the workflow).

## How you control and revoke Google user data access

You can disconnect any connected Google account at any time from your Stacksync workspace dashboard. Upon disconnection, Stacksync deletes the OAuth tokens from our systems, which prevents Stacksync from making any further requests on your behalf. To additionally invalidate the issued tokens at Google's side, you can revoke Stacksync's access from your Google Account Security page at [https://myaccount.google.com/permissions](https://myaccount.google.com/permissions).

## Compliance

Stacksync's use and transfer to any other app of information received from Google APIs will adhere to the [Google API Services User Data Policy](https://developers.google.com/terms/api-services-user-data-policy), including the Limited Use requirements.

## International data transfers

Your personal data may be transferred to, and processed in, countries other than the country in which you are resident. These countries may have data protection laws that are different to the laws of your country.

To view our data residency locations, view our data residency policy here at [https://stacksync.com/docs/security#stacksyncdataresidency](https://stacksync.com/docs/security#stacksyncdataresidency). Our group companies, third party service providers, and partners operate around the world.

However, we have taken appropriate safeguards to require that your personal data will remain protected in accordance with this Privacy Notice. These include implementing the European Commission’s Standard Contractual Clauses, the UK Addendum for Standard Contractual Clauses, and other applicable standard contractual clauses for transfers of personal data between our group companies, which require all group companies to protect personal data they process in accordance with applicable data protection law.

Our Data Protection Addendum is available online at [https://www.stacksync.com/legal#dpa](https://www.stacksync.com/legal#dpa), and our Standard Contractual Clauses can be provided on request by contacting us at [privacy@stacksync.com](mailto:privacy@stacksync.com). We have implemented similar appropriate safeguards with our third-party service providers and partners and further details can be provided upon request.

## Data retention

We retain personal data we collect from you where we have an ongoing legitimate business need to do so (for example, to provide you with a service you have requested or to comply with applicable legal, tax or accounting requirements).

When we have no ongoing legitimate business need to process your personal data, we will either delete or anonymize it or, if this is not possible (for example, because your personal data has been stored in backup archives), then we will securely store your personal data and isolate it from any further processing until deletion is possible. For more detailed information on our retention practices, see [https://stacksync.com/docs/security#retentionofcustomerdata](https://stacksync.com/docs/security#retentionofcustomerdata).

## Your data protection rights

You have the following data protection rights:

* If you wish to access, correct, update or request deletion of your personal data, you can do so at any time by contacting us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* In addition, you can object to processing of your personal data, ask us to restrict processing of your personal data or request portability of your personal data. Again, you can exercise these rights by contacting us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* You have the right to opt-out of marketing communications we send you at any time. You can exercise this right by clicking on the “unsubscribe” or “opt-out” link in the marketing emails we send you. To opt-out of other forms of marketing (such as postal marketing or telemarketing), then please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* Similarly, if we have collected and processed your personal data with your consent, then you can withdraw your consent at any time. Withdrawing your consent will not affect the lawfulness of any processing we conducted prior to your withdrawal, nor will it affect processing of your personal data conducted in reliance on lawful processing grounds other than consent.
* You have the right to opt out of the sale of your personal data, including sharing personal data for online advertising. For more information, visit our cookie settings page.
* We do not use or disclose your sensitive personal data, except for the purposes of providing the services to our customers.
* You have the right to non-discrimination, meaning we may not discriminate against a data subject for exercising a privacy right.
* You have the right to have your authorized agent make a data privacy request on your behalf. For more information, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* You have the right to complain to a data protection authority about our collection and use of your personal data. For more information, please contact your local data protection authority.
* If you are not satisfied with our response regarding your data privacy request, you have the right to appeal our decision. For more information, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice. If you are not satisfied with the result of the appeal, you have the right to contact your respective attorney general depending on where you reside.

We respond to all requests we receive from individuals wishing to exercise their data protection rights in accordance with applicable data protection laws.

## Data Privacy Framework Participation

1\. Data Privacy Framework Participation StackSync Inc. complies with the EU-U.S. Data Privacy Framework (EU-U.S. DPF), the UK Extension to the EU-U.S. DPF, and the Swiss-U.S. Data Privacy Framework (Swiss-U.S. DPF) as set forth by the U.S. Department of Commerce regarding the collection, use, and retention of personal data transferred from the European Union, the United Kingdom (and Gibraltar), and Switzerland to the United States. StackSync has certified to the U.S. Department of Commerce that it adheres to the Data Privacy Framework Principles. If there is any conflict between the terms in this Privacy Notice and the DPF Principles, the DPF Principles shall govern. To learn more about the Data Privacy Framework program, and to view StackSync’s certification, please visit: [https://www.dataprivacyframework.gov](https://www.dataprivacyframework.gov/)

2\. Accountability for Onward Transfers StackSync is responsible for the processing of personal data it receives under the DPF and subsequently transfers to a third party acting as an agent on its behalf. We comply with the DPF Principles for all onward transfers of personal data from the EU, UK, and Switzerland, including the onward transfer liability provisions.

3\. What Personal Data We Collect We may collect the following types of personal data:

* Identifiers: Name, email address, IP address, phone number
* Employment Info: Job title, company name, role
* Internet/Network Activity: IP addresses, cookies, browser type, usage data
* Commercial Info: Purchase history, product interactions
* Inferences: Preferences, behavioral insights
* Audio Data: Recordings from support calls (when applicable)

4\. Why We Collect and Use Personal Data We use personal data to:

* Provide our services and customer support
* Respond to inquiries and fulfill contracts
* Improve our products and user experience
* Send marketing communications (where legally permitted)
* Detect and prevent fraud and abuse
* Comply with legal obligations and regulatory requirements

5\. Information Disclosure to Third Parties We may disclose personal data to:

* Service providers (e.g., cloud infrastructure, analytics, marketing)
* Business partners (for joint offerings or referrals)
* Third-party platforms integrated at your request
* Government authorities in response to lawful requests
* Acquirers in case of a merger, acquisition, or sale of assets

Each recipient is contractually bound to handle data securely and only for the intended purposes.

6\. Your Rights You have the following rights under the DPF Principles and applicable laws:

* Right to access your personal data
* Right to correct or update inaccurate data
* Right to delete your data where applicable
* Right to restrict or object to processing
* Right to withdraw consent for data use (e.g., marketing)
* Right to opt out of sale or disclosure for cross-context advertising

To exercise these rights, contact us at: [privacy@stacksync.com](mailto:privacy@stacksync.com)

7\. Limiting Use and Disclosure StackSync provides the following mechanisms to limit use/disclosure of personal data:

* Cookie settings and ad tracking preferences
* Unsubscribe links in marketing communications
* Direct opt-out requests via email
* Platform-based controls for integrations or data sharing

8\. Lawful Requests by Public Authorities We may disclose your personal data in response to lawful requests by public authorities, including to meet national security or law enforcement requirements.

9\. Independent Recourse Mechanism In compliance with the DPF Principles, StackSync commits to resolving complaints about our collection or use of your personal data. If you have a concern, please first contact us at: [privacy@stacksync.com](mailto:privacy@stacksync.com)

StackSync has selected JAMS (Judicial Arbitration and Mediation Services, Inc.) as our independent recourse mechanism for DPF-related complaints. If you do not receive a timely acknowledgment or are unsatisfied with our response, you may contact JAMS at no cost via: [https://www.jamsadr.com/contact](https://www.jamsadr.com/contact)

10\. Binding Arbitration Under certain conditions, you may invoke binding arbitration to resolve unresolved complaints not addressed through the recourse mechanism above. Details can be found in Annex I of the DPF Principles: [https://www.dataprivacyframework.gov](https://www.dataprivacyframework.gov/)

11\. U.S. Regulatory Oversight StackSync is subject to the investigatory and enforcement powers of the U.S. Federal Trade Commission (FTC) in relation to its compliance with the DPF Principles.

12\. Security and Retention We implement appropriate technical and organizational security measures. Personal data is retained only for as long as needed for the purposes outlined or as required by law.

13\. Updates to This Notice This Privacy Notice may be updated periodically. Changes will be posted on this page, and material changes will be communicated when required by law.

14\. Contact Information For questions, concerns, or requests, please contact: [privacy@stacksync.com](mailto:privacy@stacksync.com)

StackSync Inc. Attn: Data Protection Officer Address: 2611, 1007 N Orange St. 4th Floor, Wilmington, DE, New Castle, USA, 19801 DPO Contact: [dpo@stacksync.com](mailto:dpo@stacksync.com)

## Updates to this Privacy Notice

We may update this Privacy Notice from time to time in response to changing legal, technical or business developments. When we update our Privacy Notice, we will take appropriate measures to inform you, consistent with the significance of the changes we make. We will obtain your consent to any material Privacy Notice changes if and where this is required by applicable data protection laws.

You can see when this Privacy Notice was last updated by checking the “last updated” date displayed at the top of this Privacy Notice.

## How to contact us

If you have any questions or concerns about our use of your personal data, please contact us at [privacy@stacksync.com](mailto:privacy@stacksync.com), or at the following address:

Stacksync Inc., Attn: Data Protection Officer,

Address: 2611, 1007 N Orange St. 4th Floor, Wilmington, DE, New Castle, US, 19801

We have a Data Protection Officer ("DPO") responsible for compliance with data protection law. Their contact details are [dpo@stacksync.com](mailto:dpo@stacksync.com).

The data controller of your personal data is Stacksync Inc. when we collect information from you for marketing purposes. Our customers are the data controller for personal data they provide to us when they use our services.

For any legal claims, the jurisdiction of state of Delaware, USA is the prevailing court.

# Referral Program Policy

> Refer and earn 15% revenue commission for 1 year on successful referrals with Stacksync!

Source: https://docs.stacksync.com/security-and-other-resources/legal/referral-program-policy

Last updated: December 3rd, 2024

This referral program policy ("Policy") outlines the terms and conditions of the referral program offered by Stacksync Inc. ("Stacksync"). By participating in the referral program, you ("Referrer") agree to the terms and conditions set forth in this Policy.

## Eligibility

The referral program is open to all users of Stacksync who are 18 years of age or older or Incorporated companies. To participate, the Referrer must have an active account with Stacksync.

## Referral Process

To refer a new user to Stacksync, the Referrer must share their unique referral link with the potential new user. The referral link can be found in the Referrer's Stacksync account dashboard. The new user must sign up for a paid plan within 3 months of the registration date using the referral link provided by the Referrer.

Here are the Do's for sharing your affiliate link:

* Share your affiliate link with your friends and family and partners.
* Share your affiliate link on social media.
* Share your affiliate link on community channels.
* Share your affiliate link with your mailing list or anyone who might be interested in using Stacksync for their business needs.

The don'ts for the referral program:

* Refer yourself (use your own affiliate link to sign up to Stacksync)
* Act on Stacksync's behalf

## Referral Bonus

For every successful referral, the Referrer will receive a referral bonus equal to 15% of the revenue generated by the new user for Stacksync for a duration of 12 months starting from the subscription of a paid plan. The revenue generated is calculated based on the amount paid by the new user for their Stacksync subscription plan. Unpaid bills do not count towards the referral bonus.

## Payouts

Referral bonuses can be claimed 30 days after the new user has paid their bills. Payouts will be made to the Referrer's Stacksync account. The Referrer can use the payout towards their own Stacksync subscription plan or request a transfer to their bank account. Currency exchanges are applied, possibly with a fee. All banking fees resulting from the payment to the Referrer's bank account are to be borne by the Referrer.

## Misconduct

Any misconduct that is against reasonable behaviour according to the referral program policy can result in exclusion from the referral program and a cancellation of any payout still to be processed at any point. Stacksync reserves the right to exclude anyone from the referral program at any time without further reason to be provided.

## Conclusion

By participating in the referral program, the Referrer agrees to the terms and conditions set forth in this Policy. Stacksync reserves the right to modify this Policy at any time without prior notice. If you have any questions about the referral program or this Policy, please contact Stacksync support.

# AI Credits and other consumption based pricing table

> Price list for all AI models, enrichment services and other first-party or third-party paid consumption services offered via the Stacksync platform.

Source: https://docs.stacksync.com/security-and-other-resources/legal/service-consumption-tables/ai-credits-and-other-consumption-based-pricing-table

All prices are in US Dollars (USD). All consumption is translated in translated to Stacksync AI credits (AIC) directly.

<Callout type="info">
  **Stacksync AI Credits (AIC):** a dedicated credit used for any AI-related consumption — model inference, data enrichment, and the pass-through (translation) of external/third-party service charges (for example AI provider or paid API costs). **1 USD = 100 AIC**, i.e. each AIC costs **$0.01**.

  Read more in [Service Consumption Tables documentation](/security-and-other-resources/legal/service-consumption-tables).
</Callout>

## AI Models

Unless otherwise stated, model prices are calculated per 1 million tokens.

| Provider        | Model                                        |  Input |  Output |
| --------------- | -------------------------------------------- | -----: | ------: |
| OpenAI          | GPT-6 Sol                                    | $10.00 |  $50.00 |
| OpenAI          | GPT-5.6 Terra                                | $10.00 |  $60.00 |
| OpenAI          | GPT-6 Luna                                   |  $0.50 |   $2.50 |
| OpenAI          | GPT-6 Astra                                  | $50.00 | $250.00 |
| Google          | Gemini 3.5 Flash                             |  $7.50 |  $45.00 |
| Google          | Gemini 3.1 Pro Preview, prompts ≤200K tokens | $10.00 |  $60.00 |
| Google          | Gemini 3.1 Pro Preview, prompts >200K tokens | $20.00 |  $90.00 |
| Google          | Gemini 3.5 Flash-Lite                        |  $1.50 |  $12.50 |
| Anthropic       | Claude Fable 5.1                             | $50.00 | $250.00 |
| Anthropic       | Claude Opus 5.5                              | $20.00 | $100.00 |
| Anthropic       | Claude Sonnet 5                              | $10.00 |  $50.00 |
| Anthropic       | Claude Haiku 4.5                             |  $5.00 |  $25.00 |
| Managed Hosting | DeepSeek V4 Pro                              |  $6.60 |  $19.80 |
| Managed Hosting | Qwen 3.6 Plus                                |  $2.50 |  $15.00 |
| Managed Hosting | GPT-OSS 120B                                 |  $0.75 |   $3.00 |
| Managed Hosting | Llama 3.3 70B                                |  $5.20 |   $5.20 |
| Managed Hosting | Gemma 4 31B                                  |  $1.95 |   $4.85 |
| TypeSafe AI     | Jev                                          |  $0.22 |   $0.05 |

## Non-AI consumption-based services

The following services consume AI Credits (AIC):

1. LinkedIn Enrichment
2. Web search
3. OCR capabilities
4. Browser sessions

# Service Consumption Tables

Source: https://docs.stacksync.com/security-and-other-resources/legal/service-consumption-tables

V.1.0.3

Effective August 11, 2026

## Overview <a href="#overview" id="overview" />

These Service Consumption Terms are effective as of November 4, 2024 (the "Effective Date") and apply to all customers on Stacksync’s consumption-based pricing model.

Stacksync provides an Integration Cloud to its customers (each a “Customer,” “you,” or “your”) that connects applications, databases, APIs, and trading partners through automated cloud data pipelines (“Connectors,” “Apps”); supports unidirectional and bidirectional data synchronization; automates processes through workflows; deploys AI agents; exchanges and processes EDI documents; and provides managed queues, API proxy services, MCP endpoints, and developer tooling (collectively, the “Stacksync Service”). The Stacksync Service is available through multiple plans (“Plans”) hosted across various geographical regions (“Regions”) by third-party cloud providers (“Cloud Providers”), as described in your agreement with Stacksync (“Agreement”). Event-based actions (“Triggers”) may be initiated based on data activity within Connectors or other events processed by the Stacksync Service.

*All prices are in US dollars (USD).*

## Definitions <a href="#definitions" id="definitions" />

* **Workspace:** The customer’s collaborative space attached to a subscription. Each workspace has exactly one active subscription. A Workspace contains Connectors and Destinations grouped into Syncs.
* Stacksync products:
  * **Sync:** Two or more apps connected together with data in sync. A Sync may be active, paused or deleted. Syncs are organized within workspaces.
  * **Workflow:** An automated sequence of predefined actions executed in response to a trigger.
  * **AI Agent (Genie):** An AI-powered agent that dynamically reasons and takes actions to accomplish a defined goal.
  * **Queue:** A managed service for asynchronously storing and processing messages or events.
  * **API Proxy Service:** A managed endpoint that securely forwards API requests to an underlying service.
  * **Connection:** An authenticated link between Stacksync and an external application, database, API, or service.
  * **Variable:** A reusable non-sensitive configuration value used by Stacksync resources.
  * **Secret:** A securely stored sensitive value, such as an API key, password, or token.
  * **EDI Platform:** The Stacksync service for exchanging, transforming, and processing EDI documents with trading partners.
  * **Stacksync Developer Studio:** The Stacksync environment for building, testing, and managing custom integrations and platform resources.
  * **MCP:** Model Context Protocol, a standard interface enabling AI agents to discover and interact with external tools and data sources.
  * **Data Explorer:** An interface for inspecting and querying data accessible through Stacksync.
  * **Log Explorer:** An interface for searching, filtering, and inspecting logs generated by Stacksync resources and executions.
* **EDI Trading Partner:** An external organization configured to exchange EDI documents with a Customer through Stacksync.
* **Account:** The Customer’s account on Stacksync. An Account may own or have access to multiple workspaces. An Account contains personal data about the customer.
* **Arrears:** For Capacity Purchases (defined below) only, this means any additional usage after the initial purchase has been used, but before the end of the original term. The Arrears period ensures you are able to continue using the Stacksync Services, even if the original Contracted Spend has already been consumed. You will be alerted by Stacksync when you are in Arrears.
* **Subscription:** A paid plan attached to a workspace.
* **Billing Period:** A calendar month running from the first to the last day of the month.
* **Capacity Purchase:** A subscription-based plan which requires an annual upfront purchase of Contracted Spend in bulk.
* **Contracted Spend:** The total dollar amount purchased as listed in the Order Form. Contracted Spend is shown on an annual basis.
* **Destination:** A destination is a data warehouse, database, data lake, or data lake house where the data is delivered.
* **Stacksync Credits (SC):** The standard credit used to meter and bill platform usage across products. Each product's billing unit (such as Records in sync or Executions) converts into SC.
* **Stacksync AI Credits (AIC):** A dedicated credit used to bill any AI-related consumption, enrichment, or the pass-through of external/third-party service charges. AIC are priced at 1 USD = 100 AIC ($0.01 per AIC).
* **Incremental Spend:** The price charged for the next thousand **SC** (or portion of the next thousand **SC**) consumed after surpassing the **SC Threshold** for the month in question.
* **Initial Sync:** The first time that a connector completes a historical sync.
* **Monthly Purchase:** A plan which is not subscription-based, whereby a Customer is billed monthly in-arrears for their usage during the prior Billing Period. Monthly plans are available to purchase at the (i) stacksync.com user interface or through the (ii) AWS, (iii) GCP, or (iv) Azure marketplaces.
* **Records in sync:** The number of distinct Primary Keys synced via Stacksync, calculated on a per-Sync basis. We only count a row once per Billing Period, even if it syncs multiple times.
* **SC Threshold:** The minimum **SC** usage requirement to receive the consumption rates on the Service Consumption Table below.
* **Execution:** The billing unit for Stacksync's execution-based products (Workflows, API Proxy Services, Queues, AI Agent runs, and similar). Each execution is a distinct, billable event that converts into Stacksync Credits, whether it completes successfully or ends in error.
* **Monthly Spend:** The dollar amount consumed each Billing Period from your Contracted Spend based on your actual monthly usage.
* **Total Monthly Spend:** Total Monthly Spend is the sum of Monthly Spend on Connectors and any other applicable uses of the Stacksync platform and Services.
* **Order Form:** The form used to purchase Contracted Spend from Stacksync. For Capacity Purchase customers, this is an order form document. For Monthly customers, this may be an order form document or may be the terms attached to a Monthly Purchase through one of the marketplaces identified above.
* **Plan:** The bundle of features included as a part of your Stacksync Service and outlined here. Plans are subscription-based.
* **Primary Key:** A unique identifier that specifies a distinct row within a table. In bidirectional sync mode, the primary keys of the rows in the synced apps are mapped together. In this context, the Primary Key corresponds to a unique mapping. For instance, a corresponding row in synced apps within the same Sync results in only one Primary Key.

## Consumption and Stacksync Credits <a href="#consumption-and-credits" id="consumption-and-credits" />

Stacksync offers a range of products (Syncs, Workflows, API Proxy Services, Queues, AI Agents, and more). Each product can compute its consumption in a different, relevant way. To provide a single, consistent way to measure and bill usage across every product, all consumption is normalized into two credit currencies:

* **Stacksync Credits (SC):** the standard credit used for platform usage across products. Every product meters usage with its own billing unit — for example **Records in sync** for Syncs, or **Executions** for Workflows, API Proxy Services, Queues, and AI Agent runs — and each of those units converts into **SC**. This lets usage from all products accumulate under one balance.
* **Stacksync AI Credits (AIC):** a dedicated credit used for any AI-related consumption — model inference, data enrichment, and the pass-through (translation) of external/third-party service charges (for example AI provider or paid API costs). **1 USD = 100 AIC**, i.e. each AIC costs **$0.01**.

Both **SC** and **AIC** consumed during a Billing Period are converted to their dollar value and added to your usage costs. Together with your Plan base price, they make up your **Total Monthly Spend** (see [Service consumption and spend calculation](#service-consumption-and-spend-calculation) below). For Capacity Purchase plans, this consumption is drawn from your Contracted Spend.

### Billing units by product

<table data-search="false">
  <thead><tr><th>Product</th><th>Billing unit</th><th>Credit consumed</th></tr></thead>

  <tbody><tr><td>Syncs</td><td>Records in sync</td><td>SC</td></tr><tr><td>Workflows</td><td>Executions</td><td>SC</td></tr><tr><td>API Proxy Services</td><td>Executions (calls)</td><td>SC</td></tr><tr><td>Queues</td><td>Executions (events)</td><td>SC</td></tr><tr><td>AI Agents (Genie)</td><td>Executions (runs)</td><td>SC</td></tr><tr><td>MCP</td><td>Executions (every call)</td><td>SC</td></tr><tr><td>AI consumption, enrichment & external service pass-through (via Genies and other products)</td><td>—</td><td>AIC</td></tr></tbody>
</table>

### Compute consumption by product

What qualifies as one billable count differs per product, so the precise rules are below.

#### Syncs

**Records in sync** is the billing unit for **Syncs**: the number of distinct Primary Keys processed per Workspace per Billing Period. If a Primary Key is synced multiple times, it still counts as one **Record in sync** (and therefore one SC). Up to 50% of the Records in sync for an Initial Sync is excluded for each new Sync. In cases where network troubleshooting is needed, Customer cooperation may be required to allow data flow to Stacksync.

Because a Sync can process the same record in more than one way, the following events each consume SC:

1. **Record changes**: each created, updated, or deleted record within a Billing Period counts as one Record in sync. Even if the same record is updated multiple times within the period, it only counts once.
2. **Triggers:** each successful trigger counts as an additional Record in sync. For instance, if a record is updated five times during the billing period, and two of those updates activate triggers, one Record in sync is counted for the five record updates and two Records in sync are counted for the triggered actions — a total of three Records in sync (3 SC) for that scenario.
3. **Full crawling requirements:** some systems, like Hubspot, require full crawling to detect changes. All synced records are counted at least once as Records in sync within a billing period if they exist. Even if full data crawling occurs multiple times during the period, each record only counts once; and if those same records are also updated during the period, they are not counted again, since they were already counted once within that period.

Plans include a defined allowance of “Active Syncs.” An Active Sync is any unique Sync that is enabled at least once during a Billing Period. A Sync that remains configured but is not turned on at any time during the Billing Period does not count as an Active Sync during that billing period.

Price of an additional resource above plan allowance: $500/active sync/month

#### Workflows

Every workflow execution counts as one Execution (1 SC), whether it completes successfully or ends in error.

Price of an additional resource above plan allowance: $10/workflow/month

#### Queues

Each processed queue event counts as one Execution (1 SC), whether it completes successfully or ends in error.

Price of an additional resource above plan allowance: $10/queue/month

#### AI Agents (Stacksync Genies)

Each AI Agent (Genie) run counts as one Execution (1 SC), whether it completes successfully or ends in error. Note that a Genie run consumes SC for the run itself, while any AI reasoning or model inference performed during the run is metered separately in **AIC** (see below).

Price of an additional resource above plan allowance: $10/genie/month

#### MCP

Every MCP call counts as one Execution (1 SC).

Stacksync Rich MCP Gateway can include AI reasoning within MCP calls to increase the response accuracy and speed of the downstream AI reasoning. Rich MCP Gateway calls can consume AIC credits metered separately.

Price of an additional resource above plan allowance: $5/MCP gateway/month

#### Variables and Secrets

Free of charge across the entire product.

Price of an additional resource above plan allowance: $0/variable or secret (Free)

#### Managed Hyperscalable Postgres Databases

Customers on any plan can provision Managed Postgres Databases. Databases can be upgraded or downgraded at anytime.

Hyperscale Managed PostgreSQL comes with dedicated CPU, memory, and local block storage. CPU, memory and block storage are collocated for maximal performance.

Starter Managed PostgreSQL comes with shared CPUs. Each VM can utilize host cpu capacity up to 50% of the allocated vCPU and additionally burst up to 100% of the allocated vCPU at micro-intervals. Memory and local block storage are dedicated to the database.

| PostgreSQL    | vCPU | Memory | Storage | Monthly Price |
| ------------- | ---- | ------ | ------- | ------------- |
| starter-1     | 1    | 2GB    | 16GB    | $50           |
| starter-2     | 2    | 4GB    | 32GB    | $100          |
| hyperscale-2  | 2    | 8GB    | 64GB    | $200          |
| hyperscale-4  | 4    | 16GB   | 128GB   | $350          |
| hyperscale-8  | 8    | 32GB   | 256GB   | $500          |
| hyperscale-16 | 16   | 64GB   | 512GB   | $1000         |
| hyperscale-30 | 30   | 120GB  | 1,024GB | $2000         |
| hyperscale-60 | 60   | 240GB  | 2,048GB | $3600         |

#### API Proxy Services

* **Standard calls**: each call is an Execution, included up to the plan’s quota, with excess usage billed at the SC rate.
* **AI Insights calls**: AI-driven calls (marked with “ai” in the URL) are included up to the plan’s quota and, once the quota is exceeded, their AI consumption is metered in **AIC** rather than SC.

Price of an additional resource above plan allowance: $0/genie/month (Free)

#### AI consumption

**Stacksync AI Credits (AIC)** cover any AI-related consumption on the platform, regardless of which product triggers it: model inference and reasoning, data enrichment, and the pass-through of external/third-party service charges (for example, translating an AI provider's or paid API's usage into your Stacksync bill).

AIC are priced at a flat **1 USD = 100 AIC** (**$0.01 per AIC**) and are billed in addition to your SC-based usage.

## Plans and capacity purchase plans

Each Plan includes defined usage allowances for Stacksync products and services. Usage exceeding these allowances is billed on a pay-as-you-go basis at the applicable consumption rates.

Customers may upgrade their Plan at any time during the committed term to increase included allowances by contacting their Stacksync account executive. A Plan may only be downgraded at the end of the committed contractual term.

### Capacity Purchase plans

Customers may also purchase additional prepaid capacity to cover variable consumption exceeding their Plan allowances (“Capacity Purchase”). Capacity Purchases are non-refundable, non-transferable, and expire at the end of the applicable contractual period for which the credits should apply to. Any unused capacity does not roll over to a subsequent period or contract term.

For customers with a Capacity Purchase Plan, usage rates are based on the Service Consumption Table. Multiple Workspaces under one Capacity Purchase Plan can share Contracted Spend but cannot combine SC consumption for volume discounts across Workspaces.

### Plan pricing

* **Starter Plan:** $1400/mo (or $1000/mo billed yearly)
* **Pro Plan:** $3700/mo (or $3000/mo billed yearly)
* **Enterprise Plan:** custom pricing based on specific requirements

### Plan benefits <a href="#benefits-per-plan" id="benefits-per-plan" />

Each Plan offers specific benefits as detailed below. Not all features are available in every contract. For Enterprise Plans, benefits are customized and not universally included. Refer to your Order Form for specific entitlements.

| Feature                                                                             | Starter               | Pro                   | Enterprise                         |
| ----------------------------------------------------------------------------------- | --------------------- | --------------------- | ---------------------------------- |
| **Two-way sync**                                                                    |                       |                       |                                    |
| Number of Syncs                                                                     | 1                     | 3                     | Unlimited                          |
| Synced records/ Stacksync credits (SC)                                              | 50K                   | 1M                    | Custom                             |
| Real-time data sync                                                                 | ✓                     | ✓                     | ✓                                  |
| One-way syncs                                                                       | ✓                     | ✓                     | ✓                                  |
| Two-way syncs                                                                       | ✓                     | ✓                     | ✓                                  |
| Automatic data backfill                                                             | ✓                     | ✓                     | ✓                                  |
| Associations sync                                                                   | ✓                     | ✓                     | ✓                                  |
| Create Object Associations synchronously                                            | -                     | add-on                | ✓                                  |
| Manual/Autonomous sync configuration update                                         | ✓                     | ✓                     | ✓                                  |
| Sync event triggers                                                                 | ✓                     | ✓                     | ✓                                  |
| Issues dashboard                                                                    | ✓                     | ✓                     | ✓                                  |
| Sync statistics and metrics                                                         | ✓                     | ✓                     | ✓                                  |
| Sync monitoring                                                                     | ✓                     | ✓                     | ✓                                  |
| Smart API rate limits                                                               | ✓                     | ✓                     | ✓                                  |
| Basic connectors                                                                    | ✓                     | ✓                     | ✓                                  |
| Early access to preview integrations                                                | -                     | ✓                     | ✓                                  |
| Enterprise connectors                                                               | -                     | -                     | ✓                                  |
| **Workflow automation**                                                             |                       |                       |                                    |
| Number of workflows                                                                 | 5                     | 25                    | Unlimited                          |
| Configure workflow with YAML/JSON files                                             | ✓                     | ✓                     | ✓                                  |
| Asynchronous workflow executions                                                    | ✓                     | ✓                     | ✓                                  |
| Synchronous workflow executions                                                     | ✓                     | ✓                     | ✓                                  |
| Replay failed workflows                                                             | ✓                     | ✓                     | ✓                                  |
| Workflow versioning                                                                 | ✓                     | ✓                     | ✓                                  |
| Log explorer                                                                        | ✓                     | ✓                     | ✓                                  |
| Store logs in your own storage                                                      | -                     | -                     | ✓                                  |
| Managed ultra-scalable message queues                                               | 1k events /min /queue | 5k events /min /queue | 10M events /min /queue             |
| Number of managed queues                                                            | 1                     | 10                    | Unlimited                          |
| Variables and Secrets                                                               | ✓                     | ✓                     | ✓                                  |
| Basic connectors                                                                    | ✓                     | ✓                     | ✓                                  |
| Enterprise connectors                                                               | -                     | -                     | ✓                                  |
| **AI Agents (Genies)**                                                              |                       |                       |                                    |
| Number of Genies                                                                    | 1                     | 20                    | Unlimited                          |
| Interfaces: Slack, Teams, Email, SMS, API, Agent-to-Agent and more                  | ✓                     | ✓                     | ✓                                  |
| Cross-system workflows: Genies work across any system                               | ✓                     | ✓                     | ✓                                  |
| Multi-day work handling with autonomous scheduled tasks and reminders               | ✓                     | ✓                     | ✓                                  |
| Multi-participant communication                                                     | ✓                     | ✓                     | ✓                                  |
| Access rights and guardrails                                                        | ✓                     | ✓                     | ✓                                  |
| Self-improvement and memory                                                         | ✓                     | ✓                     | ✓                                  |
| Knowledge bases                                                                     | ✓                     | ✓                     | ✓                                  |
| Built-in capabilities: Web Search, Browser sessions, API calls, Code execution, OCR | ✓                     | ✓                     | ✓                                  |
| All connectors as skills                                                            | ✓                     | ✓                     | ✓                                  |
| Variables and Secrets                                                               | ✓                     | ✓                     | ✓                                  |
| Conversation logs                                                                   | ✓                     | ✓                     | ✓                                  |
| Spend control                                                                       | ✓                     | ✓                     | ✓                                  |
| **Variables and Secrets**                                                           |                       |                       |                                    |
| Number of Variables                                                                 | Unlimited             | Unlimited             | Unlimited                          |
| Number of Secrets                                                                   | Unlimited             | Unlimited             | Unlimited                          |
| **Managed Postgres Databases**                                                      |                       |                       |                                    |
| Ability to provision databases                                                      | ✓                     | ✓                     | ✓                                  |
| **API management suite**                                                            |                       |                       |                                    |
| API proxy                                                                           | ✓                     | ✓                     | ✓                                  |
| API proxy access                                                                    | ✓                     | ✓                     | ✓                                  |
| API proxy - rate limit                                                              | 50k calls/day         | 150k calls/day        | Unlimited                          |
| **Platform**                                                                        |                       |                       |                                    |
| Collaborators per workspace                                                         | 3                     | 20                    | Unlimited                          |
| Select processing region                                                            | Basic                 | Extended              | All (including custom regions)     |
| Select cloud provider (GCP, AWS, or Azure)                                          | -                     | -                     | ✓                                  |
| Monitoring dashboard                                                                | -                     | ✓                     | ✓                                  |
| Log Explorer                                                                        | ✓                     | ✓                     | ✓                                  |
| Data Explorer                                                                       | ✓                     | ✓                     | ✓                                  |
| Log retention policy                                                                | 1 day                 | 7 days                | 30 days                            |
| SLAs                                                                                | -                     | -                     | add-on                             |
| Notification and alerting                                                           | Email                 | Email                 | Email, Slack, WhatsApp, Pagerduty  |
| Environments (e.g. Dev, Staging, Production)                                        | 1                     | 1                     | 3                                  |
| "No data retention" policy                                                          | ✓                     | ✓                     | ✓                                  |
| On-premise deployment                                                               | -                     | -                     | ✓                                  |
| GovCloud solutions                                                                  | -                     | -                     | ✓                                  |
| White label platform                                                                | -                     | -                     | ✓                                  |
| **Security**                                                                        |                       |                       |                                    |
| Passwordless and social logins                                                      | ✓                     | ✓                     | ✓                                  |
| MFA                                                                                 | -                     | ✓                     | ✓                                  |
| SSO & SCIM                                                                          | -                     | -                     | ✓                                  |
| RBAC (Role Based Access Control)                                                    | ✓                     | ✓                     | ✓                                  |
| SSH tunneling                                                                       | ✓                     | ✓                     | ✓                                  |
| Reverse SSH tunnels (annual contract only)                                          | -                     | -                     | ✓                                  |
| IP whitelisting                                                                     | -                     | ✓                     | ✓                                  |
| SSL certificates                                                                    | -                     | ✓                     | ✓                                  |
| VPC peering                                                                         | -                     | -                     | ✓                                  |
| VPN gateway                                                                         | -                     | -                     | ✓                                  |
| AWS Transit gateway                                                                 | -                     | -                     | ✓                                  |
| GCP CloudSQL proxy                                                                  | -                     | -                     | ✓                                  |
| Private networking for AWS/Azure/Google                                             | -                     | -                     | ✓                                  |
| **Compliance**                                                                      |                       |                       |                                    |
| SOC2 type 2                                                                         | ✓                     | ✓                     | ✓                                  |
| GDPR                                                                                | ✓                     | ✓                     | ✓                                  |
| CCPA                                                                                | ✓                     | ✓                     | ✓                                  |
| ISO27001                                                                            | -                     | ✓                     | ✓                                  |
| DPF US-EU-UK-CH                                                                     | -                     | ✓                     | ✓                                  |
| HIPAA                                                                               | -                     | -                     | ✓                                  |
| **Extensibility**                                                                   |                       |                       |                                    |
| Stacksync's Management API                                                          | -                     | -                     | ✓                                  |
| Configuration as code (for Syncs)                                                   | -                     | -                     | ✓                                  |
| Configuration as code (for Workflows)                                               | -                     | -                     | ✓                                  |
| **Support**                                                                         |                       |                       |                                    |
| Documentation                                                                       | ✓                     | ✓                     | ✓                                  |
| Slack community                                                                     | ✓                     | ✓                     | ✓                                  |
| Dedicated Slack support channel                                                     | -                     | ✓                     | ✓                                  |
| Email, Chat and phone. Up to 24/7 support.                                          | -                     | -                     | ✓                                  |
| Solutions Architect                                                                 | On Demand             | On Demand             | Dedicated during setup and monthly |

#### Service consumption table

#### Pricing table for SC units.

Additional **SC** pricing (consumption based). All product usage (Records in sync, Executions, etc.) accumulates as SC. The pricing increments in thousands of **SC**. Each thousand **SC** started, even partly consumed, is due in full.

| SC Tier    | Price per 1,000 SC |
| ---------- | ------------------ |
| 0 - 50k    | $0                 |
| 50k → 150k | $8.00              |
| 150k - 1M  | $2.00              |
| 1M → 10M   | $0.90              |
| 10M → 100M | $0.40              |
| over 100M  | $0.10              |

Pricing table for AI models and other consumption-based services: see [dedicated documentation page](/security-and-other-resources/legal/service-consumption-tables/ai-credits-and-other-consumption-based-pricing-table).

### Service consumption and spend calculation example <a href="#service-consumption-and-spend-calculation" id="service-consumption-and-spend-calculation" />

Monthly Spend depends on your **Stacksync Credits (SC)** and **Stacksync AI Credits (AIC)** consumption and the selected Plan. All product usage — Records in sync, Executions, and so on — accumulates as **SC**. Each Plan has a base price covering a custom amount of included SC, with incremental costs for SC consumed beyond the included limit. **AIC** are billed separately at a flat rate of $0.01 each.

#### Example of cost calculation

Suppose you’re on a **yearly** Starter Plan and have consumed 200,000 **SC** (across all products — Records in sync, Executions, etc.) in one month. Here’s how costs are calculated:

* First 50,000 **SC**, included in your plan.
* Next 100,000 **SC**, priced at $8 per 1,000: 100 \* $8 = $800.
* Additional 50,000 **SC**, priced at $2 per 1,000: 50 \* $2 = $100.
* **Total SC cost:** $0 + $800 + $100 = $900.
* **AIC cost:** any Stacksync AI Credits consumed are added at $0.01 each (none in this example, $0).
* **Total Monthly Spend:** Base Price ($1000) + SC Cost ($900) + AIC Cost ($0) = $1900.

### Custom development services <a href="#custom-development-services" id="custom-development-services" />

For services outside of standard support, such as custom development, the following options are available:

1. **Managed services plan (add-on)**: $1,200/month for 20 hours of work per month of mixed Development and Architect hours as needed.
2. **Custom per-hour rates**
   * **Junior Engineers / Junior Solutions Architects**: $250 USD per hour
   * **Senior Engineers / Senior Solutions Architects**: $400 USD per hour

## Support Plans <a href="#support-plans" id="support-plans" />

### Support Priorities

Stacksync provides highly responsive support channels. The following priority levels define how issues are classified and handled:

#### P-0 — Critical / Production Down

* Full production outage or data corruption
* Core functionality unavailable
* Immediate business impact
* Requires instant escalation to on-call engineering

#### P-1 — High / Severe Degradation

* Major functionality impaired, though partially operational
* Significant performance degradation
* No viable workaround
* Requires rapid attention

#### P-2 — Medium / Functional Issue

* Non-critical feature malfunction
* Business impact present but mitigations available
* Addressed during business hours

#### P-3 — Low / Minor Bug or Usability Issue

* Cosmetic issues or low-impact defects
* No operational disruption
* Resolved in standard maintenance cycles

#### P-4 — Inquiry / Feature Request

* Clarifications, documentation questions, or enhancement requests
* No operational impact

***

### Support Channels

* **P-4 to P-0** issues should be raised via the standard support channels included in your plan (Email, Slack, Microsoft Teams or Phone).
* **P-0** incidents may be escalated through the dedicated 24/7 hotline available under **Workspace Settings → Support Methods** (if included in your plan).

Triggering a P-0 escalation immediately notifies an on-call engineer. Your team must be ready to respond in real time (chat and/or call) to ensure rapid resolution.

**Note:** Submitting non-urgent or lower-severity issues through the P-0 hotline may incur fees of up to **$1,000 per false alert due immediately**.

## Miscellanous

#### What happens when Contracted Spend is depleted? <a href="#what-happens-when-contracted-spend-is-depleted" id="what-happens-when-contracted-spend-is-depleted" />

Capacity Purchase Customers will enter an Arrears period if Contracted Spend is depleted, during which they can continue using Stacksync Services at the "Monthly Pay As You Go" rates. Stacksync will prompt customers to purchase additional usage prior or after the Arrears period. If no additional usage is purchased and consumption is over plan quota, Stacksync may suspend or terminate the Workspace and its associated services.

#### Expiration of Contracted Spend <a href="#expiration-of-contracted-spend" id="expiration-of-contracted-spend" />

Contracted Spend must be used within the subscription term, with no rollover to the next term. Contact your account representative for renewals or new orders.

#### Multiple Workspaces <a href="#multiple-workspaces" id="multiple-workspaces" />

Each Workspace’s SC usage is calculated independently. Combining SC across Workspaces for discounts is not allowed.

#### Changes to the Stacksync Service Consumption Table <a href="#changes-to-the-stacksync-service-consumption-table" id="changes-to-the-stacksync-service-consumption-table" />

Stacksync may periodically update this Service Consumption Table. When updates are made, the **“effective date”** at the top of the document will be revised.

* For **Capacity Purchase plans**, the updated table will apply upon renewal or when entering a new Order Form after the changes go into effect. This holds true if no other agreement between the parties supersedes this Service Consumption Table.
* For **Monthly Purchases/Plans**, the updates will apply in the first Billing Period following the new effective date.

If a material change is made, Stacksync will make reasonable efforts to notify you through the Stacksync dashboard or via email prior to the update taking effect.

# Stacksync Catalyst Program - Master Participation Agreement (“MPA”)

> Master Participation Agreement ("MPA") to the Stacksync Catalyst Program.

Source: https://docs.stacksync.com/security-and-other-resources/legal/stacksync-catalyst-program-master-participation-agreement-mpa

**Last updated 8 July 2025**\
This MPA is a binding agreement between **Stacksync Inc.** (“**Stacksync**”) and the individual or entity that registers for the Catalyst Community (the “**Participant**”). It governs all Catalyst Program activities and incorporates by reference the policies published at [https://docs.stacksync.com/legal](https://docs.stacksync.com/legal).

***

## 1 Scope and Hierarchy

## 1.1 Program Purpose.

The Catalyst Program enables Participants to build production-grade connectors and workflow templates for the Stacksync platform using the public Connected Development Kit (“**CDK**”).<br />

**1.2** **Precedence.**

If a Connector Assignment Agreement (“CAA”, §5) conflicts with this MPA, the CAA controls for that connector; otherwise this MPA prevails.<br />

**1.3** **Incorporated Policies.**

The Stacksync Terms of Service, Privacy Notice, Acceptable Use Policy, Data Processing Addendum, and Certified Partner Program Terms are incorporated herein (collectively, the “**Policies**”).

***

## 2 Eligibility and On-Boarding

Participation requires (i) legal capacity to contract, (ii) acceptance of this MPA and the Policies, and (iii) provision of accurate payment information. Stacksync may approve, reject, or revoke participation at its sole discretion.

***

## 3 Confidentiality

Each party shall protect non-public information disclosed by the other party, use it solely for Catalyst purposes, and return or destroy it upon request. This obligation survives for three years after disclosure.

***

## 4 Intellectual Property

**4.1** **Assignment.**

Upon payment of the reward specified in §7, the Participant assigns to Stacksync all worldwide intellectual-property rights in each accepted connector or template (“**Deliverable**”), excluding pre-existing open-source components used under their respective licences.<br />

**4.2** **Moral Rights.**

The Participant waives, to the fullest extent permitted by law, any moral rights in each Deliverable.

**4.3** **Attribution.**

Stacksync may publicly reference the Participant’s name, badge, or partner status in marketing materials.

***

## 5 Connector Assignment Agreements

Each Deliverable is governed by a CAA specifying:

* connector or template ID and title;
* scope and APIs to cover;
* complexity tier (Simple / Medium / Complex);
* delivery deadline;
* fixed reward;
* three-week post-production maintenance window;
* quality checklist (annexed to the CAA).

***

## 6 Development and Quality Obligations

Deliverables must:

* follow CDK guidelines and the Acceptable Use Policy;
* implement all API operations defined in the CAA;
* include unit or integration tests, robust error handling, logs, and user-facing documentation;
* pass Stacksync code review and continuous-integration checks;
* satisfy a 48-hour response SLA for bug reports during the maintenance window.

***

## 7 Compensation

**7.1 Base Reward Range.**\
Each Connector Assignment Agreement (“CAA”) specifies a base reward for the related Deliverable. As of the Effective Date, base rewards range from **USD 50** to **USD 300**, determined by the complexity and urgency tiers defined by Stacksync.

**7.2 Right to Modify Rewards.**\
Stacksync may revise the base-reward schedule or any related multipliers at any time and without prior notice. Any revision applies only to CAAs executed after the effective date of the revision.

**7.3 Volume-Based Multipliers.**\
Upon acceptance of cumulative Deliverables by the same Participant, the following percentage multipliers apply to the base reward stated in each subsequent CAA:

* **Six (6) to ten (15) accepted Deliverables:** +10 %
* **Eleven (11) to thirty (30) accepted Deliverables:** +20 %
* **More than thirty (30) accepted Deliverables:** +30 %

**7.4 Payment Timing.**\
Rewards, inclusive of any applicable multipliers, are payable twenty-one (21) calendar days after Stacksync confirms production acceptance of the Deliverable and no Critical-Severity defects remain open.

**7.5 Payment Method and Taxes.**\
Rewards are remitted via ACH, PayPal, or Wise. All transaction fees and applicable taxes are the responsibility of the Participant.

**7.6 Set-off.**\
Stacksync may withhold or set off amounts necessary to cover unresolved breaches, indemnity obligations, or chargebacks attributable to the Participant.

***

## 8 Badges, Certifications, and Partner Status

Badges are awarded automatically for predefined milestones. Certifications require successful completion of a technical assessment. Certified partners may display the “Stacksync Certified” or “Stacksync Certified” mark subject to the Partner Terms.

***

## 9 Data Protection

The Participant shall process personal data only in accordance with the Data Processing Addendum and implement industry-standard security measures. Any security incident must be reported to Stacksync without undue delay.

***

## 10 Acceptable Use and Community Conduct

All Catalyst communications occur in the designated Slack workspace. The Participant shall comply with the Acceptable Use Policy and maintain professional conduct. Violations may result in immediate termination.

***

## 11 Representations and Warranties

The Participant represents that each Deliverable: (i) is original or properly licensed, (ii) does not infringe third-party rights, (iii) complies with applicable laws, and (iv) is free of malicious code.

***

## 12 Indemnification

The Participant shall indemnify and hold harmless Stacksync from any third-party claims arising from a breach of §§6, 9, or 11.

***

## 13 Limitation of Liability

Except for indemnification or gross negligence, each party’s aggregate liability under this MPA is limited to the greater of USD 1,000 or 150 % of the total rewards paid to the Participant in the preceding twelve months. Neither party is liable for indirect or consequential damages.

***

## 14 Term and Termination

This MPA commences on the Effective Date recorded in the Catalyst dashboard and continues until terminated. Either party may terminate for convenience with 30 days’ written notice. Immediate termination applies for material breach, AUP violations, or bankruptcy. §§3, 4, 11-15 survive termination.

***

## 15 Governing Law and Dispute Resolution

This MPA is governed by the laws of the State of Delaware, USA. Disputes shall be resolved by binding arbitration in Wilmington, Delaware, under AAA Commercial Rules. Class-action procedures are waived.

***

### 16 No Public Affiliation

The Participant is an independent contractor and shall not:\
(a) represent or imply that it is a partner, affiliate, employee, agent, or legal representative of Stacksync;\
(b) disclose or advertise any relationship with Stacksync, or use Stacksync’s name, logo, or trademarks in press releases, marketing materials, social media, or other public communications, without Stacksync’s prior written consent; or\
(c) create any obligation or liability on behalf of Stacksync.<br />

Nothing in this Agreement creates a joint venture, franchise, agency, fiduciary, or employment relationship between the parties.

***

### 17 Miscellaneous

* **Independent Contractors.** The parties are independent entities.
* **Assignment.** The Participant may not assign this MPA without Stacksync’s prior written consent.
* **Notices.** Legal notices must be sent to [legal@stacksync.com](mailto:legal@stacksync.com) and to the Participant’s email on record.
* **Entire Agreement.** This MPA, all CAAs, and the Policies constitute the entire agreement.
* **Amendments.** Stacksync may update this MPA on 30 days’ notice; continued participation constitutes acceptance.

***

**Stacksync Inc.**                      **Participant**

*Execution through the Catalyst dashboard constitutes acceptance of all terms herein.*

# Stacksync Certified Partner Program Terms and Conditions

Source: https://docs.stacksync.com/security-and-other-resources/legal/stacksync-certified-partner-program-terms-and-conditions

Last updated: April 16, 2023

These Terms and Conditions (the "Agreement") govern your participation in the Stacksync Certified Partner Program (the "Program") offered by Stacksync SA ("Stacksync"). By participating in the Program, you agree to be bound by this Agreement and any additional terms and conditions that Stacksync may adopt from time to time.

## Program Description

The Program is designed to provide a platform for consulting partners, freelance consultants, and agencies ("Partners") to support customers who need assistance with the strategy or technical implementation of Stacksync's real-time and bidirectional data synchronization solution between CRMs and Databases. Stacksync will display Partner's logos and provide referrals to Partners who offer such services to customers.

## Eligibility

Partners must meet the following eligibility criteria to participate in the Program:

1. Have experience and expertise in enterprise system integration, CRM integration, Data Warehousing, Data Activation and/or Cloud technologies
2. Agree to abide by this Agreement and any additional terms and conditions that Stacksync may adopt from time to time
3. Register for the Program on the Stacksync website and provide all requested information
4. Stacksync reserves the right to approve or reject any Partner application in its sole discretion, without reason to be disclosed.

## Partner Obligations

As a Partner in the Program, you agree to:

1. Provide high-quality services to customers referred to you by Stacksync in a professional and timely manner
2. Maintain a high level of customer service and support
3. Comply with all applicable laws and regulations in the performance of your services
4. Display Stacksync's logo on your website in the relevant sections and advertising materials as a Stacksync Certified Partner
5. Not make any decisions or speak on behalf of Stacksync

## Referral Process

Stacksync may refer customers to Partners who offer services related to Stacksync's solution. Stacksync will have no obligation to refer any customer to a Partner, and may refer customers to any other Partner or service provider at its sole discretion. Partners may not represent themselves as an agent or legal representative of Stacksync, and may not bind Stacksync to any obligation or agreement.

## Partner Fees

Stacksync does not require any fee from Partners for participation in the Program or for referrals. Partners may receive compensation from their customers for their services in accordance with their own pricing and policies.

If a partner refers and brings new clients to Stacksync as understood in the Stacksync Referral Programme Policy, the provisions under the Stacksync Referral Program Policy apply (available at [https://docs.stacksync.com/legal/referral-program-policy](/legal/referral-program-policy)).

## Term and Termination

This Agreement will begin upon acceptance of your Partner application and will continue until terminated by either party. Either party may terminate this Agreement at any time, with or without cause, by giving the other party written notice of termination. Upon termination of this Agreement, Partner will immediately cease all use of Stacksync's trademarks, trade names, logos, and other proprietary materials. Any rights or obligations that by their nature should survive termination of this Agreement will survive, including, without limitation, the provisions regarding intellectual property, confidentiality, and limitation of liability.

## Confidentiality

Partners will have access to confidential and proprietary information about Stacksync's technology and business operations as a result of their participation in the Program. Partners agree to keep such information confidential and to not disclose it to any third party without the prior written consent of Stacksync.

## Intellectual Property

Stacksync owns all intellectual property rights in its technology, software, and related materials. Partners may use Stacksync's logo and trademarks solely for the purpose of promoting their participation in the Program, but may not use such intellectual property in any other manner without the prior written consent of Stacksync.

## Indemnification

Partners agree to indemnify, defend, and hold harmless Stacksync, its affiliates, and their respective officers, directors, employees, and agents from and against any claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising out of or in connection with Partner's participation in the Program or any breach of this Agreement.

## Limitation of Liability

Stacksync will not be liable to Partners for any special, indirect, incidental, consequential, or punitive damages arising out of or in connection with Partner's participation in the Program, even if Stacksync has been advised of the possibility of such damages. Stacksync's total liability under this Agreement will not exceed the fees paid to Partner, if any, under this Agreement.

## Governing Law and Dispute Resolution

This Agreement will be governed by and constructed in accordance with the laws of the state of Vaud in Switzerland, without regard to its conflict of law provisions. To promote peaceful resolution of any disputes, amicable dispute resolution through mediation should be preferred and attempted before resorting to arbitration or going to court. Any disputes arising out of or in connection with this Agreement will be resolved through confidential and binding arbitration in accordance with the rules of the Swiss Law. The arbitration will take place in Vaud, Switzerland, and the award of the arbitrator will be final and binding.

## Miscellaneous

This Agreement constitutes the entire agreement between the parties regarding the subject matter hereof, and supersedes all prior agreements and understandings, whether written or oral. This Agreement may not be amended or modified except in writing signed by both parties. If any provision of this Agreement is found to be unenforceable, the remaining provisions will remain in full force and effect. This Agreement may not be assigned by Partner without the prior written consent of Stacksync. Stacksync may assign this Agreement without Partner's consent. This Agreement will be binding upon and inure to the benefit of the parties hereto and their respective successors and permitted assigns.

## Relationship of the Parties

Nothing contained in this Agreement will be deemed or construed by the parties or any third party as creating the relationship of principal and agent, partnership, joint venture, or any other form of legal association or organization between the parties, nor will this Agreement be deemed or construed as creating any obligation of either party to enter into any further agreement with the other party.

## Contact Information

If you have any questions about these T\&C or the Program, you can contact Stacksync at [https://www.stacksync.com/contact](https://www.stacksync.com/contact).

By submitting an application to become a Stacksync Certified Partner, you acknowledge that you have read, understood, and agree to be bound by the terms and conditions of this Agreement.

# Stacksync Connector Development Kit License

> Stacksync Source Available License 1.0

Source: https://docs.stacksync.com/security-and-other-resources/legal/stacksync-connector-development-kit-license

Licensor: Stacksync, Inc.

Licensed Work: Stacksync Connector Development Kit (CDK)

The Licensed Work is © 2025 Stacksync, Inc.

***

## Definitions

"Agreement" means this Stacksync Source Available License 1.0.

"Benchmark" means any benchmark, comparative test, or performance evaluation of the Software.

"Contribution" means any work of authorship, including code, documentation, or other material, intentionally submitted by You to Licensor for inclusion in the Licensed Work.

"License" means a valid authorization for use of the Software that is granted or provisioned by Licensor.

"Licensed Work" or "Software" means the Stacksync Connector Development Kit (CDK) provided to You under this Agreement, including any portion thereof, in any form.

"Licensor" means Stacksync, Inc.

"Limited Non-Production Use" means use solely for design, prototyping, testing, development, or evaluation purposes in non-production environments.

"Modified Version" means any derivative work of the Software that uses all or a substantial portion of the source code of the Software.

"Protective Measures" means technical countermeasures, Telemetry requirements, License requirements, or other elements in the Software or Modified Versions designed to enforce the terms of this Agreement.

"Stacksync Marketplace" means the official Stacksync integration marketplace, partner directory, or any distribution channel expressly authorized in writing by Stacksync, Inc.

"Telemetry" means data about Your use of the Software and its features that is communicated to Licensor by the Software.

"Third-Party Software" means software made available under open source or other license terms that may be included in or provided with the Software.

"You" means the individual or entity agreeing to this Agreement. If You are acting on behalf of an entity, "You" refers to that entity.

***

## Acceptance

This Agreement sets forth the terms and conditions on which Licensor makes the Software available to You. By accessing or using the Software or a Modified Version in any manner, You agree to be bound by all the terms and conditions of this Agreement. If You are an individual accessing or using the Software or a Modified Version on behalf of a legal entity, (i) You represent and warrant that You have the authority to enter into this Agreement on behalf of such entity and bind such entity to this Agreement, and (ii) references to "You" in this Agreement will refer to such entity.

***

## Grant of Rights

The Licensor hereby grants You the right to copy, modify, and make non-production use of the Licensed Work.

### Additional Use Grant

You may make production use of the Licensed Work, provided Your use does not include:

1. Competing Services. Offering the Licensed Work, or any functionality derived from it, to third parties as a hosted or managed integration, synchronization, or data connectivity service.
2. Competing Products. Using the Licensed Work to provide, either directly or as part of a larger offering:
   1. Integration platform as a service (iPaaS)
   2. Embedded iPaaS
   3. Unified API products
   4. Data integration or ETL/ELT platforms
   5. Workflow automation platforms where data synchronization between third-party systems is a primary function
   6. API management or API proxy services
3. Resale or Repackaging. Incorporating the Licensed Work into a product or service that facilitates automated data movement between third-party business systems as its primary function, and offering such product or service commercially or for free to third parties.<br />

### Permitted Uses

For clarity, the following uses are expressly permitted under this Agreement:

* Using the Licensed Work to build integrations for Your own internal business systems
* Using the Licensed Work to connect Your applications to Stacksync services
* Providing consulting, implementation, or professional services that deploy or configure the Licensed Work for clients, provided such services do not include offering a competing product or service as defined above
* Using the Licensed Work for development, testing, educational, or evaluation purposes
* Creating derivative works for internal use that do not compete with Stacksync products
* Building, distributing, and commercializing integrations, connectors, or extensions through the Stacksync Marketplace or other Stacksync-authorized distribution channels

The rights granted herein are non-exclusive, non-sublicensable, and non-transferable, except that You may permit Your employees, contractors, and agents to use the Licensed Work on Your behalf, provided they are bound by terms at least as protective as this Agreement.

***

## Conditions

If Your use of the Licensed Work does not comply with the requirements currently in effect as described in this Agreement, You must either:

1. Purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or
2. Refrain from using the Licensed Work.

All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this Agreement. You must conspicuously display this Agreement on each original or modified copy of the Licensed Work. If You receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this Agreement apply to Your use of that work.

***

## Limitations and Obligations

You will not operate the Software or a Modified Version without a License except for Limited Non-Production Use. You agree to adhere to any limitations specified by Licensor regarding use of the License at the time it is provided to You. You represent and warrant that all information You provide to Licensor to obtain a License is complete and accurate at the time of submission. You will not share Your License with any third parties, other than Your affiliates, contractors, and agents who are obligated to keep it confidential and use it solely on Your behalf. You will ensure that such affiliates, contractors, and agents comply with the terms of this Agreement applicable to You, and You will be responsible for their acts and omissions as if they were You hereunder. You acknowledge that the Software and any Modified Versions may be subject to export or import control laws and regulations in the US and other countries, and You agree to comply with all such laws and regulations.

You acknowledge that the Software and any Modified Versions share Telemetry with Licensor. You will not operate the Software or a Modified Version without sharing Telemetry except for Limited Non-Production Use or unless Licensor has issued You a License that allows Telemetry to be disabled and You disable sharing Telemetry. You understand and agree that Licensor may use and disclose personal information collected as part of Telemetry in accordance with Licensor's Privacy Policy available at [https://docs.stacksync.com/privacy](https://docs.stacksync.com/privacy). You acknowledge that the Software and Modified Versions include technical countermeasures to limit unauthorized use, such as operation without a required License or without sending required Telemetry. You will not circumvent, remove, disable, block, or alter any Protective Measures. You must include all of the Protective Measures in any Modified Version You create.

You will not alter, remove, or obscure any licensing, copyright, trademark, or other notices of Licensor in the Software or a Modified Version. You must ensure that anyone who receives a copy of any part of the Software or a Modified Version from You also receives a copy of this Agreement, and if You create a Modified Version, You must include in any such Modified Version prominent notices stating that You have modified the Software.

***

## Benchmarks

You will not perform Benchmarks against any products or services provided under terms that restrict performing and disclosing the results of benchmarks of such products or services, unless You have the lawful right to waive such terms. If You perform or disclose, or direct or permit any third party to perform or disclose, any Benchmark, You will include in any disclosure and will disclose to Licensor all information necessary to replicate such Benchmark, and You agree that Licensor may perform and disclose the results of benchmarks of Your products or services, irrespective of any restrictions on benchmarks in the terms governing Your products or services.

***

## Intellectual Property

This Agreement does not grant You any right in any trademark or logo of Licensor or its affiliates, provided that You may use a trademark or logo of Licensor as expressly required by this Agreement or as reasonably necessary to describe the origin of the Licensed Work.

***

## Patent Grant

Subject to the terms and conditions of this Agreement, the Licensor hereby grants You a perpetual, worldwide, non-exclusive, no-charge, royalty-free patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Licensed Work, where such license applies only to those patent claims licensable by the Licensor that are necessarily infringed by the Licensed Work alone.

If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Licensed Work infringes a patent, Your rights under this Agreement will terminate immediately.

***

## Contributions

By submitting any Contribution for inclusion in the Licensed Work, You hereby assign to Stacksync, Inc. all right, title, and interest in and to such Contribution, including all intellectual property rights therein. You represent that You have the legal authority to make this assignment. If You cannot assign rights (for example, due to employer policies), You must not submit Contributions without first obtaining a written agreement from Stacksync, Inc.

To the extent any rights cannot be assigned under applicable law, You grant Stacksync, Inc. a perpetual, worldwide, exclusive, royalty-free, irrevocable license to use, reproduce, modify, distribute, sublicense, and commercialize such Contribution without restriction.

Any contribution submitted for inclusion in the Licensed Work by You to the Licensor shall be under the terms and conditions of this Agreement, without any additional terms or conditions.

***

## Third-Party Software

The Software may contain or be provided together with Third-Party Software. Each item of Third-Party Software is subject to its own license terms, which can be found in the documentation accompanying the Software or the source code. Copyrights to the Third-Party Software are held by the respective copyright holders indicated therein. You agree to fully comply with all such Third-Party Software license terms.

***

## Disclaimer of Warranty

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY REPRESENTATION, WARRANTY, OR CONDITION, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY REPRESENTATION, WARRANTY, OR CONDITION OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, OR NON-INFRINGEMENT, OR THAT USE OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR FREE.

***

## Limitation of Liability

TO THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE LICENSED WORK, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

IN NO EVENT SHALL LICENSOR'S TOTAL LIABILITY EXCEED ONE HUNDRED US DOLLARS ($100.00).

***

## Termination

Your rights under this Agreement terminate automatically for the current and all other versions of the Licensed Work if You breach any term of this Agreement. If the breach is curable and You cure it within fifteen (15) days of becoming aware of the breach, Your rights will be reinstated. Intentional or repeated breaches result in immediate and permanent termination with no cure period.

***

## General

If any provision of this Agreement is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any failure to enforce any provision of this Agreement will not constitute a waiver of future enforcement of that or any other provision.

This Agreement shall be governed by and construed in accordance with the laws of the State of Delaware, United States, without regard to its conflict of laws principles.

Any legal action or proceeding arising under or relating to this Agreement shall be brought exclusively in the state or federal courts located in Wilmington, Delaware, and the parties hereby irrevocably consent to the personal jurisdiction and venue of such courts.

The rights and obligations of the parties to this Agreement will not be governed by the United Nations Convention on Contracts for the International Sale of Goods.

***

## Contact

For commercial licensing inquiries, please contact: [licensing@stacksync.com](mailto:licensing@stacksync.com)

***

Stacksync Source Available License 1.0

© 2025 Stacksync, Inc. All Rights Reserved.

<br />

# Stacksync EOS CLI License

> Stacksync EOS CLI License 1.0 — proprietary license for use exclusively with authorized Stacksync services.

Source: https://docs.stacksync.com/security-and-other-resources/legal/stacksync-eos-cli-license

Licensor: Stacksync, Inc.

Licensed Work: Stacksync Enterprise OS Command-Line Interface (EOS CLI)

License: Stacksync EOS CLI License 1.0

The Licensed Work is © 2026 Stacksync, Inc. All Rights Reserved.

***

## Definitions

"Agreement" means this Stacksync EOS CLI License 1.0.

"Authorized Stacksync Services" means services operated by Stacksync, Inc. or its affiliates, and private or enterprise installations expressly authorized in writing by Stacksync, Inc., that You are authorized to access under the applicable service terms. This includes authorized trial, guest, preview, development, and staging environments. A third-party service does not become an Authorized Stacksync Service merely because it implements a compatible API or accepts requests from the Software.

"Authorized Users" means Your employees, contractors, and agents who access the Software solely on Your behalf for a Permitted Purpose, are bound by obligations at least as protective as this Agreement, and have the required authorization to access the relevant Stacksync account or workspace.

"Competing Offering" means a product or service that uses, incorporates, adapts, or derives functionality from the Software to replace, replicate, or offer a commercial or functional substitute for the Software or an offering that Stacksync or its affiliates provides using the Software. This includes such offerings for application deployment, hosting, infrastructure management, managed databases, AI inference, file storage, data integration, or workflow orchestration, whether provided for payment or free of charge. Your independently developed applications do not become Competing Offerings merely because they use these capabilities through Authorized Stacksync Services as permitted by this Agreement.

"Contribution" means code, documentation, or other material intentionally submitted by You to Licensor for inclusion in the Software. Your applications, customer data, configuration, and ordinary service requests are not Contributions merely because they are deployed, transmitted, or managed using the Software.

"Licensed Work" or "Software" means the Stacksync Enterprise OS Command-Line Interface (EOS CLI) provided under this Agreement, including its source code, executables, installers, update components, bundled MCP interface, accompanying documentation, and any portion of those materials, in any form. It does not include Your independently developed applications or Third-Party Software governed by separate license terms.

"Licensor" means Stacksync, Inc.

"Modified Version" means any modification, adaptation, translation, derivative work, or other work incorporating any portion of the Software.

"Permitted Purpose" means using the Software exclusively to access, configure, deploy to, administer, or otherwise interact with Authorized Stacksync Services, including local preparation, testing, evaluation, troubleshooting, and automation solely in support of that use.

"Protective Measures" means authentication, authorization, workspace isolation, access controls, usage limits, license checks, signature verification, or other technical measures implemented to protect the Software, Authorized Stacksync Services, or their users. This definition does not imply that any particular measure or telemetry feature is present in every version of the Software.

"Third-Party Software" means software included in or provided with the Software under separate open-source or other third-party license terms.

"You" means the individual or legal entity accepting this Agreement. If You act on behalf of an entity, You represent that You have authority to bind that entity.

***

## Acceptance

This Agreement states the terms on which Licensor makes the Software available. By downloading, installing, copying, accessing, or using the Software after being provided this Agreement or notice of it, You agree to its terms. If You do not agree, You must not download, install, copy, access, or use the Software and must delete copies in Your possession or control, except to the extent retention is required by applicable law.

***

## Grant of Rights

Subject to Your compliance with this Agreement and the applicable Stacksync service terms, Licensor grants You a limited, worldwide, non-exclusive, non-transferable, non-sublicensable license to:

1. Download, install, execute, and make reasonably necessary internal and backup copies of the Software solely for a Permitted Purpose.
2. Permit Authorized Users to exercise those rights on Your behalf.
3. Where Licensor makes source code available to You, inspect that source code and compile an unmodified copy solely for a Permitted Purpose. Source availability does not grant additional rights to modify, redistribute, sublicense, or reuse the Software.
4. Configure the Software through its documented options and interfaces, and write independent scripts, integrations, or automation that invoke those interfaces solely for a Permitted Purpose, without incorporating or distributing Software code.

These rights apply to both production and non-production use. There is no separate grant for unrestricted educational, evaluation, research, personal, or noncommercial use outside a Permitted Purpose. No right to publish the source code or make the Software available under an open-source license is granted. This Agreement has no automatic conversion to an open-source or more permissive license.

No rights are granted by implication, estoppel, or otherwise. All rights not expressly granted are reserved by Licensor and its licensors.

***

## Permitted Uses

For clarity, You may use the Software for a Permitted Purpose to:

* Build, deploy, operate, and commercialize Your own applications using Authorized Stacksync Services, including applications offered to Your customers.
* Manage Your authorized Stacksync workspaces, deployments, databases, inference resources, storage, and access settings.
* Run local dry runs, prepare deployment archives, and test integrations intended for Authorized Stacksync Services.
* Use the Software in Your internal CI/CD pipelines, development tools, or AI coding agents, including through its documented MCP interface.
* Provide consulting, implementation, or administration services for clients who are themselves authorized to use the relevant Stacksync services, provided You have their authorization and do not redistribute the Software externally or provide a Competing Offering.

Using the Software does not transfer ownership of Your independently developed applications or customer data to Licensor. Selling Your applications or professional services as described above is not a sale or sublicense of the Software.

***

## Restrictions

Except with Licensor's prior written permission, and subject to the Third-Party Software and Mandatory Rights sections below, You must not, and must not permit another person to:

1. **Use outside Stacksync.** Use the Software or a Modified Version with an unauthorized backend, independent hosting or infrastructure platform, substitute API, or other service outside the Authorized Stacksync Services. Local preparation and testing solely for a Permitted Purpose remain permitted.
2. **Create or enable competing offerings.** Use the Software, its source code, or functionality derived from it to develop, provide, operate, or assist a Competing Offering, including by adapting the Software to a competing service or extracting components for a competing product.
3. **Redistribute or sublicense.** Publish, distribute, sublicense, sell, rent, lease, lend, transfer, or otherwise make the Software available to third parties, including through public repositories, package registries, container images, software bundles, mirrors, or download services. Copies provided internally to Authorized Users solely on Your behalf are permitted under the Grant of Rights.
4. **Resell or white-label.** Rebrand, white-label, repackage, or offer the Software or access to its functionality as a standalone product, managed service, reseller offering, or component of another platform. The expressly permitted customer applications and professional services above remain permitted.
5. **Modify or reuse code.** Modify, adapt, translate, create derivative works of, or incorporate any Software code into another work. Documented configuration, compilation of unmodified source, and independent automation expressly permitted above are not prohibited modifications. Modifications or Contributions require separate written authorization from Licensor.
6. **Reverse engineer.** Reverse engineer, decompile, disassemble, or otherwise attempt to derive non-public source code, algorithms, or implementation details from the Software, except where this restriction is prohibited by applicable law.
7. **Circumvent protections.** Bypass, defeat, remove, disable, or alter Protective Measures; access resources without authorization; evade account, workspace, subscription, or usage restrictions; or use the Software to obtain unauthorized access to Stacksync systems or other users' resources. Using an option that Licensor documents as supported, including an available update-control option, is not circumvention merely because it changes default behavior.
8. **Remove notices or misrepresent affiliation.** Remove or obscure license, copyright, trademark, or attribution notices; claim ownership of the Software; or imply endorsement, certification, partnership, or affiliation with Stacksync without authorization.

A trial, guest account, free service tier, or ability to change the API endpoint does not expand the license granted by this Agreement. Restrictions apply to use for payment and use free of charge, except where this Agreement expressly states otherwise.

***

## Conditions and Authorized Users

You are responsible for compliance by Your Authorized Users and for their acts and omissions in connection with the Software as if they were Your own. You must protect credentials and use only accounts, workspaces, and resources You and the relevant Authorized Users are authorized to access. You must not share credentials in violation of the applicable Stacksync service terms.

Every permitted copy must retain this Agreement and all applicable copyright, trademark, and third-party notices. Any Modified Version separately authorized in writing must retain required notices, identify the modifications, preserve applicable Protective Measures, and remain subject to this Agreement unless Licensor expressly agrees otherwise in writing.

If Your intended use is outside the rights granted here, You must obtain a separate written license from Licensor before that use or refrain from it. Payment for a Stacksync subscription does not by itself grant redistribution, source-code reuse, or competing-use rights.

***

## Service Terms, Data, and Updates

Access to Authorized Stacksync Services remains subject to the applicable [Stacksync Terms of Service and Conditions](/security-and-other-resources/legal/terms-of-service-and-conditions-tc), [Acceptable Use Policy](/security-and-other-resources/legal/acceptable-use-policy-aup), applicable order forms, and any separately executed agreements. Personal information is handled as described in the [Stacksync Privacy Notice](/security-and-other-resources/legal/privacy-notice) and any applicable data processing agreement.

This Agreement does not require telemetry that the Software does not implement or override data-handling commitments in a separately executed agreement. You must not interfere with required security or service-enforcement communications except through documented controls or as authorized by Licensor.

Licensor may provide updates under this Agreement or under terms supplied with the relevant update. Changes to this Agreement do not retroactively expand restrictions on a copy already licensed under an earlier version. This Agreement does not obligate Licensor to provide support, updates, continued service availability, or compatibility with any particular operating system, platform, or third-party product, except as separately agreed in writing.

***

## Intellectual Property and Patent Rights

The Software is licensed, not sold. Licensor and its licensors retain all right, title, and interest in the Software and all associated intellectual property rights. This Agreement grants no rights in Stacksync trademarks, logos, trade names, or branding, except to preserve required notices and accurately identify the Software's origin without implying endorsement.

To the extent necessary to exercise the rights expressly granted under this Agreement, Licensor grants a non-exclusive, royalty-free license under patent claims it controls that are necessarily infringed by the unmodified Software. This patent license is limited to Permitted Purposes and terminates when Your rights under this Agreement terminate. It grants no separate right to sell, redistribute, or use the Software outside the express grant above.

If You institute patent litigation alleging that the Software infringes a patent, Your patent license under this Agreement terminates to the extent permitted by applicable law.

***

## Contributions

Do not submit Contributions unless Licensor has authorized the submission in writing. Authorization to submit a Contribution does not authorize publication or redistribution of the Software or a Modified Version.

Unless a separate written contribution agreement with Licensor provides otherwise, by intentionally submitting an authorized Contribution for inclusion in the Software, You assign to Stacksync, Inc. all right, title, and interest You hold in that Contribution, including intellectual property rights. You represent that You have the authority to make that assignment and that the Contribution does not violate third-party rights or obligations. If You cannot make the assignment, You must obtain a separate written agreement before submitting the Contribution.

To the extent any such rights cannot lawfully be assigned, You grant Licensor a perpetual, worldwide, irrevocable, royalty-free license, with rights to sublicense and transfer, to use, reproduce, modify, distribute, and commercialize the Contribution for any purpose, to the fullest extent permitted by applicable law. Nothing in this section transfers rights in Your independently developed applications, customer data, or other materials that You have not intentionally submitted as Contributions.

***

## Third-Party Software and Mandatory Rights

Third-Party Software is governed by its own applicable license terms, including any notices provided with the Software. This Agreement does not replace those terms, restrict rights granted under them, or claim ownership of Third-Party Software. Licensor's restrictions on its own Software do not extinguish Your rights to independently obtained third-party components under their respective licenses.

Nothing in this Agreement excludes, restricts, or waives rights or remedies that cannot lawfully be excluded, restricted, or waived, including any applicable statutory rights concerning interoperability, reverse engineering, or other permitted activities. Such rights apply only to the extent required by applicable law and do not otherwise expand the express license grant.

***

## Disclaimer of Warranty

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE," WITHOUT ANY REPRESENTATION, WARRANTY, OR CONDITION, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THAT THE SOFTWARE WILL BE UNINTERRUPTED, SECURE, OR ERROR-FREE.

***

## Limitation of Liability

TO THE EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR AND ITS AFFILIATES AND LICENSORS WILL NOT BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR FOR LOST PROFITS, REVENUE, DATA, BUSINESS OPPORTUNITIES, OR GOODWILL, ARISING OUT OF OR RELATED TO THIS AGREEMENT OR THE SOFTWARE, REGARDLESS OF THE THEORY OF LIABILITY AND EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

TO THE EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR'S AGGREGATE LIABILITY ARISING OUT OF OR RELATED TO THIS AGREEMENT OR THE SOFTWARE WILL NOT EXCEED ONE HUNDRED US DOLLARS ($100.00). THESE LIMITATIONS DO NOT EXCLUDE LIABILITY THAT CANNOT LAWFULLY BE EXCLUDED AND DO NOT REPLACE LIABILITY TERMS EXPRESSLY AGREED IN A SEPARATELY EXECUTED AGREEMENT THAT GOVERNS THE SAME CLAIM.

***

## Termination

Your rights under this Agreement terminate automatically if You materially breach this Agreement. For a curable, unintentional first breach, Licensor may reinstate Your rights after You cure the breach within fifteen (15) days of becoming aware of it and remedy its consequences to the extent reasonably possible. Intentional, repeated, or incurable breaches do not carry a right to reinstatement. Licensor may also terminate the license by notice where Your continued use is no longer authorized under the applicable Stacksync service agreement.

Upon termination, You must stop using the Software, cause Authorized Users to stop using it, and delete all copies in Your possession or control, except copies required to be retained by law, which must remain inaccessible for operational use and subject to this Agreement. Termination does not transfer ownership of Your applications or authorize deletion of Your customer data; treatment of service data is governed by the applicable service agreements.

Provisions concerning restrictions, ownership, Contributions, third-party rights, disclaimers, liability, termination obligations, and dispute resolution survive termination to the extent necessary to give them effect. Termination does not limit remedies otherwise available under applicable law.

***

## General

This Agreement is governed by the laws of the State of Delaware, United States, without regard to conflict-of-laws principles. Subject to mandatory applicable law, legal actions arising out of or relating to this Agreement must be brought in the state or federal courts located in Wilmington, Delaware, and the parties consent to their jurisdiction and venue. The United Nations Convention on Contracts for the International Sale of Goods does not apply.

You must comply with applicable export control, sanctions, and import laws in connection with the Software.

If a provision is unenforceable, it will be modified only to the extent necessary to make it enforceable, and the remaining provisions will remain in effect. A failure or delay to enforce a provision is not a waiver. Licensor may seek injunctive or other equitable relief for unauthorized use or disclosure of its intellectual property, subject to applicable law and court requirements; no remedy is guaranteed by this Agreement.

This Agreement governs rights to the Software. A separately executed written agreement with Stacksync, Inc. controls over conflicting provisions of this Agreement only to the extent it expressly grants different rights or governs the same subject matter. The Stacksync Connector Development Kit license and licenses for other Stacksync products do not grant rights to the EOS CLI unless Licensor expressly states otherwise in writing.

***

## Contact

For permissions, exceptions, contribution authorization, or commercial licensing inquiries, contact [licensing@stacksync.com](mailto:licensing@stacksync.com).

***

Stacksync EOS CLI License 1.0

© 2026 Stacksync, Inc. All Rights Reserved.

# Terms of Service and Conditions (TC)

> General Terms and Conditions for the Stacksync Service.

Source: https://docs.stacksync.com/security-and-other-resources/legal/terms-of-service-and-conditions-tc

Last updated: October 25th, 2025.

Please read these terms and conditions carefully before using Our Service.

## Interpretation and Definitions

## Interpretation

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

## Definitions

For the purposes of these Terms and Conditions:

* Affiliate means an entity that controls, is controlled by or is under common control with a party, where "control" means ownership of 50% or more of the shares, equity interest or other securities entitled to vote for election of directors or other managing authority.
* Country refers to: Delaware, United States of America (USA).
* Company (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to Stacksync.
* Device means any device that can access the Service such as a computer, a cellphone or a digital tablet.
* Service refers to the Website.
* Terms and Conditions (also referred as "Terms") mean these Terms and Conditions that form the entire agreement between You and the Company regarding the use of the Service.
* Third-party Social Media Service means any services or content (including data, information, products or services) provided by a third-party that may be displayed, included or made available by the Service.
* Website refers to Stacksync, accessible from `https://www.stacksync.com` or any other product Stacksync offers, such as but not exhaustively, Hookforce accessible at [https://www.hookforce.app](https://www.hookforce.app).
* You means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable.

## Acknowledgment

These are the Terms and Conditions governing the use of this Service and the agreement that operates between You and the Company. These Terms and Conditions set out the rights and obligations of all users regarding the use of the Service.

Your access to and use of the Service is conditioned on Your acceptance of and compliance with these Terms and Conditions. These Terms and Conditions apply to all visitors, users and others who access or use the Service.

By accessing or using the Service You agree to be bound by these Terms and Conditions. If You disagree with any part of these Terms and Conditions then You may not access the Service.

You represent that you are over the age of 18. Stacksync does not permit those under 18 to use the Service.

Your access to and use of the Service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our Service.

## Links to Other Websites

Our Service may contain links to third-party web sites or services that are not owned or controlled by the Company.

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

We strongly advise You to read the terms and conditions and privacy policies of any third-party web sites or services that You visit.

## Termination

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms and Conditions.

Upon termination, Your right to use the Service will cease immediately.

Either party may terminate this Agreement upon written notice if the other party materially breaches the Agreement and fails to cure such breach within 30 days of receiving written notice.

## AI Agents and Customer Responsibility

Customer acknowledges and agrees that artificial intelligence agents (“AI Agents”) made available through the Service may autonomously access data, make decisions, communicate with third parties, create, modify, delete, transmit, or otherwise act upon records, transactions, workflows, or other information within Customer’s systems and connected third-party systems. Customer is solely responsible and liable for configuring, authorizing, supervising, reviewing, and using AI Agents and for all actions, omissions, decisions, outputs, communications, transactions, and consequences resulting from their operation, whether or not such actions were specifically anticipated by Customer. Any action performed by an AI Agent using Customer’s account, credentials, permissions, instructions, configurations, data, or connected systems shall be deemed an action authorized and performed by Customer. To the maximum extent permitted by applicable law, Stacksync shall have no responsibility or liability for any loss, damage, error, unauthorized or unintended action, transaction, communication, modification, deletion, business consequence, or third-party claim arising out of or relating to any action or omission of an AI Agent, and Customer assumes all risks associated with enabling AI Agents to take actions within or on behalf of Customer’s systems.

## Limitation of Liability

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of this Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the Service or 100 USD if You haven't purchased anything through the Service.

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the Service, third-party software and/or third-party hardware used with the Service, or otherwise in connection with any provision of this Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

## "AS IS" and "AS AVAILABLE" Disclaimer

The Service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the Service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the Service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the Service, or the information, content, and materials or products included thereon; (ii) that the Service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the Service; or (iv) that the Service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

## Governing Law

The laws of the Country, excluding its conflicts of law rules, shall govern this Terms and Your use of the Service. Your use of the Application may also be subject to other local, state, national, or international laws.

## Disputes Resolution

If You have any concern or dispute about the Service, You agree to first try to resolve the dispute informally by contacting the Company.

If the dispute cannot be resolved through informal discussions within thirty (30) days, the parties shall engage in mandatory, non-binding mediation conducted by a mutually agreed-upon neutral mediator before initiating any arbitration or other formal legal proceeding. The mediation shall take place in Wilmington, Delaware, unless otherwise mutually agreed, and the costs of mediation shall be shared equally between the parties, unless otherwise agreed in writing. Participation in mediation shall be a condition precedent to the initiation of arbitration or any other form of dispute resolution.

## Arbitration Procedure

Any dispute, controversy, or claim arising out of or relating to this Agreement that is not resolved through mediation shall be finally resolved by binding arbitration administered by the American Arbitration Association (AAA) in accordance with its Commercial Arbitration Rules. The arbitration shall be conducted by a single arbitrator appointed in accordance with such rules. The seat and venue of arbitration shall be Wilmington, Delaware, and the arbitration shall be conducted in English. Judgment on the award rendered by the arbitrator may be entered in any court having jurisdiction thereof.

## For European Union (EU) Users

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which you are resident in.

## United States Legal Compliance

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

## Severability and Waiver

## Severability

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

## Waiver

Except as provided herein, the failure to exercise a right or to require performance of an obligation under this Terms shall not effect a party's ability to exercise such right or require such performance at any time thereafter nor shall be the waiver of a breach constitute a waiver of any subsequent breach.

## Fees and Payment

## Fees

Customer shall pay to Stacksync the fees for the Service. Except as expressly set forth in the Order, the Service is non-cancellable and all fees are non-refundable. Customer shall have no right to withhold or reduce fees under the Agreement or set off any amount against fees owed for alleged defects in the Service.

## Payment

Customer shall pay to Stacksync the fees for the Service provided hereunder, in the amount set forth in the Order, by recurring credit card charges made on the first day of each subscription period or by invoice within thirty (30) days from the invoice date. Payment shall always be made by the start date when paying by credit card and prior to the start date of the Service when paying by invoice. Without limiting any other rights or remedies Stacksync may have, any amount not paid when due will be subject to interest equal to the lesser of: (i) 5% per month of the overdue amount; or (ii) the highest lawful rate allowed by applicable law. Such interest shall accrue on a daily basis from the due date until actual payment of the overdue amount, whether before or after judgment. In addition to any interest due under this Section, Customer shall reimburse any costs or expenses (including, but not limited to, any penalties, charges and legal and other reasonable professional costs and expenses) incurred by Stacksync to collect any amount that is not paid when due.

## Additional charges

Additional charges emerging from refunds, chargebacks, payment disputes or any other financial transaction between the Company and the Customer should be borne by the customer, especially if the request originates from the Customer. For instance, charges from payment providers or banks to transfer the amount of a refund from the Company to the Customer might be borne by the Customer.

These charges might be, by payment modality, charged to the Customer via the financial provider. When this is not possible, the charges might directly be deducted from the transferred amount being sent from the Company to the Customer. These charges might also be offset against future payment from the Company to the Customer or additionally included on future payables such as bills from the Customer to the Company.

## Taxes.

All fees are exclusive of taxes, levies, and duties, and Customer shall be responsible for payment of all such taxes, levies, and duties, including value-added tax (VAT), withholding, or similar taxes. Stacksync may calculate taxes based on the billing information Customer provides.

## Fee Increase.

Stacksync may increase the fees for the Service, which will be effective at the beginning of the next subscription period. Stacksync will notify Customer of any increase prior to it becoming effective; notice may be in the form of an invoice. Customer acknowledges that expiration of any discount or incentive programs to which Customer was previously entitled does not constitute a fee increase.

## Renewal

All contracts renew automatically if the service is not cancelled by either party before the renewal date.

## Effects on non-payment.

Stacksync may suspend Customer’s access to the Service without advance notice if Customer fails to pay in full when due. Stacksync will notify the Customer of the reason for the suspension.

## Cancellation

The Client may request cancellation of the contract without cause by providing a written notice at least 30 days prior to the contract's expiration date.

Fees for the running contract term are non refundable.

## Breach

If Customer breaches these Terms, including but not limited to non-payment or violation of the Acceptable Use Policy, all fees paid shall be non-refundable, and Customer shall remain liable for any unpaid fees due for the then-current contract term.

If the Stacksync materially breaches these Terms and fails to cure such breach within thirty (30) days after receiving written notice from Customer, Customer will be entitled to a refund of prepaid fees on a pro-rata basis for the unused portion of the Service period. This refund shall constitute Customer’s sole and exclusive remedy for such breach.

## Marketing and Branding

By agreeing to these Terms, You grant the Company a non-exclusive, royalty-free, worldwide license to use Your company’s name, logo, and trademarks for marketing and promotional purposes. This includes, but is not limited to, featuring Your logo on the Company’s Website, presentations, case studies, and promotional materials.

The Company may obtain Your logo and branding assets from publicly available sources or request them directly from You to ensure proper representation. Additionally, You agree to collaborate with the Company to provide marketing content, such as case studies, testimonials, or relevant media, upon reasonable request.

If You have specific branding guidelines, You agree to provide them upon request to ensure compliance with Your standards.

You may revoke this permission by providing written notice to the Company. Upon receipt of such notice, the Company will cease using Your logo and branding in any new materials within 30 business days.

## Ownership of Intellectual Property Rights

## Stacksync’s IP

Stacksync, or its licensors, own all right, title and interest in and to any and all copyrights, trademark rights, patent rights, database rights and other intellectual property or other rights in and to the Service, including without limitation all software, integrations, integrations with Data Sources and Data Destinations, technology and other rights used to provide the Service, and all graphics, user interfaces and any documentation, any improvements, design contributions or derivative works thereto, and any knowledge or processes related thereto and/or provided hereunder. Except for the limited rights expressly granted herein, the Agreement does not transfer from Stacksync any proprietary right or interest in the Service. All rights not expressly granted to Customer in the Agreement are reserved to Stacksync and its licensors.

## Customer’s IP

Customer shall own all right, title and interest in and to any copyrights, trademark rights, patent rights, database rights and other intellectual property or other rights in and to the Customer Data. Except for the limited rights expressly granted herein, the Agreement does not transfer from Customer any proprietary right or interest in the Customer Data. All rights regarding Customer Data not expressly granted to Stacksync in the Agreement are reserved to Customer.

## Third Party Indemnification

## Claims Brought Against Customer

Stacksync shall defend (at its sole expense) Customer against claims brought against Customer by any third party alleging that Customer’s use of the Service, in accordance with the terms and conditions of the Agreement, constitutes an infringement or misappropriation of a patent claim(s), copyright, or trade secret rights or any other third party intellectual property rights. Stacksync will pay damages finally awarded against Customer with respect to such claims, and will pay reasonable attorney’s fees in connection with such defense. This obligation of Stacksync shall not apply if the alleged infringement or misappropriation results from use of the Service in conjunction with any other software or service not provided by Stacksync or in the event of free (no fee) or trial use of the Service.

## Intellectual Property Claims

In the event a claim under the previous Section is made or in Stacksync’s reasonable opinion is likely to be made, Stacksync may, at its sole option and expense: (i) procure for Customer the right to continue using the Service under the terms of the Agreement; or (ii) replace or modify the Service to be non-infringing without material decrease in functionality. If Stacksync provides written notice to Customer that the foregoing options are not reasonably available, Stacksync or Customer may terminate the Agreement and Stacksync shall refund to Customer all prepaid fees for the remainder of its term after the date of termination.

## Claims Brought Against Stacksync

Customer shall defend (at its sole expense) Stacksync and licensors against claims brought against Stacksync by any third party arising from or related to an allegation that the Customer Data used in connection with the Service violates, infringes or misappropriates the intellectual property rights of a third party. Customer will pay damages finally awarded against Stacksync with respect to such claims, and will pay reasonable attorney’s fees in connection with such defense. The foregoing shall apply regardless of whether such damage is caused by the conduct of Customer or by the conduct of a third party using Customer’s access credentials.

## Conditions

The obligations under this Section are conditioned on (i) the Party against whom a third party claim is brought timely notifying the other Party in writing of any such claim, provided however that a Party’s failure to provide or delay in providing such notice shall not relieve a Party of its obligations under this Section except to the extent such failure or delay prejudices the defense; (ii) the Party who is obligated hereunder to defend a claim having the right to fully control the defense of such claim; and (iii) the Party against whom a third party claim is brought reasonably cooperating in the defense of such claim. Any settlement of any claim shall not include a financial or specific performance obligation on or admission of liability by the Party against whom the claim is brought, provided however that Stacksync may settle any claim on a basis requiring Stacksync to substitute for the Service any alternative substantially equivalent non-infringing service. The Party against whom a third party claim is brought may appear, at its own expense, through counsel reasonably acceptable to the Party obligated to defend claims hereunder. Neither Party shall undertake any action in response to any infringement or misappropriation, or alleged infringement or misappropriation that is prejudicial to the other Party’s rights.

## Third Party Indemnification Disclaimer

THE PROVISIONS OF THIS SECTION STATE THE SOLE, EXCLUSIVE AND ENTIRE LIABILITY OF A PARTY TO THE OTHER PARTY, AND IS THE OTHER PARTY’S SOLE REMEDY, WITH RESPECT TO THIRD PARTY CLAIMS COVERED HEREUNDER AND TO THE INFRINGEMENT OR MISAPPROPRIATION OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS.

## Translation Interpretation

These Terms and Conditions may have been translated if We have made them available to You on our Service. You agree that the original English text shall prevail in the case of a dispute.

## Changes to These Terms and Conditions

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

By continuing to access or use Our Service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the Service.

## Attached documentation

All other documents under this legal section such as, but not exhaustively, the Privacy Notice, Service Consumption Tables, Acceptable Use Policy, and all other documents are also agreed via the acceptance of this Terms of Service and Conditions also referred to as "TC" (this document itself). The division of the text in several document pages is for visual and layout purposes only, but all belong to the same conditions to use the Stacksync service.

## Contact Us

If you have any questions about these Terms and Conditions, You can contact us by email at [hello@stacksync.com](mailto:hello@stacksync.com).

# EU Data Protection

Source: https://docs.stacksync.com/security-and-other-resources/security/eu-data-protection

Updated January 10, 2023

Stacksync prioritizes customer trust. We know that the safekeeping of customer data is critically important to our customers’ values and operations. That is why we keep it private and safe.

Stacksync helps customers maintain control of privacy and data security in multiple ways:

* Data Security: Stacksync complies with high security standards, such as encryption of data in transit and at rest, focus on latest regulations, and a support team that is on-call when you need it.
* Disclosure of Customer Data: Stacksync only discloses customer data to third parties where disclosure is necessary to provide the services or as required to respond to lawful requests from public authorities.
* Trust: Stacksync has developed security protections and control processes to help our customers ensure a secure environment for their information. Stacksync adheres to high industry standards.
* Access Management: Stacksync provides an advanced set of access and encryption features to help customers effectively protect their information. We do not access or use customer's data for any purpose other than providing, maintaining and improving the Stacksync services and as otherwise required by law.

## What is Customer Data?

**Customer Data is any information, including personal data, which is replicated via the Stacksync services, by, or on behalf of, our customers and their end-users.**

## Who owns control of the Customer Data?

From a privacy perspective, the customer is the controller of Customer Data, and Stacksync is a processor. This means that throughout the time that a customer subscribes to services with Stacksync, the customer retains ownership of and control over Customer Data in its account.

## Who are Stacksync’s sub-processors?

Stacksync maintains an up-to-date list of the names and locations of all sub-processors (including members of the Stacksync subsidiaries and third parties) used for hosting or other processing of Customer Data, which can be found in our Stacksync Subprocessors documentation. The list may also be obtained by contacting [security@stacksync.com](mailto:security@stacksync.com).

## How does Stacksync process Customer Data?

Stacksync replicates data from Customer databases and cloud sources, processes and loads it into the Customer’s destination. This can also be done in a bidirectional manner, from and to connected applications (“apps”) also named “Services” or “External Platforms”.

To learn more about our data handling and retention periods, see our technical documentation.

## What steps does Stacksync take to secure Service Data?

Stacksync prioritizes data security and combines enterprise-class security features with comprehensive audits of our applications, systems, and networks to ensure customer and business data is always protected.

## Where will Customer Data be stored?

Stacksync runs data connectors on servers in various locations such as in the United States (US), Canada, European Union (EU), United Kingdom (UK), Australia, and Singapore (non-exhaustive list). When customers connect an app, they select the region to be used for the processing and storage of the encrypted data. If customers configure their connectors to use our EU servers, their data will not leave the EU during processing including connectors that sync webhooks and event data. See our Stacksync Data Residency documentation for details. Customer Data is cached on Stacksync servers while operations are running, and is purged from Stacksync's system as soon as it is deleted in the connected app. See our Data Retention documentation for details.

## How does Stacksync respond to Information Requests?

**Stacksync recognizes that privacy and data security issues are top priorities for customers. Stacksync does not disclose Customer Data except as necessary to provide its services to its customers and comply with the law as detailed in our Privacy Policy.**

## GDPR (General Data Protection Regulation)

Stacksync has a strong commitment to privacy, security, compliance and transparency. This includes supporting our customers’ compliance with EU data protection requirements, including those set out in the General Data Protection Regulation (“GDPR”).

If a Stacksync customer collects, transmits, hosts or analyzes personal data of EU citizens, GDPR requires the company to comply with specific technical and organizational requirement. Stacksync does not persistently store Customer Data but we nevertheless assist customers to meet their obligations to:

* Respond to requests from data subjects to correct, amend or delete personal data;
* Report personal data breaches to relevant supervisory authorities and data subjects in accordance with GDPR time frames;
* Demonstrate compliance with the GDPR as pertaining to Stacksync’s services.

## How does the GDPR apply to customers?

Stacksync customers that collect and store personal data are considered data controllers under the GDPR. Data controllers bear the primary responsibility for ensuring that their processing of personal data is compliant with relevant EU data protection law, including the GDPR.

## What implications does GDPR have for organizations processing the personal data of EU citizens?

One of the key aspects of the GDPR is that it creates consistency across EU member states on how personal data can be processed, used, and exchanged securely. Organizations need to demonstrate the security of the data they are processing and their compliance with GDPR on a continual basis, by implementing and regularly reviewing robust technical and organizational measures, as well as compliance policies.

## How has Stacksync been preparing for the GDPR?

Stacksync’s Services are designed with privacy and security at its core. It is therefore GDPR-native in a sense. Additionally, our privacy team is continuing its review of Stacksync’s current product features and practices (including adding features such as column exclusion and column hashing) to ensure we support our customers with their GDPR compliance requirements.

## Which Stacksync services and features can support customers' compliance with the GDPR?

All Stacksync services are GDPR compliant, so customers can use any available Stacksync service and remain GDPR compliant.

***

### Questions? <a href="#questions" id="questions" />

We're always happy to help with any other questions you might have! Send us an email at [privacy@stacksync.com](mailto:privacy@stacksync.com).

# Overview - Security

> Stacksync is committed to security and focused on keeping you and your data safe.

Source: https://docs.stacksync.com/security-and-other-resources/security/overview-security

Updated November 13, 2026

Stacksync adheres to industry-leading standards while connecting, replicating, and loading data from all of your data sources.

Contact [<mark>security@stacksync.com</mark>](mailto:security@stacksync.com) if you have any questions or comments.

***

## TL;DR

Stacksync does not store any customer data, data is only processed at Stacksync but never persisted. Even during transit, all data is encrypted with AES encryption (military-grade protocol). Only the credentials to access the client's external platform instance or database, and some minimum metadata about the tables and columns synced are stored (not all columns, only the ones that are selected to be synced). The metadata is stored in a custom Stacksync format, which removes most of the attributes of the tables and columns, keeping only the name of the column (or identifier) and datatype.

All data and credentials are AES encrypted with regularly rotating keys in a fully autonomous way, such that no one can access it in production. Stacksync stands at the top standard in terms of security and privacy.

Stacksync lets you [choose the region](/two-way-sync/connectors/setup-options/choose-data-processing-region) where your data is processed. This enables for maximum compliance and system performance (due to proximity with client’s data sources).

***

## Detailed security policies

### Web portal connectivity

* All connections to Stacksync's web portal are encrypted by default using industry-standard cryptographic protocols (TLS 1.2+).
* Any attempt to connect over an unencrypted channel (HTTP) is redirected to an encrypted channel (HTTPS).
* To take advantage of HTTPS, your browser must support encryption protection (all versions of Google Chrome, Firefox, and Safari).

***

### Role-Based Access Control (RBAC)

Users accessing the Stacksync User Interface (UI) for a given workspace are subject to Role-Based Access Control (RBAC). These are the different roles. Below is a top-level description for every role:

* **Owner** (there is exactly one Owner per workspace). The Owner has all the permission that the Editors have, but they are also able and responsible for managing the billing settings for the workspace.
* **Editor** (there can be zero or many Editors per workspace). Editors can view and edit most resources in the workspace.
* **Viewer** (there can be zero or many Viewers per workspace). Viewers can view most workspace resources but cannot edit anything in the workspace.

Some resources such as, for example, *Connections*, *API proxy services* or *Schedules jobs* have the option to be shared with other members of the workspace. Depending on the resource type and if the collaboration with other members of the workspace is deactivated, the resource will be non-editable for all users other than its resource creator and in certain cases even non-visible. This offers higher security levels for some workspace resources.

RBAC is workspace-specific. Users can have different roles in different workspaces. A User can have only one role per workspace.

***

### Connectors

* Connections to customers' database sources and destinations are SSL encrypted by default.
* Stacksync can support multiple connectivity channels.
* Connections to customers' software-as-a-service (SaaS) tool sources and destinations are encrypted through HTTPS.

***

### Permissions

* Databases and API cloud applications - Stacksync requires READ and WRITE permissions.
* Connected Applications - Stacksync requires the READ and WRITE permission. This permission allows Stacksync to CREATE a schema within your destination, CREATE tables within that schema, and WRITE to those tables.

***

### Retention of customer data

How long we retain customer data depends on the data type:

| Customer data (in-flight processing)                                       | a few seconds (\< 1 hour in rare conditions, usually) | <p>We purge customer data as soon as it is successfully written to the destination, except in the cases below.</p><p>The operations should last, in most cases, only a couple of milliseconds or seconds since we sync data in real-time but some technical conditions and data volumes might require longer processing, usually up to one hour.<br />-> In-flight data is fully encrypted and is never persisted in plain text. We are compatible with the highest security standard for in-flight data processing.</p>                                                                                                                                                                                                       |
| -------------------------------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Customer data (synced)                                                     | Persistent                                            | In order to detect changes when customers edit data in their app, Stacksync needs to keep a hashed version (fingerprint only) of each synced record. The hashed copy is stored permanently (or until it is deleted in the synced apps) in our regional storage, in the region you have chosen in your Base configuration. The data is hashed using various algorithms so it cannot be reversed in any case. This hashed record image is also stored in our most secure storages. This technical design is fully approved by highest security and privacy standards and regulations.                                                                                                                                            |
| Customer data where sync errors are detected.                              | Varies                                                | Stacksync detects errors when syncing one-way or bidirectionally between apps. These errors most often result from differences in schemas between synced apps. These differences are authorized and are normally handled by Stacksync automatically. However, customers might insert data in one app that cannot be replicated on the other synced app. When this is the case, Stacksync detects the error and stores the encrypted data to display it to the user (for troubleshooting) and then tries to re-sync it. When the error is fixed by the user or is overridden by another valid (i.e., non-error) update, the error is deleted from our storage. The retention period depends on the time taken to fix the issue. |
| Event data from the Webhooks connector and other connectors using webhooks | \< 3 minutes                                          | If you sync webhooks or event data, we do not retain data since data is processed immediately when it is received on your servers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Customer access keys                                                       | Persistent                                            | We retain customer database credentials and SaaS OAuth tokens to securely and continuously extract data and troubleshoot customer issues. These credentials are securely stored in a key management system, which is backed by a hardware security module managed by our cloud provider.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Customer metadata                                                          | Persistent                                            | We retain configuration details and data points (such as table and column names) for each connector so that this information can be displayed in your Stacksync dashboard and be used to process data as well.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

In the following two cases, customer data is purged as soon as it is successfully written to the destination. If the data writing process takes longer than usual, the data is however kept for object lifecycle management:

* Destination outage: If your destination is down, we maintain the data that we've read from your source so we can resume the sync without losing progress once the issue is resolved.
* Schema information for column blocking or hashing purposes: If you choose not to sync a column before syncing your new connector, we queue your data while we read the full schema. We only write the data to the destination that you approve.

***

### Encryption and Hashing

Stacksync uses best-in-class algorithm to encrypt and hash your data.

**Encryption**: AES encryption with autonomous rotating keys. Encryption keys are frequently updated ensuring effective partitioning of data on several keys as well as [perfect forward secrecy](https://en.wikipedia.org/wiki/Forward_secrecy). AES is a military-grade standard.

**Hashing**: various algorithms, often coupled with byte compression.

***

### Solution infrastructure

Access to Stacksync production infrastructure is only allowed via hardened IAM (identity and access management) policies. Further access to the environment and enforcement of least privilege is controlled by IAM policies. Privileged actions are captured in audit logs for review and anomalous behavior detection.

***

### Physical and environmental safeguards

Physical and environmental security is handled entirely by our cloud service providers. Each of our cloud service providers provides an extensive list of compliance and regulatory assurances, including SOC 1/2-3, PCI-DSS, and ISO27001.

#### Google

See the [Google Cloud Platform compliance](https://cloud.google.com/security/compliance/), [security](https://cloud.google.com/security/overview/), and [data center security](https://cloud.google.com/security/overview/whitepaper#state-of-the-art_data_centers) documentation for more detailed information.

#### Amazon

See the [Amazon Web Services compliance](https://aws.amazon.com/compliance/), [security](https://aws.amazon.com/security/), and [data center security](https://aws.amazon.com/compliance/data-center/controls/) documentation for more detailed information.

#### Azure

See the [Azure compliance](https://docs.microsoft.com/en-us/azure/compliance/), [security](https://docs.microsoft.com/en-us/azure/security/), and [data center security](https://docs.microsoft.com/en-us/azure/security/fundamentals/physical-security) documentation for more detailed information.

***

### Stacksync data residency

Stacksync runs data connectors on servers such as in the United States (US), Canada, European Union (EU), United Kingdom (UK), Australia, Singapore (non-exhaustive list). You can select your preferred data processing location when configuring your Base. All connectors configured in a destination run in the destination's designated location. This means that your data will not leave our region-specific servers during processing. For example, if you configure your destination to use our EU servers, your data will not leave the EU during processing or storage. See our Base and Connected Apps documentation to learn how to configure your data processing location.

Stacksync runs services on Google Cloud Platform (GCP), Amazon Web Services (AWS), and Azure. The following table lists regions supported by Stacksync for each service provider:

| GEOGRAPHY | GCP REGIONS                                                                                                           | AWS REGIONS                                               | AZURE REGIONS |
| --------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------- |
| Americas  | <p>us-east1 (South Carolina)\*</p><p>us-west1 (Oregon)</p><p>us-central1 (Iowa)<br />us-east4 (Northern Virginia)</p> | <p>us-east-1 (N. Virginia)\*</p><p>us-west-2 (Oregon)</p> | N/A           |
| EU        | <p>europe-west1 (Belgium)\*</p><p>europe-west3 (Frankfurt, Germany)<br />europe-west6 (Zurich, Switzerland)</p>       | eu-central-1 (Frankfurt)\*                                | N/A           |
| Asia      | asia-southeast1 (Singapore)\*                                                                                         | <p>ap-southeast-1 (Singapore)\*</p><p><br /></p>          | N/A           |

\*NOTE: Default region for a given cloud provider / geography combination.

IMPORTANT: Google Cloud Platform is the default cloud service provider. You can select a different cloud service provider and region if you are on a plan that allows that option.

***

### Your organization permissions

* Only users of your organization registered within Stacksync and Stacksync operations staff have access to your organization's Stacksync dashboard.
* Your organization's Stacksync Dashboard provides visibility into the status of each integration, the aforementioned metadata for each integration, and the ability to pause or delete the integration connection - not organization data.
* Organization administrators can immediately revoke an organization member’s access to a workspace at any time from the Workspace Settings page. Otherwise, Organization administrators can request that Stacksync revoke an organization member's access at any point; these requests will be honored within 24 hours or less.

***

### Company policies

* Stacksync requires that all employees comply with security policies designed to keep any and all customer information safe, and address multiple security compliance standards, rules and regulations.
* Two-factor authentication and strong password controls are required for administrative access to systems.
* Security policies and procedures are documented and reviewed on a regular basis.
* Current and future development follows industry-standard secure coding guidelines, such as those recommended by OWASP.

***

### In the event of a data breach

To date, Stacksync has not experienced a breach in security of any kind. In the event of such an occurrence, Stacksync protocol is such that customers would be made aware as soon as the compromise is confirmed.

***

### Responsible disclosure policy

At Stacksync, we are committed to keeping our systems, data and product(s) secure. Despite the measures we take, security vulnerabilities will always be possible.

If you believe you’ve found a security vulnerability, please send it to us by emailing [security@stacksync.com](mailto:security@stacksync.com). Please include the following details with your report:

* Description of the location and potential impact of the vulnerability.
* A detailed description of the steps required to reproduce the vulnerability (POC scripts, screenshots, and compressed screen captures are all helpful to us).

Please make a good faith effort to avoid privacy violations as well as destruction, interruption or segregation of services and/or data.

We will respond to your report within 5 business days of receipt. If you have followed the above instructions, we will not take any legal action against you regarding the report.

***

### Diagnostic data access

IMPORTANT: Stacksync cannot access your data without your approval.

When working on a support ticket, we may need to access your data to troubleshoot or fix your broken connector or destination. In that case, we will ask you to grant Stacksync access to your data for the next 21 days. You can allow or deny data access. If you grant us data access, you can revoke it at any moment before the 21-day diagnostic period has expired.

See our support documentation for more details.

***

Questions?

We're always happy to help with any other questions you might have! Send us an email at [<mark>security@stacksync.com</mark>](mailto:security@stacksync.com)<mark>.</mark>

# Security Whitepaper

> An overview of Stacksync's commitment to data protection, privacy, and compliance for modern enterprise automation.

Source: https://docs.stacksync.com/security-and-other-resources/security/security-whitepaper

<Embed src="https://drive.google.com/file/d/1ANEh9qLfTy7Sk4y5u8agfz4oRzTEZy7I/preview" title="Google Drive file" />

# Stacksync DORA Addendum

> Digital Operational Resilience Act (DORA) Addendum for subject Customers Using Stacksync ICT Services.

Source: https://docs.stacksync.com/security-and-other-resources/security/stacksync-dora-addendum

Updated September 7th, 2026.

This Digital Operational Resilience Act Addendum ("DORA Addendum") supplements and forms part of the agreement governing the Customer's use of the Stacksync services, including any applicable order form, service consumption table, terms and conditions, data processing addendum, and service level agreement (collectively, the "Agreement").

This DORA Addendum applies where the Customer is subject to Regulation (EU) 2022/2554 on digital operational resilience for the financial sector ("DORA") and uses Stacksync as an ICT third-party service provider within the meaning of DORA.

This DORA Addendum applies only to customers that have notified Stacksync in writing that they are subject to DORA and that have entered into a contractual commitment with Stacksync for a minimum term of twelve (12) months. These conditions are necessary to enable Stacksync to meet its obligations under this DORA Addendum.

Where there is a conflict between this DORA Addendum and another provision of the Agreement, this DORA Addendum will prevail solely to the extent necessary to address the applicable requirements of DORA.

Nothing in this DORA Addendum represents that Stacksync has been designated as a critical ICT third-party service provider pursuant to Article 31 of DORA.

## 1. Definitions

**"Customer"** means the entity identified in the applicable Agreement.

**"Stacksync"** means the Stacksync contracting entity identified in the applicable Agreement.

**"ICT Services"** means the services provided by Stacksync to Customer that constitute ICT services for purposes of DORA.

**"Critical or Important Function"** has the meaning given to that term under DORA.

**"ICT Incident"** means an ICT-related incident affecting the ICT Services within the meaning of DORA.

Capitalized terms not otherwise defined in this DORA Addendum have the meanings given to them in the Agreement or DORA.

Customer will inform Stacksync if Customer determines that any ICT Services support a Critical or Important Function so that the additional requirements applicable to such services can be implemented.

## 2. Description of ICT Services

The functions and ICT Services provided by Stacksync are described in the applicable Order form, Service Consumption Table, product documentation, and other applicable portions of the Agreement.

Depending on Customer's configuration, the ICT Services may include data synchronization, workflow automation, API integration, data processing, connector services, and associated monitoring and support services.

Customer controls the systems connected to Stacksync and the configuration of the relevant synchronization, workflow, or integration.

## 3. Security and Protection of Data

Stacksync will maintain technical and organizational measures designed to protect the **availability, authenticity, integrity and confidentiality** of data processed in connection with the ICT Services.

Stacksync's security controls, including encryption, access control, infrastructure security, monitoring, data retention, secure connectivity, and data residency measures, are described in the Stacksync Security Overview, Security Whitepaper, and Data Processing Addendum.

Stacksync maintains an information security management and assurance program supported by independent security assessments and certifications, including ISO 27001 and SOC 2 Type II.

Stacksync will maintain security measures appropriate to the nature of the ICT Services and the risks associated with their provision.

The current documentation supports these commitments, including TLS 1.2+, AES encryption, hardened IAM, least-privilege access, monitoring, audit logging, vulnerability management, penetration testing and regional processing.

## 4. Processing Locations and Data Residency

Customer may select the available processing region applicable to its Stacksync environment as described in the Stacksync Security Overview. When a Customer selects a processing region, their data is exclusively processed within that processing region. There is no cross-processing between regions, each region is completely self-contained.

Stacksync will process Customer Data in accordance with the processing region selected by Customer, subject to the Agreement and the documented exceptions applicable to the ICT Services.

The locations of Stacksync subprocessors and subcontractors involved in providing the ICT Services are described in Stacksync's Subprocessors documentation or otherwise made available to Customer.

Stacksync will provide Customer with information reasonably necessary to identify the countries or regions in which contracted or subcontracted ICT Services are provided and Customer Data is processed or stored.

Stacksync will notify Customer in advance of a material change to a location applicable to the ICT Services where required by DORA.

Stacksync's current documentation already provides customer-selected regional processing and states that, for example, data configured for EU processing remains within the EU during processing and storage.

## 5. Data Access, Recovery, Return and Deletion

Stacksync generally processes business data transiently as part of synchronization and workflow operations. Applicable retention exceptions, including temporary processing queues, synchronization errors, hashed record fingerprints, credentials and configuration metadata, are described in the Stacksync Security Overview.

To the extent Customer Data remains in Stacksync's possession or control, Stacksync will, upon termination or expiration of the applicable ICT Services, make such Customer Data available for return in a commonly accessible format or delete it in accordance with the Agreement and the Data Processing Addendum.

These obligations also apply, where relevant, in connection with Stacksync's insolvency, resolution, discontinuation of the applicable ICT Services, or termination of the contractual arrangement.

Stacksync's DPA already requires return or destruction of Personal Data following Customer request or termination, subject to limited legal and backup exceptions.

## 6. Service Levels and Monitoring

The service levels applicable to Customer are set out in the applicable Order form, service level agreement, or other applicable portion of the Agreement.

Stacksync will maintain appropriate monitoring of the ICT Services and will make relevant service status information available to Customer.

Customer can publicly access Stacksync product's status at the following page: [https://status.stacksync.com/](https://status.stacksync.com/) as well as contacting Stacksync via the [contact page](https://www.stacksync.com/contact).

Where ICT Services support a Critical or Important Function, applicable service levels will include quantitative or qualitative performance targets sufficient for Customer to monitor the ICT Services and identify failures to meet agreed service levels.

Stacksync will take appropriate corrective action without undue delay where agreed service levels are not met.

## 7. ICT Incidents and Customer Assistance

Stacksync will maintain processes designed to detect, manage, investigate and respond to ICT Incidents affecting the ICT Services.

Stacksync will notify Customer without undue delay after becoming aware of an ICT Incident or other development that has a material impact on Stacksync's ability to provide the applicable ICT Services in accordance with agreed service levels.

Stacksync will provide Customer with information reasonably available to Stacksync and reasonably necessary for Customer to assess the incident and satisfy applicable regulatory reporting obligations.

Stacksync will provide reasonable assistance in connection with an ICT Incident related to the ICT Services.

Standard incident-response assistance is provided without additional charge. If Customer requests extraordinary professional services beyond Stacksync's standard incident-response obligations, any additional charges must be agreed by Customer in advance.

Stacksync's existing DPA already requires notification without undue delay of qualifying personal-data breaches and ongoing cooperation regarding remediation and reporting. This DORA provision intentionally expands that concept to material **ICT incidents**, not only personal-data breaches.

## 8. Business Continuity and Operational Resilience

Stacksync will maintain appropriate business continuity, disaster recovery and ICT response and recovery measures proportionate to the ICT Services and associated risks.

Stacksync will periodically test relevant contingency and recovery measures and maintain appropriate ICT security measures, tools and policies designed to support the secure and resilient provision of the ICT Services.

For ICT Services supporting Critical or Important Functions, Stacksync will provide reasonable information regarding such measures and testing upon Customer's request, subject to appropriate confidentiality and security restrictions.

## 9. Regulatory Cooperation

Stacksync will cooperate with competent authorities, resolution authorities and persons appointed by such authorities to the extent required under DORA in connection with Customer's use of the ICT Services.

Stacksync will provide reasonable information and assistance necessary to permit Customer to comply with lawful supervisory requirements relating to the ICT Services.

Nothing in the Agreement will be interpreted to prevent the effective supervision of Customer by its competent authorities.

## 10. Audit, Access and Inspection Rights

For ICT Services supporting a Critical or Important Function, Stacksync will grant Customer, an auditor appointed by Customer, and the applicable competent or resolution authorities the rights of access, inspection and audit required under DORA.

Such rights include access to relevant information, systems, premises, policies, procedures and documentation relating to the ICT Services, as applicable, and the right to take copies of relevant documentation where required by DORA.

Stacksync will fully cooperate with inspections and audits conducted pursuant to DORA.

Where independent third-party assurance reports, certifications, SOC reports, ISO certifications, penetration-testing reports or equivalent evidence provide sufficient assurance, the parties may agree to use such evidence as an alternative assurance mechanism. Such alternative assurance mechanisms will not prevent Customer or a competent authority from exercising audit, inspection or access rights where those rights must be exercised under DORA.

Audits and inspections will be coordinated in a manner designed to protect the confidentiality and security of Stacksync's systems and other customers' information, provided that such measures do not prevent or materially impede the effective exercise of rights required under DORA.

## 11. Threat-Led Penetration Testing

Where Customer is required under DORA to conduct threat-led penetration testing ("TLPT") involving ICT Services provided by Stacksync, Stacksync will participate and cooperate as reasonably required under Articles 26, 27 and 30 of DORA.

The parties will coordinate the scope, timing, security safeguards and operational requirements applicable to such testing so that the exercise does not unnecessarily create risks to Stacksync, Customer or other Stacksync customers.

## 12. ICT Security Awareness and Training

Where reasonably appropriate to the ICT Services and Customer's obligations under DORA, Stacksync will make relevant personnel available to participate in Customer's ICT security awareness or digital operational resilience training relating specifically to the ICT Services.

Such participation will be reasonably scoped and scheduled between the parties.

## 13. Subcontractors

Customer authorizes Stacksync to use subprocessors and subcontractors in connection with the ICT Services subject to this Addendum and the Agreement.

Stacksync's current subprocessors are identified in its Subprocessors documentation.

Stacksync remains responsible for performance of its contractual obligations where elements of the ICT Services are provided through subcontractors.

Where a subcontractor provides ICT Services supporting a Critical or Important Function or a material part thereof, Stacksync will, as applicable:

1. monitor the subcontracted services and the subcontractor's performance;
2. conduct appropriate due diligence and risk assessment regarding relevant subcontractors;
3. assess relevant risks associated with the subcontractor's location and the location from which ICT Services are provided;
4. maintain information regarding applicable data processing and storage locations;
5. require appropriate information security, monitoring, reporting and business-continuity obligations;
6. take reasonable measures to preserve continuity of the ICT Services throughout the subcontracting chain;
7. maintain appropriate oversight over material subcontracting arrangements;
8. ensure that applicable regulatory cooperation and audit requirements are addressed throughout the relevant subcontracting chain as required by DORA; and
9. remain accountable to Customer for the contracted ICT Services.

These requirements reflect the additional subcontracting rules now contained in Commission Delegated Regulation (EU) 2025/532.

## 14. Material Changes to Subcontracting

For subcontracting arrangements supporting a Critical or Important Function or a material part thereof, Stacksync will provide Customer with reasonable advance notice of a proposed material change.

Unless otherwise agreed with Customer, Stacksync will provide at least **30 days' prior notice** before implementing such a material change.

Customer may object during the notice period on reasonable grounds related to its obligations or risk tolerance under DORA.

Stacksync will reasonably cooperate with Customer to address such concerns before implementing the material change.

Where Customer objects and the parties cannot reasonably resolve the matter, Customer may exercise any termination rights required under DORA or Commission Delegated Regulation (EU) 2025/532.

## 15. Termination Rights

In addition to termination rights otherwise available under the Agreement, Customer may terminate the affected ICT Services where required under Article 28(7) of DORA, including where:

1. Stacksync materially breaches applicable laws, regulations or contractual obligations relevant to the ICT Services;
2. circumstances arise that materially impair Stacksync's ability to perform the contracted ICT Services;
3. material weaknesses in Stacksync's ICT risk management create an unacceptable risk to the availability, authenticity, integrity or confidentiality of Customer Data; or
4. circumstances relating to the contractual arrangement prevent Customer's competent authority from effectively supervising Customer.

For ICT Services supporting Critical or Important Functions, Customer will also have applicable termination rights arising from material subcontracting changes under Commission Delegated Regulation (EU) 2025/532.

## 16. Exit and Transition Assistance

For ICT Services supporting a Critical or Important Function, Stacksync will reasonably cooperate with Customer's documented exit strategy.

Following termination, Stacksync will provide an adequate transition period appropriate to the nature and complexity of the ICT Services to allow Customer to migrate to another provider or an internal solution while reducing avoidable disruption.

During an agreed transition period, Stacksync will continue to provide the applicable ICT Services subject to Customer's continued compliance with its payment and other applicable contractual obligations.

Stacksync will reasonably assist Customer with the recovery, export, return or deletion of Customer Data and with other information reasonably required to transition the affected ICT Services.

Any transition services materially beyond the normal scope of the ICT Services will be subject to fees agreed by the parties in advance.

## 17. DORA Register of Information

Upon reasonable request, Stacksync will provide information in its possession that Customer reasonably requires to maintain its register of information concerning ICT third-party contractual arrangements under DORA.

Such information may include, as applicable:

* Stacksync contracting entity information;
* description of the ICT Services;
* applicable processing and service locations;
* applicable subcontractors;
* data-processing arrangements;
* service-level information; and
* other information reasonably required under applicable DORA reporting templates.

## 18. Regulatory Changes

The parties will cooperate in good faith to amend this DORA Addendum where reasonably necessary to address material changes in DORA, applicable regulatory technical standards, implementing technical standards, binding supervisory requirements, or other applicable requirements concerning the ICT Services.

## 19. Continued Responsibility of Customer

Customer remains responsible for determining the regulatory classification and criticality of its functions and for satisfying obligations imposed directly upon Customer under DORA.

Stacksync's obligations under this DORA Addendum are intended to support Customer's compliance as an ICT third-party service provider and do not transfer Customer's regulatory responsibilities to Stacksync.

# Subprocessors

Source: https://docs.stacksync.com/security-and-other-resources/security/subprocessors

Updated November 11, 2026

Stacksync Inc. (“Stacksync”) uses certain subprocessors to assist it in providing the Stacksync Services as described in the Terms of Service (TOS). Defined terms used herein shall have the same meaning as defined in the TOS.

## What is a Subprocessor?

A subprocessor is a third-party data processor engaged by Stacksync, including entities from within the Stacksync Group, who has or potentially will have access to or process personal data on behalf of a Customer. Stacksync engages different types of subprocessors to perform various functions as explained in the tables below. Stacksync refers to third parties that do not have access to or process personal data on behalf of a Customer, but who are otherwise used to provide the Services, as "subcontractors" and not "subprocessors".

## Pipeline Data Subprocessors

**These are subprocessors who have access to Stacksync production systems and data by virtue of the services they provide.**

| NAME             | NATURE OF PROCESSING                                                                        | TERRITORY(IES)       |
| ---------------- | ------------------------------------------------------------------------------------------- | -------------------- |
| Amazon, Inc.     | AWS hosting environment for Supplier services                                               | Global (all regions) |
| Google, Inc.     | <p>Google Cloud hosting environment for Supplier services.<br />Google workspace suite.</p> | Global (all regions) |
| Ubicloud         | Ubicloud hosting environment for Supplier services                                          | Global (all regions) |
| Microsoft, Inc.  | Azure hosting environment for Supplier services                                             | Global (all regions) |
| Okta, Inc.       | Authentication and authorization for Stacksync Websites (via Auth0)                         | Global               |
| OVH Groupe SAS   | OVH hosting environment for Supplier services                                               | Global               |
| Cloudflare, Inc. | Networking and cloud compute services                                                       | Global               |
| Orderful, Inc.   | Electronic data interchange (EDI) platform provider                                         | United States        |

## Affiliates

Stacksync maintains affiliate companies in countries where our full-time employees work. Each of these affiliate companies comprises members of the Stacksync team who contribute from outside of the US and Switzerland.

| NAME | NATURE OF PROCESSING | TERRITORY(IES) |
| ---- | -------------------- | -------------- |
| Pebl | Web Consultants      | Germany        |

## AI inference providers

| NAME                      | NATURE OF PROCESSING               | TERRITORY(IES)       |
| ------------------------- | ---------------------------------- | -------------------- |
| OpenAI                    | AI inference provider              | Global (all regions) |
| Anthropic                 | AI inference provider              | Global (all regions) |
| OpenRouter                | AI inference provider              | Global (all regions) |
| TypeSafe                  | AI inference provider              | Global (all regions) |
| Google, Inc. (Gemini API) | AI inference provider              | Global (all regions) |
| Perplexity AI, Inc.       | AI inference provider (web search) | Global (all regions) |

***

## Questions?

We're always happy to help with any other questions you might have! Send us an email at [hello@stacksync.com](mailto:hello@stacksync.com)

# Airtable API Proxy Overview

> Overview of the Airtable API proxy and how Stacksync enables secure, simplified access to Airtable data.

Source: https://docs.stacksync.com/two-way-sync/api-proxy/airtable

## TL;DR

This API proxy lets you do any operation on your Airtable data but removes from you all the complexity of setting up and using the classic Airtable API 🤩

No need to worry about setting up a connected app, rotating the security token, using the correct API endpoints, record formatting and more! Everything is managed for you 💆‍♀️

**Operations:**

* Pass Through

### Regions 🌍

Depending on your region, you can use:

* 🇪🇺 `https://eu.api-proxy.stacksync.com/`
* 🇺🇸 `https://us.api-proxy.stacksync.com/`

### Pass Through

Make a request to any Airtable API which supports OAuth by providing the URL, Request Method and the Request Body.

A request will be sent to the URL provided using the request method and request body. The request body can be empty.

bash

```bash
curl -X [GET | POST | PUT | PATCH | DELETE] \
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

#### Example request:

#### Read Records from a Table

bash

```bash
curl -X GET "https://us.api-proxy.stacksync.com/v1/proxy/https://api.airtable.com/v0/<baseId>/<tableId>?maxRecords=5&view=Grid%20view" \
-H "Authorization: Bearer <token>"
```

#### Example response:

json

```json
{
  "records": [
    {
      "id": "recXXXXXXXXXXXXXX",
      "createdTime": "2023-07-28T15:01:14.000Z",
      "fields": {
        "Name": "Sample Record 1",
        "Status": "In Progress",
        "Email": "sample1@example.com",
        "Amount": 1000,
        "Due Date": "2024-07-31",
        "Tags": ["Important", "Client"]
      }
    },
    {
      "id": "recYYYYYYYYYYYYYY",
      "createdTime": "2024-07-28T15:19:21.000Z",
      "fields": {
        "Name": "Sample Record 2",
        "Status": "Completed",
        "Email": "sample2@example.com",
        "Amount": 4000,
        "Due Date": "2024-07-25",
        "Tags": ["Important", "Partner"]
      }
    }
  ],
  "offset": "itrXXXXXXXXXXXXXX"
}
```

# Attio

> The simplest Attio API you have ever seen!

Source: https://docs.stacksync.com/two-way-sync/api-proxy/attio

## TL;DR

This API proxy lets you do any operation on your Attio data but removes from you all the complexity of setting up and using the classic Attio API 🤩

**No need to worry** about ~~setting up a connected app~~, ~~rotating the security token~~, ~~using bulk API or not~~, ~~record formatting~~ and more! Everything is managed for you 💆‍♀️

Operations:

* [Pass Through](#pass-through)

### Regions 🌍

Depending on your region, you can use

🇪🇺 `https://eu.api-proxy.stacksync.com/`

🇺🇸 `https://us.api-proxy.stacksync.com/`

## Pass Through

Make a request to any Attio API which supports OAuth by providing the URL, Request Method and the Request Body.

A request will be sent to the URL provided using the request method and request body. The request body can be empty.

```
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Get Attio Objects

<Tabs items="[&#x22;cURL&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X GET https://eu.api-proxy.stacksync.com/v1/proxy/https://api.attio.com/v2/objects \
            -H "Authorization: Bearer your_api_proxy_service_token" \
    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"data": [
		{
			"api_slug": "subscriptions",
			"created_at": "2024-07-27T16:08:23.773000000Z",
			"id": {
				"object_id": "fdfcc8f8-8c1e-4ad0-b20e-1b4930b8a1cb",
				"workspace_id": "0d9fb69e-fa23-46c7-8816-8fa0d32ee4e2"
			},
			"plural_noun": "Subscriptions",
			"singular_noun": "Subscription"
		},
		{
			"api_slug": "people",
			"created_at": "2024-07-22T17:54:44.560000000Z",
			"id": {
				"object_id": "5bef7430-3f17-40d7-b88c-02bcbcb658ca",
				"workspace_id": "25d9671a-b1f1-48d8-81a2-6a214e8b04bd"
			},
			"plural_noun": "People",
			"singular_noun": "Person"
		}
}
```

# HubSpot

> The simplest HubSpot API you have ever seen!

Source: https://docs.stacksync.com/two-way-sync/api-proxy/hubspot

## TL;DR

This API proxy lets you do any operation on your HubSpot data but removes from you all the complexity of setting up and using the classic HubSpot API 🤩

**No need to worry** about ~~setting up a connected app~~, ~~rotating the security token~~, ~~using bulk API or not~~, ~~record formatting~~ and more! Everything is managed for you 💆‍♀️

Operations:

* [Get Records](#get)
* [Create a custom field into a HubSpot object](#add-a-custom-field-to-a-hubspot-object)
* [Pass Through](#pass-through)

### Regions 🌍

Depending on your region, you can use

🇪🇺 `https://eu.api-proxy.stacksync.com/`

🇺🇸 `https://us.api-proxy.stacksync.com/`

## Get

Get the content of up to 100 records. The number of records returned matches the number of `Id`s passed in the request.

You can pass the optional `fields` parameter (list of field names that you want to be returned for each record). If the list of `fields` is not passed or is empty `"fields":[]`, all fields are returned.

<Callout type="info">
  Currently the following HubSpot objects are supported:<br />

  * Companies
  * Contacts
  * Deals
  * Feedback submissions
  * Line items
  * Products
  * Quotes
  * Discounts
  * Fees
  * Taxes
  * Tickets
  * Goals
  * Custom objects

  The following objects will be added in the future:

  * Owners
  * Associations
  * Audit Logs
  * Pipelines
  * Stages
</Callout>

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/get/Contact \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"ids": ["227400", "264150"], "fields": ["firstname"]}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Contact'

    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/get/{object_name}"

    data ={
    "data":
          {
             "ids" : ["227400", "227386"],
             "fields" : ["firstname"]
          }
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const object_name = 'Contact';
    const url = `https://eu.api-proxy.stacksync.cloud/v1/object/get/${object_name}`;

    const data ={
    data:
        {
          ids: ["227386", "227400"],
          fields: ["firstname"]
        }
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"archived": false,
			"createdAt": "2024-01-31T13:17:43.128Z",
			"id": "227400",
			"properties": {
				"createdate": "2024-01-31T13:17:43.128Z",
				"firstname": null,
				"hs_object_id": "227400",
				"lastmodifieddate": "2024-02-02T15:05:54.183Z"
			},
			"updatedAt": "2024-02-02T15:05:54.183Z"
		},
		{
			"archived": false,
			"createdAt": "2024-01-31T13:17:43.128Z",
			"id": "227386",
			"properties": {
				"createdate": "2024-01-31T13:17:43.128Z",
				"firstname": null,
				"hs_object_id": "227386",
				"lastmodifieddate": "2024-01-31T13:28:37.746Z"
			},
			"updatedAt": "2024-01-31T13:28:37.746Z"
		}
	]
}
```

## Add a custom field to a HubSpot object

Add a custom field to a HubSpot object. Standard and custom objects are supported.

The required request body parameters are:

* `name` The internal property name, which must be used when referencing the property via the API.
* `label` A human-readable property label that will be shown in HubSpot.
* `type` The data type of the property.
* `fieldType` Controls how the property appears in HubSpot.
* `groupName` The name of the property group the property belongs to.

Each `type` has one or more valid `fieldTypes`, using incompatible `type` and `fieldType` will not work. The full list of `types` and `fieldTypes` and valid combinations can be found [here](https://developers.hubspot.com/docs/api/crm/properties#property-type-and-fieldtype-values).

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"name": "field_name", "type": "field_type", "label": "field_label", "fieldType": "field_type", "groupName": "group_name"}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    headers = {
        'Authorization': 'Bearer your_api_proxy_service_token',
        # Already added when you pass json=
        # 'Content-Type': 'application/json',
    }

    json_data = {
        'data': {
            'name': 'field_name',
            'type': 'field_type',
            'label': 'field_label'
        },
    }

    response = requests.post(
        'https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/{object_name}',
        headers=headers,
        json=json_data,
    )
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    fetch('https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/{object_name}'
      method: 'POST',
      headers: {
        'Authorization': 'Bearer your_api_proxy_service_token',
        'Content-Type': 'application/json'
      },
      // body: '{"data": {"field_name": "field_name", "field_type": "field_type"}}',
      body: JSON.stringify({
        'data': {
          'field_name': 'field_name',
          'field_type': 'field_type'
        }
      })
    });
    ```
  </Tab>
</Tabs>

Example Response Body:

```json
{
    "data": {
	"archived": false,
	"calculated": false,
	"createdAt": "2024-01-11T23:43:00.066Z",
	"createdUserId": "46192612",
	"description": "",
	"displayOrder": -1,
	"externalOptions": false,
	"fieldType": "text",
	"formField": false,
	"groupName": "companyinformation",
	"hasUniqueValue": false,
	"hidden": false,
	"label": "StacksyncID",
	"modificationMetadata": {
		"archivable": true,
		"readOnlyDefinition": false,
		"readOnlyValue": false
	},
	"name": "enumeration",
	"options": [],
	"type": "string",
	"updatedAt": "2024-01-11T23:43:00.066Z",
	"updatedUserId": "46192612"
   },
   "message": "Custom field added successfully"
}
```

Example requests for different field types for the HubSpot Company object:

<Tabs items="[&#x22;String&#x22;,&#x22;Enumeration&#x22;]">
  <Tab value="String">
    ```
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/company \
            -H "Authorization: Bearer *****" \
            -H "Content-Type: application/json" \
            -d '{
                    "data": {
                        "name": "custom_field",
                        "label": "Custom Field", 
                        "type": "string",  
                        "fieldType": "text",
                        "groupName": "companyinformation"
                    }
                }'
    ```
  </Tab>

  <Tab value="Enumeration">
    For enumeration, the options property is required. The options property is a list of objects with the following properties:

    * `label` (required) The display name of the option.
    * `value` (required) The value of the option which will be used internally.
    * `description` (optional) A text description for the option.
    * `hidden` (optional) If true, the property won't be visible and can't be used in forms.

    ```
    data {
    	...
    	"type": "enumeration",
    	"options": [
    	    {
    		"label": "Option A",
    		"description": "Choice number one",
    		"value": "A",
    		"hidden": false
    	    },
    	    {
    	        "label": "Option B",
    		"description": "Choice number two",
    		"value": "B",
    		"hidden": false
    	    }
    	]
    	...
    }
    ```

    Example of full cURL request:

    ```
    curl -X POST 

    https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/company \
            -H "Authorization: Bearer ******" \
            -H "Content-Type: application/json" \
            -d '{
    	"data": {
    		"name": "custom_field",
    		"label": "Custom Field",
    		"type": "enumeration",
    		"fieldType": "select",
    		"groupName": "companyinformation",
    		"options": [
    			{
    			    "label": "Option A",
    			    "description": "Choice number one",
    			    "value": "A",
    			    "displayOrder": 1,
    			    "hidden": false
    			},
    			{
    			    "label": "Option B",
    			    "description": "Choice number two",
    			    "value": "B",
    			    "displayOrder": 2,
    			    "hidden": false
    			}
    		]
    		}
    	}
    }'
    ```
  </Tab>
</Tabs>

## Pass Through

Make a request to any HubSpot API which supports OAuth by providing the URL, Request Method and the Request Body.

<Callout type="info">
  HubSpot indicates whether an endpoint can be used with an OAuth token in their API documentation: [https://developers.hubspot.com/docs/api/overview](https://developers.hubspot.com/docs/api/overview)

  <img src="/https/docs.stacksync.com/images/api-proxy/hubspot-api-endpoint-oauth-badge.webp" alt="HubSpot API docs for POST /crm/v3/objects/companies/batch/archive, with the &#x22;OAuth&#x22; badge highlighted next to &#x22;Private apps&#x22;." width="922" height="100" loading="lazy" decoding="async" />
</Callout>

A request will be sent to the URL provided using the request method and request body. The request body can be empty.

```
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Create a new HubSpot Contact

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/objects/contacts/batch/create \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"inputs": [{"properties":{	"email": "john@company.com"}}]}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.cloud/v1/proxy/https://api.hubapi.com/crm/v3/objects/contacts/batch/create"

    api_proxy_service_token = "your_api_proxy_service_token"

    data ={
    	"inputs": [
    		{
    			"properties": {
    				"email": "john@company.com"
    			}
    		}
    	]
    }

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.postt(url, json=data,, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = `https://eu.api-proxy.stacksync.cloud/v1/proxy/https://api.hubapi.com/crm/v3/objects/contacts/batch/create`;

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const data ={
    	"inputs": [
    		{
    			"properties": {
    				"email": "john@company.com"
    			}
    		}
    	]
    }

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"completedAt": "2024-02-12T02:18:24.961Z",
	"results": [
		{
			"archived": false,
			"createdAt": "2024-02-12T02:18:24.748Z",
			"id": "441751",
			"properties": {
				"createdate": "2024-02-12T02:18:24.748Z",
				"email": "john@company.com",
				"hs_all_contact_vids": "441751",
				"hs_email_domain": "company.com",
				"hs_is_contact": "true",
				"hs_is_unworked": "true",
				"hs_lifecyclestage_lead_date": "2024-02-12T02:18:24.748Z",
				"hs_marketable_status": "false",
				"hs_marketable_until_renewal": "false",
				"hs_object_id": "441751",
				"hs_object_source": "INTEGRATION",
				"hs_object_source_id": "1749998",
				"hs_object_source_label": "INTEGRATION",
				"hs_pipeline": "contacts-lifecycle-pipeline",
				"lastmodifieddate": "2024-02-12T02:18:24.748Z",
				"lifecyclestage": "lead"
			},
			"updatedAt": "2024-02-12T02:18:24.748Z"
		}
	],
	"startedAt": "2024-02-12T02:18:24.720Z",
	"status": "COMPLETE"
}
```

#### Get the schema / columns of a standard Hubspot object

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```
    curl -X GET 
    https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/properties/<object_name> \
    -H "Authorization: Bearer your_api_proxy_service_token" \
    ```
  </Tab>

  <Tab value="Python">
    ```
    import requests

    # Parameters
    url = "https://eu.api-proxy.stacksync.cloud/v1/proxy/https://api.hubapi.com/crm/v3/properties/<object_name>"
    headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    }

    # Send GET request
    response = requests.get(url, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```
    // Parameters
    const url = "https://eu.api-proxy.stacksync.cloud/v1/proxy/https://api.hubapi.com/crm/v3/properties/<object_name>";
    const headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    };

    // Send GET request
    fetch(url, { method: 'GET', headers: headers })
        .then(response => response.json())
        .then(data => console.log(data))
        .catch(error => console.error('Error:', error));

    ```
  </Tab>
</Tabs>

#### Get the schema / columns of custom Hubspot objects

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```
    curl -X GET 
    https://eu.api-proxy.stacksync.com/v1/proxy/https://api.hubapi.com/crm/v3/schemas \
    -H "Authorization: Bearer your_api_proxy_service_token"
    ```
  </Tab>

  <Tab value="Python">
    ```
    import requests

    # Set up the URL and headers
    url = "https://eu.api-proxy.stacksync.cloud/v1/proxy/https://api.hubapi.com/crm/v3/schemas"
    headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    }

    # Execute the GET request
    response = requests.get(url, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```
    // Define the URL and headers
    const url = "https://eu.api-proxy.stacksync.cloud/v1/proxy/https://api.hubapi.com/crm/v3/schemas";
    const headers = {
        "Authorization": "Bearer your_api_proxy_service_token"
    };

    // Perform the GET request
    fetch(url, { method: 'GET', headers: headers })
        .then(response => response.json())
        .then(data => console.log(data))
        .catch(error => console.error('Error:', error));

    ```
  </Tab>
</Tabs>

# Pipedrive

> The simplest Pipedrive API you have ever seen!

Source: https://docs.stacksync.com/two-way-sync/api-proxy/pipedrive

## TL;DR

This API proxy lets you do any operation on your Pipedrive data but removes from you all the complexity of setting up and using the classic Pipedrive API 🤩

**No need to worry** about ~~setting up a connected app~~, ~~rotating the security token~~, ~~using bulk API or not~~, ~~record formatting~~ and more! Everything is managed for you 💆‍♀️

Operations:

* [Pass Through](#pass-through)

### Regions 🌍

Depending on your region, you can use

🇪🇺 `https://eu.api-proxy.stacksync.com/`

🇺🇸 `https://us.api-proxy.stacksync.com/`

## Pass Through

Make a request to any Pipedrive API which supports OAuth by providing the URL, Request Method and the Request Body.

A request will be sent to the URL provided using the request method and request body. The request body can be empty.

```
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Read Deal Object Data

<Tabs items="[&#x22;cURL&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X GET https://eu.api-proxy.stacksync.com/v1/proxy/https://api.pipedrive.com/api/v2/deals \
            -H "Authorization: Bearer your_api_proxy_service_token" \
    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"additional_data": {
		"next_cursor": null
	},
	"data": [
		{
			"add_time": "2023-07-28T15:01:14Z",
			"channel": null,
			"channel_id": "1",
			"close_time": null,
			"creator_user_id": 21725832,
			"currency": "USD",
			"custom_fields": {
				"602f3785a3745bd31ed7cfce2be32aeafa99ae92": null,
				"b7e99a09aa681bbf5e17e6275c2cac4df14b622d": null,
				"b9e386b59b4016c602a13078ce7bd355af7fa60a": null,
				"cb6aed1d25e684ecfaf7f7289a59ff4b5dbbc4f7": null,
				"f52877bbb7ada88b5c9e724d16e218f73de9c740": null
			},
			"expected_close_date": "2024-07-31",
			"id": 24,
			"is_deleted": false,
			"label_ids": [
				27,
				28
			],
			"local_close_date": null,
			"local_lost_date": null,
			"local_won_date": null,
			"lost_reason": null,
			"lost_time": null,
			"org_id": 2,
			"origin": "ManuallyCreated",
			"origin_id": null,
			"owner_id": 21725832,
			"person_id": 1,
			"pipeline_id": 1,
			"probability": null,
			"stage_change_time": "2024-07-31T18:24:43Z",
			"stage_id": 5,
			"status": "open",
			"title": "Demo Deal 1",
			"update_time": "2024-08-05T09:27:54Z",
			"value": 0.0,
			"visible_to": 3,
			"won_time": null
		},
		{
			"add_time": "2024-07-28T15:19:21Z",
			"channel": null,
			"channel_id": "1",
			"close_time": null,
			"creator_user_id": 21725832,
			"currency": "USD",
			"custom_fields": {
				"602f3785a3745bd31ed7cfce2be32aeafa99ae92": null,
				"b7e99a09aa681bbf5e17e6275c2cac4df14b622d": null,
				"b9e386b59b4016c602a13078ce7bd355af7fa60a": null,
				"cb6aed1d25e684ecfaf7f7289a59ff4b5dbbc4f7": null,
				"f52877bbb7ada88b5c9e724d16e218f73de9c740": null
			},
			"expected_close_date": "2024-07-25",
			"id": 25,
			"is_deleted": false,
			"label_ids": [
				27,
				28
			],
			"local_close_date": null,
			"local_lost_date": null,
			"local_won_date": null,
			"lost_reason": null,
			"lost_time": null,
			"org_id": 2,
			"origin": "ManuallyCreated",
			"origin_id": null,
			"owner_id": 21725832,
			"person_id": 1,
			"pipeline_id": 1,
			"probability": null,
			"stage_change_time": "2024-07-28T15:38:45Z",
			"stage_id": 2,
			"status": "open",
			"title": "Demo Deal 2",
			"update_time": "2024-08-05T09:27:54Z",
			"value": 4000.0,
			"visible_to": 3,
			"won_time": null
		}
	],
	"success": true
}
```

# Salesforce API Proxy Guide

> The easiest Salesforce API proxy you’ll ever use. Perform real-time operations without connected apps, tokens, or complex Salesforce setup.

Source: https://docs.stacksync.com/two-way-sync/api-proxy/salesforce

<YouTube id="vJ1FGQiGt2I" title="Salesforce API proxy, get started in seconds without having to set up a connected app in Salesforce. No code required!" />

## TL;DR

This API proxy lets you do any operation on your Salesforce data but removes from you all the complexity of setting up and using the classic Salesforce API 🤩

**No need to worry** about ~~setting up a connected app~~, ~~rotating the security token~~, ~~using bulk API or not~~, ~~record formatting~~ and more! Everything is managed for you 💆‍♀️

Operations:

* [Insert records](#insert)
* [Upsert records](#upsert) (tries to update a record and inserts it if it is not found)
* [Update records](#update)
* [Delete records](#delete)
* [Get records](#get)
* [Make an SOQL query](#soql) ✨
* [Describe](#describe) (reads instance or object metadata)
* [Create a custom field into a Salesforce object](#add-a-custom-field-to-a-salesforce-object)
* [Pass Through](#pass-through)

### Regions 🌍

Depending on your region, you can use

🇪🇺 `https://eu.api-proxy.stacksync.com/`

🇺🇸 `https://us.api-proxy.stacksync.com/`

## Insert

Insert up to 10 000 records with a single query. Simply supply the field values for each record you want to create. The response will contain one success confirmation per record meaning that, within the same request, each record can succeed or fail independently of each other. For each sent record, you will receive a detailed success or error message.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/insert/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data":[{"name": "John Doe"},{"name": "Jane Smith"}]}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'
    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/insert/{object_name}"

    data ={
    "data" :
             [
                {
                    'name': 'John Doe',
                    'site': 'example.com'
                },
                {
                    'name': 'Jane Smith',
                    'site': 'example.com'
                }
            ]
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = 'Account';
    const url = `https://eu.api-proxy.stacksync.cloud/v1/object/insert/${objectName}`;

    const data ={
    data:
         [
          {
            name: 'John Doe',
            site: 'johndoe@example.com'
          },
          {
            name: 'Jane Smith',
            site: 'janesmith@example.com'
          }
        ]
    };

    const apiProxyServiceToken = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });
      
    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"errors": [],
			"id": "0010600002BpRZDAA3",
			"success": true
		},
		{
			"errors": [],
			"id": "0010600002BpRZEAA3",
			"success": true
		}
	]
}
```

## Upsert

Create or update (upsert) up to one record per request based on a `match_key` which can be the record `Id` or any custom field.

* If the key is not matched, then a new object record is created.
* If the key is matched once, then the existing object record is updated.
* If the key is matched multiple times, then an error is generated and the object record is neither inserted nor updated.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/upsert/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data":[{"name":"Jon Doe"}],"match_key":"name"}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'

    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/upsert/{object_name}"

    data = {
            "data": 
                    [
                            {
                                    "name": "Jon Doe", 
                                    "site": "example.com"
                            }
                    ],
            "match_key": "name"
        }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const object_name = 'Account';
    const url = `https://eu.api-proxy.stacksync.cloud/v1/object/upsert/${object_name}`;

    const data ={
    data:
            [
                {
                    name: 'Jon Doe',
                    "site": "example.com"
                }
            ],
    match_key: "name"
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
        'Authorization': `Bearer ${apiProxyServiceToken}`,
        'Content-Type': 'application/json'
    };

    fetch(url, {
        method: 'POST',
        headers: headers,
        body: JSON.stringify(data)
    })
        .then(response => response.json())
        .then(data => {
         console.log(data);
        })
        .catch(error => {
         console.error(error);
        });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{	
			"errors": [],
			"id": "0010600002BpLWtAAN",
			"success": true
		}
	]
}
```

## Update

Update up to 10 000 records per request. Existing field values in Salesforce will be overwritten with the new values provided.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/update/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data":[{"id": "0010600002BpLWtAAN", "name": "John Doe"}, {"id": "0010600002BpLWuAAN", "name": "Jane Smith"}]}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'

    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/update/{object_name}"

    data ={
     "data": 
            [
                {
                    'id': '0010600002BpLWtAAN',
                    'name': 'John Doe',
                    'site': 'www.example.com'
                },
                {
                    'id': '0010600002BpLWuAAN',
                    'name': 'Jane Smith',
                    'site': 'www.example.com'
                }
            ]
    }
    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = 'Account';
    const url = `https://eu.api-proxy.stacksync.cloud/v1/object/update/${objectName}`;

    const data ={
    data:
            [
                {
                    id: '0010600002BpLWtAAN',
                    name: 'John Doe',
                    site: 'www.example.com'
                },
                {
                    id: '0010600002BpLWuAAN',
                    name: 'Jane Smith',
                    site: 'www.example.com'
                }
            ]
    };

    const apiProxyServiceToken = 'your_api_proxy_service_token';

    const headers = {
        'Authorization': `Bearer ${apiProxyServiceToken}`,
        'Content-Type': 'application/json'
    };

    fetch(url, {
        method: 'POST',
        headers: headers,
        body: JSON.stringify(data)
    })
    .then(response => response.json())
    .then(data => {
     console.log(data);
    })
    .catch(error => {
     console.error(error);
    });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"errors": [],
			"id": "0010600002BpLWtAAN",
			"success": true
		},
		{
			"errors": [],
			"id": "0010600002BpLWuAAN",
			"success": true
		}
	]
}
```

## Delete

Delete up to 10 000 records per request.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/delete \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"ids":["0010600002BpLWtAAN","0010600002BpLWuAAN"]}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/delete"

    data ={
     "data": 
        {
            "ids" : ["0010600002BpLWtAAN","0010600002BpLWuAAN"]
        }
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = 'https://eu.api-proxy.stacksync.cloud/v1/object/delete';
    const data ={
    data :
        {
            ids : ['0010600002BpLWtAAN','0010600002BpLWuAAN']
        }
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
         "data": [
                  {
                     "id" : "0010600002BpLWtAAN",
                     "success" : true,
                     "errors" : [ ]
                  },
                  {
                     "id" : "0010600002BpLWuAAN",
                     "success" : true,
                     "errors" : [ ]
                  }
         ]
}
```

## Get

Get the content of up to 10 000 records. The number of sObjects returned matches the number of `Id`s passed in the request.

You can pass the optional `fields` parameter (list of field names that you want to be returned for each record). If the list of `fields` is not passed or is empty `"fields":[]`, all fields are returned.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/get/Account \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"ids": ["0010600002BpLWuAAN", "0010600002BpLWtAAN"], "fields": ["Name"]}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = 'Account'

    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/get/{object_name}"

    data ={
    "data":
          {
             "ids" : ["0010600002BpLWuAAN", "0010600002BpLWtAAN"],
             "fields" : ["Name"]
          }
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const object_name = 'Account';
    const url = `https://eu.api-proxy.stacksync.cloud/v1/object/get/${object_name}`;

    const data ={
    data:
        {
          ids: ["0010600002BpLWuAAN", "0010600002BpLWtAAN"],
          fields: ["Name"]
        }
    };

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response body:

```json
{
	"data": [
		{
			"Id": "0010600002BpLWuAAN",
			"Name": "John Doe",
			"attributes": {
				"type": "Account",
				"url": "/https/docs.stacksync.com/services/data/v57.0/sobjects/Account/0010600002BpLWuAAN"
			}
		},
		{
			"Id": "0010600002BpLWtAAN",
			"Name": "Jane Smith",
			"attributes": {
				"type": "Account",
				"url": "/https/docs.stacksync.com/services/data/v57.0/sobjects/Account/0010600002BpLWtAAN"
			}
		}
	]
}
```

## SOQL

Executes an SOQL query on your Salesforce instance.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/soql \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": "SELECT Id, Name, Email FROM Contacts"}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = f"https://eu.api-proxy.stacksync.cloud/v1/object/soql"

    data = {
        'data': 'SELECT Id, Name, Email FROM contacts'
    }

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, json=data, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = "https://eu.api-proxy.stacksync.cloud/v1/object/soql";

    const data = {
      data: "SELECT Id, Name, Email FROM contacts",
    };

    const api_proxy_service_token = "your_api_proxy_service_token";

    const headers = {
      "Authorization": `Bearer ${apiProxyServiceToken}`,
      "Content-Type": "application/json",
    };

    fetch(url, {
      method: "POST",
      headers: headers,
      body: JSON.stringify(data),
    })
      .then((response) => response.json())
      .then((data) => {
        console.log(data);
      })
      .catch((error) => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

## Describe Salesforce Instance

Retrieves metadata for the Salesforce instance, containing a list of every available object.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/describe \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = f"https://eu.api-proxy.stacksync.cloud/v1/describe"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = "https://api-proxy.stacksync.cloud/v1/describe";
    const api_proxy_service_token = "your_api_proxy_service_token";

    const headers = {
      "Authorization": `Bearer ${apiProxyServiceToken}`,
      "Content-Type": "application/json",
    };

    fetch(url, {
      method: "POST",
      headers: headers
    })
      .then((response) => response.json())
      .then((data) => {
        console.log(data);
      })
      .catch((error) => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

## Describe Object

Retrieves the metadata for a specific Salesforce table.

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/describe/{object_name} \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json"
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    object_name = "Account"

    url = f"https://eu.api-proxy.stacksync.cloud/v1/describe/{object_name}"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}',
        'Content-Type': 'application/json'
    }

    response = requests.post(url, headers=headers)
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const objectName = "Account";
    const url = `https://eu.api-proxy.stacksync.cloud/v1/describe/${objectName}`;

    const apiProxyServiceToken = "your_api_proxy_service_token";

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`,
      'Content-Type': 'application/json'
    };

    fetch(url, {
      method: 'POST',
      headers: headers
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });
      
    ```
  </Tab>
</Tabs>

## Add a custom field to a Salesforce object

Add a custom field to a Salesforce object. Standard and custom objects are supported.

The required request body parameters are:

* `type` the type of the custom field you wish to create
* `name` the name of the custom field you wish to create
* `label` the label associated to the custom field you wish to create

`type` can be any of the field types presented [here](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_field_types.htm)

Unless otherwise noted, all fields are creatable, filterable, and nullable.

Some optional parameters may be required depending on the `type`,\
(eg: `length` is required when creating a custom field of type `Text`)

Learn more about the API behavior [here](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm).

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer your_api_proxy_service_token" \
            -H "Content-Type: application/json" \
            -d '{"data": {"name": "field_name", "type": "field_type", "label": "field_label"}}'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    headers = {
        'Authorization': 'Bearer your_api_proxy_service_token',
        # Already added when you pass json=
        # 'Content-Type': 'application/json',
    }

    json_data = {
        'data': {
            'name': 'field_name',
            'type': 'field_type',
            'label': 'field_label'
        },
    }

    response = requests.post(
        'https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/{object_name}',
        headers=headers,
        json=json_data,
    )
    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    fetch('https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/{object_name}'
      method: 'POST',
      headers: {
        'Authorization': 'Bearer your_api_proxy_service_token',
        'Content-Type': 'application/json'
      },
      // body: '{"data": {"field_name": "field_name", "field_type": "field_type"}}',
      body: JSON.stringify({
        'data': {
          'field_name': 'field_name',
          'field_type': 'field_type'
        }
      })
    });
    ```
  </Tab>
</Tabs>

Example Response Body:

```json
{
    "data": {
        "errors": [],
        "id": "01N7R00000FlUGDUA3",
        "infos": [],
        "success": true,
        "warnings": []
    },
    "msg": "custom field added successfully"
}
```

Example requests for different field types:

<Tabs items="[&#x22;Text&#x22;,&#x22;Picklist field&#x22;]">
  <Tab value="Text">
    ```
    curl -X POST https://eu.api-proxy.stacksync.com/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer *****" \
            -H "Content-Type: application/json" \
            -d '{"data": 
                    {"name": "field_name", 
                    "type": "Text", 
                    "label": "list_field", 
                    "length":100}}'
    ```
  </Tab>

  <Tab value="Picklist field">
    Example:

    ```
    curl -X POST 

    https://eu.api-proxy.stacksync.cloud/v1/object/add_custom_field/{object_name} \
            -H "Authorization: Bearer ******" \
            -H "Content-Type: application/json" \
            -d '{
    	"data": {
    		"name": "picklistField",
    		"type": "Picklist",
    		"label": "picklistField",
    		"valueSet": {
    			"restricted": false,
    			"valueSetDefinition": {
    				"sorted": false,
    				"value": [
    					{
    						"fullName": "Option1",
    						"default": false
    					},
    					{
    						"fullName": "Option2",
    						"default": false
    					},
    					{
    						"fullName": "Option3",
    						"default": false
    					}
    				]
    			}
    		}
    	}
    }'
    ```
  </Tab>
</Tabs>

## Pass Through

Make a request to any Salesforce API by providing the URL, Request Method and the Request Body.

A request will be sent to the URL provided using the request method and request body. The request body can be empty.

```
curl -X [GET | POST | PUT | PATCH | DELETE] 
https://eu.api-proxy.stacksync.com/v1/proxy/INSERT_REQUEST_URL_HERE \
-H "Authorization: Bearer your_api_proxy_service_token" \
-d 'Optional'
```

Example request:

### Get Account Record

<Tabs items="[&#x22;cURL&#x22;,&#x22;Python&#x22;,&#x22;Javascript&#x22;]">
  <Tab value="cURL">
    ```http
    curl -X GET https://eu.api-proxy.stacksync.com/v1/proxy/https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL \
            -H "Authorization: Bearer your_api_proxy_service_token"        
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import requests

    url = "https://eu.api-proxy.stacksync.cloud/v1/proxy/https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL"

    api_proxy_service_token = "your_api_proxy_service_token"

    headers = {
        'Authorization': f'Bearer {api_proxy_service_token}'
    }

    response = requests.get(url, headers=headers)

    ```
  </Tab>

  <Tab value="Javascript">
    ```javascript
    const url = `https://eu.api-proxy.stacksync.cloud/v1/proxy/https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL`;

    const api_proxy_service_token = 'your_api_proxy_service_token';

    const headers = {
      'Authorization': `Bearer ${apiProxyServiceToken}`
    };

    fetch(url, {
      method: 'GET',
      headers: headers
    })
      .then(response => response.json())
      .then(data => {
        console.log(data);
      })
      .catch(error => {
        console.error(error);
      });

    ```
  </Tab>
</Tabs>

Example response:

```json
{
	"AccountNumber": "CD355118",
	"AccountSource": null,
	"Active__c": "Yes",
	"AnnualRevenue": 5600000000.0,
	"BillingAddress": {
		"city": "New York",
		"country": "test",
		"geocodeAccuracy": null,
		"latitude": 12.699999997,
		"longitude": 12.8,
		"postalCode": "123",
		"state": "NY",
		"street": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA"
	},
	"BillingCity": "New York",
	"BillingCountry": "test",
	"BillingGeocodeAccuracy": null,
	"BillingLatitude": 12.699999997,
	"BillingLongitude": 12.8,
	"BillingPostalCode": "123",
	"BillingState": "NY",
	"BillingStreet": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA",
	"CleanStatus": "Pending",
	"CreatedById": "0057S000000WzYEQA0",
	"CreatedDate": "2022-10-28T08:44:59.000+0000",
	"CustomerPriority__c": "High",
	"DandbCompanyId": null,
	"Description": "World's third largest oil and gas company.",
	"DunsNumber": null,
	"Fax": "(212) 842-5501",
	"Id": "0017S00000GYoL3QAL",
	"Industry": "Energy",
	"IsDeleted": false,
	"Jigsaw": null,
	"JigsawCompanyId": null,
	"LastActivityDate": null,
	"LastModifiedById": "0057S000000WzYEQA0",
	"LastModifiedDate": "2024-01-25T11:28:30.000+0000",
	"LastReferencedDate": "2024-02-12T01:58:55.000+0000",
	"LastViewedDate": "2024-02-12T01:58:55.000+0000",
	"MasterRecordId": null,
	"NaicsCode": null,
	"NaicsDesc": null,
	"Name": "Dickenson plc 2",
	"NumberOfEmployees": 145000,
	"NumberofLocations__c": 34.0,
	"OperatingHoursId": null,
	"OwnerId": "0057S000000WzYEQA0",
	"Ownership": "Public",
	"ParentId": null,
	"Phone": "12",
	"PhotoUrl": "/services/images/photo/0017S00000GYoL3QAL",
	"Rating": "Hot",
	"SLAExpirationDate__c": "2023-05-24",
	"SLASerialNumber__c": "6654",
	"SLA__c": "Platinum",
	"ShippingAddress": {
		"city": "Paris",
		"country": "France",
		"geocodeAccuracy": null,
		"latitude": null,
		"longitude": null,
		"postalCode": "75251",
		"state": "q",
		"street": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA"
	},
	"ShippingCity": "Paris",
	"ShippingCountry": "France",
	"ShippingGeocodeAccuracy": null,
	"ShippingLatitude": null,
	"ShippingLongitude": null,
	"ShippingPostalCode": "75251",
	"ShippingState": "q",
	"ShippingStreet": "1301 Avenue of the Americas \nNew York, NY 10019\nUSA",
	"Sic": "4437",
	"SicDesc": null,
	"Site": "resr",
	"SystemModstamp": "2024-01-25T11:28:31.000+0000",
	"TickerSymbol": "UOS",
	"Tradestyle": null,
	"Type": "Customer - Direct",
	"UpsellOpportunity__c": "Yes",
	"Website": "http://www.uos.com",
	"YearStarted": null,
	"aaaa__c": null,
	"api_token_test__c": null,
	"attributes": {
		"type": "Account",
		"url": "/https/docs.stacksync.com/services/data/v60.0/sobjects/Account/0017S00000GYoL3QAL"
	},
	"encrypted_test__c": "XXXXXXXXXX",
	"formula_test__c": 5600145000.0,
	"geolocation_test__Latitude__s": 12.0,
	"geolocation_test__Longitude__s": 32.0,
	"geolocation_test__c": {
		"latitude": 12.0,
		"longitude": 32.0
	},
	"multipick_list__c": "string;string;12.541",
	"percent_test__c": 5.0,
	"picklisttestnow__c": null,
	"randomfield__c": null,
	"rich_text_test__c": null,
	"rollup_test__c": 720000.0,
	"test_custom_string5__c": "test",
	"time_test__c": "00:15:00.000Z",
	"url_test__c": "www.google.com"
}
```

# Attachments fields

Source: https://docs.stacksync.com/two-way-sync/connectors/airtable/attachments-fields

Attachment fields in Airtable expose only temporary links that expire after a certain period. To ensure persistent access to attachments, we transform them into API proxy links when syncing attachment fields.

## Transformed Link Format

Attachment URLs are converted to this format:

```
https://eu.api-proxy-dev.stacksync.com/v1/airtable_attachment?dt=eyJiYXNlX2lXUGdEIiwgInBhdGgiOiAiIn0=
```

## How to Use Attachment Links

1. [**Set up an API Proxy**](/two-way-sync/api-proxy/airtable) - You'll receive an API key upon creation
2. **Make the request** - Include your API key in the Authorization header:

```bash
   curl -X GET "https://eu.api-proxy-dev.stacksync.com/v1/airtable_attachment?dt=eyJiYXNlX2lXUGdEIiwgInBhdGgiOiAiIn0=" \
   -H "Authorization: Bearer <your_api_key>"
```

3. **Automatic redirect** - The API proxy will:
   * Fetch the current attachment URL from Airtable
   * Redirect you to the updated link automatically

This ensures your attachment links remain valid without manual updates.

# Authorize Airtable

> Authenticate your Airtable account and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/airtable/authorize-airtable

1. Log into Stacksync and click on Connections > Create new connection, search for **Airtable** and select it.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-airtable-connection.webp" alt="Stacksync connection app picker with the &#x22;Airtable&#x22; tile highlighted among database connectors" width="1600" height="628" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. It’ll take you to the **Airtable** OAuth page, where you can choose to give access either to specific **bases** or to all **resources** in your account, then just hit **Grant access**<br />

***Make sure you have a\*\*\*\***\*\*&#x20;****`creator`**\*\* ****role, only users with****&#x20;****`creator`**\*\*&#x20;****\*\*\*\*roles can create webhooks.***

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/airtable-grant-access-stacksync.webp" alt="Airtable consent page &#x22;Stacksync is requesting Airtable access&#x22; with a base selected and &#x22;Grant access&#x22; highlighted" width="1260" height="1722" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Formula Fields Overview

> Overview of formula fields in Airtable and how Stacksync keeps their computed values synchronized automatically.

Source: https://docs.stacksync.com/two-way-sync/connectors/airtable/formula-fields

## Formula Fields in Airtable

Formula fields in Airtable are **calculated fields** whose values are generated dynamically from other fields using custom formulas.\
Because their values are computed rather than stored, they do not trigger standard change events when the underlying data changes.

***

### Syncing Formula Fields with Stacksync

Stacksync **synchronizes Airtable formula fields every hour**.\
This ensures that even though Airtable formula fields don’t emit direct change notifications, their computed values remain up-to-date in your destination system.

#### How It Works

* Formula fields are detected automatically during setup.
* Stacksync will re-check and update those formula field values every hour.

# Airtable

> Two-way sync between Airtable and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/airtable

## Airtable Connector

The Airtable connector allows you to sync records from your Airtable bases into your destination systems (e.g., Postgres, BigQuery, Snowflake).

***

### Supported Features

* **Two-way sync**: Keep Airtable records in sync with your destination.
* **Incremental updates**: Changes in Airtable are detected and synced efficiently in realtime.
* **Custom field mapping**: Map Airtable fields to your target schema.
* **Attachments**: Sync files stored in Airtable attachment fields.
* **Formula fields**: Stacksync also supports syncing Airtable’s calculated values (see Formula Fields for details).
* **Auto sync new fields:** Stacksync propagates Airtable schema changes automatically to the destination app where Airtable data is synced.

***

### Special Notes

* **Rate Limits**: Airtable’s API has strict rate limits (5 requests/second). Stacksync performs rate limiting to ensure not going over the rate limit.

<Cards>
  <Card title="Authorize Airtable" href="/https/docs.stacksync.com/two-way-sync/connectors/airtable/authorize-airtable" />
</Cards>

# Authorize Amazon Seller Central

> This guide explains how to connect your Amazon Seller Central Account to Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/amazon-seller-central/authorize-amazon-seller-central

<Callout type="info">
  ### Prerequisites:

  1. Primary account access to Amazon Seller Central
  2. An SP-API app in Amazon Developer Central
  3. Required credentials: LWA client ID/secret, application ID, Merchant ID/Seller ID, refresh token.
</Callout>

## Setup instructions

### STEP 1: Find merchant token

1. Sign in to your [Amazon Seller Central account](https://sellercentral.amazon.com/).
2. In the top-right corner, open **Settings** and select **Account Info**.
3. In the left navigation, select **Business Information**.
4. Click **Your Merchant Token**.
5. Copy the Merchant Token for the marketplace you plan to sync and keep it for connector setup.

### STEP 2: Create an SP-API app client

1. Sign in to your Amazon Seller Central.
2. Go to **Apps and Services > Develop Apps**.
3. In Developer Central, click **+ Add new app client**.
4. Enter an **App name**.
5. Set **API Type** to **SP API and Select Production in the dropdown.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/amazon-sp-api-app-registration.webp" alt="Amazon Solution Provider Portal &#x22;App registration&#x22; form with App name &#x22;Stacksync&#x22; and API Type &#x22;SP API&#x22;" width="1600" height="827" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Under **Business entities supported**, select your entity:
   * **Sellers**
   * **Vendors**
7. Assign the required roles for your entity.

For **Sellers**, select:

* Finance and Accounting
* Selling Partner Insights
* Buyer Communication
* Pricing
* Inventory and Order Tracking
* Brand Analytics
* Amazon Fulfillment
* Buyer Solicitation
* Product Listing

For **Vendors**, select:

* Brand Analytics
* Amazon Fulfillment
* Product Listing

8. In **Restricted Data Token (RDT)**, select:\
   **Yes, I will delegate access to PII to another developer's application**.
9. Click **Save and exit**.
10. In the app list, click View for your app.
11. Make a note of the Client identifier and Client secret, and then click Done. You will need them to configure Connection on Stacksync.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/amazon-lwa-credentials-client-secret.webp" alt="Amazon Solution Provider Portal &#x22;LWA credentials&#x22; dialog showing redacted Client identifier and Client secret" width="1600" height="778" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

<Callout type="info">
  Do **not** set an OAuth Login URI or OAuth Redirect URI for this setup.
</Callout>

<Callout type="info">
  Amazon sets a 6-month expiration on client secrets. To avoid sync interruptions, regenerate the client secret every 6 months and update the connection to use the new secret.
</Callout>

### STEP 3: Generate refresh token

1. In Developer Central, open your app’s action menu and select **Authorize**.
2. In **Add Authorizations**, click **Authorize app** for the marketplace you want to sync.
3. Copy and securely store the generated **Refresh Token** for use during Stacksync configuration.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/amazon-app-authorize-refresh-token.webp" alt="Amazon Solution Provider Portal app list with the Edit App menu open and &#x22;Authorize&#x22; highlighted" width="1600" height="802" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

### STEP 4: Finish Stacksync Connection configuration

1. Login to [Stacksync](https://app.stacksync.com/) -> **Create Resource** -> **Connections** -> Select **Amazon Seller Central**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-amazon-seller-central.webp" alt="Stacksync &#x22;Create a new Connection&#x22; app grid with &#x22;Amazon Seller Central&#x22; highlighted" width="1600" height="814" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Enter the connection details collected in the previous steps into the form.\
   a. Client ID\
   b. Client Secret\
   c. Merchent Token\
   d. Select Production / Sandbbox Account\
   e. Refresh Token\
   f. Select the Region where the App is created in previous steps<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/amazon-seller-central-connection-form.webp" alt="Stacksync Amazon connection form with LWA Client ID and Secret, Application ID, Merchant Token, Refresh Token and Region" width="1600" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Click **Next**, then **Authorize Connection** to complete setup.

The connector is now ready to start syncing data.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Amazon Seller Central

Source: https://docs.stacksync.com/two-way-sync/connectors/amazon-seller-central

The Stacksync Amazon Seller Central connector lets you sync Amazon Seller Central data to your warehouse or operational systems, with support for historical and incremental syncs, including reports, in a one-way flow from Amazon to your destination systems.

## Stacksync supports syncing:

1. SP-API exposed Objects
2. SP-API eposed Reports

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Amazon Seller Central" href="/https/docs.stacksync.com/two-way-sync/connectors/amazon-seller-central/authorize-amazon-seller-central" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Attio

> Authorize your Attio app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/attio/authorize-attio

Attio connection is done without any coding required in a few steps.

## 1. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections.webp" alt="Legacy Stacksync dashboard with an arrow pointing to &#x22;Connections&#x22; in the sidebar" width="937" height="605" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click "create new connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-new-connection-button.webp" alt="Legacy Stacksync My Connections page with an arrow pointing to the &#x22;Create New Connection&#x22; button" width="935" height="487" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Click "Attio CRM"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-select-attio-crm.webp" alt="Legacy Stacksync &#x22;Create a Connection&#x22; app picker with an arrow pointing to &#x22;Attio CRM&#x22;" width="945" height="602" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Click "Confirm"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/attio-workspace-access-confirm.webp" alt="Attio consent screen listing read/write permissions for Stacksync, with an arrow pointing to &#x22;Confirm&#x22;" width="938" height="577" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your Attio instance is now connected to Stacksync!🎉

# Attio

> Two-way sync between Attio and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/attio

## Supported Objects

Stacksync lets you sync the following Attio objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>People</td><td><span>✅ Supported</span></td></tr><tr><td>Companies</td><td><span>✅ Supported</span></td></tr><tr><td>Users</td><td><span>✅ Supported</span></td></tr><tr><td>Deals</td><td><span>✅ Supported</span></td></tr><tr><td>Workspaces</td><td><span>✅ Supported</span></td></tr><tr><td>Custom objects (all)</td><td><span>✅ Supported</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Authorization

Source: https://docs.stacksync.com/two-way-sync/connectors/authorization

<Cards>
  <Card title="Re-Authorization" href="/https/docs.stacksync.com/two-way-sync/connectors/authorization/re-authorization" />
</Cards>

# Re-Authorization

> Re-Authorize your connection.

Source: https://docs.stacksync.com/two-way-sync/connectors/authorization/re-authorization

An application connection might expire after a period of inactivity. Additionally, new features, such as the [Hubspot Sensitive Fields capability](/two-way-sync/connectors/hubspot/authorize-hubspot#id-3.-optional-check-the-grant-access-to-sensitive-fields-checkbox), may require reauthorization of the app.

## 1. Open your connection

Click connections on the side nav-bar and then click the connection you want to re-authorize

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-open-connection-reauthorize.webp" alt="Stacksync sidebar &#x22;Connections&#x22; (1) and the &#x22;my hubspot connection&#x22; entry (2) highlighted in the connections list" width="1600" height="885" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click "Reauthorize"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-connection-reauthorize-button.webp" alt="Stacksync connection details page for &#x22;my hubspot connection&#x22; with the &#x22;Reauthorize&#x22; button highlighted" width="1600" height="886" loading="lazy" decoding="async" />

  <figcaption />
</figure>

The standard authorization process for the specific app will begin. Follow it to successfully reauthorize the connection.

# Authorize BigQuery

> Authorize your BigQuery app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/bigquery/authorize-bigquery

## Enabling Required Google APIs <a href="#id-1367fe36-76e9-430d-a949-7b538bc2ab00" id="id-1367fe36-76e9-430d-a949-7b538bc2ab00" />

The following APIs are required by the Stacksync services in order to access the data and create a sync in BigQuery:

1. [Cloud Run API](https://console.cloud.google.com/marketplace/product/google/run.googleapis.com) (to create a secure portal for real-time notification service in your space)
2. [Cloud Resource Manager API](https://console.cloud.google.com/marketplace/product/google/cloudresourcemanager.googleapis.com) (to set up all services)
3. [BigQuery API](https://console.cloud.google.com/marketplace/product/google/bigquery.googleapis.com) (this is where your data resides)
4. [Eventarc API](https://console.cloud.google.com/marketplace/product/google/eventarc.googleapis.com) (a notification service that enables real-time updates to happen)

### 1. Open [https://console.cloud.google.com/apis/library](https://console.cloud.google.com/apis/library)

### 2. Search for the API "cloud run API"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-search-cloud-run-api.webp" alt="Google Cloud API Library with &#x22;cloud run api&#x22; typed in the search box" width="1516" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Click on the API "Cloud Run API"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-select-cloud-run-api.webp" alt="Google Cloud API Library search results with &#x22;Cloud Run API&#x22; highlighted" width="1513" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Enable the API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-enable-cloud-run-api.webp" alt="Google Cloud Run API product page with the &#x22;Enable&#x22; button highlighted" width="1516" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Repeat Steps 2-3 for the following APIs

Cloud Resource Manager API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-resource-manager-api.webp" alt="Google Cloud API Library search results with &#x22;Cloud Resource Manager API&#x22; highlighted" width="1513" height="847" loading="lazy" decoding="async" />

  <figcaption />
</figure>

BigQuery API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-bigquery-api.webp" alt="Google Cloud API Library search results with &#x22;BigQuery API&#x22; highlighted" width="1516" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Eventarc API

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-eventarc-api.webp" alt="Google Cloud API Library search results with &#x22;Eventarc API&#x22; highlighted" width="1519" height="850" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Create Service Account

The Service Account gives access to Stacksync to your data for it to be synced. It is used to set up all the necessary Stacksync Services in your Google Cloud Project. You will need to create one Service Account dedicated to Stacksync which will enable you with better access control.

### 1. Open [https://console.cloud.google.com/iam-admin/serviceaccounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

### 2. Click "Create Service Account"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-create-service-account.webp" alt="Google Cloud IAM & Admin Service accounts page with &#x22;Create service account&#x22; highlighted" width="1516" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Fill in the Service Account details

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-details.webp" alt="Google Cloud service account details form with name &#x22;demo-account&#x22; and the &#x22;Create and continue&#x22; button" width="1515" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Click "Select a role"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-select-role.webp" alt="Google Cloud &#x22;Grant this service account access to project&#x22; step with the &#x22;Select a role&#x22; dropdown highlighted" width="1516" height="818" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Add the following Roles to the Service Account

These roles are necessary for Stacksync to get data access and set up the required services to make the data sync happen.

1. BigQuery Data Editor
2. BigQuery Job User
3. Cloud Functions Service Agent
4. Cloud Run Developer
5. Eventarc Event Receiver
6. Eventarc Service Agent

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-service-account-required-roles.webp" alt="Service account roles: BigQuery Data Editor, BigQuery Job User, Cloud Functions Service Agent, Cloud Run Developer, Eventarc Event Receiver" width="1515" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Click "Continue"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-roles-continue.webp" alt="Google Cloud service account with the five BigQuery sync roles added and the &#x22;Continue&#x22; button highlighted" width="1515" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 7. Click "DONE"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-done.webp" alt="Google Cloud create service account final step, skipping user access and clicking &#x22;Done&#x22;" width="1516" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Adding Credentials to Stacksync

### 1. Go to [https://console.cloud.google.com/iam-admin/serviceaccounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

### 2. Click "Keys"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-service-account-keys-tab.webp" alt="Google Cloud demo-account service account details with the &#x22;Keys&#x22; tab highlighted" width="1518" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Click "Add Key" and Select "Create New Key"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-service-account-create-new-key.webp" alt="Google Cloud IAM service account Keys tab with the &#x22;Add Key&#x22; menu open and &#x22;Create new key&#x22; highlighted." width="1519" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Select Key Type "JSON" and click "Create"

After clicking "Create", the JSON file will be downloaded.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-create-json-private-key.webp" alt="Google Cloud &#x22;Create private key&#x22; dialog with Key type &#x22;JSON&#x22; selected and the &#x22;Create&#x22; button highlighted." width="1521" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Select BigQuery in the Create Base page in Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-base-select-bigquery.webp" alt="Stacksync Create New Base page at the Connect Apps step, with the BigQuery app tile highlighted." width="1519" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Upload the JSON file from Step 4 and Click "Authorize App"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/bigquery-upload-service-account-key.webp" alt="Stacksync BigQuery dialog with the &#x22;Service Account Key&#x22; file upload field and the &#x22;Authorize App&#x22; button highlighted." width="1518" height="819" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# BigQuery

> Connect your CRM to your Data Warehouse with Stacksync!

Source: https://docs.stacksync.com/two-way-sync/connectors/bigquery

## Introduction

Google BigQuery is a cloud-based data warehousing and analytics platform that enables users to analyze and process large datasets using SQL-like queries. It is highly scalable and allows users to store and query massive amounts of data in real time.

Check out our [BigQuery guides](/two-way-sync/guides/modify-salesforce-data-in-postgres) to get started and sync data to your other systems and databases!

## Things to keep in mind

### Quotas and Limits

There is a limit of 1,500 table modifications that can be made to a BigQuery table in a day. Table modifications include `DELETE`, `INSERT`, `MERGE`, `TRUNCATE TABLE`, or `UPDATE` statements. If a table reaches this limit, any new modifications made through independent load jobs might fail. However, Stacksync operations are designed to avoid quota limitations so your syncs won't fail.

This is a restriction set by Google, for more details:

<Cards>
  <Card title="Quotas and limits | BigQuery | Google Cloud Documentation" href="https://cloud.google.com/bigquery/quotas" description="Google Cloud Documentation" favicon="https://docs.cloud.google.com/_static/cloud/images/social-icon-google-cloud-1200-630.png" />
</Cards>

### Views are not supported

As of now, only **tables** can be synced with Stacksync. Views and materialized views cannot be synced, but we are working on it! Stay tuned!

# Authorize Campfire Connection

> This guide explains how to connect your Campfire environment to Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/campfire/authorize-dynamics-365-f-and-o

## 1. Generate an API Key in [Campfire](https://app.meetcampfire.com/v2/auth/sign-in)

1. Login to [Campfire](https://app.meetcampfire.com/v2/auth/sign-in)
2. Navigate to **Setting** -> **API Keys**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-dashboard-settings-menu.webp" alt="Campfire home dashboard with the &#x22;Settings&#x22; item highlighted at the bottom of the left sidebar." width="1600" height="919" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-settings-api-keys.webp" alt="Campfire Settings menu with &#x22;API Keys&#x22; highlighted under the Developer section." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Click on **New User** and Create a API user with a **Super User Role.**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-api-keys-new-user.webp" alt="Campfire API Keys page with the &#x22;New User&#x22; button highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-create-api-super-user.webp" alt="Campfire &#x22;Create API User&#x22; dialog with Name and Email fields and the &#x22;Is Super User&#x22; checkbox highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. Click on **Create API Key** and Copy the **API Key secret** generated.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-create-api-key-button.webp" alt="Campfire API user &#x22;Test&#x22; (Super User) with the &#x22;Create API Key&#x22; button highlighted." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-api-token-generated.webp" alt="Campfire &#x22;API Token&#x22; dialog showing the masked new API key, to be copied once, with an &#x22;API key created!&#x22; notice." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a Connection in [Stacksync](https://app.stacksync.com/) App

1. Click **Create Resource**
2. Select **Syncs**
3. Choose the **Campfire connector**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-select-syncs.webp" alt="Stacksync &#x22;Create a resource&#x22; screen with templates on the left and the &#x22;Syncs&#x22; tile highlighted under &#x22;Jump right in&#x22;." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-campfire.webp" alt="Stacksync &#x22;Create a new Sync&#x22; Connect Apps step with the connector grid and the Campfire tile highlighted." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This opens the authorization flow.

## 3. Complete the Connection Setup

1. Provide the **Campfire API key** generated in Step 1.
2. Follow the on-screen steps to finalize the connection

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/campfire-connection-api-token.webp" alt="Stacksync Campfire &#x22;Select a connection&#x22; dialog with &#x22;Create new credential&#x22; chosen and the &#x22;API Token&#x22; field highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Campfire

Source: https://docs.stacksync.com/two-way-sync/connectors/campfire

The **Stacksync Campfire connector** enables **bidirectional synchronization** of ERP data with any data warehouse or operational system.

## Campfire connector supports:

1. Historical data backfill.
2. Near real-time updates via change tracking.
3. Bidirectional write-back support.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Campfire Connection" href="/https/docs.stacksync.com/two-way-sync/connectors/campfire/authorize-dynamics-365-f-and-o" />
</Cards>

<Cards>
  <Card title="Campfire Supported Objects" href="/https/docs.stacksync.com/two-way-sync/connectors/campfire/make-a-custom-entity-syncable-by-stacksync" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Campfire Supported Objects

Source: https://docs.stacksync.com/two-way-sync/connectors/campfire/make-a-custom-entity-syncable-by-stacksync

Stacksync supports **37 objects** from Campfire, covering core financial and operational data.

1. **Accounts Payable**<br />

   | Object     | Incremental Sync | Full Sync | Delete Detection |
   | ---------- | ---------------- | --------- | ---------------- |
   | Bill       | ✅                | ✅         | ✅ Every 24h      |
   | Debit Memo | ✅                | ✅         | ✅                |
2. **Accounts Receivable**<br />

   | Object      | Incremental Sync | Full Sync | Delete Detection |
   | ----------- | ---------------- | --------- | ---------------- |
   | Invoice     | ✅                | ✅         | ✅                |
   | Credit Memo | ✅                | ✅         | ✅                |
3. **Cash Management**<br />

   | Object           | Incremental Sync | Full Sync | Delete Detection |
   | ---------------- | ---------------- | --------- | ---------------- |
   | Bank Account     | ✅                | ✅         | ✅                |
   | Bank Transaction | ✅                | ✅         | ✅                |
4. **Core Accounting**<br />

   | Object                       | Incremental Sync | Full Sync | Delete Detection        |
   | ---------------------------- | ---------------- | --------- | ----------------------- |
   | Journal Entry                | ✅                | ✅         | ✅                       |
   | Intercompany Journal Entry   | ✅                | ✅         | ✅                       |
   | Chart of Accounts            | ✅                | ✅         | ✅                       |
   | Chart Transaction            | ✅                | ✅         | ✅                       |
   | Fixed Asset                  | ✅                | ✅         | ✅                       |
   | Fixed Asset Class            | ✅                | ✅         | ✅                       |
   | Fixed Asset Automation Rule  | ✅                | ✅         | ✅ Every 24h             |
   | Fixed Asset Automation Match | ✅                | ✅         | N/A (cannot be deleted) |
   | Budget                       | ✅                | ✅         | ✅                       |
   | Transaction Match            | ✅                | ✅         | ✅                       |
5. **Company & Organization**<br />

   | Object              | Incremental Sync | Full Sync | Delete Detection        |
   | ------------------- | ---------------- | --------- | ----------------------- |
   | Vendor              | ✅                | ✅         | ✅                       |
   | Vendor Summary      | ✅                | ✅         | N/A (cannot be deleted) |
   | Vendor Custom Field | ✅                | ✅         | ✅ Every 24h             |
   | Department          | ✅                | ✅         | ✅ Every 24h             |
   | Entity              | ✅                | ✅         | ✅ Every 24h             |
   | Tag                 | ✅                | ✅         | ✅                       |
   | Tag Group           | ✅                | ✅         | ✅ Every 24h             |
   | Cost Allocation     | ✅                | ✅         | ✅                       |
   | Custom Field        | ✅                | ✅         | ✅                       |
6. **Files**<br />

   | Object | Incremental Sync | Full Sync | Delete Detection |
   | ------ | ---------------- | --------- | ---------------- |
   | File   | ✅                | ✅         | ✅                |
7. **Revenue Recognition**<br />

   | Object              | Incremental Sync | Full Sync | Delete Detection |
   | ------------------- | ---------------- | --------- | ---------------- |
   | Contract            | ✅                | ✅         | ✅                |
   | Contract Customer   | ✅                | ✅         | ✅                |
   | Product             | ✅                | ✅         | ✅                |
   | Product Bundle      | ✅                | ✅         | ✅                |
   | Revenue Transaction | ✅                | ✅         | ✅                |
   | Customer Currency   | ✅                | ✅         | ✅                |
8. **Bank Reconciliation**<br />

   | Object                | Incremental Sync | Full Sync | Delete Detection |
   | --------------------- | ---------------- | --------- | ---------------- |
   | Reconciliation Report | ✅                | ✅         | ✅                |
9. **Integrations**<br />

   | Object  | Incremental Sync | Full Sync | Delete Detection |
   | ------- | ---------------- | --------- | ---------------- |
   | Webhook | ✅                | ✅         | ✅                |

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Dynamics 365 CRM

> This guide explains how to connect your Dynamics 365 CRM environment to Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-crm/authorize-dynamics-365-crm

## 1. Find your Microsoft Dynamics Environment URL

Your environment URL is the base address of your D365 CRM instance. To find it, copy the URL from your browser when you are in the application.

Examples:

* Production: `https://yourorg.crm.dynamics.com`
* Sandbox: `https://yourorg.sandbox.crm.dynamics.com`

### 2. Select Dynamics 365 CRM

In Stacksync:

1. Click **Create Sync**
2. Choose **Dynamics 365 CRM**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-dynamics-365-crm.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with the &#x22;Microsoft Dynamics 365 CRM&#x22; tile highlighted." width="1600" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

This opens the authorization flow.

***

### 3. Enter Your Environment URL

Provide the base URL of your D365 CRM environment you retrieved in the first step.\
\ <br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-crm-environment-url.webp" alt="Stacksync &#x22;Dynamics365 Crm&#x22; dialog with the &#x22;Dynamics 365 URL&#x22; field highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="800" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click **Authorize App**.

***

### 4. Sign In with Microsoft

You will be redirected to Microsoft’s login page.

1. Enter your Microsoft credentials
2. Continue to the permissions screen

This authenticates you as a valid D365 user.

***

### 5. Grant Stacksync Access

Microsoft will ask you to approve the Stacksync app.

Click **Accept** to authorize:

* Permission to read CRM data
* Permission to interact with OData entities

If you see this message:

> *“Need admin approval for this app.”*

Ask your admin to:

* Open the Microsoft identity / directory admin portal and go to the **enterprise applications / app registrations** area.
* Locate the **Stacksync** application or the corresponding app registration.
* Review and grant the requested API permissions (for example, access to Dynamics 365 CRM APIs).

Once an admin has granted consent, the “Need admin approval” screen will no longer appear when you authorize Stacksync. You can then restart the authorization from step 2, and the flow will complete successfully, allowing Stacksync to connect to your Microsoft account and start syncing data.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Enable Changes Detection Capture (CDC) for Custom Entities

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-crm/enable-changes-detection-capture-cdc

To synchronize your data efficiently, Stacksync must detect incremental changes, that is new, updated and deleted records, without repeatedly scanning entire tables. Stacksync’s change data capture (CDC) relies on the `Change Tracking` feature in Dynamics 365, which **you must enable for Custom entities** you plan to sync. The following section explains how to turn on change tracking so Stacksync can reliably capture those incremental updates.

<Callout type="info">
  **Standard entities** have change tracking **enabled by default,** no action required. This guide is only for **custom entities**.
</Callout>

1. Sign in to [Power Apps](https://make.powerapps.com/).
2. Expand **Dataverse**, and then select **Tables.**
3. Select a table, and then in **Table properties** select **Properties**.
4. In the Edit table page, expand **Advanced options.**
5. In the **For this table** section, enable the **Track Changes** checkbox.<br />

   <div>
     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-crm-track-changes.webp" alt="Dynamics 365 table settings &#x22;For this table&#x22; section with the &#x22;Track changes&#x22; checkbox checked and highlighted." width="524" height="197" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
   </div>
6. Select **Save.**

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Dynamics 365 CRM

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-crm

The Stacksync **Dynamics 365 CRM** connector lets you sync CRM data to any warehouse or operational system, with support for full syncs, incremental syncs (change tracking), and write-back.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Dynamics 365 CRM" href="/https/docs.stacksync.com/two-way-sync/connectors/dynamics-365-crm/authorize-dynamics-365-crm" />
</Cards>

<Cards>
  <Card title="Enable Changes Detection Capture (CDC) for Custom Entities" href="/https/docs.stacksync.com/two-way-sync/connectors/dynamics-365-crm/enable-changes-detection-capture-cdc" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Dynamics 365 F&O

> This guide explains how to connect your Dynamics 365 Finance & Operations environment to Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/authorize-dynamics-365-f-and-o

## 1. Find your Microsoft Dynamics Environment URL

Your environment URL is the base address of your D365 F\&O instance. To find it, copy the URL from your browser when you are in the application.

Examples:

* Production: `https://yourorg.operations.dynamics.com`
* Sandbox: `https://yourorg.sandbox.operations.dynamics.com`

### 2. Select Dynamics 365 Finance

In Stacksync:

1. Click **Create Sync**
2. Choose **Dynamics 365 Finance & Operations**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-dynamics-365-fo.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with the &#x22;Microsoft Dynamics 365 F&O&#x22; tile highlighted." width="1600" height="802" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

This opens the authorization flow.

***

### 3. Enter Your Environment URL

Provide the base URL of your D365 Finance & Operations environment you retrieved in the first step.<br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-environment-url.webp" alt="Stacksync &#x22;Dynamics365 Finance&#x22; dialog with the &#x22;Finance & Operations URL&#x22; field highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="923" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click **Authorize App**.

***

### 4. Sign In with Microsoft

You will be redirected to Microsoft’s login page.

1. Enter your Microsoft credentials
2. Continue to the permissions screen

This authenticates you as a valid D365 user.

***

### 5. Grant Stacksync Access

Microsoft will ask you to approve the Stacksync app.

Click **Accept** to authorize:

* Permission to read ERP data
* Permission to interact with OData entities

If you see this message:

> *“Need admin approval for this app.”*

Ask your admin to:

* Open the Microsoft identity / directory admin portal and go to the **enterprise applications / app registrations** area.
* Locate the **Stacksync** application or the corresponding app registration.
* Review and grant the requested API permissions (for example, access to Dynamics 365 F\&O APIs).

Once an admin has granted consent, the “Need admin approval” screen will no longer appear when you authorize Stacksync. You can then restart the authorization from step 2, and the flow will complete successfully, allowing Stacksync to connect to your Microsoft account and start syncing data.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Enable Changes Detection Capture (CDC)

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/enable-changes-detection-capture-cdc

To synchronize your data efficiently, Stacksync must detect incremental changes—that is, new and updated records—without repeatedly scanning entire tables. Stacksync’s change data capture (CDC) relies on the `Change Tracking` feature in Dynamics 365, which **you must enable for each entity** you plan to sync. The following section explains how to turn on change tracking so Stacksync can reliably capture those incremental updates.

1. In the search bar search for **Data Management**
2. On the data Management page go on the data entities page<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-data-management-entities.webp" alt="D365 Finance and Operations &#x22;Data management&#x22; workspace found via search, with the &#x22;Data entities&#x22; tile highlighted." width="794" height="370" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Search for the entities you need to sync (e.g., Customers, Vendors)
4. Select the entity
5. Click **Change tracking** in the top ribbon<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-change-tracking-menu.webp" alt="D365 F&O Data entities list with &#x22;Vendors&#x22; selected and the &#x22;Change tracking&#x22; option highlighted in the overflow menu." width="921" height="288" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Select the tracking mode:
   * `Enable entire entity` if available (tracks changes when any table used by the entity (root or child tables) changes, so it captures more updates and is usually better for integrations.
   * Otherwise `Enable primary table` (tracks changes only when the main (root) table of the entity changes)<br />

     Example:\
     For a **Customer** entity, the primary table is the core customer record and child tables include addresses.

     * If you enable **primary table**, changing the customer’s name is tracked, but changing only the address is not.
     * If you enable **entire entity**, both the name change and the address change are tracked and show up in your incremental sync.

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-enable-change-tracking-options.webp" alt="D365 F&O change tracking options &#x22;Enable primary table&#x22;, &#x22;Enable entire entity&#x22; and &#x22;Enable custom query&#x22; highlighted for Vendors." width="926" height="231" loading="lazy" decoding="async" />

       <figcaption />
     </figure>

<Callout type="warn">
  Some entities cannot have change tracking turned on. In complex entities, the “Track changes” option may be disabled or fail validation during activation, which means incremental change tracking is not available. In those cases, StackSync automatically falls back to full-sync mode for that entity, periodically re-reading all records to detect inserts and updates.
</Callout>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Dynamics 365 Finance and Operations

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations

The Stacksync **Dynamics 365 Finance & Operations (D365 F\&O)** connector lets you sync ERP data to any warehouse or operational system, with support for full syncs, incremental syncs (change tracking), and write-back.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Dynamics 365 F&O" href="/https/docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/authorize-dynamics-365-f-and-o" />
</Cards>

<Cards>
  <Card title="Enable Changes Detection Capture (CDC)" href="/https/docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/enable-changes-detection-capture-cdc" />
</Cards>

<Cards>
  <Card title="Make a Custom Entity Syncable by Stacksync" href="/https/docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/make-a-custom-entity-syncable-by-stacksync" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Make a Custom Entity Syncable by Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/dynamics-365-finance-and-operations/make-a-custom-entity-syncable-by-stacksync

Custom data entities in Dynamics 365 Finance & Operations are not always exposed to the APIs that Stacksync uses. If you don’t see your custom entity in Stacksync’s list, follow the steps below to make it available with as little developer involvement as possible.

## 1. Confirm the entity exists <a href="#id-1-confirm-the-entity-exists" id="id-1-confirm-the-entity-exists" />

* In D365 F\&O, in the search bar search for **Data management → Data entities**.<br />

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/dynamics-365-fo-custom-entity-data-entities.webp" alt="D365 F&O &#x22;Data management&#x22; workspace opened from search, with the &#x22;Data entities&#x22; tile highlighted to find a custom entity." width="794" height="370" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
* Search for your custom entity by its **name or label**.

Once you confirm the custom data entity exists, you can move on to checking whether it is API‑exposed.

## 2. Check if the entity is API-exposed <a href="#id-2-check-if-the-entity-is-public-api-exposed" id="id-2-check-if-the-entity-is-public-api-exposed" />

* While signed into D365, open a new browser tab and go to:\
  `https://<your-environment-url>/data`\
  For example:
  * `https://yourorg.operations.eu.dynamics.com/data`.
  * `https://yourorg.sandbox.operations.eu.dynamics.com/data`.
* Use the browser search (**Ctrl+F** or **Cmd+F**) and look for a collection name that matches your entity, usually in **plural** form (for example, `MyCustomEntities`).

Interpretation:

* **If you find the entity**:
  * The entity is already API-exposed.
  * In Stacksync, refresh the list of entities/tables in your Dynamics connector; the entity should be available to select and sync.
* **If you see cannot see it under `/data`**:
  * The entity exists Stacksync cannot access it via API.

## 3. If the entity is not API-exposed: what to ask a developer <a href="#id-3-if-the-entity-is-not-public-what-to-ask-a-develo" id="id-3-if-the-entity-is-not-public-what-to-ask-a-develo" />

Making an entity API-exposed requires a small, one-time change in the development environment. To keep this focused, send your D365 developer or partner the following brief request:

> **Goal:** Make custom data entity `<EntityName>` API-exposed so Stacksync can sync it.\
> **Environment:** `<your D365 environment URL>`

Ask them to:

1. Open the custom data entity in the development workspace.
2. Select the **root node** of the entity and set these properties:
   * **IsPublic** = `Yes`
   * **Public Entity Name** = singular name (e.g. `MyCustomEntity`)
   * **Public Collection Name** = plural name (e.g. `MyCustomEntities`)
3. Build and deploy the model to the target environment.
4. Confirm the entity is now API-exposed by repeating step 2.

Note that setting **IsPublic = Yes** does **not** make the entity publicly accessible on the internet.\
It only exposes the entity through the OData API **for authenticated and authorized users**. Without this flag, the entity is simply **not available via the API at all**.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Authorize Front

> Authorize your Front app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/front/authorize-front

Connecting to Front is done without any coding required in a few steps.

## 1. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections.webp" alt="Legacy Stacksync dashboard with an arrow pointing to &#x22;Connections&#x22; in the sidebar" width="937" height="605" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click "create new connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-new-connection-button.webp" alt="Legacy Stacksync My Connections page with an arrow pointing to the &#x22;Create New Connection&#x22; button" width="935" height="487" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Click "Front"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-front.webp" alt="Stacksync &#x22;Create a Connection&#x22; Select App step with the Front app tile highlighted." width="944" height="667" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Click "Authorize"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/front-authorize-stacksync-access.webp" alt="Front OAuth prompt to authorize Stacksync access to shared inboxes, teammates and company info, with &#x22;Authorize&#x22; highlighted." width="646" height="447" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your Front instance is now connected to Stacksync!🎉

# Front

> Two-way sync between Front and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/front

## Supported Objects

Stacksync lets you sync the following Front objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Accounts</td><td><span>✅ Supported</span></td></tr><tr><td>Contacts</td><td><span>✅ Supported</span></td></tr><tr><td>Contact Groups</td><td><span>✅ Supported</span></td></tr><tr><td>Events</td><td><span>✅ Supported</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Associations CDC Boost

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/associations/associations-cdc-boost

Many teams expect to track association changes in HubSpot the same way they track record updates: incrementally and in near real time. In practice, that’s not possible.

HubSpot does not provide a native mechanism to incrementally detect association changes (CDC). As a result, tracking association updates at scale is challenging and often inefficient. To know what changed, the only option is to repeatedly read the entire associations dataset. This works at small scale, but as association volumes grow, sync times degrade rapidly.

| Number of Associations | Time to Detect Changes |
| ---------------------- | ---------------------- |
| \< 10,000              | \< 1 minute            |
| 100,000                | \< 10 minutes          |
| 1,000,000              | > 1 hour               |

The situation gets worse when multiple association tables are involved. Each table must be scanned independently, and HubSpot’s API concurrency limits quickly become a bottleneck.

At first glance, Hubspot native webhooks seem like a solution. In reality, they are unreliable especially at scale and do not support associations involving custom objects. For teams running real-time, mission-critical pipelines, this creates a hard blocker.

### Solution: Associations CDC Boost

To meet these requirements, we took a different approach.

Instead of polling association tables directly or relying on unpredictables Hubspot webhooks, Stacksync monitors these rollup properties to instantly identify which records have experienced association changes.

This provides a deterministic, incremental signal suitable for real-time mission-critical workloads.

### Key Benefits

* Association changes detected in seconds instead of minutes.
* Dramatically lower API usage.
* Predictable, fast, and scalable syncs suitable for mission-critical real-time pipelines.

***

<Callout type="info">
  * Free and Starter Hubspot accounts can't benefit of Stacksync CDC Boost.
  * The following setup must be performed by a HubSpot Admin or Super Admin.
  * This setup is recommended only for associations tables with more than 10,000 records.
</Callout>

## 1. Identify Your Association Tables

Determine which association tables you want to speed up.

For each association, the rollup fields must be created on **the first object listed in the association table name** in Stacksync (e.g. for `associations_contact_deal`, the rollups live on `contact`). If that first object isn't part of the sync, Stacksync automatically falls back to the second object.

### The simplest way: let Stacksync tell you

Stacksync now ships a built-in panel that lists every association table on your sync, its current CDC status, and — for each table — the exact HubSpot object the rollup must live on and the exact property names to create.

1\. Open the sync and go to the **Schema** tab.

2. Click the HubSpot app to expand its section.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-hubspot-app-section-expanded.webp" alt="Stacksync sync Schema tab with the HubSpot app section expanded, showing connection details and &#x22;Show associations CDC configuration&#x22;." width="1600" height="909" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. At the bottom of the section, click **Show associations CDC configuration**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/hubspot-associations-cdc-configuration.webp" alt="Stacksync HubSpot app section showing the associations CDC configuration table with &#x22;associations_contact_company&#x22; marked &#x22;Not set up&#x22;." width="1600" height="910" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. For each table, click the chevron on the row to expand it. The panel lists every expected rollup property name and the HubSpot object they belong to.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/hubspot-association-table-expanded-properties.webp" alt="Expanded associations_contact_company row, status &#x22;Not set up&#x22;, listing the rollup property to create on the HubSpot contacts object." width="1600" height="196" loading="lazy" decoding="async" />

  <figcaption />
</figure>

The status column tells you where each table stands:

| Status            | Meaning                                                                                                  |
| ----------------- | -------------------------------------------------------------------------------------------------------- |
| **CDC boosted**   | CDC is currently active for this table.                                                                  |
| **Fully set up**  | Every expected rollup property exists in HubSpot. CDC will turn on at the next sync restart.             |
| **Partial setup** | The unlabeled `_label_none` rollup is present — CDC will work. Labeled rollups are missing but optional. |
| **Not set up**    | The unlabeled `_label_none` rollup is missing. CDC cannot turn on until that one property is created.    |

Use this panel as the source of truth for the rest of the steps below — it removes any ambiguity about which object to create the rollups on.

***

## 2. Navigate to Properties in HubSpot

1. In your HubSpot account, click the **Settings** icon (gear) in the top navigation bar.
2. In the left sidebar, go to **Data Management → Properties**.
3. Select the object type where the properties will be created — use the object that the **Show associations CDC configuration** panel tells you to use for that table (the first object in the association table name, or its fallback).
4. Click **Create property** to start the setup.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-properties-create-property.webp" alt="HubSpot Properties settings with numbered steps: settings gear, &#x22;Properties&#x22;, &#x22;Contact properties&#x22; object, and &#x22;Create property&#x22;." width="1193" height="791" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## 3. Create Rollup Fields

You only need **one** rollup field per association table for CDC to work: the unlabeled one (`_label_none`). Anything beyond that is optional and only refines per-label change tracking.

* **Required** — one rollup field for associations with **no labels** (the unlabeled `_label_none` rollup). Without this, CDC cannot turn on.
* **Optional** — one rollup field per **association label** you actively use (e.g. `_label_primary`, `_label_billing_contact`). Without these, CDC still works — HubSpot just treats all labeled associations as a single bucket and you lose per-label change tracking.

<Callout type="info">
  If you only create the unlabeled rollup and skip the labeled ones, the **Show associations CDC configuration** panel will report the table as **Partial setup**. That is not an error: it means CDC will run, just without per-label resolution.
</Callout>

### 3.1 Naming Convention

Property labels must follow this pattern:

```
sync_associations_{object1}_{object2}_label_{suffix}
```

**Components:**

* `sync_associations_` - Required prefix
* `{object1}` - First object in your association table name, lowercase plural (e.g. `contacts`, `companies`, `deals`)
* `{object2}` - Second object in your association table name, lowercase plural (e.g. `tickets`, `deals`, `line_items`)
* `label_` - Required separator
* `{suffix}` - Either `none` (for unlabeled) or the label name in lowercase (e.g., `primary`)

**Examples:**

| Association       | Unlabeled Field                                   | Primary Label Field                                  |
| ----------------- | ------------------------------------------------- | ---------------------------------------------------- |
| Contact ↔ Ticket  | `sync_associations_contacts_tickets_label_none`   | `sync_associations_contacts_tickets_label_primary`   |
| Company ↔ Contact | `sync_associations_companies_contacts_label_none` | `sync_associations_companies_contacts_label_primary` |

> **Important**: Use lowercase plural forms (e.g., `contacts` not `Contact`)

### 3.2 Create the "No Labels" Rollup Field

Click **Create property** and configure:

<table>
  <thead><tr><th width="218.75848388671875">Field</th><th>Value</th></tr></thead>

  <tbody><tr><td><strong>Object type</strong></td><td>The object indicated by the <strong>Show associations CDC configuration</strong> panel (the first object in the association table name)</td></tr><tr><td><strong>Group</strong></td><td>Use the default group for that object (e.g., Contact information)</td></tr><tr><td><strong>Label</strong></td><td><code>sync_associations_{object1}\\_{object2}_label_none</code></td></tr><tr><td><strong>Field type</strong></td><td><strong>Calculation property</strong> → <strong>Rollup</strong></td></tr><tr><td><strong>Rollup type</strong></td><td><strong>Sum</strong></td></tr><tr><td><strong>Number format</strong></td><td><strong>Formatted number</strong></td></tr><tr><td><strong>Association record type</strong></td><td>The other object (e.g., Ticket)</td></tr><tr><td><strong>Association labels</strong></td><td><strong>All association labels</strong></td></tr><tr><td><strong>Property to calculate</strong></td><td><strong>Record ID</strong></td></tr></tbody>
</table>

**Example for Contact-Ticket:**

* Label: `sync_associations_contacts_tickets_label_none`
* Create on: Contact
* Association record type: Ticket

Click **Create** to save.

### 3.3 Create a Rollup Field for Each Association Label

If you use association labels (like "Primary", "Secondary", etc.), create one rollup field for each label.

Click **Create property** and configure:

<table>
  <thead><tr><th width="219.110107421875">Field</th><th>Value</th></tr></thead>

  <tbody><tr><td><strong>Object type</strong></td><td>Same as above</td></tr><tr><td><strong>Group</strong></td><td>Use the default group</td></tr><tr><td><strong>Label</strong></td><td><code>sync_associations_{object1}\\_{object2}_label_{labelname}</code></td></tr><tr><td><strong>Field type</strong></td><td><strong>Calculation property</strong> → <strong>Rollup</strong></td></tr><tr><td><strong>Rollup type</strong></td><td><strong>Sum</strong></td></tr><tr><td><strong>Number format</strong></td><td><strong>Formatted number</strong></td></tr><tr><td><strong>Association record type</strong></td><td>The other object</td></tr><tr><td><strong>Association labels</strong></td><td><strong>Select association labels</strong> → Select <strong>ONLY</strong> this specific label</td></tr><tr><td><strong>Property to calculate</strong></td><td><strong>Record ID</strong></td></tr></tbody>
</table>

**Example for Contact-Ticket with "Primary" label:**

* Label: `sync_associations_contacts_tickets_label_primary`
* Association labels: Select only "Primary"

Repeat this for **each** association label you use.

***

## 4. Enable the Hubspot Association CDC Boost in Stacksync

After creating the rollup fields in HubSpot, restart the sync so Stacksync can re-detect them. There is no manual toggle — Stacksync auto-enables CDC for every association table whose unlabeled `_label_none` rollup it finds on HubSpot at startup.

1. Navigate to your sync in Stacksync.
2. Click **Stop sync** and wait for it to fully stop.
3. Click **Start sync**.

That's it. When the sync starts back up, Stacksync re-checks your HubSpot setup for every association table and automatically turns on the CDC Boost wherever the required rollup property is in place.

To confirm the change took effect, reopen the **Show associations CDC configuration** panel — any table that previously read **Fully set up** should now read **CDC boosted**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/hubspot-associations-cdc-boosted-status.webp" alt="Association tables list with statuses: some &#x22;Not set up&#x22;, others such as associations_contact_company marked &#x22;CDC boosted&#x22;." width="1600" height="264" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## 5. Maintenance & Monitoring

### 5.1 Custom rollup fields monitoring

Stacksync re-evaluates rollup configuration in two ways:

* **At every sync restart** — when you stop and start the sync, Stacksync re-detects which rollups exist for every association table and updates CDC eligibility accordingly. Creating a previously-missing rollup and restarting the sync is enough to turn CDC on for that table.
* **Continuously, in the background** — Stacksync periodically verifies that the rollup properties it relies on still exist in HubSpot. If a rollup property is deleted or modified mid-sync:
  * Stacksync automatically detects the issue.
  * Falls back to a full association scan for the impacted table.
  * Sends an email notification with remediation guidance.

This combination ensures data correctness whether the change happens at restart time or while the sync is running.

### 5.2 Association Model Change

If HubSpot or your team introduces **new association labels** for an existing object pair:

* Stacksync automatically detects the change
* You receive an email notification
* The email includes instructions to extend the rollup configuration if needed

This allows association models to evolve safely over time without silent data gaps.

### 5.3 Operational Guarantees

* No data loss if rollups are misconfigured or removed
* Automatic fallback mechanisms
* Explicit customer notifications on required actions
* Designed for enterprise-scale data volumes and SLAs

***

## Summary

The Associations CDC Boost replaces slow full-scan or webhooks approaches with a scalable, incremental, and reliable detection mechanism. By leveraging HubSpot rollup properties, Stacksync enables real-time association syncing that meets enterprise performance and reliability requirements.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Associations

> Stacksync supports syncing your HubSpot Associations

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/associations

## TL;DR

* Stacksync supports *two-way sync* for HubSpot associations
* Associations are *undirected*, meaning that if object A is associated with object B, object B is also associated with object A in return.
* Associations cannot be updated, but you can delete and create a new one.
* You can add several associations (with different association labels) to the same pair of objects.
* Associations between ALL synced objects are supported, including emails, meetings, engagements, all standard and custom objects...
* Associations for custom objects are also supported ✅

## How HubSpot associations work

To associate two objects in HubSpot, you need to sync and use a third table *"the association table"* which contains in each row both of the object_ids to associate (e.g. associating a contact_id and a company_id).

When you connect two objects in HubSpot, the connection is undirected. If Contact A is connected to Company X, then Company X is also connected to Contact A in return.

To specify the type of connection between two objects, you can utilize association labels. For instance, Contact A can be labeled as a *manager* at Company X and also as a *director* at Company Y. In this case, you would connect Contact A with both companies but assign different labels to each connection.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-association-labels-different-companies.webp" alt="Table rows showing one contact_id associated with two company_ids, labeled &#x22;manager&#x22; and &#x22;director&#x22;." width="601" height="100" loading="lazy" decoding="async" />

  <figcaption><p>Example of HubSpot associations: the same Contact is associated with two different Companies, each with different roles.</p></figcaption>
</figure>

<Callout type="success">
  You can add several labels to the same pair of objects. For instance, Contact A can be in the *finance_department* and in the *marketing_department* of the same company. For that, you can add **two rows for the same pair of objects but with different association labels** as follows:

  <img src="/https/docs.stacksync.com/images/connectors/hubspot-association-labels-same-company.webp" alt="Table rows showing one contact and company pair with two association labels, &#x22;finance_department&#x22; and &#x22;marketing_department&#x22;." width="601" height="100" loading="lazy" decoding="async" />
</Callout>

Stacksync ensures that all associations between pairs of object types are synchronized to an associative table. For example, any connection between a Contact and a Company will be synced to the "`associations_company_and_contact`" table, which has the following 3 columns:

* `contact_id` (string)
* `company_id` (string)
* `association_label` (string)

There will be an additional column `stacksync_record_id_xxxxxx`. Don't worry, this column is just used by Stacksync to keep your records syncing properly. Just do not tamper with this column!

Because HubSpot associations are undirected, these associations will only appear in one table. If you have a table `associations_company_and_contact`, there won't be a table with the opposite order (`associations_contact_and_company`).

<Callout type="info">
  Associations cannot be updated. Instead, you can delete and then create an association between the two desired objects with a different label.
</Callout>

## Association Type IDs

Every association in HubSpot has an `association_type_id`, defining the relationship between objects. Even if not specified during creation, HubSpot automatically assigns an `association_type_id`.\
The list of `association_type_ids` is available on the [HubSpot documentation](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4#company-to-object).

## Association Labels

HubSpot provides a set of predefined association types (e.g. unlabeled contact to company), but users can define custom association labels, if it is included in their HubSpot plan. There are two HubSpot-defined association types:

* **No Label (Default Association Type)**
  * Every association between objects (Contacts, Companies, Deals, etc.) automatically has a default unlabeled association.
  * Even when a labeled association is added (Primary or Custom), the unlabeled association remains.
* **'Primary' Label (For Company-Contact Associations)**
  * HubSpot has a built-in 'Primary' label specifically for associating a Contact with their main Company.
  * While a Contact must have a primary company, other objects (e.g., Deals) may or may not have a primary company.
  * Example: Joe works at both Google and Amazon, but Google is his primary employer.
* **Custom Labels**
  * Users on eligible HubSpot plans can define custom association labels (e.g., ‘Advisor’ for a Contact-Company relationship), which you can define through the [HubSpot UI](https://knowledge.hubspot.com/object-settings/create-and-use-association-labels) or the [HubSpot API](https://developers.hubspot.com/docs/reference/api/crm/associations/associations-schema#post-%2Fcrm%2Fv4%2Fassociations%2Fdefinitions%2Fconfigurations%2F%7Bfromobjecttype%7D%2F%7Btoobjecttype%7D%2Fbatch%2Fcreate).
  * When a custom label is added, the default unlabeled association still exists.
  * Example: Tom is an Advisor at Amazon, so a custom label 'Advisor' is created for his Contact-Company association in addition to the default unlabeled association.

Read more on the HubSpot Association documentation [here](https://developers.hubspot.com/docs/api/crm/associations).

## Querying your data

You can `JOIN` your data using the associations tables as follows:

```sql
SELECT
  -- Contact data
  contact.id, contact.email,
  -- Company data
  company.id, company.city,
  -- Association label
  associations.association_label
FROM (SELECT DISTINCT company_id, contact_id FROM hubspot.associations_company_and_contact) associations
LEFT JOIN hubspot.company company ON company.id = association.company_id
LEFT JOIN hubspot.contact contact ON contact.id = association.contact_id;
```

In this particular example, Contact and Company are used, but the principles mentioned can be applied to any other HubSpot CRM objects that can be synced with Stacksync. Suppose you have the custom Pets and custom Shelters objects in HubSpot. In that case, Stacksync will synchronize an `associations_pets_and_shelters` table, including the `pet_id` and `shelter_id` columns.

***

## Advanced

<Cards>
  <Card title="Associations CDC Boost" href="/https/docs.stacksync.com/two-way-sync/connectors/hubspot/associations/associations-cdc-boost" />
</Cards>

***

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Syncing Associations using Postgres IDs

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/associations/syncing-associations-using-postgres-ids

When managing HubSpot associations through Stacksync, the most robust approach is to decouple the creation of the association from the generation of HubSpot's internal IDs. By using your internal Postgres IDs as the "stable join key," you ensure that associations are created deterministically and without race conditions.

We recommend creating associations using internal Postgres IDs rather than waiting for HubSpot IDs.

1. **Atomic Transactions:**

   When a new relationship is created in your application (e.g., a Deal is linked to a Client), insert the Client, the Deal, and their Association into your Postgres database within a single atomic transaction.

   This ensures that the relationship is recorded immediately in your system, even before Stacksync has finished syncing the individual records to HubSpot.
2. **ID Propagation:**

   Once Stacksync creates the records in HubSpot and writes the `hubspot_id` back to your `deals` and `clients` tables, you can propagate those IDs into your associations table.

## Sync options

Depending on your requirements for latency, you can choose between two implementation methods:

1. **Near-real-time (Triggers):**

   Use Postgres triggers to monitor updates on your `deals` and `clients` tables. As soon as both records in a relationship have been assigned a HubSpot ID, the trigger executes the sync query to update the association table.

   1. **Pros:** Low latency; associations are ready for HubSpot almost instantly.
   2. **Cons:** Higher database overhead and complexity.
2. **Batch (Scheduled Job):**\
   Run the sync query below as a scheduled job (e.g., a cron job) every 1 minute. This backfills missing HubSpot IDs in the associations table in bulk.
   1. **Pros:** Simpler to implement and monitor.
   2. **Cons:** Up to a 60-second delay in association syncing.

## Implementation: The Sync Query

Use the following SQL query to bridge your internal Postgres IDs with HubSpot IDs. This query identifies associations that lack HubSpot IDs and pulls them from the successfully synced `deals` and `clients` tables.

```sql
UPDATE associations_deal_client
SET
  hubspot_deal_id = d.id,
  hubspot_client_id = c.id
FROM deals d
JOIN clients c
  ON associations_deal_client.postgres_deal_id = d.postgres_id
 AND associations_deal_client.postgres_client_id = c.postgres_id
WHERE associations_deal_client.hubspot_deal_id IS NULL
   OR associations_deal_client.hubspot_client_id IS NULL;
```

By using `postgres_id` as the join key, you guarantee that the association is pinned to the correct records. Once the `hubspot_deal_id` and `hubspot_client_id` are populated in the `associations_deal_client` table, Stacksync can pick them up and create the corresponding association in HubSpot.

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Attachments

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/attachments

## How HubSpot Attachments Work

Attachments are always associated with an Engagement object, such as a call, note, or similar interaction. They can be linked to both Standard and Custom objects in HubSpot.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-contact-engagement-actions.webp" alt="HubSpot contact record with the engagement actions Note, Email, Call, Task, Meeting and More highlighted." width="369" height="267" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Syncing Attachments in Stacksync:

* At least one Engagement object needs to be synced along with the Attachments object. For example, to sync all attachments linked specifically to Calls, you must sync both *Calls* and *Attachments*.
* To sync all attachments regardless of the engagement object they are associated with, you need to sync *all objects*. However, syncing all objects is not recommended unless it is necessary, as this can result in syncing unnecessary data.

# Authorize HubSpot

> Authorize your HubSpot app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/authorize-hubspot

<Callout type="info">
  You need to be 'Super Admin' in HubSpot to be able to grant Stacksync access to HubSpot.\
  This is because only the 'Super Admins' have the OAuth scope which is required to connect your HubSpot to an external service such as Stacksync (more info [here](https://community.hubspot.com/t5/APIs-Integrations/OAuth-issue-requiring-superadmin/m-p/250649)).
</Callout>

## 1. Click the connection tile

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-home-connections-tile.webp" alt="Stacksync &#x22;Welcome to Stacksync!&#x22; home page with the &#x22;Connections&#x22; tile highlighted under &#x22;Jump right in&#x22;." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Select the HubSpot connector

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-hubspot.webp" alt="Stacksync &#x22;Create a new Connection&#x22; Select app step with the HubSpot connector tile highlighted." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Optional: Check the Grant access to sensitive fields checkbox.

This will allow our system to read sensitive and highly sensitive fields from your hubspot account

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-grant-sensitive-fields-access.webp" alt="Stacksync HubSpot &#x22;Configure connection&#x22; step with &#x22;Grant access to sensitive fields&#x22; checked and the &#x22;Next&#x22; button highlighted." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Choose the hubspot account you want to use

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-choose-account-oauth.webp" alt="HubSpot &#x22;Connecting Stacksync two-way sync to HubSpot&#x22; page with an account selected and the &#x22;Choose Account&#x22; button highlighted." width="1600" height="887" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Authorize access to stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-connect-app-permissions.webp" alt="HubSpot consent page listing Stacksync's CRM data permissions, with the terms checkbox and &#x22;Connect app&#x22; button highlighted." width="1600" height="888" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Configure your connection on stacksync

6.1 Choose your connection name

6.2 Choose your connection resource id. This is auto generated based on the name - changing it is optional.

6.3 Choose the region you wish to create your connection in. *Resources in one region cannot access resources created in other regions*

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubspot-connection-name-region-create.webp" alt="Stacksync HubSpot connection Create step with Connection Name, Resource ID, &#x22;US East (N. Virginia)&#x22; region and &#x22;Create&#x22; highlighted." width="1600" height="889" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your HubSpot instance is connected 🎉

# HubDB

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/hubdb

Stacksync supports both syncing existing HubDB tables and generating new HubDB tables. Choose whether to sync the Published or Draft versions.

<Callout type="info">
  Syncing published HubDB tables will cause draft changes to be published.
</Callout>

If you're syncing an existing HubDB table, you can choose the version when linking tables.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubdb-link-tables-published-draft-version.webp" alt="Stacksync Create New Sync Link Tables step for HubSpot to Postgres, offering &#x22;HubDB Table (Published Version)&#x22; and &#x22;(Draft Version)&#x22;." width="1600" height="853" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you're generating a new table in HubDB, choose the version when mapping fields.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/hubdb-map-fields-table-version.webp" alt="Stacksync Map Fields step for HubSpot to Postgres with &#x22;HubDB table version to sync&#x22; set to Draft instead of Published." width="1600" height="858" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# HubSpot

> Two-way sync between HubSpot and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot

## Supported Objects

Stacksync lets you sync the following HubSpot objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Contact</td><td><span>✅ Supported</span></td></tr><tr><td>Company</td><td><span>✅ Supported</span></td></tr><tr><td>Deal</td><td><span>✅ Supported</span></td></tr><tr><td>Line Item</td><td><span>✅ Supported</span></td></tr><tr><td>Product</td><td><span>✅ Supported</span></td></tr><tr><td>Ticket</td><td><span>✅ Supported</span></td></tr><tr><td>Quote</td><td><span>✅ Supported</span></td></tr><tr><td>Goal</td><td><span>✅ Supported</span></td></tr><tr><td>Owner</td><td><span>✅ Supported</span></td></tr><tr><td>Pipeline</td><td><span>✅ Supported</span></td></tr><tr><td>Stages</td><td><span>✅ Supported</span></td></tr><tr><td>Audit</td><td><span>✅ Supported</span></td></tr><tr><td>Subscriptions</td><td><span>✅ Supported</span></td></tr><tr><td>HubDB</td><td><span>✅ Supported</span></td></tr><tr><td>Forms</td><td><span>✅ Supported</span></td></tr><tr><td>Calls</td><td><span>✅ Supported</span></td></tr><tr><td>Communications</td><td><span>✅ Supported</span></td></tr><tr><td>Emails</td><td><span>✅ Supported</span></td></tr><tr><td>Meetings</td><td><span>✅ Supported</span></td></tr><tr><td>Notes</td><td><span>✅ Supported</span></td></tr><tr><td>Post Mail</td><td><span>✅ Supported</span></td></tr><tr><td>Tasks</td><td><span>✅ Supported</span></td></tr><tr><td>Marketing Emails</td><td><span>✅ Supported</span></td></tr><tr><td>Invoices</td><td><span>✅ Supported</span></td></tr><tr><td>Attachments</td><td><span>✅ Supported</span></td></tr><tr><td>Custom objects (all)</td><td><span>✅ Supported</span></td></tr><tr><td>Associations</td><td><span>✅ Supported</span></td></tr><tr><td>Users</td><td><span>✅ Supported</span></td></tr><tr><td>Services</td><td><span>✅ Supported</span></td></tr><tr><td>Listings</td><td><span>✅ Supported</span></td></tr><tr><td>Courses</td><td><span>✅ Supported</span></td></tr><tr><td>Appointments</td><td><span>✅ Supported</span></td></tr><tr><td>Commerce Payments</td><td><span>✅ Supported</span></td></tr><tr><td>Email Events</td><td><span>✅ Supported</span></td></tr><tr><td>Property History</td><td><span>✅ Supported</span></td></tr><tr><td>Campaigns</td><td><span>🕘 Coming soon</span></td></tr><tr><td>Feedback Submissions</td><td><span>❌ Not supported</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [hello@stacksync.com](mailto:hello@stacksync.com) and we can add support for them in no time!

<Callout type="success">
  All Associations between synced objects are supported. You can choose which associations to sync during the sync setup or sync update.
</Callout>

## Things to keep in mind

#### HubSpot Account Type

The type of HubSpot Account can have restrictions on the supported objects.

* The free version of HubSpot Account does not support the Audit object.
* Custom Objects are only supported in the HubSpot Enterprise version.

#### Custom Fields

HubSpot allows the creation of custom fields with duplicate field names that can conflict with HubSpot system fields, such as the `id` field for example.

In cases where an object includes a custom field named `id`, it may conflict with HubSpot’s native record ID, which is also named `id`. HubSpot permits the creation of custom fields with duplicate names in any object due to its underlying data storage model, which does not enforce uniqueness of field names and lacks a logic layer to prevent such conflicts. To avoid ambiguity during data sync, any custom fields named `id` that conflict with native HubSpot fields will be ignored and excluded from synchronization.

#### Backup and Restore Capabilities

<Callout type="warn">
  With two-way sync, we recommend using a professional backup/restore for your HubSpot CRM.
</Callout>

HubSpot does not have a native backup and restore functionality. Two-way syncing is powerful. A mistake in a connected App could have consequences on your HubSpot data as well. If you sync to another system that has backup capabilities built-in such as a modern database (e.g. Postgres), it could be used to back up data in HubSpot as well but we still recommend using a robust backup and restore service such as:

* [SysCloud](https://ecosystem.hubspot.com/marketplace/apps/productivity/connector/syscloud-backup-for-hubspot-595013)
* [Pro Backup](https://ecosystem.hubspot.com/marketplace/apps/productivity/connector/pro-backup-380854)
* [Rewind](https://rewind.com/products/backups/hubspot/)

***

### Q\&A

<details>
  <summary>
    Syncing columns with custom data constraints
  </summary>

  HubSpot allows columns to have certain data constraints that may cause issues when the incorrect format of data is synced.

  For example, the single-line text field can have constraints for allowing only numeric values, not allowing any special characters, and having a maximum or minimum character limit.

  If you face an error regarding this, either modify the restrictions on the HubSpot column to allow the data to sync or modify the data to fit the format of the HubSpot column.
</details>

# Sensitive fields

> HubSpot requires additional authorization before sensitive fields can be synced. This page explains how to enable access to sensitive fields on our platform.

Source: https://docs.stacksync.com/two-way-sync/connectors/hubspot/sensitive-fields

## New Connection

When creating a new connection, follow the standard connection flow.\
During **Step 3**, enable the following option:

[**Grant access to sensitive fields**](/two-way-sync/connectors/hubspot/authorize-hubspot#id-3.-optional-check-the-grant-access-to-sensitive-fields-checkbox)

## Existing connection

To enable sensitive fields for an existing connection:

1. Re-authorize your HubSpot connection
2. During **Step 3**, enable:

[**Grant access to sensitive fields**](/two-way-sync/connectors/hubspot/authorize-hubspot#id-3.-optional-check-the-grant-access-to-sensitive-fields-checkbox)<br />

## Syncing sensitive fields

Once your connection has been created or re-authorized with sensitive field access enabled, you can include sensitive fields in your sync configuration.

To do this, [edit your sync configuration](/two-way-sync/features/two-way-sync).\
Sensitive fields will appear during the **Map fields** step.

# Authorize MariaDB

> Authorize your MariaDB app and start syncing data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/mariadb/authorize-mariadb

## Adding Credentials to Stacksync <a href="#adding-credentials-to-stacksync" id="adding-credentials-to-stacksync" />

### 1. Select MariaDB in the Create New Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-mariadb.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with an arrow pointing to the MariaDB tile." width="1600" height="766" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Add your MariaDB credentials as Connection String or as Parameters.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-credentials-connection-string-or-parameters.webp" alt="Stacksync MySQL dialog highlighting the &#x22;Connection String&#x22; field or the Host, Port, Username, Password and Database fields." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. (Optional) Upload your SSL Root Certificate file

**More details on how to retrieve your SSL Certificate:**

[**https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate**](/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssl-root-certificate-upload.webp" alt="Stacksync MySQL dialog with the &#x22;SSL (Optional)&#x22; section expanded, showing the &#x22;SSL Root Certificate&#x22; file upload." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. (Optional) Add SSH user and SSH host

**More details on how to set up a SSH tunnel to connect to your RDS instance:**

[**https://docs.stacksync.com/connectors/setup-options/ssh-tunneling/access-private-asw-rds-instance-through-jumpbox**](/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssh-tunnel-settings.webp" alt="Stacksync MySQL dialog with the &#x22;SSH Tunnel (Optional)&#x22; section expanded, showing SSH User, SSH Host, SSH Port and a public key." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click 'Authorize App'

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-authorize-app-button.webp" alt="Stacksync MySQL credentials dialog with an arrow pointing to the &#x22;Authorize App&#x22; button." width="1512" height="946" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# MariaDB

> Two-way sync between MariaDB and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/mariadb

## Introduction

MariaDB is a popular open-source relational database management system that originated as a fork of MySQL. It remains fully compatible with MySQL while offering additional features and improved performance in some scenarios. It’s widely used in enterprise and cloud environments for its flexibility, speed, and reliability.

Now you can seamlessly synchronize data across all your CRM and database systems using **StacksSync**!

## Things to keep in mind

### During setup

* [x] **All MariaDB existing tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column; composite primary keys are not supported.
* [x] **Primary keys must be auto-generated**\
  Ensure your primary keys are auto-generated by your database (e.g. use `AUTO_INCREMENT` for primary keys).
* [x] **Check user permissions**\
  Verify that the MariaDB user used by Stacksync to connect to your database has sufficient privileges (e.g., `SELECT`, `INSERT`, `UPDATE`, and `DELETE`) on the tables you want to map.
* [x] **Run this query to check if Stacksync can create triggers:**

  ```sql
  SELECT
    CASE
      WHEN @@log_bin = 0 THEN '✅ Binary logging is OFF — No issues.'
      WHEN @@log_bin = 1 AND @@log_bin_trust_function_creators = 1 THEN '✅ Binary logging is ON — Trust is enabled — All good.'
      ELSE '⚠️  Binary logging is ON but trust_function_creators is OFF — Please fix to allow trigger creation.'
    END AS status;
  ```

  if you see ⚠️, it means you need to update the server settings (requires admin access).

  ```sql
  SET GLOBAL log_bin_trust_function_creators = 1;
  ```

  **Reason:**\
  Stacksync creates deterministic triggers for internal logging and syncing.\
  By default, MariaDB restricts non-super users from creating triggers when binary logging is enabled — unless `log_bin_trust_function_creators` is set to `ON`.

  Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com).

If a table in your database does not appear in Stacksync, one of the above conditions is likely not met. Check out our MariaDB snippets collection for troubleshooting tips.

### After setup

Renaming schema, tables, or columns will break Stacksync configuration. But don't worry, we've got you covered! Refer to our [Update Sync Configuration](/two-way-sync/features/update-sync-configuration) guide for detailed steps to address this.

# MongoDB

> MongoDB is the most commonly used NoSQL database. Here is everything you need to know to connect it to any of your other systems using Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/mongodb

## Prerequisites

* [x] **The primary key (`_id`) must be a unique, auto-generated** [**ObjectId**](https://www.mongodb.com/docs/manual/reference/bson-types/#std-label-objectid)**.**\
  MongoDB's built-in [ObjectId](https://www.mongodb.com/docs/manual/reference/bson-types/#std-label-objectid) is the only data type we support for MongoDB collections' primary keys.
* [x] **MongoDB must be running as part of a** [**Replica Set**](https://www.mongodb.com/docs/manual/replication/) **for Stacksync to detect changes from MongoDB**
  * If you use the **Atlas Database**, no further action is needed.
  * If you **self-host**, or use a **different managed service**, make sure the MongoDB is configured as a *replica set* by running `rs.status()` in a MongoDB shell. This is required [*even if you only have a single node*](https://www.mongodb.com/community/forums/t/using-change-streams-in-a-standalone-database/127281/2).\
    \
    1\. To set up a single-node replica set, run:\
    `mongod --port 27017 --dbpath /path/to/data --replSet rs0 --auth --keyFile /path/to/keyfile`\
    This assumes you've already set up a key file, otherwise do:\
    `echo "<YOUR_SECRET>" > /path/to/keyfile`\
    2\. Connect to the instance:\
    `mongosh "mongodb://localhost:27017"` (don't forget to add username and password)\
    3\. Once inside the instance, you have to go through replica set configuration at least once. A simple example could be:\
    `rs.initiate({ _id: "rs0", members: [{ _id: 0, host: "localhost:27017" }] })`.\
    \
    Check out [the official documentation](https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set/#std-label-server-replica-set-deploy) for more information.

<Callout type="success">
  The [oplog](https://www.mongodb.com/docs/manual/core/replica-set-oplog/) and [change streams](https://www.mongodb.com/docs/manual/changeStreams/) are built-in tools managed by MongoDB and leveraged by Stacksync to track changes to your data in real time. Enabling replication is required to make them available.
</Callout>

* [x] **Allow Stacksync IPs**\
  Stacksync services must be able to access your MongoDB instance(s). To avoid issues, make sure to whitelist [Stacksync's public IPs](/two-way-sync/connectors/setup-options/ip-whitelisting).
* [x] **A MongoDB user with the required permissions.**\
  The provided MongoDB user should be able to **create collections, read and write from them and also access the oplog.**\
  In order to sync, track changes and keep data sources updated, these are necessary. Otherwise, data cannot be accessed.\
  \
  \- For **Atlas Database**, follow [the official documentation](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#add-database-users).\
  \- For all other deployments, you can run:

<Callout type="info">
  We strongly suggest using MongoDB's built-in [`read`](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-read) or [`readWrite`](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-readWrite) roles. For more information on how to [create](https://www.mongodb.com/docs/manual/reference/command/createUser/#mongodb-dbcommand-dbcmd.createUser) and [grant roles](https://www.mongodb.com/docs/manual/reference/command/grantRolesToUser/) to users, check out [MongoDB's official documentation](https://www.mongodb.com/docs/manual/reference/database-users/).
</Callout>

```js
// Grant user roles without overwriting existing ones (specific DBs)
use admin

const user = db.getUser("<user>");  // Change to your username

const updatedRoles = user.roles.concat([
        { role: "read", db: "local" }, // required to read the oplog and therefore read changes from mongodb
        { role: "readWrite", db: "<db1>" }, // when need to read and write to mongodb
        { role: "read", db: "<db2>" }, // when do not need to write to mongodb
        // Add the database(s) you want Stacksync to have access to
      ]);

db.updateUser("<user>", { roles: updatedRoles });
```

<Callout type="warn">
  Access must be given at the **database level** for changes to be correctly replicated. Individual collection access is not currently supported.
</Callout>

If a collection you see in your database does not appear in Stacksync, or changes are not correctly replicated, one of the previous conditions is not met. Please double-check your setup in that case.

If you have any questions, don't hesitate to contact us at [hello@stacksync.com](mailto:hello@stacksync.com).

## Connecting your MongoDB instance

To connect your MongoDB database to Stacksync, you'll need the following data:

<Callout type="success">
  You can either enter these fields individually or **simply paste your** [**connection string**](#connection-strings) **directly**. We'll take care of the rest.
</Callout>

* **Protocol**: must be `mongodb+srv://` or `mongodb://`.
* **Host**: the URI or IP where the server can be found.
* **Port** (optional): the default is usually `27017`.
* **Authentication method**

  * **Username**: name used to authenticate with the server.
  * **Password**: the password used to authenticate with the server.

  or

  * **TLS/SSL** (X.509 Certificate): you must upload your public .pem file. In MongoDB Atlas [you can download it when you create the user](https://www.mongodb.com/docs/atlas/security-add-mongodb-users/#add-database-users):

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/mongodb-atlas-x509-certificate-user.webp" alt="MongoDB Atlas &#x22;Add New Database User&#x22; with &#x22;Certificate&#x22; authentication and &#x22;Download certificate when user is added&#x22; toggled on." width="1276" height="649" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
* **Database**: the name of the database where data is present.
* Connection options:
  * [**Replica Set**](https://www.mongodb.com/docs/manual/reference/connection-string-options/#replica-set-option) (optional): allows you to specify the name of the replica set to connect to.
  * [**Auth Database**](https://www.mongodb.com/docs/manual/reference/connection-string-options/#mongodb-urioption-urioption.authSource) (optional): the database that holds the user's info. The default is `admin` for username & password, and `$external` for TLS.

<Callout type="info">
  Other connection options are not currently supported. If you need special assistance, please contact us at [hello@stacksync.com](mailto:hello@stacksync.com).
</Callout>

* **SSH Tunnel**:
  * **Username**: The user Stacksync can identify as to establish the tunnel.
  * **Host**: IP of the machine to SSH into.
  * **Public Key**: Copy into your machine's `~/.ssh/authorized_keys` file. You can use [ssh-copy-id](https://www.ssh.com/academy/ssh/copy-id) or simply SSH into the server and paste it using your preferred text editor.

<Callout type="info">
  SSH tunneling is currently only supported for single, self-hosted MongoDB instances via the mongodb:// protocol. For any further questions, please contact us at [hello@stacksync.com](mailto:hello@stacksync.com).
</Callout>

<div>
  <figure><img src="/https/docs.stacksync.com/images/connectors/mongodb-connection-username-password.webp" alt="Stacksync MongoDB dialog with Connection String or protocol, host, &#x22;Username and Password (SCRAM-SHA)&#x22; auth and database fields." width="761" height="1405" loading="lazy" decoding="async" /><figcaption><p>The connection setup screen for user+password</p></figcaption></figure>

   

  <figure><img src="/https/docs.stacksync.com/images/connectors/mongodb-connection-x509-certificate.webp" alt="Stacksync MongoDB dialog with &#x22;X.509 Certificate (MONGODB-X509)&#x22; auth, an SSL Root Certificate upload and Auth Database &#x22;$external&#x22;." width="767" height="1456" loading="lazy" decoding="async" /><figcaption><p>The connection setup screen for TLS/SSL</p></figcaption></figure>
</div>

### Connection strings

MongoDB has 2 formats for their [connection strings](https://www.mongodb.com/docs/manual/reference/connection-string/). Make sure to pick the one that best suits your use case.

<Callout type="success">
  If you're not sure which format to use, **we recommend using the (newer) SRV format**.
</Callout>

* **SRV**: `mongodb+srv://[username:password@]host[/[defaultauthdb][?options]]` *(elements in brackets* `[]` *are optional)*
  * Example: `mongodb+srv://myDatabaseUser:D1fficultP%40ssw0rd@cluster0.example.mongodb.net/?retryWrites=true&w=majority`
* **Standard**: `mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]` *(elements in brackets* `[]` *are optional)*
  * Example: `mongodb://myDatabaseUser:D1fficultP%40ssw0rd@mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl`

Find more examples [here](https://www.mongodb.com/docs/manual/reference/connection-string-examples/#std-label-connections-connection-examples).

### Getting your connection string

To find out your connection string, check out MongoDB's [official guide for MongoDB Atlas](https://www.mongodb.com/docs/guides/atlas/connection-string/), or [their guide for self-hosted clusters](https://www.mongodb.com/resources/products/fundamentals/mongodb-connection-string#connection-strings-for-a-self-hosted-mongodb-cluster).

If you have any questions, don't hesitate to contact us at [hello@stacksync.com](mailto:hello@stacksync.com), we're happy to help!

# MotherDuck

> Two-way sync between MotherDuck and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/motherduck

Introduction

MotherDuck is a cloud analytics platform built on top of DuckDB, designed to deliver fast and efficient data analysis in the cloud. By combining the simplicity of DuckDB with the scalability of cloud infrastructure, MotherDuck allows teams to run complex queries on larger datasets without needing extensive infrastructure. It integrates seamlessly with popular data tools, offering a user-friendly experience for data engineers, analysts, and developers who seek powerful, scalable analytics in a lightweight platform.

## Authorize MotherDuck

1. In MotherDuck, navigate to **Settings** > **General** and select **Create Token**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-settings-create-token.webp" alt="MotherDuck Settings General page with Access tokens section and the &#x22;Create token&#x22; button highlighted." width="1482" height="777" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Enter a name for your token, then click Create.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-create-token-dialog.webp" alt="MotherDuck &#x22;Create token&#x22; dialog with the name &#x22;stacksync&#x22; entered and the &#x22;Create token&#x22; button highlighted." width="1433" height="727" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Copy the generated access token.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-copy-access-token.webp" alt="MotherDuck &#x22;Created stacksync&#x22; dialog showing the generated access token to copy before closing." width="1466" height="808" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. Log in to Stacksync and click on **Connections** > **Create new connection**.
5. Search for MotherDuck and select it.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-motherduck.webp" alt="Stacksync &#x22;Create a Connection&#x22; Select App step with the MotherDuck tile highlighted." width="1600" height="542" loading="lazy" decoding="async" />

  <figcaption />
</figure>

6. Paste the access token here. If you're using a database name or schema other than the default, update those settings accordingly.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/motherduck-access-token-authorize.webp" alt="Stacksync Motherduck dialog with the &#x22;Motherduck Access Token&#x22; field, database &#x22;my_db&#x22;, schema &#x22;main&#x22; and &#x22;Authorize App&#x22; highlighted." width="1600" height="540" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can now use your MotherDuck connection in a sync!

# Authorize MySQL

> Authorize your MySQL app and start syncing data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/mysql/authorize-mysql

## Adding Credentials to Stacksync <a href="#adding-credentials-to-stacksync" id="adding-credentials-to-stacksync" />

### 1. Select MySQL in the Create New Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-mysql.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with an arrow pointing to the MySQL tile." width="1512" height="946" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**2. Add your** MySQL **credentials as Connection String or as Parameters.**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-credentials-connection-string-or-parameters.webp" alt="Stacksync MySQL dialog highlighting the &#x22;Connection String&#x22; field or the Host, Port, Username, Password and Database fields." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. (Optional) Upload your SSL Root Certificate file

**More details on how to retrieve your SSL Certificate:**

[**https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate**](/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssl-root-certificate-upload.webp" alt="Stacksync MySQL dialog with the &#x22;SSL (Optional)&#x22; section expanded, showing the &#x22;SSL Root Certificate&#x22; file upload." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. (Optional) Add SSH user and SSH host

**More details on how to set up a SSH tunnel to connect to your RDS instance:** [**https://docs.stacksync.com/connectors/postgres/authorize-postgres/amazon-rds/access-private-rds-instance-through-jumpbox**](/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-ssh-tunnel-settings.webp" alt="Stacksync MySQL dialog with the &#x22;SSH Tunnel (Optional)&#x22; section expanded, showing SSH User, SSH Host, SSH Port and a public key." width="1512" height="947" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click 'Authorize App'

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/mysql-authorize-app-button.webp" alt="Stacksync MySQL credentials dialog with an arrow pointing to the &#x22;Authorize App&#x22; button." width="1512" height="946" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# MySQL

> Two-way sync between MySQL and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/mysql

## Introduction

MySQL is a widely-used, open-source relational database management system that uses SQL (Structured Query Language) for data manipulation. Known for its speed, reliability, and ease of use, MySQL is the foundation for many popular applications and websites. It powers critical backend systems and supports large-scale enterprise solutions.

Now you can seamlessly synchronize data across all your CRM and database systems using Stacksync!

## Things to keep in mind

### During setup

* [x] **All MySQL tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column; composite primary keys are not supported.
* [x] **Primary keys must be auto-generated**\
  Ensure your primary keys are auto-generated by your database (e.g. use `AUTO_INCREMENT` for primary keys).
* [x] **Check user permissions**\
  Verify that the MySQL user used by Stacksync to connect to your database has sufficient privileges (e.g., `SELECT`, `INSERT`, `UPDATE`, and `DELETE`) on the tables you want to map.
* [x] **Run this query to check if Stacksync can create triggers:**

  ```sql
  SELECT
    CASE
      WHEN @@log_bin = 0 THEN '✅ Binary logging is OFF — No issues.'
      WHEN @@log_bin = 1 AND @@log_bin_trust_function_creators = 1 THEN '✅ Binary logging is ON — Trust is enabled — All good.'
      ELSE '⚠️  Binary logging is ON but trust_function_creators is OFF — Please fix to allow trigger creation.'
    END AS status;
  ```

  If you see ⚠️, it means you need to update the server settings (requires admin access).

  ```sql
  SET GLOBAL log_bin_trust_function_creators = 1;
  ```

  **Reason:**\
  Stackync creates deterministic triggers for internal logging and syncing.\
  By default, MySQL restricts non-super users from creating triggers when binary logging is enabled — unless `log_bin_trust_function_creators` is set to `ON`.

  Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com)

If a table in your database does not appear in Stacksync, one of the above conditions is likely not met. Check our MySQL snippets collection for troubleshooting tips.

### After setup

Renaming schemas, tables, or columns will break Stacksync configuration. But don't worry, we've got you covered! Refer to our [Update Sync Configuration](/two-way-sync/features/update-sync-configuration) guide for detailed steps to address this.

# Authorize SuiteAnalytics

> 9 minute guide to authorize SuiteAnalytics and connect it to Stacksync using NetSuite credentials.

Source: https://docs.stacksync.com/two-way-sync/connectors/netsuite-suiteanalytics-connect/authorize-suiteanalytics

<Callout type="info">
  If you do not see the screens required to create your API token or to enable **SuiteAnalytics Connect**, it means you do not have the necessary access rights to authorize your SuiteAnalytics instance. An **Administrator role** (or another role with the proper NetSuite permissions) is required to perform the connection setup.
</Callout>

1. Log in to your NetSuite account and navigate to **Setup** > **Company** > **Enable Features.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-setup-company-enable-features.webp" alt="NetSuite Setup menu open to Company with &#x22;Enable Features&#x22; highlighted." width="1403" height="777" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite features configuration panel</p></figcaption>
   </figure>

   1. Under the ”**SuiteCloud**” header make sure the *REST WEB SERVICES* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-features-suitecloud-tab.webp" alt="NetSuite &#x22;Enable Features&#x22; page with the &#x22;SuiteCloud&#x22; tab highlighted." width="1394" height="317" loading="lazy" decoding="async" />

        <figcaption><p>Click "SuiteCloud"</p></figcaption>
      </figure>

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-suitetalk-soap-rest-web-services.webp" alt="NetSuite SuiteCloud features with &#x22;SOAP Web Services&#x22; and &#x22;REST Web Services&#x22; checked under SuiteTalk (Web Services)." width="1600" height="808" loading="lazy" decoding="async" />

        <figcaption><p>In the SuiteTalk section, enable SOAP WEB SERVICES and REST WEB SERVICES.</p></figcaption>
      </figure>
   2. Under the ”**Manage Authentication**” header make sure the *TOKEN-BASED AUTHENTICATION* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-token-based-authentication.webp" alt="NetSuite Manage Authentication features with the &#x22;Token-Based Authentication&#x22; checkbox checked and highlighted." width="1600" height="653" loading="lazy" decoding="async" />

        <figcaption><p>Activate Token Based Authentication</p></figcaption>
      </figure>
   3. Under the ”Analytics” header make sure the *SuiteAnalytics Connect* checkboxes is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-features-analytics-tab.webp" alt="NetSuite &#x22;Enable Features&#x22; page with the &#x22;Analytics&#x22; subtab highlighted." width="1600" height="234" loading="lazy" decoding="async" />

        <figcaption><p>Click "Analytics"</p></figcaption>
      </figure>

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-suiteanalytics-connect.webp" alt="NetSuite Enable Features Analytics tab with the &#x22;SuiteAnalytics Connect&#x22; checkbox checked under Connectivity." width="1600" height="802" loading="lazy" decoding="async" />

        <figcaption><p>In the Connectivity section, enable SUITEANALYTICS CONNECT.</p></figcaption>
      </figure>
   4. Click the save button at the bottom of the page.
2. Navigate to **Setup** > **Integration** > **Manage Integrations** > **New.**

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-integrations-new.webp" alt="NetSuite Setup menu open to Integration, then Manage Integrations, with &#x22;New&#x22; highlighted." width="1379" height="595" loading="lazy" decoding="async" />

     <figcaption><p>Create a new integration in NetSuite</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-integration-tba-settings.webp" alt="NetSuite new Integration form with Name and State &#x22;Enabled&#x22;, and &#x22;Token-Based Authentication&#x22; checked on the Authentication tab." width="1132" height="921" loading="lazy" decoding="async" />

     <figcaption><p>Configure the new Stacksync integration in NetSuite</p></figcaption>
   </figure>

   1. Give your application a NAME. Recommended name: `Stacksync SuiteAnalytics`
   2. Select `Token-based Authentication` only
   3. Click the save button.
   4. The client credentials will now be displayed and be sure to copy the **Consumer Id** and **Consumer Secret.**

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-integration-consumer-key-secret.webp" alt="NetSuite saved Integration confirmation with the masked Consumer Key / Client ID and Consumer Secret / Client Secret highlighted." width="1600" height="774" loading="lazy" decoding="async" />

        <figcaption><p>Save "Consumer ID" and "Consumer Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
      </figure>
3. Navigate to the homepage by clicking the home icon.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-home-icon-navigation.webp" alt="NetSuite top navigation bar with the home icon highlighted and an arrow pointing to it, leading to the Home dashboard." width="1158" height="690" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite homepage</p></figcaption>
   </figure>
4. At the bottom left corner click the **Manage Access Tokens** button.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-access-tokens-link.webp" alt="NetSuite Home dashboard with the &#x22;Manage Access Tokens&#x22; link highlighted in the Settings portlet at the bottom left." width="1600" height="814" loading="lazy" decoding="async" />

     <figcaption><p>Click "Manage Access Tokens"</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-access-token-button.webp" alt="NetSuite &#x22;My Access Tokens&#x22; page with the &#x22;New My Access Token&#x22; button highlighted." width="1600" height="235" loading="lazy" decoding="async" />

     <figcaption><p>Click "New Access Token"</p></figcaption>
   </figure>

   1. Select the **Application Name** you created for this integration.
   2. Enter a ”**Token Name**”.
   3. Save your new access token.
   4. The token credentials will now be displayed. Copy the ”**Token ID**” & ”**Token Secret**”.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-access-token-id-secret.webp" alt="NetSuite Access Token confirmation page showing the Token ID and Token Secret values (blurred) highlighted for copying." width="831" height="587" loading="lazy" decoding="async" />

     <figcaption><p>Save "Token ID" and "Token Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
   </figure>
5. Navigate to **Setup** > **Users/Roles** > **Manage Roles.**

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-setup-manage-roles-menu.webp" alt="NetSuite Setup menu open with &#x22;Users/Roles&#x22; and then &#x22;Manage Roles&#x22; highlighted." width="1600" height="876" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to <strong>Setup</strong> > <strong>Users/Roles</strong> > <strong>Manage Roles.</strong></p></figcaption>
   </figure>

   1. Either **create a new role** or **edit an existing role**.
   2. Navigate to Permissions > Setup
   3. Add **SuiteAnalytics Connect** and **SuiteAnalytics Connect - Read All** with Level Full.
   4. Save changes.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-role-suiteanalytics-connect-permissions.webp" alt="NetSuite role page with Permissions > Setup tab adding &#x22;SuiteAnalytics Connect&#x22; and &#x22;Read All&#x22; at Full level, and Save highlighted." width="1600" height="871" loading="lazy" decoding="async" />

     <figcaption><p>Add <strong>SuiteAnalytics Connect</strong> and save.</p></figcaption>
   </figure>
6. Get the `Role ID` in the URL on the Role Page. It is formatted as: `role.nl?id=<role_id>`.
7. Get the `Account ID` from the URL, the domain name has the following format: `<account_id>.app.netsuite.com`
8. You now have all the necessary credentials to grant Stacksync access to your SuiteAnalytics Connect. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com)

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-suiteanalytics.webp" alt="Stacksync &#x22;Create a Connection&#x22; page with the SuiteAnalytics app tile highlighted next to NetSuite." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Click on SuiteAnalytics Connector</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/suiteanalytics-connection-credentials-form.webp" alt="Stacksync SuiteAnalytics dialog with Account ID, Consumer Key/Secret, Token ID/Secret, Role ID, optional Host and Port, and &#x22;Authorize App&#x22;." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Insert the credentials obtained from the preview steps in the SuiteAnalytics Connector</p></figcaption>
   </figure>

You successfully granted Stacksync access to your SuiteAnalytics Connect! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# NetSuite SuiteAnalytics Connect

> Read-only sync between NetSuite SuiteAnalytics and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/netsuite-suiteanalytics-connect

Stacksync lets you sync the following SuiteAnalytics objects:

## Custom Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>All custom objects</td><td>✅ Supported</td></tr></tbody>
</table>

## Accounting Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Nexus</td><td>✅ Supported</td></tr><tr><td>Tax Type</td><td>✅ Supported</td></tr><tr><td>Sales Tax Item</td><td>✅ Supported</td></tr><tr><td>Billing Schedule Customer Subsidiary Relationship</td><td>✅ Supported</td></tr><tr><td>Account</td><td>✅ Supported</td></tr><tr><td>Accounting Period</td><td>✅ Supported</td></tr><tr><td>Bin Transfer</td><td>✅ Supported</td></tr><tr><td>Currency Rate</td><td>✅ Supported</td></tr><tr><td>Price Level</td><td>✅ Supported</td></tr><tr><td>Term</td><td>✅ Supported</td></tr><tr><td>Subsidiary</td><td>✅ Supported</td></tr></tbody>
</table>

## Entity Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Customer</td><td>✅ Supported</td></tr><tr><td>Vendor</td><td>✅ Supported</td></tr><tr><td>Vendor Category</td><td>✅ Supported</td></tr><tr><td>Contact</td><td>✅ Supported</td></tr><tr><td>Employee</td><td>✅ Supported</td></tr><tr><td>Other Name Category</td><td>✅ Supported</td></tr><tr><td>Vendor Subsidiary Relationship</td><td>✅ Supported</td></tr><tr><td>Lead</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Project Objects

<table>
  <thead><tr><th width="312">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Project</td><td>✅ Supported</td></tr><tr><td>Project Status</td><td>✅ Supported</td></tr><tr><td>Project Task</td><td>✅ Supported</td></tr><tr><td>Job Type</td><td>✅ Supported</td></tr><tr><td>Task</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Transaction Objects

| Object                              | Read        |
| ----------------------------------- | ----------- |
| Check                               | ✅ Supported |
| Credit Card Charge                  | ✅ Supported |
| Credit Card Refund                  | ✅ Supported |
| Credit Memo                         | ✅ Supported |
| Currency Revaluation                | ✅ Supported |
| Customer Deposit                    | ✅ Supported |
| Customer Payment                    | ✅ Supported |
| Customer Refund                     | ✅ Supported |
| Deposit                             | ✅ Supported |
| Deposit Application                 | ✅ Supported |
| Estimate                            | ✅ Supported |
| Expense Report                      | ✅ Supported |
| Intercompany Journal Entry          | ✅ Supported |
| Advanced Intercompany Journal Entry | ✅ Supported |
| Invoice                             | ✅ Supported |
| Item Fulfillment                    | ✅ Supported |
| Item Receipt                        | ✅ Supported |
| Journal Entry                       | ✅ Supported |
| Opportunity                         | ✅ Supported |
| Purchase Order                      | ✅ Supported |
| Sales Order                         | ✅ Supported |
| Transfer                            | ✅ Supported |
| Vendor Bill                         | ✅ Supported |
| Vendor Credit                       | ✅ Supported |
| Vendor Payment                      | ✅ Supported |

## CRM Objects

<table>
  <thead><tr><th width="321">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Partner</td><td>✅ Supported</td></tr><tr><td>Customer Status</td><td>✅ Supported</td></tr><tr><td>Phone Call</td><td>✅ Supported</td></tr><tr><td>Support Case</td><td>✅ Supported</td></tr><tr><td>Calendar Event</td><td>✅ Supported</td></tr><tr><td>Note Type</td><td>✅ Supported</td></tr><tr><td>Task</td><td>✅ Supported</td></tr><tr><td>Message</td><td>✅ Supported</td></tr><tr><td>Contact Category</td><td>✅ Supported</td></tr><tr><td>Contact Role</td><td>✅ Supported</td></tr><tr><td>Customer Category</td><td>✅ Supported</td></tr><tr><td>Customer Message</td><td>✅ Supported</td></tr></tbody>
</table>

## Employee Objects

<table>
  <thead><tr><th width="326">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Department</td><td>✅ Supported</td></tr><tr><td>Expense Category</td><td>✅ Supported</td></tr><tr><td>Job Status</td><td>✅ Supported</td></tr><tr><td>Classification</td><td>✅ Supported</td></tr><tr><td>Location</td><td>✅ Supported</td></tr></tbody>
</table>

## Communication Objects

<table>
  <thead><tr><th width="331">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Case</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Saved Searches

<table>
  <thead><tr><th width="331">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Saved Searches</td><td><span data-tag="emoji" data-code="2705">✅</span> Supported</td></tr></tbody>
</table>

## System Objects

<table>
  <thead><tr><th width="334.171875">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Deleted Records</td><td><span data-tag="emoji" data-code="2705">✅</span> Supported</td></tr></tbody>
</table>

## Published Reports (requires [NetSuite SuiteProjects Pro](https://www.netsuite.com/portal/products/professional-services-automation/suiteprojects-pro.shtml))

<table>
  <thead><tr><th width="331">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Published Reports</td><td>🔓 Request Access</td></tr></tbody>
</table>

Note: SuiteAnalytics provides read-only access to NetSuite's data warehouse. All objects are read-only as SuiteAnalytics is designed for business intelligence and reporting purposes.

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Authorize NetSuite

> 9 min read

Source: https://docs.stacksync.com/two-way-sync/connectors/netsuite/authorize-netsuite

<Callout type="info">
  If you do not see the following screens to create your API token, it means that you do not have the necessary access rights to authorize your NetSuite instance. An admin role is necessary to perform the connection setup.
</Callout>

1. Log in to your NetSuite account and navigate to **Setup** > **Company** > **Enable Features.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-setup-company-enable-features.webp" alt="NetSuite Setup menu open to Company with &#x22;Enable Features&#x22; highlighted." width="1403" height="777" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite features configuration panel</p></figcaption>
   </figure>

   1. Under the ”**SuiteCloud**” header make sure the *REST WEB SERVICES* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-features-suitecloud-tab.webp" alt="NetSuite &#x22;Enable Features&#x22; page with the &#x22;SuiteCloud&#x22; tab highlighted." width="1394" height="317" loading="lazy" decoding="async" />

        <figcaption><p>Click "SuiteCloud"</p></figcaption>
      </figure>

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-suitetalk-soap-rest-web-services.webp" alt="NetSuite SuiteCloud features with &#x22;SOAP Web Services&#x22; and &#x22;REST Web Services&#x22; checked under SuiteTalk (Web Services)." width="1600" height="808" loading="lazy" decoding="async" />

        <figcaption><p>In the SuiteTalk section, enable SOAP WEB SERVICES and REST WEB SERVICES.</p></figcaption>
      </figure>
   2. Under the ”**Manage Authentication**” header make sure the *TOKEN-BASED AUTHENTICATION* checkbox is checked.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-enable-token-based-authentication.webp" alt="NetSuite Manage Authentication features with the &#x22;Token-Based Authentication&#x22; checkbox checked and highlighted." width="1600" height="653" loading="lazy" decoding="async" />

        <figcaption><p>Activate Token-Based Authentication</p></figcaption>
      </figure>
   3. Click the save button at the bottom of the page.<br />
2. Navigate to **Setup** > **Integration** > **Manage Integrations** > **New.**

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-integrations-new.webp" alt="NetSuite Setup menu open to Integration, then Manage Integrations, with &#x22;New&#x22; highlighted." width="1379" height="595" loading="lazy" decoding="async" />

     <figcaption><p>Create a new integration in NetSuite</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-integration-tba-settings.webp" alt="NetSuite new Integration form with Name and State &#x22;Enabled&#x22;, and &#x22;Token-Based Authentication&#x22; checked on the Authentication tab." width="1132" height="921" loading="lazy" decoding="async" />

     <figcaption><p>Configure the new Stacksync integration in NetSuite</p></figcaption>
   </figure>

   1. Select `Token-based Authentication` only
   2. Click the save button.
   3. The client credentials will now be displayed and be sure to copy the **Consumer ID** and **Consumer Secret.**

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/netsuite-integration-consumer-key-secret.webp" alt="NetSuite saved Integration confirmation with the masked Consumer Key / Client ID and Consumer Secret / Client Secret highlighted." width="1600" height="774" loading="lazy" decoding="async" />

        <figcaption><p>Save the "Consumer ID" and "Consumer Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
      </figure>
3. Navigate to the homepage by clicking the home icon.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-home-icon-navigation.webp" alt="NetSuite top navigation bar with the home icon highlighted and an arrow pointing to it, leading to the Home dashboard." width="1158" height="690" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to the NetSuite homepage</p></figcaption>
   </figure>
4. At the bottom left corner click the **Manage Access Tokens** button.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-manage-access-tokens-link.webp" alt="NetSuite Home dashboard with the &#x22;Manage Access Tokens&#x22; link highlighted in the Settings portlet at the bottom left." width="1600" height="814" loading="lazy" decoding="async" />

     <figcaption><p>Click "Manage Access Tokens"</p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-new-access-token-button.webp" alt="NetSuite &#x22;My Access Tokens&#x22; page with the &#x22;New My Access Token&#x22; button highlighted." width="1600" height="235" loading="lazy" decoding="async" />

     <figcaption><p>Click "New Access Token"</p></figcaption>
   </figure>

   1. Select the **Application Name** you created for this integration.
   2. Enter a ”**Token Name**”.
   3. Save your new access token.
   4. The token credentials will now be displayed. Copy the ”**Token ID**” & ”**Token Secret**”.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/netsuite-access-token-id-secret.webp" alt="NetSuite Access Token confirmation page showing the Token ID and Token Secret values (blurred) highlighted for copying." width="831" height="587" loading="lazy" decoding="async" />

     <figcaption><p>Save "Token ID" and "Token Secret" values safely (to be used in the next steps of this tutorial).</p></figcaption>
   </figure>
5. Get the `Account ID` from the URL, the domain name has the following format: `<account_id>.app.netsuite.com` .
6. You now have all the necessary credentials to grant Stacksync access to your NetSuite account. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com).

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-netsuite.webp" alt="Stacksync &#x22;Create a Connection&#x22; page with the NetSuite app tile highlighted among connectors like Salesforce and HubSpot." width="1043" height="496" loading="lazy" decoding="async" />

     <figcaption><p>Click on the "NetSuite" connector icon</p></figcaption>
   </figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/netsuite-connection-credentials-form.webp" alt="Stacksync NetSuite connection dialog with Account ID, Token ID, Token Secret, Client ID and Client Secret fields and &#x22;Authorize App&#x22;." width="990" height="677" loading="lazy" decoding="async" />

  <figcaption><p>Insert the credentials obtained from the preview steps in the NetSuite app</p></figcaption>
</figure>

You successfully granted Stacksync access to your NetSuite account! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# NetSuite

> Two-way sync between NetSuite and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/netsuite

Stacksync lets you sync the following NetSuite objects:

## Custom Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>All custom objects</td><td>✅ Supported</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Accounting Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Nexus</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Tax Type</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Sales Tax Item</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Billing Schedule Customer Subsidiary Relationship</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Account</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Accounting Period</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Bin Transfer</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Currency Rate</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Price Level</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Term</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Subsidiary</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr></tbody>
</table>

## Entity Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Customer</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Vendor</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Vendor Category</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Contact</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Employee</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Other Name Category</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Vendor Subsidiary Relationship</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Lead</td><td>🔓 Request Access</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Project Objects

<table>
  <thead><tr><th width="312">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Project</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Project Status</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Project Task</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Job Type</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Task</td><td>🔓 Request Access</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Transaction Objects

| Object                              | Read        | Write       |
| ----------------------------------- | ----------- | ----------- |
| Check                               | ✅ Supported | ✅ Supported |
| Credit Card Charge                  | ✅ Supported | ✅ Supported |
| Credit Card Refund                  | ✅ Supported | ✅ Supported |
| Credit Memo                         | ✅ Supported | ✅ Supported |
| Currency Revaluation                | ✅ Supported | ✅ Supported |
| Customer Deposit                    | ✅ Supported | ✅ Supported |
| Customer Payment                    | ✅ Supported | ✅ Supported |
| Customer Refund                     | ✅ Supported | ✅ Supported |
| Deposit                             | ✅ Supported | ✅ Supported |
| Deposit Application                 | ✅ Supported | ✅ Supported |
| Estimate                            | ✅ Supported | ✅ Supported |
| Expense Report                      | ✅ Supported | ✅ Supported |
| Intercompany Journal Entry          | ✅ Supported | ✅ Supported |
| Advanced Intercompany Journal Entry | ✅ Supported | ✅ Supported |
| Invoice                             | ✅ Supported | ✅ Supported |
| Item Fulfillment                    | ✅ Supported | ✅ Supported |
| Item Receipt                        | ✅ Supported | ✅ Supported |
| Journal Entry                       | ✅ Supported | ✅ Supported |
| Opportunity                         | ✅ Supported | ✅ Supported |
| Purchase Order                      | ✅ Supported | ✅ Supported |
| Sales Order                         | ✅ Supported | ✅ Supported |
| Transfer                            | ✅ Supported | ✅ Supported |
| Vendor Bill                         | ✅ Supported | ✅ Supported |
| Vendor Credit                       | ✅ Supported | ✅ Supported |
| Vendor Payment                      | ✅ Supported | ✅ Supported |

## CRM Objects

<table>
  <thead><tr><th width="321">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Partner</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Customer Status</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Phone Call</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Support Case</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Calendar Event</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Note Type</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Task</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Message</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Contact Category</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Contact Role</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Customer Category</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Customer Message</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr></tbody>
</table>

## Employee Objects

<table>
  <thead><tr><th width="326">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Department</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Expense Category</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Job Status</td><td>✅ Supported</td><td>✅ Supported</td></tr><tr><td>Classification</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr><tr><td>Location</td><td>✅ Supported</td><td>🕜 Coming soon</td></tr></tbody>
</table>

## Communication Objects

<table>
  <thead><tr><th width="331">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Case</td><td>🔓 Request Access</td><td>🔓 Request Access</td></tr></tbody>
</table>

## Saved Searches

<table>
  <thead><tr><th width="331">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Saved Searches</td><td><span data-tag="emoji" data-code="2705">✅</span> Supported</td><td>Read-only object</td></tr></tbody>
</table>

## Published Reports (requires [NetSuite SuiteProjects Pro](https://www.netsuite.com/portal/products/professional-services-automation/suiteprojects-pro.shtml))

<table>
  <thead><tr><th width="331">Object</th><th>Read</th><th>Write</th></tr></thead>

  <tbody><tr><td>Published Reports</td><td>🔓 Request Access</td><td>Read-only object</td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Retrieve Saved Search Column Names from NetSuite

Source: https://docs.stacksync.com/two-way-sync/connectors/netsuite/retrieve-saved-search-column-names-from-netsuite

NetSuite SOAP requests may not expose the saved search column list when the search returns no records. The RESTlet loads the saved search definition directly and returns its configured columns independently of whether the search currently contains data.

To retrieve the saved search columns reliably, you can create and deploy a SuiteScript RESTlet.

This guide walks through the complete setup.

## 1. Create the SuiteScript file

Create a new file on your computer named:

```
get_saved_search_columns_restlet.js
```

Copy the following code into the file and save it:

```javascript
/**
 * Returns column definitions for a saved search.
 *
 * @NApiVersion 2.1
 * @NScriptType Restlet
 * @NModuleScope SameAccount
 */
define(["N/search", "N/log"], (search, log) => {
  /**
   * Safely converts a SuiteScript property to a plain string or null.
   */
  const safeString = (value) => {
    if (value === null || value === undefined || value === "") {
      return null;
    }

    return String(value);
  };

  const get = (request) => {
    try {
      const savedSearchId = safeString(request.savedSearchId);

      if (!savedSearchId) {
        return JSON.stringify({
          success: false,
          error: "savedSearchId is required",
        });
      }

      log.audit({
        title: "RESTlet request",
        details: `savedSearchId=${savedSearchId}`,
      });

      const savedSearch = search.load({
        id: savedSearchId,
      });

      log.audit({
        title: "Saved search loaded",
        details: `Column count=${savedSearch.columns.length}`,
      });

      /*
       * Explicitly convert every SuiteScript value into a primitive.
       * This prevents NetSuite from trying to serialize SuiteScript
       * enum values or internal objects.
       */
      const columns = savedSearch.columns.map((column, index) => ({
        position: index + 1,
        name: safeString(column.name),
        label: safeString(column.label),
        join: safeString(column.join),
        summary: safeString(column.summary),
        formula: safeString(column.formula),
        sort: safeString(column.sort),
      }));

      const response = {
        success: true,
        savedSearchId,
        columnCount: columns.length,
        columns,
      };

      /*
       * Return an explicit JSON string instead of allowing NetSuite
       * to serialize the object automatically.
       */
      return JSON.stringify(response);
    } catch (exception) {
      const failure = {
        success: false,
        errorName: safeString(exception.name),
        errorMessage: safeString(exception.message),
        stack: safeString(exception.stack),
      };

      log.error({
        title: "RESTlet failure",
        details: JSON.stringify(failure),
      });

      return JSON.stringify(failure);
    }
  };

  return { get };
});
```

## 2. Open the SuiteScripts folder

Log in to your NetSuite account.

From the main navigation menu, go to:

```
Documents → Files → SuiteScripts
```

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-documents-files-suitescripts-menu.webp" alt="NetSuite Documents menu expanded to Files, with &#x22;SuiteScripts&#x22; highlighted." width="890" height="264" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Upload the SuiteScript file

Inside the **SuiteScripts** folder:

1. Click **Add File**.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-suitescripts-add-file-button.webp" alt="NetSuite Folder Contents page with the SuiteScripts folder selected and the &#x22;Add File&#x22; button highlighted." width="672" height="776" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

2. Select `get_saved_search_columns_restlet.js` from your computer.
3. Upload the file.

After the upload completes, the file should appear in the SuiteScripts table.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-suitescripts-uploaded-restlet-file.webp" alt="SuiteScripts folder in NetSuite showing the uploaded get_saved_search_columns_restlet.js file highlighted." width="1197" height="749" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Create a new script

From the main navigation menu, go to:

```
Customization → Scripting → Scripts → New
```

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-customization-scripting-new-script.webp" alt="NetSuite Customization > Scripting > Scripts menu with the &#x22;New&#x22; option highlighted to create a new script." width="1356" height="593" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Select the uploaded file

In the **Script File** field:

1. Open the **SuiteScripts** folder.
2. Select `get_saved_search_columns_restlet.js`.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-upload-script-file-select.webp" alt="NetSuite Upload Script File page with the SuiteScripts folder and get_saved_search_columns_restlet.js selected in the Script File picker." width="1111" height="728" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Click **Create Script Record**.

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-create-script-record-button.webp" alt="NetSuite Upload Script File page with get_saved_search_columns_restlet.js chosen and the &#x22;Create Script Record&#x22; button highlighted." width="645" height="392" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

## 6. Configure the script record

Enter the following values:

| Field           | Value                                                                                                                                                                                                                                                                                                                                |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Name**        | `Get Saved Search Columns RESTlet`                                                                                                                                                                                                                                                                                                   |
| **ID**          | `_get_search_columns`                                                                                                                                                                                                                                                                                                                |
| **Description** | `A NetSuite SuiteScript 2.1 RESTlet that loads a saved search using its ID and returns the search’s column definitions, including names, labels, joins, summaries, formulas, and sorting. It validates requests, converts NetSuite values into JSON-safe strings, logs activity, and returns structured success or error responses.` |
| **Owner**       | Select the NetSuite user who should own the script                                                                                                                                                                                                                                                                                   |

NetSuite automatically adds the `customscript` prefix to the script ID. The resulting internal ID will appear similar to:

```
customscript_get_search_columns
```

Click **Save**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-restlet-script-record-fields.webp" alt="NetSuite RESTlet script record form with Name &#x22;Get Saved Search Columns RESTlet&#x22;, ID &#x22;_get_search_columns&#x22;, description and owner highlighted." width="1198" height="425" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 7. Deploy the script

After saving the script record, click **Deploy Script**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-script-record-deploy-button.webp" alt="Saved NetSuite RESTlet script record for Get Saved Search Columns with the &#x22;Deploy Script&#x22; button highlighted." width="1512" height="756" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 8. Configure the deployment

Enter the following values:

| Field         | Value                              |
| ------------- | ---------------------------------- |
| **Title**     | `Get Saved Search Columns RESTlet` |
| **ID**        | `_get_search_columns`              |
| **Status**    | `Released`                         |
| **Log Level** | `Audit`                            |
| **Deployed**  | Enabled                            |

Under the **Audience** section, select the users or roles that should be allowed to access the RESTlet.

For example, select the NetSuite user used by Stacksync or your NetSuite service account.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-restlet-deployment-settings.webp" alt="NetSuite Script Deployment form with title, ID, Deployed checked, Status &#x22;Released&#x22;, Log Level &#x22;Audit&#x22; and an employee audience highlighted." width="1312" height="589" loading="lazy" decoding="async" />

  <figcaption />
</figure>

NetSuite automatically adds the `customdeploy` prefix to the deployment ID. The resulting internal ID will appear similar to:

```
customdeploy_get_search_columns
```

Click **Save**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/netsuite-restlet-deployment-url.webp" alt="Saved NetSuite Script Deployment showing the RESTlet URL and External URL highlighted for use in Stacksync." width="1321" height="638" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Troubleshooting

### The script file does not appear

Confirm that the file was uploaded under:

```
Documents → Files → SuiteScripts
```

Also confirm that the filename is exactly:

```
get_saved_search_columns_restlet.js
```

### The RESTlet returns an authorization error

Verify that:

* The deployment status is **Released**.
* The **Deployed** checkbox is enabled.
* The integration role has permission to access the saved search.
* The integration role has the required SuiteScript and RESTlet permissions.

# How NetSuite Transactions and Line Items Are Synced

Source: https://docs.stacksync.com/two-way-sync/connectors/netsuite/transaction-line-items

NetSuite transactions, including Sales Orders, Purchase Orders, Invoices, Vendor Bills, Item Fulfillments, Credit Memos, and Journal Entries, contain transaction-level fields and one or more line items.

This page explains how Stacksync synchronizes NetSuite transactions with connected databases and systems, and why transaction line items cannot be synchronized as a separate, independently writable table.

## Each transaction includes its line items

Stacksync synchronizes each NetSuite transaction as a single record in the connected database or system.

The record includes:

* **Top-level transaction fields**, such as the transaction ID, transaction number, customer or vendor, date, status, currency, and total amount.
* **Transaction line items**, such as products, services, accounts, quantities, rates, and line amounts.

The line items are included as a JSON array within a field on the transaction record. They are not synchronized as separate records or in a separate table.

Most transaction types include their line items in the `itemList` field. Journal-based transactions, including Journal Entries and Intercompany Journal Entries, include their lines in the `lineList` field.

For example, a Sales Order is synchronized as one database row containing its top-level fields and an `itemList` column with all associated Sales Order lines:

| id    | tranid  | entity   | itemList                                    |
| ----- | ------- | -------- | ------------------------------------------- |
| 12345 | SO-1001 | ABC Corp | JSON array containing all Sales Order lines |

The `itemList` column may contain:

```json
[
  {
    "item": {
      "internalId": "38704"
    },
    "quantity": 2,
    "rate": 10.0,
    "line": 1
  },
  {
    "item": {
      "internalId": "38705"
    },
    "quantity": 1,
    "rate": 25.0,
    "line": 2
  }
]
```

The transaction is therefore synchronized as one record, with its line items included as nested data within that record.

## Can line items be synced as a separate table?

No.

This is a limitation of the NetSuite transaction model, not a limitation of Stacksync.

In NetSuite, a transaction line is not an independent record. It exists only as part of its parent transaction and NetSuite does not provide any API operation that allows a transaction line to be created, updated, or deleted atomically, independently of the transaction that contains it.

All line-level changes must be made through the parent transaction endpoint and require submitting the entire transaction, including the header and all line items, not just the modified fields. This applies to:

* Adding a line
* Editing a line
* Removing a line
* Creating a transaction. It is not possible to create a transaction and then creating line items seperately.

Because line items cannot be written independently of the transaction header and of the other transaction lines, Stacksync cannot synchronize them as a separate independently writable table.

## Why this matters for bidirectional synchronization

Stacksync supports bidirectional synchronization between NetSuite and connected databases or systems.

For changes to be synchronized reliably in both directions, the data structure in the connected system must remain compatible with the operations supported by NetSuite.

Since NetSuite only allows transaction lines to be changed through their parent transaction, the transaction must remain the unit of synchronization.

This means:

* Each transaction is synchronized as one record.
* Its line items remain associated with that record.
* A line-item change is synchronized as an update to the parent transaction.
* Line items cannot be managed as standalone writable records.

This behavior applies across NetSuite transaction types, including:

* Sales Orders
* Purchase Orders
* Invoices
* Vendor Bills
* Item Fulfillments
* Item Receipts
* Credit Memos
* Return Authorizations
* Transfer Orders
* Journal Entries

## Working with line items in connected systems

Although line items cannot be synchronized as an independent writable table, they can still be used by applications, workflows, and database processes in the connected system.

The `itemList` or `lineList` field can be read, transformed, and updated like any other synchronized field. For example, a workflow or application can:

* Add a new transaction line
* Update the quantity, rate, account, or amount of an existing line
* Remove a transaction line
* Transform line-item data before sending it back to NetSuite

When the JSON array is updated in the connected database, Stacksync detects the change and synchronizes the updated parent transaction back to NetSuite.

Because NetSuite requires all line-item changes to be submitted through the parent transaction, the complete updated `itemList` or `lineList` value must be written to the transaction record.

<Callout type="info">
  Line items may be expanded into separate rows or tables for application logic, workflows, or analytics. However, changes intended for NetSuite must ultimately be written back to the parent transaction's `itemList` or `lineList` field.
</Callout>

## Official NetSuite references

For additional information, refer to the following NetSuite documentation:

* [SOAP: Create Transaction with Line Items](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3690924.html#bridgehead_N3690960)
* [REST: Create Transaction with Line Items](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_159665260887.html#subsect_159674593263)

<Callout type="info">
  SuiteQL can query transaction-line data independently, but it is a read-only interface. It does not support creating, updating, or deleting records in NetSuite.
</Callout>

For additional questions, contact the Stacksync team at [hello@stacksync.com](mailto:hello@stacksync.com).

# Authorize Pipedrive

> Authorize your Pipedrive app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/pipedrive/authorize-pipedrive

Pipedrive connection is done without coding required in a few steps.

## 1. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections-link.webp" alt="Stacksync dashboard with an arrow pointing to &#x22;Connections&#x22; in the left sidebar." width="937" height="605" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click on "Create New Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-create-new-connection-button.webp" alt="Legacy Stacksync My Connections page with an arrow pointing to the &#x22;Create New Connection&#x22; button" width="935" height="487" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Click on "Pipedrive"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/select-app-pipedrive-connector.webp" alt="Stacksync &#x22;Select App&#x22; grid with an arrow pointing to the Pipedrive connector tile." width="957" height="602" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Click on "Allow and Install"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/pipedrive-allow-and-install-permissions.webp" alt="Pipedrive app permissions consent screen listing access scopes, with the &#x22;Allow and Install&#x22; button highlighted." width="804" height="670" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! Your Pipedrive instance is now connected to Stacksync!🎉

# Pipedrive

> Two-way sync between Pipedrive and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/pipedrive

## Supported Objects

Stacksync lets you sync the following Pipedrive objects:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Deals</td><td><span>✅ Supported</span></td></tr><tr><td>Persons</td><td><span>✅ Supported</span></td></tr><tr><td>Organizations</td><td><span>✅ Supported</span></td></tr><tr><td>Activities</td><td><span>✅ Supported</span></td></tr><tr><td>MailThreads</td><td><span>✅ Supported</span></td></tr><tr><td>MailMessages</td><td><span>✅ Supported</span></td></tr><tr><td>CallLogs</td><td><span>✍️ On Request</span></td></tr><tr><td>Files</td><td><span>✍️ On Request</span></td></tr><tr><td>Goals</td><td><span>✍️ On Request</span></td></tr><tr><td>Leads</td><td><span>✍️ On Request</span></td></tr><tr><td>Notes</td><td><span>✍️ On Request</span></td></tr><tr><td>Pipelines</td><td><span>✍️ On Request</span></td></tr><tr><td>Products</td><td><span>✍️ On Request</span></td></tr><tr><td>Subscriptions</td><td><span>✍️ On Request</span></td></tr><tr><td>Tasks</td><td><span>✍️ On Request</span></td></tr><tr><td>Users</td><td><span>✍️ On Request</span></td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Amazon Lightsail

> Find the connection credentials for your Amazon Lightsail Database.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/amazon-lightsail

Get your database endpoint and port information from the Lightsail console. You use these later when configuring your client to connect to your database.

### 1. To get your database connection details

### 2. Sign in to the [Lightsail console](https://lightsail.aws.amazon.com/).

### 3. On the Lightsail home page, choose the Databases tab.

### 4. Choose the name of the database that you want to connect to.

### 5. Get the Hostname and Port

On the Connect tab, under the **Endpoint and port** section, note the endpoint and port information.

### 6. Get username and password

On the Connect tab, under the "User name" and "passwords" section, make note of the user name, then choose "Show" under the "Password" section to view the current database password.

Because managed passwords are complex, we also recommend copying and pasting it to avoid entering it incorrectly. Highlight the managed password and press Ctrl+C if you’re using Windows, or Cmd+C if you’re using macOS, to copy it to your clipboard. Then, press Ctrl+V or Cmd+V as appropriate to paste it.

<Callout type="info">
  For the Amazon Lightsail connector, the user is required to have the **Create** privilege on the database.

  This privilege can be enabled for the user using the following SQL query:

  ```sql
  GRANT CREATE ON DATABASE database_name TO user_name;
  ```
</Callout>

### 7. Paste all of this information into the Stacksync UI

For the database type, enter `postgresql`

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-parameters-form.webp" alt="Stacksync Postgres connection dialog with Database Type &#x22;postgresql&#x22;, Host, Port, Username, Password, Database fields and &#x22;Authorize App&#x22; highlighted." width="1600" height="926" loading="lazy" decoding="async" />

  <figcaption><p>Past the credentials in the Stacksync UI</p></figcaption>
</figure>

<Callout type="info">
  Enter `postgres` if you can’t remember the name of your primary database. Every PostgreSQL managed database has a `postgres` database that you can connect to, after which you’ll be able to access all other databases on the PostgreSQL managed database.
</Callout>

<Callout type="info">
  The connection string on top of the credentials setup box will autofill as you past your credentials in the designated fields (Host, Post, Username, Password, Database and Database type). You can ignore it, it is done automatically for you! Just fill up the other credential boxes.
</Callout>

Finally, click "Authorize App" to connect your database.

That's it, your database should be connected! 🎉

## Other useful sources

Amazon connection tutorial: [https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-your-postgres-database](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connecting-to-your-postgres-database)

# Ensuring Secure RDS Connections with SSL Certificate

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/amazon-rds/ensuring-secure-rds-connections-with-ssl-certificate

Providing the database's SSL certificate when connecting to the RDS database is important to verify the server's identity and prevent man-in-the-middle (MITM) attacks. Without specifying the certificate, the client cannot be sure it is connecting to the intended server, leaving the connection vulnerable to interception by malicious actors. By supplying the SSL certificate, the client can authenticate the server's identity, ensuring that the data exchange happens only with the legitimate database server. This verification step adds a critical layer of trust and security in database connections.

## 1. Identify the SSL Certificate used by your RDS

1. **Access the AWS Console:**
   * Log in to the AWS Management Console and navigate to the RDS service.
   * Select the target database instance.
2. **Determine Certificate Details:**
   * Identify the Certificate Authority (CA) your database uses.
   * Confirm the AWS Region where your database is hosted.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-availability-zone-certificate-authority.webp" alt="Amazon RDS db-stage-paris Connectivity & security tab with Availability Zone &#x22;eu-west-3c&#x22; and Certificate authority &#x22;rds-ca-rsa4096-g1&#x22; highlighted." width="1155" height="779" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Download the SSL Certificate

1. **Download from AWS Documentation:**
   * Visit the [AWS RDS SSL Documentation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) and locate the appropriate certificate bundle based on your database’s region (e.g., `eu-west-3`).

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-ssl-certificate-bundle-by-region.webp" alt="AWS docs table of RDS certificate bundles by region with &#x22;eu-west-3-bundle.pem&#x22; for Europe (Paris) highlighted." width="914" height="670" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. **Extract the Correct Key:**

* The downloaded certificate file includes three keys for supported encryption methods: `rsa2048`, `rsa4096`, and `ecc384`.
* Use a text editor like VSCode to open the file.
* Select the appropriate certificate based on your database’s encryption method:
  * **Shortest key:** `ecc384`
  * **Longest key:** `rsa4096` (commonly used for enterprise-grade databases).

## Upload the SSL certificate to Stacksync

When creating a new database connection in the Stacksync app, upload the selected SSL certificate to complete the secure configuration.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-connection-ssl-root-certificate-upload.webp" alt="Stacksync Amazon RDS connection dialog with the SSL (Optional) section expanded and the &#x22;SSL Root Certificate&#x22; file upload highlighted." width="1600" height="795" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# Amazon RDS

> Find your Amazon RDS connection URL.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/amazon-rds

1. Sign in to the AWS Management Console and open the Amazon RDS console at\
   [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/)
2. In the navigation panel, choose **Databases** to display a list of your DB instances.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-databases-navigation.webp" alt="Amazon RDS console navigation panel with &#x22;Databases&#x22; highlighted." width="507" height="961" loading="lazy" decoding="async" />

  <figcaption><p>Navigation panel</p></figcaption>
</figure>

3. Click on the DB you want to sync.
4. On the **Connectivity & security tab**, copy the endpoint and the port number.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-endpoint-and-port.webp" alt="Amazon RDS instance &#x22;mydb&#x22; Connectivity & security tab with the Endpoint and Port 3306 circled." width="589" height="718" loading="lazy" decoding="async" />

  <figcaption><p>RDS endpoint and port number</p></figcaption>
</figure>

5. Then click on the **Configuration** tab and view the **Master username** and **DB name** values.\
   If the DB name is empty as it is the case here, then use **'postgres'** as DB name.\
   The password was set when the database was originally created. Please ask whoever set up the database for the connection password.<br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-db-name-master-username.webp" alt="Amazon RDS Configuration tab with DB name, Master username &#x22;postgres&#x22; and Master password fields highlighted." width="590" height="588" loading="lazy" decoding="async" />

  <figcaption />
</figure>

5. Use this template for the connection string and replace the element with your values

```
postgresql://USERNAME:YOUR_PASSWORD@ENDPOINT:PORT/DB_NAME
```

7. Paste the connection string into Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rds-connection-string-field.webp" alt="Stacksync Amazon RDS connection dialog with the &#x22;Connection String&#x22; field highlighted above the individual parameter fields." width="410" height="753" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If your database is in a **private subnet** and doesn't have any way to access it from internet currently, you can set up a jumpbox / bastion host to allow Stacksync to access your database using this tutorial:

<Cards>
  <Card title="Access a Private AWS RDS Instance via a Jumpbox" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox" />
</Cards>

# Basedash

> Find your Basedash connection URL.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/basedash



# Ensuring Secure Cloud SQL Connections with SSL Certificate

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/cloud-sql/ensuring-secure-cloud-sql-connections-with-ssl-certificate

Providing the database's SSL certificate when connecting to Cloud SQL is essential to verify the server's identity and prevent man-in-the-middle (MITM) attacks. Without specifying the certificate, the client cannot be sure it is connecting to the intended server, leaving the connection vulnerable to interception by malicious actors. By supplying the SSL certificate, the client can authenticate the server's identity, ensuring that the data exchange happens only with the legitimate database server. This verification step adds a critical layer of trust and security in database connections.

## 1. Identify Your Cloud SQL Instance Configuration

**Access the Google Cloud Console:**

* Log in to the Google Cloud Console and navigate to the **SQL** service
* Select your target database instance from the list

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-instances-list.webp" alt="Google Cloud SQL Instances page with &#x22;SQL&#x22; (1) and the instance ID &#x22;example_db&#x22; (2) circled, showing a PostgreSQL 17 instance." width="1458" height="1102" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**Determine Instance Details:**

* Click on the instance name to open the instance details page
* Note your database engine type (PostgreSQL, MySQL, or SQL Server)

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-instance-database-engine.webp" alt="Google Cloud SQL Overview for instance &#x22;example_db&#x22; with the database engine &#x22;PostgreSQL 17&#x22; circled." width="1458" height="1098" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Download the SSL Certificate

**Navigate to Certificate Management:**

* Click on the **Connections** tab
* Click on the **Security** tab
* Locate the **Manage certificates** area

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-connections-security-tab.webp" alt="Google Cloud SQL instance with &#x22;Connections&#x22; (1) and the &#x22;Security&#x22; tab (2) circled, showing SSL mode settings." width="1458" height="1105" loading="lazy" decoding="async" />

  <figcaption />
</figure>

**Download the Server Certificate:**

* Click **Download Certificates** to get the Certificate Authority (CA) certificate
* The downloaded file will be named `server-ca.pem`
* Save this file securely as you'll need to upload it to Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-download-server-ca-certificate.webp" alt="Google Cloud SQL Connections page under &#x22;Manage server CA certificates&#x22; with the &#x22;Download Certificates&#x22; button circled." width="1458" height="1100" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Upload the SSL Certificate to Stacksync

When creating a new database connection in the Stacksync app, upload the downloaded SSL certificate to complete the secure configuration.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-cloud-sql-ssl-certificate.webp" alt="Stacksync Postgres connection dialog with the SSL (Optional) section expanded and &#x22;server-ca.pem&#x22; uploaded as the SSL Root Certificate." width="1457" height="1102" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We're here to help ensure a seamless and secure database connection setup.

# Cloud SQL

> Find your Cloud SQL connection URL.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/cloud-sql

### 1. Go to your [Google Cloud Console](https://console.cloud.google.com)

### 2. Click on SQL

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/google-cloud-console-sql-menu.webp" alt="Google Cloud console navigation menu with an arrow pointing to the &#x22;SQL&#x22; product." width="1340" height="631" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Write down the public IP address of the SQL Instance you want to use

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-instance-public-ip.webp" alt="Google Cloud SQL Instances list with the public IP address of the &#x22;tutorial_database&#x22; instance highlighted." width="711" height="186" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Click on the instance you want to use

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-select-instance.webp" alt="Google Cloud SQL Instances list with an arrow pointing to the &#x22;tutorial_database&#x22; instance ID." width="617" height="181" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Go to "Users"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-users-menu.webp" alt="Google Cloud SQL instance side menu with &#x22;Users&#x22; highlighted." width="277" height="442" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Make sure the user you want to use is listed here, let's take "fake_user"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-users-list.webp" alt="Google Cloud SQL Users list with the built-in user &#x22;fake_user&#x22; highlighted." width="597" height="111" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### NOTE: You can manage the user's password by clicking on the 3 dots

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-user-actions-menu.webp" alt="Google Cloud SQL Users list with an arrow pointing to the three-dot actions menu for &#x22;fake_user&#x22; to manage its password." width="746" height="170" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### NOTE: you can add a new user by clicking "ADD USER ACCOUNT"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-add-user-account.webp" alt="Google Cloud SQL Users page with an arrow pointing to the &#x22;ADD USER ACCOUNT&#x22; button." width="481" height="149" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 7. Click on "Databases" and find the database inside the SQL Instance

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-databases-menu.webp" alt="Google Cloud SQL instance side menu with an arrow pointing to &#x22;Databases&#x22;." width="381" height="412" loading="lazy" decoding="async" />

  <figcaption />
</figure>

8. Write down the Database Name you want to use, here let's take "my_tutorial_database"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/cloud-sql-database-name.webp" alt="Google Cloud SQL Databases list with the database name &#x22;my_tutorial_database&#x22; highlighted." width="508" height="107" loading="lazy" decoding="async" />

  <figcaption />
</figure>

8. In Cloud SQL the port is always 5432, the connection string will then have the form: postgres\://\[USER]:\[PASSWORD]@\[PUBLIC_IP_ADDRESS]:5432/\[DATABASE_NAME] In our example: postgres\://fake_user:\*\*\*\*\*\*\*\*@74.75.177.158:5432/my_tutorial_database- you can now paste into Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-string-field.webp" alt="Stacksync Postgres connection dialog with an arrow pointing to the empty &#x22;Connection String&#x22; field." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption><p>Paste your database connection URL into Stacksync</p></figcaption>
</figure>

## That's it! 🥳

# Digital Ocean

> Connect a Postgres hosted on Digital Ocean

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/digital-ocean

To authorize DigitalOcean, you'll need to set `sslmode=no-verify` in the connection string.

You might also need to Whitelist Stacksync's IP address. Learn more at [IP Whitelisting](/two-way-sync/connectors/setup-options/ip-whitelisting)

# Heroku

> Find your Postgres Heroku connection string

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/heroku

For Heroku, use the "Postgres Heroku" connector.

## 1. Go to [https://dashboard.heroku.com/apps](https://dashboard.heroku.com/apps)

## 2. Open one of your apps

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-dashboard-select-app.webp" alt="Heroku dashboard apps list with the app &#x22;postgres112345&#x22; highlighted." width="1600" height="511" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Open your database add-on

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-addon.webp" alt="Heroku app Overview tab with the installed &#x22;Heroku Postgres&#x22; Mini add-on highlighted." width="1600" height="687" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Go to settings and view Database credentials

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-view-credentials.webp" alt="Heroku Postgres datastore with the &#x22;Settings&#x22; tab (1) and the &#x22;View Credentials...&#x22; button (2) highlighted." width="1600" height="601" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Copy Connection URI

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-connection-uri.webp" alt="Heroku Postgres Database Credentials showing host, database, user, port and password, with the masked postgres:// URI highlighted." width="1600" height="436" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Paste the connection URI into Stacksync to connect your database

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/heroku-postgres-connection-string-authorize.webp" alt="Stacksync Postgres Heroku connection dialog with the &#x22;Connection String&#x22; field and &#x22;Authorize App&#x22; button highlighted." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption><p>Paste your connection URL to connect your database</p></figcaption>
</figure>

<Callout type="info">
  For the Heroku connector, the user is required to have the **Create** privilege on the database.

  This privilege can be enabled for the user using the following SQL query:

  ```sql
  GRANT CREATE ON DATABASE database_name TO user_name;
  ```
</Callout>

Finally, click "Authorize App" to connect!

That's it, your Postgres Heroku instance is connected! 🎉

# Authorize Postgres

> Authenticate your Postgres app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres

You can also watch a quick video on how to authorize Postgres

<YouTube id="J4Q09Vt57h8" title="Video" />

## Adding Credentials to Stacksync

### 1. Select Postgres in the Create Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-base-select-postgres.webp" alt="Stacksync &#x22;Create New Base&#x22; Connected Apps step with the Postgres tile highlighted and the caption &#x22;Select &#x22;Postgres&#x22;&#x22;." width="1522" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Add your Postgres credentials as Connection String or as Parameters.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-string-or-parameters.webp" alt="Stacksync Postgres dialog highlighting the Connection String field or the Database Type, Host, Port, Username, Password and Database fields." width="1521" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. (Optional) Upload your SSL Root Certificate file

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-ssl-root-certificate-optional.webp" alt="Stacksync Postgres dialog with the SSL (Optional) section expanded to upload an SSL Root Certificate." width="1519" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. (Optional) Add SSH user and SSH host

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-ssh-tunnel-user-host.webp" alt="Stacksync Postgres dialog with the SSH Tunnel (Optional) section expanded showing SSH User and SSH Host fields." width="1515" height="822" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click "Authorize App"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-authorize-app.webp" alt="Stacksync Postgres connection dialog with the &#x22;Authorize App&#x22; button highlighted." width="1516" height="823" loading="lazy" decoding="async" />

  <figcaption><p>Click "Authorize App"</p></figcaption>
</figure>

# Render

> Connect your Postgres database hosted on Render to Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/render

[Render](https://render.com/) is a easy and cheap database to host all your projects.

# Retool

> Authenticate your Retool app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/retool

## 1. Access your dashboard

## 2. Click on "Database"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-database-tab.webp" alt="Retool home page with an arrow pointing to the &#x22;Database&#x22; tab in the top navigation." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Click on "Database"</p></figcaption>
</figure>

## 3. Reveal Database Options

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-database-options-dropdown.webp" alt="Retool Database table view with an arrow pointing to the dropdown next to &#x22;Retool Database&#x22; to reveal options." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Click and reveal options</p></figcaption>
</figure>

## 4. Click "Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-database-connection-settings-tab.webp" alt="Retool Database Settings popover with an arrow pointing to the &#x22;Connection&#x22; tab." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Click "Connection"</p></figcaption>
</figure>

## 5. Reveal Postgres Connection URL

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-reveal-postgres-connection-url.webp" alt="Retool Database Connection settings with an arrow pointing to the eye icon that reveals the &#x22;Postgres Connection URL&#x22;." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Reveal the Connection URL</p></figcaption>
</figure>

## 6. Copy connection URL

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/retool-copy-postgres-connection-url.webp" alt="Retool Database Connection settings with the revealed postgresql:// URL and an arrow pointing to the copy button." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Copy the connection URL</p></figcaption>
</figure>

## 7. Get credentials from connection URL

<Callout type="info">
  Retool doesn't give you the port info to connect Postgres via connection URL.
</Callout>

From your connection URL. Manually get the data needed to fill the connection form that will be shown in Step 9.

* **Database Type**
* **Host**
* **Port**
* **Username**
* **Password**
* **Database**
* **Schema**

## 6. Click on "Connections"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-sidebar-connections-menu.webp" alt="Stacksync Syncs page with an arrow pointing to &#x22;Connections&#x22; in the left sidebar." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption><p>Go to "Connections" on Stacksync</p></figcaption>
</figure>

## 7. Click on "Create New Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-new-connection-button.webp" alt="Stacksync &#x22;My Connections&#x22; page with an arrow pointing to the &#x22;Create New Connection&#x22; button." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 8. Click "Postgres"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/select-app-postgres-connector.webp" alt="Stacksync &#x22;Select App&#x22; grid with an arrow pointing to the Postgres connector tile." width="1600" height="900" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 9. Fill the connection form

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-form-fields.webp" alt="Stacksync Postgres connection dialog with Connection String or Database Type, Host, Port, Username, Password, Database and Schema fields." width="1600" height="1001" loading="lazy" decoding="async" />

  <figcaption><p>Fill the connection form with all the data from step 7</p></figcaption>
</figure>

# Supabase (OAuth)

> Connect your Supabase database by signing in to Supabase, no connection string to copy.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/supabase-oauth

With the **Supabase (OAuth)** connector you sign in to Supabase and pick your project. Stacksync looks up the connection details for you, you only type the database password.

Prefer pasting a connection string? Use the [Supabase](/two-way-sync/connectors/postgres/authorize-postgres/supabase) connector instead. Both create the same Postgres connection, so syncs behave the same whichever one you choose.

## 1. Select the Supabase (OAuth) connector

In Stacksync, open **Create Resource** and choose **Connection**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-connection-menu.webp" alt="Stacksync &#x22;All Resources&#x22; page with the &#x22;Create Resource&#x22; dropdown open and &#x22;Connection&#x22; highlighted." width="1044" height="509" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Search for `supabase` and select **Supabase (OAuth)**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-select-tile.webp" alt="Stacksync &#x22;Create a new Connection&#x22; app picker filtered on &#x22;supabase&#x22;, with an arrow pointing at the &#x22;Supabase (OAuth)&#x22; connector next to &#x22;Supabase&#x22;." width="1728" height="995" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Authorize Stacksync in Supabase

A Supabase window opens automatically. Sign in if needed, then:

1. Under **Organization**, select the organization that owns your project.
2. Click **Authorize Stacksync**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-authorize.webp" alt="Supabase &#x22;Authorize Stacksync&#x22; screen with arrows pointing at the Organization dropdown and the &#x22;Authorize Stacksync&#x22; button; permissions are read-only on Database, Organizations and Projects." width="1728" height="986" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Stacksync asks for **read-only** access. It uses it only while you set up the connection, to list your projects and read their connection details, and does not store it.

<Callout type="info">
  If the Supabase window does not open, your browser probably blocked the popup. Allow popups for Stacksync and click **Connect Supabase**.
</Callout>

## 3. Complete the connection details

Back in Stacksync, the window closes and the connection details appear:

1. **Supabase Project**: select your project. If your organization has a single project, it is selected for you. Stacksync fills in the host, port, user and database from the project's connection pooler.
2. **Database password**: type your project's database password. Supabase never shares database passwords with third-party apps, so this is the only value you enter yourself. If you don't have it, reset it in your Supabase dashboard under **Project Settings > Database**.
3. **Schema**: pick the schema to sync (`public` by default).
4. If your Supabase project restricts inbound IPs, add the Stacksync IP addresses listed under **Allowlist Stacksync IPs** to its allowlist.

Click **Next**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-configure.webp" alt="Stacksync &#x22;Configure connection&#x22; step for Supabase (OAuth) with a project selected, the database password filled in, the &#x22;public&#x22; schema, the Stacksync IP allowlist, and arrows pointing at the password field and the &#x22;Next&#x22; button." width="1728" height="998" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Name and create the connection

1. **Connection Name**: give the connection a name you will recognize. Stacksync suggests a **Connection Resource ID** from it.
2. **Connection Region**: pick the region your syncs run in.
3. Leave **Make this connection available to other users in the workspace** checked to let your teammates use it.

Click **Create**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-oauth-create.webp" alt="Stacksync &#x22;Create&#x22; step for Supabase (OAuth) with the Connection Name, Connection Resource ID, Connection Region and workspace sharing checkbox, and arrows pointing at the name field and the &#x22;Create&#x22; button." width="1711" height="983" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Your Supabase database is now connected and ready to use in a sync or workflow.

# Supabase

> Find your Supabase connection URL.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/supabase

<Callout type="info">
  Prefer signing in with your Supabase account instead of copying a connection string? Use the [Supabase (OAuth)](/two-way-sync/connectors/postgres/authorize-postgres/supabase-oauth) connector.
</Callout>

## 1. Open your Supabase project

## 2. Click "Connect"

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-project-connect-button.webp" alt="Supabase project dashboard with the &#x22;Connect&#x22; button in the top bar highlighted and labeled &#x22;Click Connect&#x22;." width="1600" height="997" loading="lazy" decoding="async" />

  <figcaption><p>Click "Connect"</p></figcaption>
</figure>

## 3. Copy connection string

Make sure to:

1. use **Transaction Pooler**. Compared to direct connections, a transaction pooler enables higher connection concurrency without exhausting the database. It improves connection reuse, load isolation, and fault tolerance, ensuring stable performance under high throughput.
2. use **IPv4-compatible** connection string. Stacksync does not currently support IPv6. You must use an IPv4-compatible connection string.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/supabase-ipv4-transaction-pooler-string.webp" alt="Supabase &#x22;Connect to your project&#x22; dialog with Method &#x22;Transaction pooler&#x22; and the &#x22;IPv4 compatible&#x22; badge highlighted next to the URI." width="1165" height="633" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Create the connection on Stacksync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-connection-menu.webp" alt="Stacksync &#x22;All Resources&#x22; page with the &#x22;Create Resource&#x22; dropdown open and &#x22;Connection&#x22; highlighted." width="1044" height="509" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-postgres-configure-step.webp" alt="Stacksync &#x22;Create a new Connection&#x22; Configure step with Connection String or Host, Port, Username, Password and Database fields." width="950" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Make sure to fill in all fields, including the password as it may not be copied as part of the connection string.

<Callout type="info">
  If you face the error `Please use IPv4 compatible supabase connection pooler` go back to Supabase app and make sure to use a connection string which is IPv4 compatible.
</Callout>

# Postgres

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres

## Introduction

PostgreSQL (Postgres) is a powerful, open-source, object-relational database management system that uses and extends the SQL language. It is known for its stability, reliability, and advanced features such as concurrency control, transaction management, and support for various programming languages. Postgres is the backbone database of many backend production services.

You can now keep data in sync with all your other CRMs and database systems with Stacksync!

Check out our [Postgres guides](/two-way-sync/guides/modify-salesforce-data-in-postgres) to get started!

## Things to keep in mind

### During setup

* [x] **All Postgres tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column, composite primary keys are not valid. Check our [Postgres snippets](/two-way-sync/connectors/postgres/snippets) collection for additional hints.
* [x] **Primary keys must be auto-generated**\
  Make sure your primary keys are generated by your database (i.e. have a default value set).
* [x] **Double-check that the Postgres user used by Stacksync to connect to your database is the owner** (or has the same role as the owner) **of *****the tables***** you want to map.**

If a table you see in your database does not appear in Stacksync, one of the previous conditions is not met. Check our [Postgres snippets](/two-way-sync/connectors/postgres/snippets) collection for additional hints.

<Callout type="info">
  You must have replication rights to connect your Postgres instance. If you get the following error:

  `The user does not have the right permissions for replication. Please check the documentation for more information.`

  Please use the "**Postgres Heroku**" connector instead of the "Postgres" Connector. They are the same but the "Postgres Heroku" connector does not require replication rights in trade for some negligible database performance. So you can use the "Postgres Heroku" connector with your current database even if it is not provided by Heroku as long as you get the error message displayed above.
</Callout>

<details>
  <summary>
    How to enable Logical Replication? (If not already enabled)
  </summary>

  To use **logical replication** for change data capture the ***wal_level*** value must be set to ***logical.*** To change the value of this parameter, modifications need to be made to the *postgresql.conf* file.

  1. Open the *postgresql.conf* file. On Linux, this file can be found in the following directory:

     **/etc/postgresql/version/main**
  2. Find the **wal_level** variable under WRITE-AHEAD LOG settings.
  3. Uncomment it if it's commented and set its value to **logical:**\
     wal_level = logical
  4. Restart the PostgreSQL service. On Linux it can be restarted with the following commands:\
     `sudo service postgresql stop`

     `sudo service postgresql start`
  5. Use the following SQL query to ensure logical replication has been enabled:\
     `SHOW wal_level;`\
     The value displayed should be **logical.**
  6. After enabling, in Stacksync, use the **Postgres** option instead of the **Postgres Heroku** option while creating the sync.
</details>

### After setup

<Callout type="warn">
  Renaming schemas, tables, or columns will break Stacksync configuration. No worries, we get you covered! Please refer to our [Manual Sync Configuration Update](/two-way-sync/features/update-sync-configuration) guide.
</Callout>

# Required Permissions

> For Stacksync to sync data from/to your Postgres, Stacksync requires a given set of permissions. These are the least minimal permissions required for Stacksync to work.

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/required-permissions

When creating a Postgres sync on the Stacksync Dashboard, you will need to provide a DB user. Here is a guide to creating a user with the least permissions while still enabling Stacksync Syncs from/to your Postgres DB.

Here is the list of queries you need to execute in your Postgres DB to create and grant the DB user `stacksync_user` the necessary permissions.

You need to replace the following fields in the query:

* `'<PROVIDE_STRONG_PASSWORD>'`
* `` `<DATABASE_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>' ``
* `'<SCHEMA_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>'`
* `'<NAMES_OF_TABLES_YOU_WANT_TO_SYNC>'`

```sql
CREATE USER stacksync_user WITH PASSWORD '<PROVIDE_STRONG_PASSWORD>';
--necessary to create tables
CREATE SCHEMA IF NOT EXISTS stacksync_logging;
GRANT ALL PRIVILEGES ON SCHEMA stacksync_logging TO stacksync_user;

--necessary to create triggers on the table you want to sync
GRANT CREATE ON DATABASE '<DATABASE_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>' TO stacksync_user;
GRANT USAGE, CREATE ON SCHEMA '<SCHEMA_NAME_CONTAINING_THE_TABLES_YOU_WANT_TO_SYNC>' TO stacksync_user;
GRANT USAGE ON LANGUAGE plpgsql TO stacksync_user;
GRANT SELECT, INSERT, UPDATE, DELETE, TRIGGER ON TABLE '<NAMES_OF_TABLES_YOU_WANT_TO_SYNC>' TO stacksync_user;

-- necessary to detect which tables can be synced by Stacksync
GRANT SELECT ON pg_class TO stacksync_user;
GRANT SELECT ON pg_namespace TO stacksync_user;
GRANT SELECT ON pg_constraint TO stacksync_user;
GRANT SELECT ON pg_attribute TO stacksync_user;
GRANT SELECT ON pg_attrdef TO stacksync_user;
GRANT SELECT ON information_schema.sequences TO stacksync_user;
```

## pgcrypto extension (PostgreSQL 12 and earlier)

Stacksync creates its tracking tables in your database with UUID columns that use the `gen_random_uuid()` function.

On PostgreSQL 13 and later, this function is built-in and no action is needed. On PostgreSQL 12 and earlier, it is provided by the `pgcrypto` extension, which must be installed before creating the sync:

```sql
CREATE EXTENSION IF NOT EXISTS pgcrypto;
```

Installing an extension requires superuser privileges or the `CREATE` privilege on the database, so this query is typically run by your database administrator rather than `stacksync_user`.

## Additional permissions required for PostgreSQL partitioned tables

In PostgreSQL, permissions are managed per partition table.

If your partitioned tables already had **existing partitions before granting permissions to Stacksync** on the parent table, you must also grant permissions on those existing partitions manually.

Future partitions created afterward will automatically inherit the parent table permissions.

Run the following query to grant the required permissions on all existing partitions in your database:

```sql
DO $$
DECLARE
    r RECORD;
BEGIN
    FOR r IN
        SELECT c.oid::regclass AS partition_table
        FROM pg_class c
        JOIN pg_inherits i ON i.inhrelid = c.oid
    LOOP
        EXECUTE format(
            'GRANT SELECT, INSERT, UPDATE, DELETE, TRIGGER ON TABLE %s TO stacksync_user;',
            r.partition_table
        );
    END LOOP;
END $$;
```

# Snippets

> Handy snippets to help you set up Postgres to work with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/postgres/snippets

## Create a Primary Key

When creating a table in Postgres, you must define a primary key for the table. This can be done using a UUID or an integer that is auto-generated. Here are example snippets to create a primary key with auto-generated UUIDs or integers in Postgres:

Code snippet for UUID primary key:

```sql
CREATE TABLE public."my_table" (
   id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
   my_column varchar,
   -- other columns here
);
```

Code snippet for integer primary key:

```sql
CREATE TABLE my_table (
   id serial PRIMARY KEY,
   my_column varchar,
   -- other columns here
);
```

In the above code snippets, we have defined a primary key column named `id` using UUID and integer data types respectively. For integer primary keys, the `serial` data type is used, which automatically generates a sequence of unique integer values for the `id` column. By using either of these techniques, you can ensure that each row in the table has a unique identifier.

## Alter a Primary Key

In Postgres, you can alter a primary key on a table to set it to a new column that is auto-generated with UUIDs or integers. This can be useful when you need to change the primary key column of a table to make it work with Stacksync's requirements. Here is an example code snippet that demonstrates how to alter a primary key on a table to set it to a new column that is auto-generated with UUIDs (BEST PRACTICE) or integers:

Code snippet for UUID primary key: (recommended)

```sql
-- first, create the new column with the desired data type
ALTER TABLE public."my_table" ADD COLUMN new_id uuid DEFAULT uuid_generate_v4() PRIMARY KEY;

-- then, drop the old primary key constraint
ALTER TABLE public."my_table" DROP CONSTRAINT my_table_pkey;

-- finally, add the new primary key constraint using the new column
ALTER TABLE public."my_table" ADD PRIMARY KEY (new_id);
```

Code snippet for Integer primary key:

```sql
-- first, create the new column with the desired data type
ALTER TABLE public."my_table" ADD COLUMN new_id serial PRIMARY KEY;

-- then, drop the old primary key constraint
ALTER TABLE public."my_table" DROP CONSTRAINT my_table_pkey;

-- finally, add the new primary key constraint using the new column
ALTER TABLE public."my_table" ADD PRIMARY KEY (new_id);
```

In the above code snippets, we have created a new column named `new_id` with the desired data type and auto-generation mechanism for the primary key. We have then dropped the old primary key constraint on the table and added a new primary key constraint using the new column. Note that this operation may require data type conversion and may cause data loss, so you should be careful when modifying the primary key column of a table.

## Create a User with restricted access rights on your database

When you use Stacksync on production databases, you might feel more comfortable creating a user where Stacksync has only the necessary access rights to access the data.

Usually, Stacksync will create some tables directly and read and write data on these. For this setup, it is recommended to create a user for Stacksync that has the `create table` and `read + write` access rights.

Here is how to do it:

1. Connect to your PostgreSQL database with a user that has administrative privileges (e.g., the superuser or an account with the `CREATEDB` privilege).
2. Use the `CREATE ROLE` command to create a new user for Stacksync. You can grant the required privileges using the `GRANT` command.

```sql
-- Create the user
CREATE ROLE stacksync_user WITH LOGIN PASSWORD 'your_password';

-- Grant the necessary privileges
-- To create tables in a specific schema (e.g., public)
GRANT CREATE ON SCHEMA public TO stacksync_user;

-- Grant read and write privileges on all tables in the public schema
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO stacksync_user;
```

3. The Stacksync user also needs to have either `replication` rights on your database or `create schema`. This is necessary for Stacksync to be able to capture data changes in real-time and make the sync work.

Option 1: `replication` rights (recommended)

```sql
-- Grant replication rights to the Stacksync user (you must be a superuser to give replication rights to another user)
ALTER ROLE stacksync_user WITH REPLICATION;
```

Option 2: `create schema` (if your database does not allow you to activate `replication` rights)

```sql
-- Grant create schema rights to the Stacksync user
GRANT CREATE ON DATABASE your_database_name TO stacksync_user;
```

## Grant user read and write access rights on a specific existing table

```sql
-- Grant read and write access to the table for the user
GRANT SELECT, INSERT, UPDATE, DELETE ON your_table TO your_user;
```

The user "`your_user`" now has read and write access rights to the "`your_table`" table in the database. They can perform SELECT, INSERT, UPDATE, and DELETE operations on that table as needed.

## Create a new column in Postgres

To create a new column, here is a generic code snippet:

```sql
ALTER TABLE table_name
ADD COLUMN new_column_name data_type;
```

Here's an example that adds a new column named `age` with the data type `integer` to a table named `persons`:

```sql
ALTER TABLE persons
ADD COLUMN age integer;
```

To add a new column named `name` with the data type `varchar` (i.e. string) to a table named `persons`:

```sql
ALTER TABLE persons
ADD COLUMN name VARCHAR;
```

# Authorize Rillet Connection

> This guide explains how to connect your Rillet environment to Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/rillet/authorize-dynamics-365-f-and-o

## 1. Generate an API Key in [Rillet](https://app.rillet.io/)

1. Login to [Rillet](https://app.rillet.io/) App
2. Navigate to **Organization Setting** -> **API Access**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-organization-settings-menu.webp" alt="Rillet dashboard with the &#x22;Stacksync Sandbox&#x22; account menu open and &#x22;Organization Settings&#x22; highlighted." width="1600" height="923" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-api-access-create-api-key.webp" alt="Rillet Settings &#x22;API Access&#x22; page listing API keys, with &#x22;API Access&#x22; and the &#x22;Create API key&#x22; button highlighted." width="1600" height="925" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Click on **Create new API key**
4. Enter a name for the API Key

**a. Enable full access (read/write):** Uncheck Read Only to allow bidirectional sync.

**b. Enable read-only access:** Check Read Only for one-way sync.

5\. Copy the secret key generated.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-generate-new-api-key-dialog.webp" alt="Rillet &#x22;Generate new API key&#x22; dialog with an &#x22;API Key Name&#x22; field, a &#x22;Read-only&#x22; checkbox and a &#x22;Create API Key&#x22; button." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a Connection in [Stacksync](https://app.stacksync.com/) App

1. Click **Create Resource**
2. Select **Syncs**
3. Choose the **Rillet connector**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-resource-select-syncs.webp" alt="Stacksync &#x22;Create a resource&#x22; screen with templates on the left and the &#x22;Syncs&#x22; tile highlighted under &#x22;Jump right in&#x22;." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-rillet-connector.webp" alt="Stacksync &#x22;Create a new Sync&#x22; Connect Apps step with the Rillet connector highlighted in the connector grid." width="1600" height="922" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This opens the authorization flow.

## 3. Complete the Connection Setup

1. Provide the **Rillet API key** generated in Step 1.
2. Follow the on-screen steps to finalize the connection

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rillet-connection-api-key-field.webp" alt="Stacksync Rillet &#x22;Select a connection&#x22; dialog with Environment &#x22;Production&#x22; and the &#x22;API Key (Bearer)&#x22; field highlighted." width="1600" height="926" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Rillet

Source: https://docs.stacksync.com/two-way-sync/connectors/rillet

The **Stacksync Rillet connector** enables **bidirectional synchronization** of ERP data with any data warehouse or operational system.

## Rillet connector supports:

1. Historical data backfill.
2. Near real-time updates via change tracking
3. Bidirectional write-back support.

Here are the key steps to have Stacksync sync your data:

<Cards>
  <Card title="Authorize Rillet Connection" href="/https/docs.stacksync.com/two-way-sync/connectors/rillet/authorize-dynamics-365-f-and-o" />
</Cards>

<Cards>
  <Card title="Rillet Supported Objects" href="/https/docs.stacksync.com/two-way-sync/connectors/rillet/make-a-custom-entity-syncable-by-stacksync" />
</Cards>

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Rillet Supported Objects

Source: https://docs.stacksync.com/two-way-sync/connectors/rillet/make-a-custom-entity-syncable-by-stacksync

Stacksync supports **17 objects** from Rillet, covering core financial and operational data.

| Object           | Incremental Sync | Historic Sync | Delete Detection |
| ---------------- | ---------------- | ------------- | ---------------- |
| Account          | ✅                | ✅             | ✅ Every 1h       |
| Subsidiary       | ❌                | ✅             | ✅ Every 1h       |
| Tax Rate         | ❌                | ✅             | ✅ Every 1h       |
| Customer         | ✅                | ✅             | ✅                |
| Vendor           | ✅                | ✅             | ✅                |
| Product          | ❌                | ✅             | ✅ Every 1h       |
| Contract         | ❌                | ✅             | ✅ Every 1h       |
| Invoice          | ✅                | ✅             | ✅                |
| Credit Memo      | ✅                | ✅             | ✅                |
| Bill             | ✅                | ✅             | ✅                |
| Journal Entry    | ✅                | ✅             | ✅                |
| Invoice Payment  | ✅                | ✅             | ✅                |
| Charge           | ✅                | ✅             | ✅                |
| Reimbursement    | ✅                | ✅             | ✅                |
| Bank Account     | ❌                | ✅             | ✅ Every 1h       |
| Bank Transaction | ❌                | ✅             | ✅ Every 4h       |
| Custom Field     | ✅                | ✅             | ✅                |

If you have any questions or run into any blockers, reach out anytime at [hello@stacksync.com](mailto:hello@stacksync.com) and the Stacksync team will be happy to help.

# Enable API Access in Salesforce

Source: https://docs.stacksync.com/two-way-sync/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce

API access needs to be enabled in Salesforce for the user connecting Stacksync to its Salesforce instance.

Follow the steps below to:

* Enable API access in Salesforce by Profile
* Enable API access in Salesforce by Permission Set

<Tabs items="[&#x22;Enable API access by Profile&#x22;,&#x22;Enable API access by Permission Set&#x22;]">
  <Tab value="Enable API access by Profile">
    **Enable API access in Salesforce by Profile**

    \
    1\. Click the Gear icon and click **Setup.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-gear-menu-setup.webp" alt="Salesforce gear icon menu open with the &#x22;Setup&#x22; option highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    \
    2\. Type **profiles** into the Quick Find box and select **Profiles.**\
    \
    3\. Click **Edit** against the Profile you wish to enable API access for.

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-setup-profiles-edit.webp" alt="Salesforce Setup Profiles list found by searching &#x22;profiles&#x22;, with the &#x22;Edit&#x22; link next to &#x22;Standard User&#x22; highlighted." width="1600" height="890" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    4\. Scroll down to **Administrative Permissions** and check the **API Enabled** box and click **Save**.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-profile-api-enabled.webp" alt="Salesforce profile Administrative Permissions with the &#x22;API Enabled&#x22; checkbox highlighted and checked." width="1600" height="886" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    The API in Salesforce is now enabled for the modified profile. All users with this profile now have API enabled permissions.

    ***

    ***Optional:*** If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set. This only works for custom profiles, salesforce standard profiles do not allow you to turn enable this permission.\
    \
    5\. In your custom profile scroll down to *Administrative Permissions* section and enable *Query all data*

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-profile-query-all-files.webp" alt="Salesforce custom profile Administrative Permissions with the &#x22;Query All Files&#x22; checkbox highlighted and checked." width="1600" height="886" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
  </Tab>

  <Tab value="Enable API access by Permission Set">
    ## Enable API Access in Salesforce by Permission Set

    \
    1\. Click the Gear icon and click **Setup.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-gear-menu-setup.webp" alt="Salesforce gear icon menu open with the &#x22;Setup&#x22; option highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    \
    2\. Type **permission** into the Quick Find box and select **Permission Sets.**

    3\. Select the Permission Set you wish to enable API access for. (Or click "NEW" if you want to create a new one).

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-setup-permission-sets-list.webp" alt="Salesforce Setup &#x22;Permission Sets&#x22; page found by search, with the &#x22;new permission set&#x22; entry highlighted." width="1600" height="886" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    4\. Scroll down to **System** and click **System Permissions.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-system-permissions.webp" alt="Salesforce permission set overview with the &#x22;System Permissions&#x22; link under System highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    5\. Click **Edit**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-system-permissions-edit.webp" alt="Salesforce permission set &#x22;System Permissions&#x22; page with the &#x22;Edit&#x22; button highlighted." width="1600" height="885" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    6\. Check the **API Enabled** box and then scroll up and click **Save.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-api-enabled.webp" alt="Salesforce permission set System Permissions list with the &#x22;API Enabled&#x22; checkbox checked and highlighted." width="1600" height="887" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    The permission set now has the API Enabled permission. The permission set should be applied to the user connecting Salesforce to Stacksync.

    7. Select the permission set and click **Manage Assignments** and then **Add Assignments**.
    8. Select the check boxes next the names of the users you want assigned to the permission set, and click **Assign**.

    ***

    *Optional:* If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set.

    8\. Switch the permission set overview to *App Permissions*

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-app-permissions.webp" alt="Salesforce permission set navigation dropdown open with &#x22;App Permissions&#x22; highlighted." width="1600" height="888" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    9. Click **Edit**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-app-permissions-edit.webp" alt="Salesforce permission set &#x22;App Permissions&#x22; page with the &#x22;Edit&#x22; button highlighted." width="1600" height="888" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    10. Scroll down to the *Content* section and enable *Query All FIles* and then scroll up and click **Save.**

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/salesforce-permission-set-query-all-files.webp" alt="Salesforce App Permissions Content section with the &#x22;Query All Files&#x22; checkbox checked and highlighted." width="1600" height="888" loading="lazy" decoding="async" />

      <figcaption />
    </figure>

    <br />
  </Tab>
</Tabs>

Learn more in [this Salesforce documentation](https://help.salesforce.com/s/articleView?id=sf.branded_apps_commun_api_permset.htm\&type=5).

# Fix the Salesforce OAuth Error

> When creating your Salesforce connection, you may see this error:

Source: https://docs.stacksync.com/two-way-sync/connectors/salesforce/authorize-salesforce/fix-the-salesforce-oauth-error

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-oauth-error-app-not-installed.webp" alt="Salesforce &#x22;OAuth Error&#x22; page; the URL shows &#x22;error_description=app+must+be+installed+into+org&#x22;." width="1600" height="1057" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This happens because Salesforce requires the **Stacksync a**pp to be installed and approved in your **Organization** before anyone can use OAuth.

## Install the Stacksync App in Your Salesforce Org

Before any user can create a Salesforce connection in Stacksync, the **Stacksync** App must be installed in your Salesforce org. This step only needs to be done **once**.

### 1. Make sure the installer has the required permission

The user who performs the first OAuth authorization **must** have the Salesforce permission:

### “Approve Uninstalled Connected Apps”

To enable it:

1. Go to **Setup**
2. Search for **Profiles**
3. Open the profile of the user who will install the app\
   (e.g., **System Administrator** or any user profile with this permission)
4. Enable **“Approve Uninstalled Connected Apps”**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-profiles-system-administrator.webp" alt="Salesforce Setup User Profiles list with &#x22;Profiles&#x22; and the &#x22;System Administrator&#x22; profile highlighted." width="1600" height="727" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-approve-uninstalled-connected-apps.webp" alt="Salesforce profile Administrative Permissions with &#x22;Approve Uninstalled Connected Apps&#x22; highlighted and checked." width="1600" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This permission lets the user approve and install connected apps.

### 2. Perform the first OAuth authorization

After the permission is enabled:

1. The user with that permission logs into **Stacksync**
2. Starts the **Salesforce OAuth flow**
3. Salesforce will show a prompt to **approve and install** the **Stacksync** App
4. Once approved, if you want other users in your organization to be able to install this app, go to **Setup → Connected Apps OAuth Usage**, find **Stacksync**, and click **Install.** After that, selected users will be able to authorize successfully.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-connected-apps-oauth-usage-install.webp" alt="Salesforce &#x22;Connected Apps OAuth Usage&#x22; page with the &#x22;Install&#x22; button highlighted for the Stacksync app." width="1600" height="214" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Other Users Can Now Use OAuth

Once the **Stacksync** app is installed, other Salesforce users (for example, a dedicated “Stacksync Integration User” with limited permissions) should be able to complete the OAuth flow without any extra steps.

If a user still encounters an OAuth error, go to **Setup → Connected Apps OAuth Usage**, find **Stacksync**, click **Install or** assign access. After that, the user will be able to authorize successfully.

***

## Final Result

* **One user with the proper permission installs the app once**
* **All other allowed users can now use OAuth to create Salesforce connections in Stacksync**

# Authorize Salesforce

> Authenticate your Salesforce app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/salesforce/authorize-salesforce

You can also watch a quick video on how to authorize Salesforce

<YouTube id="13BDs2x5igg" title="Video" />

## Adding Credentials to Stacksync

#### 1. Select Salesforce in the Create Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-salesforce.webp" alt="Stacksync &#x22;Create New Base&#x22; Connect Apps step with the Salesforce tile highlighted and the caption &#x22;Select &#x22;Salesforce&#x22;&#x22;." width="1516" height="823" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<details>
  <summary>
    Getting stuck on this step?
  </summary>

  If you get stuck on a loading page after when trying to connect Salesforce (i.e. waiting a few minutes), verify that **you do not have an *****Ad blocker***** or that *****popup windows are not blocked*****.**

    <img alt="Stacksync connector dialog stuck on a loading spinner with &#x22;Swapping time and space...&#x22; and &#x22;Cancel&#x22; and &#x22;Select&#x22; buttons." src="__img0" />

  **Fix ✅: Press cancel, Deactivate your *****Ad blocker***** and try again to Authorize Salesforce.**
</details>

#### 2. A new tab will open. Select your account.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-login-select-account.webp" alt="Salesforce login page listing saved usernames, highlighted with the caption &#x22;Select your account&#x22;." width="1518" height="823" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  On production: We recommend creating a specific Salesforce user for your Stacksync application, and make sure that it has the [required permissions](https://docs.stacksync.cloud/connectors/salesforce/authorize-salesforce#permissions-needed-to-use-stacksync-salesforce-connector).
</Callout>

#### 3. Fill out the credentials and log into your account.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-login-credentials.webp" alt="Salesforce login form with username and password filled in and the login button highlighted, captioned &#x22;Log into Salesforce&#x22;." width="1516" height="820" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Troubleshoot

<Callout type="info">
  If you are facing issues during salesforce oauth page, follow this tutorial to fix it [Fix the Salesforce OAuth Error](/two-way-sync/connectors/salesforce/authorize-salesforce/fix-the-salesforce-oauth-error)
</Callout>

<Callout type="info">
  If you do not have the API Enabled for your Salesforce user, follow this tutorial to activate it: [Enable API Access in Salesforce](/two-way-sync/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce)
</Callout>

<details>
  <summary>
    Permissions needed to use Stacksync Salesforce connector
  </summary>

  When your data changes, Stacksync needs to be notified in order to power real-time sync. Depending on your setup, using regular data polling or triggers can be best. Stacksync proposes the two alternatives and selects the best one automatically for you.

  To use the Salesforce connector, you will need a Salesforce user with the following permissions,

  1. for the <mark>connector using regular polling</mark> for change data capture:

  * **API Enabled** - Allows the user to execute API calls.

  To [activate the API for your Salesforce User, follow this tutorial 👍🏼](/two-way-sync/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce)

  With regular polling, Stacksync works as follows: When you create a sync with Salesforce, we will only query your Salesforce instance regularly in an optimized manner to get the latest changes on your data. We only sync the incremental changes that happened since our last poll. As we detect some activity in your Salesforce data, we optimize our polling rate to provide you with a real-time sync performance, and save your resources otherwise when your data is not active. You will save much API resources compared to all other alternatives for real-time and two-way sync.

  2. for the <mark>connector using triggers</mark> for change notifications:

  * **API Enabled** - Allows the user to execute API calls.
  * **Author Apex** - Allows the user to create and EDIT Apex classes and Triggers.
  * **Customize Application** OR **Modify All Data** - Allows the user to create or edit remote site settings.

  With triggers, Stacksync works as follows: When you create a sync with Salesforce, we will create an *Apex trigger* that calls an *Apex callout class* which sends data to Stacksync via a *remote site setting*. This is why we need all three of the above permissions.
</details>

<details>
  <summary>
    I get the error "The REST API is not enabled for this Organization"
  </summary>

  Stacksync accesses your data to be synced in the background via the Salesforce API, which makes the integration frictionless. You Salesforce Organization must have the API feature enabled and this depends your Salesforce subscription plan.

  #### Editions with API Access (enabled by default)

  * Enterprise Edition
  * Unlimited Edition
  * Developer Edition
  * Performance Edition

  #### Editions with optional API access

  * Professional Edition (can be purchased as an add-on, contact the Salesforce sales team to order the API access)

  #### Editions without API Access

  * Group Edition
  * Essentials Edition

  Unfortunately, editions without API Access cannot use Stacksync now, please contact us at if you have a special use case we can help you with!

  [Read more](https://help.salesforce.com/s/articleView?id=000385436\&type=1) on Salesforce documentation
</details>

<details>
  <summary>
    Error enabling Bulk API
  </summary>

  The **"View All Data"** permission is required for Stacksync to access the Salesforce **Tooling API**, which is necessary when configuring the Sync to use the **Bulk API**.

  You can enable this permission by navigating to:\
  **Setup → Users → Profiles → \[Select the user profile connected to Stacksync] → Edit → Enable "View All Data".**

  .  <img alt="Salesforce profile Administrative Permissions with an arrow pointing to the checked &#x22;View All Data&#x22; permission." src="__img1" />
</details>

# Formula Fields

Source: https://docs.stacksync.com/two-way-sync/connectors/salesforce/formula-fields

## Formula Fields in Salesforce

Formula fields in Salesforce are **read-only fields** whose values are dynamically calculated based on other fields, expressions, or functions.\
Because their values are derived rather than stored, they might not always trigger standard change events when the underlying data changes.

***

### Syncing Formula Fields with Stacksync

Stacksync can **synchronize formula fields** at a custom frequency that you define.\
This ensures that even though formula fields don’t emit direct change notifications, their computed values remain up-to-date in your destination system.

#### How It Works

* Formula fields are detected automatically during setup.
* You can configure a **full table scan** for specific tables containing formula fields.
* Stacksync will recheck and update those formula field values at the chosen frequency (e.g., every 24 hours).<br />

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-formula-fields-full-table-scan.webp" alt="Stacksync Salesforce connected app settings with the formula fields option to do a full table scan of &#x22;Account&#x22; every &#x22;24h&#x22; highlighted." width="1163" height="708" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Salesforce

Source: https://docs.stacksync.com/two-way-sync/connectors/salesforce

## Introduction

Salesforce is a cloud-based customer relationship management (CRM) platform that helps businesses manage and streamline their sales, marketing, and customer service activities. It provides a range of tools and features to manage customer data, track leads and opportunities, automate sales processes, and deliver personalized customer experiences. Salesforce also offers a range of enterprise-level solutions for analytics, marketing automation, and customer service management.

You can now keep your Salesforce data in sync with all your other CRMs and database systems with Stacksync!

Check out our [Salesforce guides](/two-way-sync/guides/modify-salesforce-data-in-postgres) to get started!

## Things to keep in mind

### Can’t find a table in the list of available tables to map?

If any of the tables you’d like to sync isn’t listed in your sync configuration, it doesn’t mean it can’t be synced. Write us a message at [hello@stacksync.com](mailto:hello@stacksync.com) and we will be glad to help and add your custom object to the list!

### The Salesforce connector is available with triggers or with regular polling, which might fit better in different cases.

For the two-way sync technology to work, Stacksync needs to be notified when your data changes. The use of the Salesforce connector with triggers or regular polling for data notifications is done automatically for you by Stacksync. If you want to know more or have some specific needs, [contact us](https://www.stacksync.com/contact) and we'll be happy to help!

Stacksync offers two ways to capture data changes from Salesforce. Both methods allow reading and syncing only incremental data changes for maximum efficiency.

Here’s a short summary of the change data capture methods used and when they apply:

1. **Apex Triggers** are used whenever possible (i.e. Salesforce will actively notify Stacksync of any data update made in your CRM). To do so, Stacksync must be able to set Apex triggers and set a remote site setting. If these conditions are not met, the **regular polling** alternative for change data capture is used.
2. **Regular polling** is used for change data capture on Salesforce synced objects whenever **the Apex triggers** method cannot be used. Stacksync will intelligently poll at regular frequencies the data updates that happened on your synced objects. Only incremental data updates are captured by this method for maximal efficiency.\
   In most cases, **regular polling** will be used, as it requires fewer authorizations, less setup for production deployment, and offers good performance for large data volumes.

### Some tables and custom objects might not be supported

As of now, most Salesforce objects are supported by Stacksync but not all. Tables and objects that are not yet supported are:

* Objects that are not writable (i.e. where data can be updated via API).
* If you use the Salesforce connector with triggers: the objects that are not triggerable (i.e. where triggers cannot be set on the object).
* If you use the Salesforce connector with regular polling, the tables that do not have a `last_modified_data` column are automatically maintained by Salesforce.

These limitations exist because Stacksync provides a powerful real-time and two-way sync, which requires writable tables and notification of data changes to Stacksync’s system. We are working on some alternatives to cleverly enable the sync of all tables. Stay tuned!

### Experimenting in Sandbox or Developer Accounts

A good practice is always to experiment in a Sandbox environment and promote your working and tested systems to stage and prod environments. [Contact us](https://www.stacksync.cloud/contact) anytime at [hello@stacksync.com](mailto:hello@stacksync.com) if you need any support.

# Make Custom Fields Visible

Source: https://docs.stacksync.com/two-way-sync/connectors/salesforce/make-custom-fields-visible

When a custom field is created, it’s not visible by default to all profiles in the Salesforce organization. Users with different roles won’t be able to see the newly created custom field.

You need to modify the Field-Level Security settings after the custom field is created to allow other Salesforce profiles to see it. Stacksync enables Custom Field Visibility for the following profiles:

* System Administrator
* Standard User

<Callout type="info">
  **How to enable a custom field for other profiles:**

  1. Click on `Setup`\
     <img alt="Salesforce gear menu open showing the &#x22;Setup&#x22;, &#x22;Service Setup&#x22; and &#x22;Developer Console&#x22; options." src="__img0" />
  2. Go to `Object Manager`

     <img alt="Salesforce Setup with the &#x22;Object Manager&#x22; tab selected." src="__img1" />
  3. Select the related Object

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-object-manager-account.webp" alt="Salesforce Object Manager list showing the &#x22;Account&#x22; object." width="488" height="148" loading="lazy" decoding="async" />

  4. Select `Fields & Relationships`

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-account-fields-relationships.webp" alt="Salesforce Account object menu with &#x22;Details&#x22;, &#x22;Fields & Relationships&#x22; and &#x22;Page Layouts&#x22; options." width="202" height="191" loading="lazy" decoding="async" />

  5. Select the `Custom Field`

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-custom-field-number-of-locations.webp" alt="Salesforce custom field &#x22;Number of Locations&#x22; with API name &#x22;NumberofLocations__c&#x22; and type &#x22;Number(3, 0)&#x22;." width="705" height="42" loading="lazy" decoding="async" />

  6. Select Field-Level Security and make it visible to the user groups you want

  <img src="/https/docs.stacksync.com/images/connectors/salesforce-set-field-level-security.webp" alt="Salesforce custom field toolbar with &#x22;Edit&#x22;, &#x22;Set Field-Level Security&#x22;, &#x22;View Field Accessibility&#x22; and &#x22;Where is this used?&#x22; buttons." width="350" height="65" loading="lazy" decoding="async" />

  **To make the custom Field visible in a layout:**

  1. Click on `Setup`\
     <img alt="Salesforce gear menu open showing the &#x22;Setup&#x22;, &#x22;Service Setup&#x22; and &#x22;Developer Console&#x22; options." src="__img2" />
  2. Go to `Object Manager`\
     <img alt="Salesforce Setup with the &#x22;Object Manager&#x22; tab selected." src="__img3" />
  3. Select the related Object\
     <img alt="Salesforce Object Manager list showing the &#x22;Account&#x22; object." src="__img4" />
  4. Go to the Page Layout section\
     <img alt="Salesforce Account object menu with &#x22;Details&#x22;, &#x22;Fields & Relationships&#x22; and &#x22;Page Layouts&#x22; options." src="__img5" />
  5. Select and edit the layout where you want to include the custom field you just created.\
     <img alt="Salesforce Account &#x22;Page Layouts&#x22; list including &#x22;Account Layout&#x22; and Marketing, Sales and Support layouts." src="__img6" /><br />
</Callout>

# Authorize SendGrid

> 9 minute guide to authorize SendGrid and grant Stacksync access using an API key.

Source: https://docs.stacksync.com/two-way-sync/connectors/sendgrid/authorize-sendgrid

<Callout type="info">
  Access to **Email Activity** requires an **add-on subscription** in SendGrid. Without this add-on, the Email Activity API is not available. Retention of Email Activity data also depends on the subscription level (typically 7 days by default, extended to 30 days with the add-on).
</Callout>

1. Log in to your SendGrid account.<br />
2. Navigate to **Settings** > **API Keys**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-settings-api-keys-menu.webp" alt="SendGrid dashboard with the &#x22;Settings&#x22; menu and its &#x22;API Keys&#x22; item highlighted." width="1600" height="918" loading="lazy" decoding="async" />

     <figcaption><p>Navigate to Settings > Click on API Keys<br /></p></figcaption>
   </figure>
3. Click on **Create API Key**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-create-api-key-button.webp" alt="SendGrid &#x22;API Keys&#x22; page with the &#x22;Create API Key&#x22; button highlighted." width="1600" height="920" loading="lazy" decoding="async" />

     <figcaption><p>Click on Create API Key<br /></p></figcaption>
   </figure>
4. In the API Key Permissions, select **Custom Access** and grant **Full Access** for the objects you want to sync.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-api-key-custom-access.webp" alt="SendGrid &#x22;Create API Key&#x22; panel with &#x22;Custom Access&#x22; permissions selected and per-object access sliders below." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Choose <strong>Custom Access</strong> and grant <strong>Full Access</strong> for the objects you want to sync<br /></p></figcaption>
   </figure>
5. Copy and save the generated **API Key** (API Key begins with "SG")<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-api-key-created.webp" alt="SendGrid &#x22;API Key Created&#x22; screen showing a redacted key starting with &#x22;SG&#x22; and a warning to copy it now." width="1600" height="922" loading="lazy" decoding="async" />

     <figcaption><p>Copy and save the API Key<br /></p></figcaption>
   </figure>
6. You now have all the necessary credentials to grant Stacksync access to your SendGrid Objects. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com)<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-sendgrid.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connected Apps grid with the SendGrid connector highlighted." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Click on SendGrid Connector<br /></p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sendgrid-credentials-api-key-dialog.webp" alt="Stacksync &#x22;SendGrid Credentials&#x22; dialog with an &#x22;API Key&#x22; field and an &#x22;Authorize App&#x22; button." width="1600" height="923" loading="lazy" decoding="async" />

     <figcaption><p>Insert the API Key obtained from the preview steps in the SendGrid Connector<br /></p></figcaption>
   </figure>

You successfully granted Stacksync access to your SendGrid resources! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# SendGrid

> Read-only sync between SendGrid and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/sendgrid

Stacksync lets you sync the following SendGrid resources:

## Email Activity Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Email Activity</td><td>✅ Supported</td></tr></tbody>
</table>

## Marketing Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Contacts</td><td>✅ Supported</td></tr><tr><td>List</td><td>✅ Supported</td></tr><tr><td>Segments</td><td>✅ Supported</td></tr><tr><td>Categories</td><td>✅ Supported</td></tr><tr><td>Senders</td><td>✅ Supported</td></tr><tr><td>Single Sends</td><td>✅ Supported</td></tr></tbody>
</table>

## Suppression Management Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Unsubscribe Groups</td><td>✅ Supported</td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Choose data processing region

> Stacksync lets you choose where your data is processed so you can ensure maximum system speed and compliance.

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/choose-data-processing-region

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/data-processing-region-banner.webp" alt="Stacksync banner: &#x22;Choose data processing region on any of the continents&#x22;." width="1200" height="630" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  Choosing Data Processing Region is available for PRO and ENTERPRISE plans. Please upgrade your plan if you do not see the option to select your preferred region.
</Callout>

The Processing Region feature offered by Stacksync allows clients to select the region where their data will be processed when syncing between your apps. This feature enables clients to ensure compliance with data regulations and optimize system performance by leveraging the proximity of data processing with the synced services.

With Processing Region, clients have control over the geographical location where their data transits during synchronization processes. By choosing a specific region, clients can align their data processing practices with relevant data protection and privacy regulations, ensuring compliance with regional requirements. This feature is particularly valuable for organizations operating in multiple jurisdictions with diverse data governance frameworks.

Additionally, the Processing Region feature optimizes system performance by reducing latency and enhancing data transfer speeds. By selecting a region in close proximity to the synced apps, clients can minimize data transit times and improve the overall efficiency of their sync.

Stacksync emphasizes data security throughout the synchronization process. All data transiting between applications is encrypted to maintain the confidentiality and integrity of the information. By combining strong encryption protocols with the flexibility to choose a preferred processing region, Stacksync provides clients with a reliable solution for seamless and secure data synchronization between enterprise systems, CRMs and databases.

<Callout type="info">
  Please [contact us](https://www.stacksync.com/contact) for any new region you would like to use! We can open new regions on demand.
</Callout>

# Setup options

> IP whitelisting, API rate limits and more!

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options

Follow our guides for...

<Cards>
  <Card title="IP Whitelisting" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ip-whitelisting" />
</Cards>

<Cards>
  <Card title="API Rate Limit Management" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/manage-api-rate-limits" />
</Cards>

<Cards>
  <Card title="Choose data processing region" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/choose-data-processing-region" />
</Cards>

<Cards>
  <Card title="SSH Tunneling" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling" />
</Cards>

# IP Whitelisting

> Whitelist Stacksync's IP address to connect your app.

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ip-whitelisting

Whitelist our IP address so that Stacksync can connect to your app. IP whitelisting is optional and is only necessary if your services sit behind a firewall filtering for IP addresses.

<Callout type="info">
  The IPs you can whitelist are displayed to you during thee App/Database authentication process.
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/postgres-connection-ip-whitelisting-regions.webp" alt="Stacksync Postgres connection form with the IP Whitelisting popup listing Stacksync IP addresses by region highlighted." width="998" height="1408" loading="lazy" decoding="async" />

  <figcaption><p>View the IP addresses to whitelist for specific regions.</p></figcaption>
</figure>

There is one IP address to whitelist for every region.

<table>
  <thead><tr><th width="249">Region</th><th>IP address to whitelist</th></tr></thead>

  <tbody><tr><td>🇧🇪 Belgium (St. Ghislain)</td><td><em>IP available during the authentication process</em></td></tr><tr><td>🇺🇸 US Central (Iowa)</td><td><em>IP available during the authentication process</em></td></tr><tr><td>Other regions</td><td>request at <a href="mailto:hello@stacksync.com"><mark>[hello@stacksync.com](mailto:hello@stacksync.com)</mark></a></td></tr></tbody>
</table>

<Callout type="info">
  Make sure to whitelist the IP address **BEFORE** connecting your app.

  During the app setup, Stacksync will connect to your app to retrieve its schema. Therefore, Stacksync's IP address needs to be whitelisted before that time.
</Callout>

Ensure that the resources you are whitelisting Stacksync IPs for are in a **public subnet**. Whitelisting public IPs for a resource in a **private subnet** will not allow Stacksync to access the resource from the public internet.

If you are attempting to provide direct access to a **database** in a private subnet, we recommend setting up a **jumpbox** as outlined in our documentation to connect using SSH tunneling:

<Cards>
  <Card title="SSH Tunneling" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling" />
</Cards>

Alternatively, if creating a jumpbox is not feasible, Stacksync can establish a **private connection** to your subnet using **VPN tunneling** or **AWS Transit Gateway** or **Private Link**. Email us at [hello@stacksync.com](mailto:hello@stacksync.com) if you need to connect using a private connection, i.e. without crossing the public internet.

# API Rate Limit Management

> Define the maximum number of API calls to your App at peak times.

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/manage-api-rate-limits

Stacksync will sync data between your Apps in real time. To do so, we try to transfer data as fast as possible. When you modify many rows/records at the same time, Stacksync will also **intelligently batch your data so that fewer API calls are made to your apps, while maintaining a real-time performance**. This will lead to lower API consumption and potentially lower your CRM/Database bill compared to a custom in-house API integration.

When a massive number of records are created/updated/deleted, Stacksync will spin up more workers and parallelize processes to get your data synced faster.

<mark>**You have the option to define how many requests/API calls can be made to your Apps**</mark><mark>**&#x20;**</mark>*<mark>**at peak times or within a certain time window**</mark>*<mark>**&#x20;**</mark><mark>**to make sure you do not exceed your rate limits and manage the load to your services.**</mark>

Remember: this is only the **maximum speed at which Stacksync will call your Apps at peak times when your Apps are very active**. When no data is updated, Stacksync will not make any call to your Apps in most cases! For some tables using regular polling, a small number of queries might be made when your data is inactive, but still much less than your defined API rate limit.

Rate limiting is a native feature at Stacksync. You can set rate limits for each of your Apps as follows:

1. **Open a Sync**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/syncs-list-open-sync.webp" alt="Stacksync Syncs list with the &#x22;The Sync Legacy&#x22; Salesforce to Postgres sync highlighted." width="1600" height="825" loading="lazy" decoding="async" />

  <figcaption><p>Open your Stacksync Sync</p></figcaption>
</figure>

2. **Click on an App**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/salesforce-app-rate-limit-settings.webp" alt="Stacksync Salesforce connected app settings with the &#x22;Rate Limit&#x22; section (Rate 5, Frequency &#x22;Second&#x22;) highlighted." width="1600" height="1044" loading="lazy" decoding="async" />

  <figcaption><p>Manage API rate limits from your Stacksync dashboard</p></figcaption>
</figure>

3. **Make your changes and save!**

**💡** We recommend using a smaller scale (such as seconds or minutes) for your API rate limits. It is better to have your data synced at a regular speed. Using a window in hours or days might lead to having your data not synced for the rest of the time window if not enough credits are available. Instead, you can simply spread them out evenly over time with a seconds or minutes scale.

<Callout type="success">
  Ideally, 5 to 10 requests per second are ideal to maintain a real-time sync performance in most cases.
</Callout>

Examples of recommended settings ✅ :

* 5 requests per second
* 100 requests per second
* 200 requests per minute
* 10000 requests per minute (or a proportional equivalent in seconds, depending on your requirements)

Examples of non-recommended settings 🫤:

* 50 requests per hour
* 1000000 requests per hour (💡 rather use a proportional rate per second)
* 100 requests per day

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/rate-limit-save-changes.webp" alt="Stacksync Salesforce Rate Limit set to 5 per &#x22;Minute&#x22; with the &#x22;Save Changes&#x22; button highlighted." width="1600" height="1048" loading="lazy" decoding="async" />

  <figcaption><p>Make your changes and Save</p></figcaption>
</figure>

<Callout type="info">
  Saved changes might take up to a minute to propagate and take effect.
</Callout>

<Callout type="info">
  When no data is updated on any of your Apps (for 1-way or 2-way sync), Stacksync will not query your Apps as no data needs to be transferred. There can be some exceptions to that rule but these are negligible.
</Callout>

# Access a Private AWS RDS Instance via a Jumpbox

> reading time: 3min, implementation time: 13min

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox

Accessing a private Amazon RDS instance is a common requirement in cloud-based architectures — but exposing your database directly to the internet introduces serious security risks.\
To mitigate this, a **jumpbox (bastion host)** is used as a controlled entry point to reach resources within a **private subnet**.

This guide walks you through **setting up and using an SSH tunnel via a jumpbox** to connect to your private RDS instance.\
By following these steps, you’ll be able to **securely manage your database** while keeping it **fully isolated and protected within your private network**.

## 1. Create an EC2 instance

1. **Log in** to your **AWS Management Console**.
2. **Navigate** to the **EC2 Dashboard**.
3. **Create a new EC2 instance** and configure it as follows:

**Configuration Details:**

* **Region:** Same region as your RDS instance.
* **Availability Zone:** Preferably the same AZ as your RDS to minimize latency.
* **Instance Type:** `t2.micro` (1 vCPU, 1 GiB memory) — approximately **$10.80/month**, which is sufficient since the jumpbox only handles **data tunneling**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-ec2-launch-instance-ubuntu-t2-micro.webp" alt="AWS EC2 &#x22;Launch an instance&#x22; page with the Ubuntu Server 24.04 LTS AMI and &#x22;t2.micro&#x22; instance type selected." width="1600" height="887" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Grant ssh access to your client service

**Connect to your instance via SSH:**

```bash
ssh <ssh_user>@<jumpbox_ip>
```

* Use **`ubuntu`** as the SSH user if the EC2 instance is running **Ubuntu**.
* Use **`ec2-user`** if the instance is running **Amazon Linux**.

## 3. Whitelist trusted IPs

The most effective security measure is to **whitelist only the IP addresses** that are allowed to connect to your Jumpbox.\
We recommend granting access **exclusively to the IPs that require it**.

You can do this by **creating a dedicated Security Group** under the **Network & Security** section and adding inbound rules for your trusted services or hosts.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-ec2-security-groups-menu.webp" alt="AWS EC2 sidebar with &#x22;Security Groups&#x22; under Network & Security highlighted." width="170" height="761" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-jumpbox-security-group-inbound-rules.webp" alt="AWS &#x22;Create security group&#x22; form with inbound and outbound Custom TCP rules on port 22 for a single whitelisted /32 IP." width="1600" height="825" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can now **attach the newly created security group** to your **Jumpbox EC2 instance** to apply the updated access rules.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-ec2-change-security-groups.webp" alt="AWS EC2 Instances list with Actions > &#x22;Security&#x22; > &#x22;Change security groups&#x22; highlighted for the selected jumpbox instance." width="1098" height="345" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can verify that **only your whitelisted client** can access the jumpbox by running:

```bash
telnet <jumpbox_ip> <ssh_port>
```

If the command **times out**, it confirms that **access from your current network is blocked**, and only the authorized client can connect.

## 4. Grant the jumpbox access to your DB

**Create a dedicated security group** for the Jumpbox to access the database, following the same process described in the previous step.\
Then, **update your database’s security group rules** to allow inbound connections **only from this new Jumpbox security group**.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-database-modify.webp" alt="Amazon RDS Databases list with the PostgreSQL &#x22;db-demo&#x22; instance selected and the &#x22;Modify&#x22; button highlighted." width="1030" height="338" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/aws-rds-connectivity-jumpbox-security-group.webp" alt="Amazon RDS &#x22;Modify DB instance&#x22; Connectivity section with the &#x22;jumpbox-sg&#x22; security group selected." width="744" height="418" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### ✅ Test Your Setup

You can verify your configuration by running the following commands **from the service or machine you whitelisted**:

```bash
# Create the SSH tunnel
ssh -L 5432:<db_ip>:5432 -N -f <jumpbox_user>@<jumpbox_ip>

# Connect to the database through the tunnel
psql -h localhost -p 5432 -U <DB_USER> -d <DB_NAME>
```

If the connection succeeds — congratulations 🎉\
You can now securely access your **private database** through an **SSH tunnel** that routes traffic via your **jumpbox**.

### 🔒 (Optional) Additional Security Measures

To further strengthen your setup beyond the steps in this tutorial, consider implementing the following best practices:

* **Use an SSL certificate** to secure all encrypted connections.
* **Configure a firewall** (e.g., AWS Security Groups or ufw) to strictly control inbound and outbound traffic on the jumpbox.
* **Create a dedicated system user** instead of using default accounts such as `ubuntu` or `ec2-user`.
* **Limit privileges:** disable `sudo` access for the SSH user and grant only the minimum permissions required.
* **Change the default SSH port** (22) to a custom port to reduce exposure to automated attacks.
* **Install Fail2Ban** to automatically block IPs that trigger repeated failed login attempts.
* **Deploy auditd** to monitor and log all system-level events for auditing and anomaly detection.

If you have any questions, feel free to ping us at [hello@stacksync.com](mailto:hello@stacksync.com) we'll be happy to help!

# Accessing a Private GCP Database via a Jumpbox

> (7 min read)

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/accessing-a-private-gcp-database-via-a-jumpbox

Accessing a private **Cloud SQL** instance is a common challenge in cloud-based architectures. Exposing your database directly to the internet poses significant security risks — which is why using a **jumpbox (bastion host)** within a private subnet is an established best practice.

This guide walks you through **configuring and using an SSH tunnel via a jumpbox** to connect to your private Cloud SQL instance on **Google Cloud**.\
By following these steps, you’ll be able to **securely manage your database** while keeping it **isolated and protected within your private network**.

1. In the **GCP Console**, navigate to **Compute Engine → VM instances**, then click **“Create Instance.”**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-vm-instances-create-instance.webp" alt="GCP Compute Engine &#x22;VM instances&#x22; page with the &#x22;Create Instance&#x22; button." width="749" height="253" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. You can use the **default machine type (2 vCPU, 4 GB RAM)** — there’s **no need to modify the default configuration**, as it provides sufficient resources for the jumpbox.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-jumpbox-machine-configuration.webp" alt="GCP &#x22;Create an instance&#x22; Machine configuration for a VM named &#x22;jumpbox&#x22; using the E2 series and &#x22;e2-medium&#x22; (2 vCPU, 4 GB)." width="941" height="835" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. For each client that requires access to the Jumpbox, **add their public SSH keys** under the **Managed Access** section in the **Security** tab.

   Always **add SSH keys through the GCP Console or CLI** — **do not edit** the `.ssh/authorized_keys` file directly on the VM.\
   GCP periodically overwrites this file automatically, so manual edits will be lost.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-vm-add-manual-ssh-keys.webp" alt="GCP &#x22;Create an instance&#x22; Security section with &#x22;Add manually generated SSH keys&#x22; and its &#x22;Add Item&#x22; button highlighted." width="690" height="890" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Click **“Create”** to launch the instance.
5. Connect to your Jumpbox using SSH.\
   The **SSH username** corresponds to the **user portion of your SSH key**.

   For example, if your public key looks like:

   ```
   ssh-rsa AAAAB3... hello@example.com
   ```

   then connect using:

   ```bash
   ssh hello@<jumpbox_public_ip>
   ```

   The **public IP address** (also called the **External IP** in GCP) is visible on the **VM Instances** page in the **Compute Engine** section.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-jumpbox-external-ip.webp" alt="GCP VM instances list with the &#x22;jumpbox&#x22; VM's &#x22;External IP&#x22; column highlighted." width="1132" height="237" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. In the **Cloud SQL** console, open your database configuration page to find the **Private IP address** listed on the main overview tab.

   If a private IP hasn’t been allocated yet, **edit the instance** and enable **Private Service Access**.\
   The setup is straightforward — you can safely proceed with the **default suggested configuration**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-cloud-sql-internal-ip-address.webp" alt="GCP Cloud SQL instance overview &#x22;Connect to this instance&#x22; section with the private &#x22;Internal IP address&#x22; highlighted." width="900" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. From your **Jumpbox VM**, verify that the database is reachable by running the following commands:

   ```bash
   # Install telnet if not already installed
   sudo apt install telnet -y

   # Test the connection to your database
   telnet <db_private_ip> <db_port>
   ```

   **Database port reference:**

   * PostgreSQL → `5432`
   * MySQL → `3306`
   * SQL Server → `1433`

   **Expected output:**

   ```
   hello@jumpbox:~$ telnet <db_private_ip> <db_port>
   Trying <db_private_ip>...
   Connected to <db_private_ip>.
   Escape character is '^]'.
   ```

   If the command only shows:

   ```
   Trying <db_private_ip>...
   ```

   and does **not** connect, it means the database is **unreachable**.\
   Double-check the following:

   * You’re using the **correct private IP** and **port**.
   * The **Jumpbox subnet** has a valid **route** to the **database subnet**.
   * **Firewall or security group rules** allow inbound traffic from the Jumpbox.
8. To strengthen security, **limit SSH access to your Jumpbox** by allowing only trusted IP addresses.

   Go to the **Firewall Policies** section in the **GCP Console**, and **create a new firewall rule** that permits inbound SSH traffic **only from your approved IP list**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-create-firewall-rule.webp" alt="GCP &#x22;Firewall policies&#x22; page with the &#x22;Create Firewall Rule&#x22; button highlighted." width="808" height="521" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
9. Select the **network (VPC)** where your **Jumpbox instance** is running to apply the firewall rule to the correct environment.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-rule-network.webp" alt="GCP &#x22;Create a firewall rule&#x22; form named &#x22;jumpbox-whitelisting&#x22; with the &#x22;Network&#x22; field set to &#x22;default&#x22; highlighted." width="689" height="518" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
10. To grant a client access to your Jumpbox, **whitelist their public IP** in your firewall rule.\
    Configure the rule with the following parameters:

    * **Priority:** `0` (highest priority)
    * **Direction of traffic:** `Ingress`
    * **Action on match:** `Allow`
    * **Source IPv4 ranges:** `<client_public_ip_to_whitelist>/32`
    * **Destination IPv4 ranges:** `<jumpbox_private_ip>/32`

    This ensures that only the specified client IP can initiate SSH connections to your Jumpbox.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-allow-ingress-source-ip.webp" alt="GCP firewall rule set to Ingress and Allow, with source &#x22;<client-public-ip-to-whitelist>/32&#x22; and destination &#x22;<jumpbox-private-ip>/32&#x22;." width="616" height="647" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
11. Allow access **exclusively through SSH** by whitelisting **port 22**, the default SSH port.\
    All other ports and protocols should be **explicitly denied** to prevent unauthorized access.

    Once these settings are configured, click **“Create”** to finalize the firewall rule.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-rule-tcp-port-22.webp" alt="GCP &#x22;Create a firewall rule&#x22; protocols section with &#x22;TCP&#x22; checked on port &#x22;22&#x22; and the &#x22;Create&#x22; button." width="369" height="687" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
12. Now that access from the client’s public IP is allowed, you should **block all other incoming traffic** to the Jumpbox.

    Create a **new firewall rule** using the **same network (VPC)** as in the previous step, and configure it as follows:

    * **Priority:** `1` (lower priority than the allow rule)
    * **Action:** Deny all inbound traffic from any other IP address

    This ensures that **only the whitelisted client** can connect to the Jumpbox, while all other sources are **securely blocked**.

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-deny-rule-priority.webp" alt="GCP firewall rule settings with Logs off, Network &#x22;default&#x22;, Priority &#x22;1&#x22; and Direction of traffic &#x22;Ingress&#x22;." width="361" height="311" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
13. Set the **Source IPv4 range** to `0.0.0.0/0` to **deny access from all IP addresses**.\
    Ensure that **all protocols and ports** are **disabled** to completely block unwanted traffic.

    Once configured, click **“Create”** to finalize the firewall rule.<br />

    <figure>
      <img src="/https/docs.stacksync.com/images/connectors/gcp-firewall-deny-all-rule.webp" alt="GCP firewall rule set to &#x22;Deny&#x22; from source &#x22;0.0.0.0/0&#x22; to &#x22;<jumpbox-private-ip>/32&#x22; with &#x22;Deny all&#x22; protocols." width="544" height="561" loading="lazy" decoding="async" />

      <figcaption />
    </figure>
14. Next, confirm that the Jumpbox is **reachable only from the whitelisted client(s)**.\
    Try connecting via SSH from any other machine — the connection should **time out**, indicating that access is correctly restricted to authorized IPs only.

## 🎉 Congratulations!

You’ve successfully allowed an **external client** to **securely access your private Cloud SQL database** through the Jumpbox.

If you need any assistance or have questions, feel free to reach out at [hello@stacksync.com](mailto:hello@stacksync.com) — our team is always happy to help!

# Accessing Private Azure Resource via a Jumpbox

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/accessing-private-azure-resource-via-a-jumpbox

## Overview

This guide explains how to set up a secure Azure Jumpbox that allows Stacksync to connect to your private resources, such as your database.

## 1. Create Static Public IP

1. In the Azure Portal, search **Public IP addresses**.
2. Click **Create**.
3. Configure:
   * **Name:** `stacksync-jumpbox-ip`
   * **SKU:** **Standard** (the Basic SKU is deprecated and not recommended)
   * **Assignment:** **Static**
   * **Tier:** Regional
4. Click **Review + Create**, then **Create.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/azure-create-static-public-ip.webp" alt="Azure &#x22;Create public IP address&#x22; form for &#x22;stacksync-jumpbox-ip&#x22; with IPv4, Standard SKU and Static assignment highlighted." width="775" height="954" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## 2. Create a Network Security Group

Create a Network Security Group (NSG) to tightly control access to the jumpbox so that only Stacksync can connect to it, and the jumpbox can only reach the private resources you authorize.

1. Search “**Network security groups**”.
2. Click **Create**.
3. Name it: `stacksync-jumpbox-nsg`.
4. Create.

### Add SSH Allow Rule

1. Open the NSG.
2. Click **Inbound security rules** → **Add**.
3. Fill:
   * **Source:** IP Addresses
   * **Source IPs:** Stacksync’s IP ([Stacksync IP](/connectors/setup-options/ip-whitelisting))
   * **Destination port:** `22`
   * **Protocol:** TCP
   * **Action:** Allow
   * **Priority:** **100**
   * **Name:** `Allow-SSH-From-Stacksync`
4. Click **Add**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/azure-nsg-allow-ssh-inbound-rule.webp" alt="Azure &#x22;Add inbound security rule&#x22; panel with source IP for the Stacksync IP, destination port 22 and TCP highlighted." width="1600" height="792" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

The default Azure rule already blocks everything else.

## 3. Create the Jumpbox VM

1. Search **Virtual Machines** → **Create**.
2. Under **Basics**:
   * **Name:** `stacksync-jumpbox`
   * **Image:** `Ubuntu LTS`
   * **Size:** `B1ms` (recommended)
   * **Authentication:** SSH key only<br />

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/azure-jumpbox-vm-ssh-key-auth.webp" alt="Azure &#x22;Create a virtual machine&#x22; Basics with &#x22;SSH public key&#x22; authentication and inbound port &#x22;SSH (22)&#x22; highlighted." width="808" height="890" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
3. Under **Networking**:
   * **Virtual network:** choose your Virtual Network
   * **Subnet:** choose the subnet where the jumpbox will be created
   * **Public IP:** select the static Public IP you created earlier
   * **NIC network security group:** Select the **NSG** you created earlier<br />

     <figure>
       <img src="/https/docs.stacksync.com/images/connectors/azure-jumpbox-vm-networking-nsg.webp" alt="Azure VM Networking tab with public IP &#x22;stacksync-jumpbox-ip&#x22; and network security group &#x22;stacksync-jumpbox-nsg&#x22; highlighted." width="799" height="639" loading="lazy" decoding="async" />

       <figcaption />
     </figure>
4. Create the VM.

This VM will serve as the outbound access point to your systems.

## 4. Harden the Jumpbox

To harden the jumpbox, you must **log in to the VM** using SSH. This means you run the following SSH command **in your terminal**:

SSH into the VM using your allowed IP.

`ssh stacksync@<PUBLIC_IP>`

### 1. Add the Stacksync Public SSH Key

```
echo '<stacksync_public_ssh_key>' >> ~/.ssh/authorized_keys
```

This allows Stacksync to log in securely.

**Find the SSH Public Key here:**\
**app.stacksync.com → Add Connection → SSH Tunnel → Public Key**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/ssh-tunnel-stacksync-public-key.webp" alt="Stacksync connection form &#x22;SSH Tunnel (Optional)&#x22; section with the &#x22;Public Key&#x22; field highlighted to copy to your server." width="1548" height="636" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Enable auto‑security updates

```
sudo apt install unattended-upgrades
sudo dpkg-reconfigure --priority=low unattended-upgrades
```

### 3. Disable root login

```
sudo sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
sudo systemctl restart ssh
```

## 5. Test SSH Connectivity

From a Stacksync-approved IP:

```
ssh azureuser@<PUBLIC_IP>
```

If the connection fails, verify:

* The Public IP address you created is using the Standard SKU (not Basic)
* The Network Security Group (NSG) is attached to the subnet, not the network interface
* The network interface (NIC) for the virtual machine does not have its own NSG applied
* Your company firewall or VPN is not blocking outbound SSH connections

Example: Tunnel to a private Azure PostgreSQL instance.

```
ssh -i ~/.ssh/key \
  -N -L 5433:database.private.azure.com:5432 \
  azureuser@<PUBLIC_IP>
```

Then access locally at:

```
localhost:5433
```

From the jumpbox, verify it can reach your private resources:

If `nc` (netcat) is not installed, install it first:

```
sudo apt install netcat -y
```

Then test connectivity:

```
nc -zv <YOUR_DATABASE_IP> 5432
```

# SSH Tunneling

> (3min read)

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling

## Why Connecting to a Database Using an SSH Tunnel is Interesting

Secure Shell (SSH) tunnels provide a powerful yet straightforward method for accessing databases securely. Here’s why they stand out:

#### 1. **Enhanced Security**

SSH tunnels add an extra layer of protection by encrypting data in transit. This is particularly useful when connecting to databases over untrusted networks. By tunneling through SSH, you avoid exposing the database directly to the internet, reducing the risk of unauthorized access.

#### 2. **Access to Private Resources**

SSH tunnels are particularly useful for accessing private resources such as databases that are restricted to internal networks or protected by firewalls. By setting up a tunnel, you can securely route traffic through an intermediary server, enabling access without compromising the private nature of the resource. This is especially valuable for developers, administrators, or partners needing controlled access to sensitive systems.

#### 3. **No Need for a VPN**

While VPNs also secure connections, they are more complex to configure and maintain. SSH tunnels offer a lightweight alternative, especially for one-off or developer-specific access needs.

### Tutorials

<Cards>
  <Card title="Access a Private AWS RDS Instance via a Jumpbox" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/access-a-private-aws-rds-instance-via-a-jumpbox" />
</Cards>

<Cards>
  <Card title="Accessing a Private GCP Database via a Jumpbox" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/accessing-a-private-gcp-database-via-a-jumpbox" />
</Cards>

<Cards>
  <Card title="Windows Server 2022 Jumpbox" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/windows-server-2022-jumpbox" />
</Cards>

<Cards>
  <Card title="Windows Server 2025 Jumpbox" href="/https/docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/windows-server-2025-jumpbox" />
</Cards>

Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com), if there is anything we can help with to help you get started with your Jumpbox!

# Windows Server 2022 Jumpbox

> This guide is to connect to a Windows server through SSH (13 min setup required).

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/windows-server-2022-jumpbox

## I. Install OpenSHH

1. On the Windows server, open the Settings and go to Apps.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-settings-apps.webp" alt="Windows Settings home with the &#x22;Apps&#x22; category highlighted." width="1161" height="544" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Go to Optional Features.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-settings-optional-features.webp" alt="Windows Settings &#x22;Apps & features&#x22; page with the &#x22;Optional features&#x22; link highlighted, used to install OpenSSH Server." width="1100" height="456" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Install OpenSSH Server.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-add-openssh-server-feature.webp" alt="Windows &#x22;Add an optional feature&#x22; dialog with &#x22;OpenSSH Server&#x22; searched and listed, ready to install." width="1186" height="394" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## II. Switch On OpenSSH Server

1. Open Computer Management application.
2. Go into Services and Applications > Services.
3. Click on OpenSSH Server.
4. Set Startup type to Automatic and click on Start.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/openssh-server-startup-automatic-start.webp" alt="OpenSSH SSH Server Properties in Computer Management with Startup type set to &#x22;Automatic&#x22; and the &#x22;Start&#x22; button highlighted." width="977" height="698" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Keep this window open, we will have to come back to it soon.

## III. Set Up OpenSSH Server

1. Open a terminal with **Administrator role**
2. Open the OpenSSH Server config file by running:\
   `notepad "C:\ProgramData\ssh\sshd_config"`
3. Uncomment PubkeyAuthentication.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-pubkey-authentication-yes.webp" alt="sshd_config open in Notepad with the line &#x22;PubkeyAuthentication yes&#x22; uncommented and highlighted." width="426" height="193" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Uncomment PasswordAuthentication and set it to no.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-password-authentication-no.webp" alt="sshd_config with &#x22;PasswordAuthentication no&#x22; uncommented and highlighted to disable password logins over SSH." width="563" height="202" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Comment out the 2 last lines of the file (Match Group Administrator).

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-match-group-administrators.webp" alt="sshd_config in Notepad with the last &#x22;Match Group administrators&#x22; and AuthorizedKeysFile lines commented out and highlighted." width="796" height="731" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Save and quit the file. If you cannot save, you most certainly did not open the terminal as an Administrator, you need to open a new terminal with Administrator rights and redo the configuration changes done in this section.
7. In the Computer Management window, restart the OpenSSH Server.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/computer-management-restart-openssh-server.webp" alt="Computer Management Services list with OpenSSH SSH Server selected and the &#x22;Restart the service&#x22; link highlighted." width="976" height="697" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## IV. Upload the Public SSH key of the server you want to connect from

1. Go to Users, then open the folder associated with the Windows user you want to connect to.
2. Create a new folder `.ssh`

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-user-folder-ssh-directory.webp" alt="Windows File Explorer showing the user folder under C:\Users with a newly created &#x22;.ssh&#x22; folder." width="1111" height="427" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. In this newly created folder, create an empty text file `authorized_keys`
4. By default, text files are created with a `.txt` extension, we need to remove it.
   1. Click View in the header bar.
   2. Tick the checkbox `File name extensions`

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/file-explorer-show-file-name-extensions.webp" alt="File Explorer View ribbon with &#x22;File name extensions&#x22; and &#x22;Hidden items&#x22; checkboxes ticked and highlighted." width="1126" height="195" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   3. The `.txt` file extension should now be visible.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-txt-extension-visible.webp" alt="File Explorer .ssh folder showing &#x22;authorized_keys.txt&#x22; with the &#x22;.txt&#x22; extension now visible and highlighted." width="888" height="230" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   4. Rename the file to remove the file extension. You can safely ignore the warning.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-file-without-extension.webp" alt="File Explorer .ssh folder showing the renamed &#x22;authorized_keys&#x22; file with no extension, type &#x22;File&#x22;." width="980" height="347" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
5. Add the **PUBLIC** SSH key of the server that you want to grant access to this Windows server we are currently configuring. The public key is of the form: `ssh-<encryption_algorithm> <key>` .

## V. Test

Try connecting through SSH to the Windows instance we just set up:

```
ssh -i <path_to_ssh_private_key_of_client> <ssh_user>@<windows_server_public_ip>
```

where:

* `-i <path_to_ssh_private_key_of_client>`: Specifies the private key file for authentication of the client, not of the Windows machine. The private key file should be readable and writable only by its owner and should be of the form:

```
-----BEGIN PRIVATE KEY-----
          ...
          ...
-----END PRIVATE KEY-----
```

* `ssh_user` : the Windows User for which you uploaded the client public key. In the screenshots above it is 'alexis'.
* `<windows_server_public_ip>`: The public IP address of the Windows server.

You should now have been able to access this Windows server through SSH 🎉\
If you are blocked or have any question, feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) we're happy to help!

## Troubleshooting of common errors

<Callout type="info">
  Permissions 0644 for `<path_to_ssh_private_key_of_client>` are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.

  -> You need to let only the owner of the file read and write to that file.\
  Run this: `chmod 600 <path_to_ssh_private_key_of_client>`
</Callout>

<Callout type="info">
  'export' is not recognized as an internal or external command, operable program or batch file.\
  -> This is an error due to your client terminal, try using the default terminal of the client machine. This error typically happens when using Warp as terminal.
</Callout>

<Callout type="info">
  Permission denied (publickey,keyboard-interactive).

  -> You most certainly missed one of the above steps of that tutorial, or the public SSH key uploaded on the Windows server does not correspond to the private SSH key of the client.
</Callout>

<Callout type="info">
  timeout error

  -> The Windows server is not listening to the client IP and the port you are trying to connect to (SSH default port is 22). Make sure you whitelisted the client IP.
</Callout>

# Windows Server 2025 Jumpbox

> This guide is to connect to a Windows server through SSH (11min setup required).

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/ssh-tunneling/windows-server-2025-jumpbox

## I. Enable Open SHH

On the Windows server, open the Server Manager app, and enable Remote SSH Access.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/server-manager-remote-ssh-access-enabled.webp" alt="Windows Server 2025 Server Manager Local Server properties with &#x22;Remote SSH Access&#x22; set to &#x22;Enabled&#x22; and highlighted." width="698" height="392" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## II. Grant your Windows user access to OpenSSH Server

1. Open Computer Management application.
2. Go into Local Users and Groups > Groups.
3. Click on OpenSSH Users.
4. Add your Windows user to the list of members for the group OpenSSH Users.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/openssh-users-group-add-member.webp" alt="Computer Management Groups view with &#x22;OpenSSH Users&#x22; properties open and a Windows user added to Members." width="982" height="698" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## III. Set Up OpenSSH Server

1. Open a terminal with **Administrator role.**
2. Open the OpenSSH Server config file by running:\
   `notepad "C:\ProgramData\ssh\sshd_config"`
3. Uncomment PubkeyAuthentication.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-pubkey-authentication-yes.webp" alt="sshd_config open in Notepad with the line &#x22;PubkeyAuthentication yes&#x22; uncommented and highlighted." width="426" height="193" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Uncomment PasswordAuthentication and set it to no.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-password-authentication-no.webp" alt="sshd_config with &#x22;PasswordAuthentication no&#x22; uncommented and highlighted to disable password logins over SSH." width="563" height="202" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Comment the 2 last lines of the file (Match Group Administrator).

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/sshd-config-match-group-administrators.webp" alt="sshd_config in Notepad with the last &#x22;Match Group administrators&#x22; and AuthorizedKeysFile lines commented out and highlighted." width="796" height="731" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Save and quit the file. If you cannot save, you most certainly did not open the terminal as an Administrator, you need to open a new terminal with Administrator rights and redo the configuration changes done in this section.
7. In the Computer Management window, go to Services and Applications > Services.
8. Select the OpenSSH Server.
9. Restart the OpenSSH Server.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/computer-management-restart-openssh-server.webp" alt="Computer Management Services list with OpenSSH SSH Server selected and the &#x22;Restart the service&#x22; link highlighted." width="976" height="697" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## IV. Upload the Public SSH key of the client

1. Go in Users and go in the folder associated with the user you want to connect with.
2. Create a new folder `.ssh`

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/windows-user-folder-ssh-directory.webp" alt="Windows File Explorer showing the user folder under C:\Users with a newly created &#x22;.ssh&#x22; folder." width="1111" height="427" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. In this newly created folder, create an empty text file `authorized_keys`
4. By default, text files are created with a `.txt` extension, we need to remove it.
   1. Click View in the header bar.
   2. Tick the checkbox `File name extensions` .

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/file-explorer-show-file-name-extensions.webp" alt="File Explorer View ribbon with &#x22;File name extensions&#x22; and &#x22;Hidden items&#x22; checkboxes ticked and highlighted." width="1126" height="195" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   3. The `.txt` file extension should now be visible.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-txt-extension-visible.webp" alt="File Explorer .ssh folder showing &#x22;authorized_keys.txt&#x22; with the &#x22;.txt&#x22; extension now visible and highlighted." width="888" height="230" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   4. Rename the file to remove the file extension. You can safely ignore the warning.

      <figure>
        <img src="/https/docs.stacksync.com/images/connectors/authorized-keys-file-without-extension.webp" alt="File Explorer .ssh folder showing the renamed &#x22;authorized_keys&#x22; file with no extension, type &#x22;File&#x22;." width="980" height="347" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
5. Add the **PUBLIC** SSH key of the server that you want to grant access to this Windows server we are currently configuring. The public key is of the form: `ssh-<encryption_algorithm> <key>` .

## V. Open Firewall

If you are connected from outside the private network where the Windows server is locted, you need to open the firewall.

1. Open app 'Windows Defender Firewall with Advanced Security'.
2. In the Inbound Rules, click on 'OpenSSH Server'.
3. In the Advanced section, select all the checkboxes.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/firewall-openssh-rule-advanced-profiles.webp" alt="Windows Defender Firewall inbound rule &#x22;OpenSSH SSH Server (sshd)&#x22; Advanced tab with Domain, Private and Public profiles checked." width="1045" height="711" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

## VI. Test

Try connecting through SSH to the windows instance we just setup:

```
ssh -i <path_to_ssh_private_key_of_client> <ssh_user>@<windows_server_public_ip>
```

where:

* `-i <path_to_ssh_private_key_of_client>`: Specifies the private key file for authentication of the client, not of the windows machine. The private key file should be readable and writable only by its owner and should be of the form:

```
-----BEGIN PRIVATE KEY-----
          ...
          ...
-----END PRIVATE KEY-----
```

* `ssh_user` : the Windows User for which you uploaded the client public key. In the screenshots above it is 'alexis'.
* `<windows_server_public_ip>`: The public IP address of the Windows server.

You should now have been able to access this Windows server through SSH 🎉\
If you are blocked or have any question, feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) we're happy to help!

## Troubleshooting of common errors

<Callout type="info">
  Permissions 0644 for `<path_to_ssh_private_key_of_client>` are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.

  -> You need to let only the owner of the file read and write to that file.\
  Run this: `chmod 600 <path_to_ssh_private_key_of_client>`
</Callout>

<Callout type="info">
  'export' is not recognized as an internal or external command, operable program or batch file.\
  -> This is an error due to your client terminal, try using the default terminal of the client machine. This error typically happen when using Warp as terminal.
</Callout>

<Callout type="info">
  Permission denied (publickey,keyboard-interactive).

  -> You most certainly missed one of the above steps of that tutorial, or the public ssh key uploaded on the Windows server does not correspond to the private ssh key of the client.
</Callout>

<Callout type="info">
  timeout error.

  -> The Windows server is not listening to the client IP and the port you are trying to connect to (SSH default port is 22). Make sure you whitelisted the client IP.
</Callout>

# Zero-Trust Network Access

Source: https://docs.stacksync.com/two-way-sync/connectors/setup-options/zero-trust-network-access

Stacksync fully supports secure integrations across all major Zero-Trust Network Access (ZTNA) providers, including:

* **Twingate**
* **Cloudflare Zero Trust / Cloudflare One**
* **Zscaler (Zero Trust Exchange)**
* **Palo Alto Networks (Prisma Access)**
* **Okta**
* **Cisco Zero Trust / Duo**
* **Fortinet ZTNA**
* **Check Point**
* **Netskope**
* **Teleport**

If your organization uses any of these platforms—or another ZTNA solution—we can configure access and connectivity to your private systems.\
For assistance or to enable Zero-Trust connectivity for your Stacksync deployment, contact [hello@stacksync.com](mailto:hello@stacksync.com).

# Updating Scopes

> In 4 minutes, authorize your Shopify app and start syncing data with Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/shopify/authorize-shopify-1

## Requirements

* You need to be the Shopify administrator

## 1. **Login to Shopify Dev Dashboard:**

1. **Go to Shopify Dev Dashboard:** [**https://dev.shopify.com/dashboard**](https://dev.shopify.com/dashboard)
2. **Select Your Installed App**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-select-app.webp" alt="Shopify Dev Dashboard Apps list with the installed &#x22;Stacksync&#x22; app highlighted." width="1600" height="824" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. #### Click on New Version

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-new-version.webp" alt="Shopify Dev Dashboard Stacksync app home with the Versions card and &#x22;New version&#x22; button highlighted." width="1600" height="809" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. **Add additional required API scopes.**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-version-add-scopes.webp" alt="Shopify Dev Dashboard &#x22;Create a version&#x22; form with the Access Scopes field highlighted, listing comma-separated API scopes." width="1600" height="774" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. **Click Release**<br />
6. **Go to Home -> Click Install App**\
   Follow the prompt to update scopes, then reinstall the app so the new scopes are applied to the existing App.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-install-app.webp" alt="Shopify Dev Dashboard Stacksync app Home with the Installs card and &#x22;Install app&#x22; button highlighted to reinstall the app." width="1600" height="788" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

You are all set! You can now use sync your Shopify data to other apps through Stacksync's syncs! 🎉

# Authorize Shopify

> In 4 minutes, authorize your Shopify app and start syncing data with Stacksync.

Source: https://docs.stacksync.com/two-way-sync/connectors/shopify/authorize-shopify

## Requirements

* You need to be the Shopify administrator

## 1. Click on create a new sync

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/stacksync-syncs-create-new-sync.webp" alt="Stacksync Syncs page welcome screen with the &#x22;Create New Sync&#x22; button highlighted in the top right." width="1600" height="883" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click on the Shopify logo

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-shopify.webp" alt="Stacksync Create New Sync page, Connect Apps step, with the Shopify app tile highlighted." width="1600" height="886" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Create a new Shopify connection

In the following steps, you will log in to your Shopify account to retrieve the following:

* Shop name
* Client ID and Secret<br />

  <figure>
    <img src="/https/docs.stacksync.com/images/connectors/shopify-connection-credentials-form.webp" alt="Stacksync Shopify connection dialog with Shop Name, Client ID and Client Secret fields highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="924" loading="lazy" decoding="async" />

    <figcaption />
  </figure>

## 4. Find your shop name

You can find your shop name in the settings of your shop on the top left of the page. It is part of your shop domain `<shop_name>.myshopify.com`.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-settings-shop-name.webp" alt="Shopify admin General settings with the shop name portion of the myshopify.com domain highlighted." width="1600" height="887" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. **Generate Client ID and Client Secret:**

1. **Go to Shopify Dev Dashboard:** [**https://dev.shopify.com/dashboard**](https://dev.shopify.com/dashboard)
2. **Select "Create App"**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-dev-dashboard-create-app.webp" alt="Shopify Dev Dashboard Apps page with the &#x22;Create app&#x22; button highlighted." width="1520" height="876" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. **Enter \`Stacksync\` as the app name**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-name-stacksync.webp" alt="Shopify Dev Dashboard app form with the App name field set to &#x22;stacksync&#x22; highlighted." width="784" height="950" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. **Enable required API scopes for Stacksync.**

   *<mark>read_customers,write_customers,read_metaobject_definitions,write_metaobject_definitions,read_metaobjects,write_metaobjects,read_orders,write_orders,read_products,write_products,read_publications,write_publications,read_shipping,write_shipping</mark>*<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/shopify-app-access-scopes.webp" alt="Shopify app Access settings with the required Scopes field highlighted, listing read/write scopes for customers, orders, products and more." width="1548" height="1144" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. **Add Redirect URL:** [**https://app.stacksync.com/oauth/callback?connector=shopify**](https://app.stacksync.com/oauth/callback?connector=shopify)<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-redirect-url.webp" alt="Shopify app Redirect URLs field highlighted with https://app.stacksync.com/oauth/callback?connector=shopify entered." width="817" height="933" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. **Click Release**
7. **Go to Apps -> Setting, Copy the Client ID and Secret**<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/shopify-app-settings-client-credentials.webp" alt="Shopify Dev Dashboard app Settings page with the Credentials section (Client ID and Secret) highlighted." width="1600" height="911" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. **You can now fill in the Stacksync form with your Shop name, Client ID and Secret.**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/shopify-connection-credentials-form.webp" alt="Stacksync Shopify connection dialog with Shop Name, Client ID and Client Secret fields highlighted and an &#x22;Authorize App&#x22; button." width="1600" height="924" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You are all set! You can now use sync your Shopify data to other apps through Stacksync's syncs! 🎉

# Shopify

> Two-way sync between Shopify and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/shopify

## Supported Objects

| Object              | Status      |
| ------------------- | ----------- |
| Products            | ✅ Supported |
| ProductMedias       | ✅ Supported |
| ProductVariants     | ✅ Supported |
| Orders              | ✅ Supported |
| Customers           | ✅ Supported |
| Abandoned Checkouts | ✅ Supported |

<Callout type="info">
  Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!
</Callout>

# Authorize Snowflake

> Authorize your Snowflake Data Warehouse and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/snowflake/authorize-snowflake

<YouTube id="zXmxxIql_fI" title="Connect Snowflake on Stacksync in less than two minutes" />

<Callout type="info">
  To follow this tutorial, the (human user) Snowflake account needs the `SECURITY_ADMIN` and `ACCOUNTADMIN`. Read more [here](/connectors/snowflake#things-to-keep-in-mind).
</Callout>

## 1. Select Snowflake in the Create Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-snowflake.webp" alt="Stacksync Create New Base, Connect Apps step, with an arrow pointing to the Snowflake app tile." width="1600" height="858" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Copy the user public key for the next steps

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-connection-copy-public-key.webp" alt="Stacksync Snowflake connection form with User, Database, Schema, Warehouse fields and the public key copy icon highlighted." width="562" height="785" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Run the setup script in Snowflake

### Create a new Snowflake user (see the next section to reuse an existing Snowflake user)

Copy the following script to create a new user with the necessary permissions.\
In the `SECTION TO EDIT`, enter the following values:

* `warehouse_name`
* `database_name`
* `schema_name`
* `rsa_public_key`

```sql
-----------------------SECTION TO EDIT------------------------------------
-- create the variables for user and role details
set role_name = 'STACKSYNC_ROLE'; --enter the role name
set user_name = 'STACKSYNC_USER'; -- enter the username
set warehouse_name = 'COMPUTE_WH'; -- enter the warehouse you want to use
set database_name = 'STACKSYNC_TEST'; --enter database name
set schema_name = 'PUBLIC'; -- enter schema name
set user_type = 'service';
-----------------------END OF SECTION TO EDIT------------------------------------

-- change role to security admin to create user and role
use role securityadmin;

-- create the Stacksync Role
create role if not exists identifier($role_name);
grant role identifier($role_name) to role SYSADMIN;

 -- create a user for Stacksync
create user if not exists identifier($user_name)
 -- copy paste public key from stacksync.
rsa_public_key = '-----BEGIN PUBLIC KEY-----
....TODO REPLACE WITH STACKSYNC PROVIDED RSA PUBLIC KEY....
-----END PUBLIC KEY-----'

-----------------------END OF SECTION TO EDIT-----------------------------

type = $user_type
default_role = $role_name
default_warehouse = $warehouse_name;

-- grant Stacksync role to the new user
grant role identifier($role_name) to user identifier($user_name);

-- change role to accountadmin to grant permissions to the Stacksync Role
use role accountadmin;

-- grant Stacksync role access to warehouse
grant usage on warehouse identifier($warehouse_name) to role identifier($role_name);

-- grant Stacksync role access to database and create schemas
grant usage on database identifier($database_name) to role identifier($role_name);
grant create schema on database identifier($database_name) to role identifier($role_name);

-- select the database
use database identifier($database_name);

-- grant table and stream privileges to all the schemas you want to sync
grant usage on schema identifier($schema_name) to role identifier($role_name);
grant create table on schema identifier($schema_name) to role identifier($role_name);
grant create stream on schema identifier($schema_name) to role identifier($role_name);
grant select on all tables in schema identifier($schema_name) to role identifier($role_name);
grant select on future tables in schema identifier($schema_name) to role identifier($role_name);

-- repeat the steps above for all the schemas you want to sync.
```

### Use an existing Snowflake user

You can simply set the `rsa_public_key` for an existing user (make sure the user type is set to `service`).

```sql
ALTER USER <username> SET RSA_PUBLIC_KEY='<public_key_copied_from_stacksync>';
```

## 4. Find the credentials for your Snowflake instance.

Note the database name, schema name, and account identifier.

<Callout type="info">
  Account Identifier uniquely identifies a Snowflake account within your organization. It is a combination of your organization name and account name. It can be found in the Snowflake web interface in the Account Details section.

  [Learn More](https://docs.snowflake.com/en/user-guide/admin-account-identifier#finding-the-organization-and-account-name-for-an-account)
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-account-menu-details.webp" alt="Snowflake user menu with the arrow next to the Account entry highlighted to open account details." width="669" height="849" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-account-identifier-details.webp" alt="Snowflake Account Details dialog with the &#x22;Account Identifier&#x22; row and its value highlighted." width="862" height="609" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Once copied, paste this information in the Stacksync connection screen.

## 5. Enter the credentials for Snowflake and Click Authorize App.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/snowflake-credentials-authorize-app.webp" alt="Stacksync Snowflake form filled with User, Database, Schema, Warehouse and Account Identifier, with &#x22;Authorize App&#x22; highlighted." width="584" height="799" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! 🎉

# Snowflake

> Two-way sync between Snowflake and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/snowflake

## Introduction

[Snowflake](https://www.snowflake.com/en/) is a cloud-based data warehousing and analytics platform that enables users to analyze and process large data sets using SQL-like queries. It is highly scalable and allows users to store and query massive amounts of data in real time.

Check out our [Snowflake guides](/two-way-sync/connectors/snowflake/authorize-snowflake) to get started and sync data to your other systems and databases!

## Supported Objects

Stacksync lets you sync the following Snowflake table types:

<table>
  <thead><tr><th width="404">Object</th><th>Status</th></tr></thead>

  <tbody><tr><td>Standard tables (including Permanent, Transient and Temporary tables)</td><td><span>✅ Supported</span></td></tr><tr><td>Views (including materialized and non-materialized views)</td><td><span>🕘 Coming soon</span></td></tr><tr><td>External tables</td><td><span>❌ Not supported</span></td></tr></tbody>
</table>

**All field types are supported** except for [geospatial datatypes](https://docs.snowflake.com/en/sql-reference/data-types-geospatial) (i.e. geography and geometry).

## Things to keep in mind

* A Snowflake account with the `SECURITY_ADMIN` and `ACCOUNT_ADMIN` roles is required. The `SECURITY_ADMIN` role will be needed to create a Stacksync Role and User. The `ACCOUNT_ADMIN` will be needed to grant permissions to the Stacksync Role to grant access to the database and schemas, grant privilege to create schemas and tables in the specified database and allow read and write privilege to the tables in the specified database and schemas.
* To sync an existing table from Snowflake, the table must have a primary key which is not nullable and has a default value of `UUID_STRING()`.<br />

# Authorize SQL Server

> Authorize your Microsoft SQL Server database and start syncing data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/sql-server/authorize-sql-server

## Adding Credentials to Stacksync <a href="#adding-credentials-to-stacksync" id="adding-credentials-to-stacksync" />

### 1. Select SQL Server in the Create New Sync page in Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-sql-server.webp" alt="Stacksync Create New Sync page, Connect Apps step, with an arrow pointing to the SQL Server tile." width="1600" height="879" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Add your SQL Server credentials as Connection String or as Parameters.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/sql-server-connection-credentials-form.webp" alt="Stacksync SQL Server dialog with a Connection String field or Server, Port, Database, Username, Password and Schema parameters." width="1600" height="919" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions or need further assistance, reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com). We’re here to help ensure a seamless and secure database connection setup.

# SQL Server (MSSQL)

> Two-way sync between Microsoft SQL Server (MSSQL) and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/sql-server

## Introduction

SQL Server is Microsoft's enterprise relational database management system known for high performance, advanced security features, and scalability. Stacksync enables seamless data\
synchronization between Microsoft SQL Server and other CRM and database systems.

## Things to keep in mind

### During setup

* [x] **All SQL Server tables must have a (single) primary key**\
  We use the primary key to keep your data in sync.\
  The primary key must be a single column; composite primary keys are not supported.
* [x] **Primary keys must be auto-generated**\
  Ensure your primary keys are auto-generated by your database (e.g. use `IDENTITY` for primary keys).
* [x] **Check user permissions**\
  Verify that the SQL Server user used by Stacksync to connect to your database has sufficient privileges (e.g., `SELECT`, `INSERT`, `UPDATE`, and `DELETE`) on the tables you want to map. Additionally, the user must have `EXECUTE` permission on the StackSync CDC wrapper procedures (created during one-time setup).
* [x] **Native CDC Setup**\
  SQL Server connector uses Native Change Data Capture (CDC) for efficient change tracking. A database administrator must run a one-time setup script to enable CDC and create wrapper\
  procedures.\
  To enable CDC functionality, the DBA should execute the CDC setup script. See the setup instructions below.
* [x] **Why CDC Setup is Required:**\
  Stacksync uses SQL Server's built-in Change Data Capture to track data changes. Since enabling CDC requires elevated privileges, a DBA must run a setup script once. After this setup,\
  your regular Stacksync user can enable CDC on tables without needing sysadmin privileges.
* [x] **CDC Setup Script:**\
  The setup script must be executed by a user with **sysadmin** privileges.<br />

  ```sql
  -- ================================================================
  -- StackSync CDC Setup Script
  --
  -- Run this ONCE as a database administrator with sysadmin privileges.
  --
  -- StackSync automatically manages CDC using capture instances named:
  --   stacksync_{app_id}_{table_name}
  --
  -- This allows multiple StackSync apps to use CDC on the same tables.
  -- SQL Server supports maximum 2 capture instances per table.
  -- ================================================================

  USE [YOUR_DATABASE];
  GO

  -- ================================================================
  -- Step 1: Enable CDC on database
  -- ================================================================
  EXEC sys.sp_cdc_enable_db;
  GO

  -- ================================================================
  -- Step 2: Create helper procedures for StackSync
  -- ================================================================

  -- Drop existing procedures if they exist
  IF OBJECT_ID('SCHEMA.sp_stacksync_enable_cdc_db', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_enable_cdc_db;
  GO

  IF OBJECT_ID('SCHEMA.sp_stacksync_enable_cdc_table', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_enable_cdc_table;
  GO

  IF OBJECT_ID('SCHEMA.sp_stacksync_disable_cdc_table', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_disable_cdc_table;
  GO

  IF OBJECT_ID('SCHEMA.sp_stacksync_disable_cdc_db', 'P') IS NOT NULL
      DROP PROCEDURE SCHEMA.sp_stacksync_disable_cdc_db;
  GO

  -- Create procedure to enable CDC on database
  CREATE PROCEDURE SCHEMA.sp_stacksync_enable_cdc_db
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      DECLARE @is_cdc_enabled BIT;
      DECLARE @database_name NVARCHAR(128) = DB_NAME();

      SELECT @is_cdc_enabled = is_cdc_enabled
      FROM sys.databases
      WHERE name = @database_name;

      IF @is_cdc_enabled = 1
          BEGIN
              RETURN 0;
          END

      EXEC sys.sp_cdc_enable_db;
      RETURN 0;
  END;
  GO

  -- Create procedure to enable CDC on table
  CREATE PROCEDURE SCHEMA.sp_stacksync_enable_cdc_table
      @source_schema NVARCHAR(128),
      @source_name NVARCHAR(128),
      @capture_instance NVARCHAR(128) = NULL,
      @supports_net_changes BIT = 1,
      @role_name NVARCHAR(128) = NULL
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      DECLARE @instance_exists INT;

      IF @capture_instance IS NULL
          SET @capture_instance = @source_schema + '_' + @source_name;

      IF LEN(@capture_instance) > 100
          SET @capture_instance = LEFT(@capture_instance, 100);

      -- Check if THIS specific capture instance already exists
      -- (Not just if table is tracked - we support up to 2 capture instances per table)
      SELECT @instance_exists = COUNT(*)
      FROM cdc.change_tables
      WHERE capture_instance = @capture_instance;

      IF @instance_exists > 0
          BEGIN
              -- This specific capture instance already exists, nothing to do
              RETURN 0;
          END

      -- Enable CDC with the specified capture instance name
      -- SQL Server supports up to 2 capture instances per table
      EXEC sys.sp_cdc_enable_table
           @source_schema = @source_schema,
           @source_name = @source_name,
           @role_name = @role_name,
           @supports_net_changes = @supports_net_changes,
           @capture_instance = @capture_instance;

      RETURN 0;
  END;
  GO

  -- Create procedure to disable CDC on table
  CREATE PROCEDURE SCHEMA.sp_stacksync_disable_cdc_table
      @source_schema NVARCHAR(128),
      @source_name NVARCHAR(128),
      @capture_instance NVARCHAR(128) = NULL
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      IF @capture_instance IS NULL
          SET @capture_instance = @source_schema + '_' + @source_name;

      IF LEN(@capture_instance) > 100
          SET @capture_instance = LEFT(@capture_instance, 100);

      EXEC sys.sp_cdc_disable_table
           @source_schema = @source_schema,
           @source_name = @source_name,
           @capture_instance = @capture_instance;

      RETURN 0;
  END;
  GO

  -- Create procedure to disable CDC on database
  CREATE PROCEDURE SCHEMA.sp_stacksync_disable_cdc_db
      WITH EXECUTE AS OWNER
  AS
  BEGIN
      SET NOCOUNT ON;

      EXEC sys.sp_cdc_disable_db;
      RETURN 0;
  END;
  GO

  -- ================================================================
  -- Step 3: Grant permissions to StackSync user
  -- ================================================================

  GRANT EXECUTE ON SCHEMA.sp_stacksync_enable_cdc_db TO [USERNAME];
  GRANT EXECUTE ON SCHEMA.sp_stacksync_enable_cdc_table TO [USERNAME];
  GRANT EXECUTE ON SCHEMA.sp_stacksync_disable_cdc_table TO [USERNAME];
  GRANT EXECUTE ON SCHEMA.sp_stacksync_disable_cdc_db TO [USERNAME];
  GO

  -- Read CDC metadata and change data
  GRANT SELECT ON SCHEMA::cdc TO [USERNAME];
  PRINT 'Granted SELECT on cdc schema';
  GO

  -- Query DMVs for partitioning and row counts
  GRANT VIEW DATABASE STATE TO [USERNAME];
  PRINT 'Granted VIEW DATABASE STATE';
  GO

  -- Read user tables and system catalog
  ALTER ROLE db_datareader ADD MEMBER [USERNAME];
  PRINT 'Added to db_datareader role';
  GO

  -- Write to user tables (for bidirectional sync)
  ALTER ROLE db_datawriter ADD MEMBER [USERNAME];
  PRINT 'Added to db_datawriter role';
  GO

  -- Create temporary tables during write operations
  GRANT CREATE TABLE TO [USERNAME];
  PRINT 'Granted CREATE TABLE';
  GO

  -- Drop temporary tables after write operations
  GRANT ALTER ON SCHEMA::SCHEMA TO [USERNAME];
  PRINT 'Granted ALTER on schema';
  GO

  -- Required: To Check SQL Server Agent status
  GRANT VIEW SERVER STATE TO [USERNAME];
  PRINT 'Granted VIEW SERVER STATE';
  GO

  ```
* [x] **SQL Server Agent**\
  SQL Server Agent must be running for CDC to capture changes:
  * **On-premise:** Start SQL Server Agent via SQL Server Configuration Manager
  * **AWS RDS:** Enable via RDS Parameter Group setting `agent XPs = 1`
  * **Azure SQL Database:** CDC is managed automatically

#### Important Considerations

* **Renaming schemas, tables, or columns will break Stacksync configuration.** If you need to rename objects, refer to the Update Sync Configuration guide for remediation steps.
* **Schema Names:** SQL Server supports multiple schemas per database. Ensure you specify the correct schema when setting up your connection (default is `dbo`).

### Troubleshooting

If tables don't appear in Stacksync during setup, one of the above requirements is likely unmet. Common issues include:

* Missing primary keys or composite primary keys
* Insufficient user permissions
* CDC wrapper procedures not created (setup script not run)
* SQL Server Agent not running

For diagnostic queries and troubleshooting steps, refer to the SQL Server Snippets page.

Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com)

# Authorize Twilio

> 5min read

Source: https://docs.stacksync.com/two-way-sync/connectors/twilio/authorize-twilio

1. Log in to your [Twilio account](https://console.twilio.com/).<br />
2. Navigate to **Account Info** > Copy **Account SID** and **Auth Token**.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/twilio-account-sid-auth-token.webp" alt="Twilio console Account Info panel with the Account SID and Auth Token fields highlighted for copying." width="1600" height="919" loading="lazy" decoding="async" />

     <figcaption><p>Copy Account SID and Auth Token</p></figcaption>
   </figure>
3. You now have all the necessary credentials to grant Stacksync access to your Twilio Objects. Go back to the Stacksync dashboard at [https://app.stacksync.com](https://app.stacksync.com).<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-twilio.webp" alt="Stacksync Create New Sync page, Connect Apps step, with the Twilio app tile highlighted." width="1600" height="918" loading="lazy" decoding="async" />

     <figcaption><p>Click on Twilio Connector<br /></p></figcaption>
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/twilio-connection-credentials-form.webp" alt="Stacksync Twilio Credentials dialog with Account SID and Auth Token fields and an &#x22;Authorize App&#x22; button." width="1600" height="922" loading="lazy" decoding="async" />

     <figcaption><p>Insert the credentials obtained from the preview steps in the Twilio Connector<br /></p></figcaption>
   </figure>

You successfully granted Stacksync access to your Twilio resources! 🎉\
Feel free to reach out to us at [hello@stacksync.com](mailto:hello@stacksync.com) if there is anything we can help with!

# Twilio

> Read-only sync between Twilio and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/twilio

Stacksync lets you sync the following Twilio resources:

## Messaging Objects

<table>
  <thead><tr><th width="299">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Messages</td><td>✅ Supported</td></tr><tr><td>Messaging Services</td><td>✅ Supported</td></tr></tbody>
</table>

## Voice Objects

<table>
  <thead><tr><th width="302">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Calls</td><td>✅ Supported</td></tr><tr><td>Incoming Phone Numbers</td><td>✅ Supported</td></tr><tr><td>Outgoing Caller IDs</td><td>✅ Supported</td></tr></tbody>
</table>

## Account Objects

<table>
  <thead><tr><th width="306">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Accounts</td><td>✅ Supported</td></tr><tr><td>Roles</td><td>✅ Supported</td></tr><tr><td>Addresses</td><td>✅ Supported</td></tr></tbody>
</table>

## Studio Objects

<table>
  <thead><tr><th width="312">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Flows</td><td>✅ Supported</td></tr></tbody>
</table>

## Analytics Objects

<table>
  <thead><tr><th width="314.66796875">Object</th><th>Read</th></tr></thead>

  <tbody><tr><td>Usage Records</td><td>✅ Supported</td></tr></tbody>
</table>

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Authorize Zendesk

> Authenticate your Zendesk app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/zendesk/authorize-zendesk

## Authorize Zendesk <a href="#authorize-motherduck" id="authorize-motherduck" />

1. Copy your Zendesk subdomain name from the Zendesk dashboard URL: `http://{sub_domain_name}.zendesk.com`.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/zendesk-subdomain-in-url.webp" alt="Browser address bar on a Zendesk agent page with the subdomain &#x22;stacksync&#x22; highlighted in the zendesk.com URL." width="838" height="344" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Log into Stacksync and click on **Connections** > **Create new connection**.
3. Search for Zendesk and select it.

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/create-connection-select-zendesk.webp" alt="Stacksync Create a Connection page with the Zendesk app tile highlighted in the Select App grid." width="1600" height="546" loading="lazy" decoding="async" />

  <figcaption />
</figure>

4. Paste the sub domain name here, and click **Authorize App**

<figure>
  <img src="/https/docs.stacksync.com/images/connectors/zendesk-subdomain-authorize-app.webp" alt="Stacksync Zendesk dialog with the &#x22;Zendesk Sub Domain Name&#x22; field and &#x22;Authorize App&#x22; button highlighted." width="1488" height="554" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You can now use your Zendesk connection in a sync! 🎉

# Zendesk

> Two-way sync between Zendesk and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/zendesk

<YouTube id="V2h9RmXgqPY" title="Sync Zendesk and Snowflake two-way in real time" />

## Supported Objects

| Object           | Status        |
| ---------------- | ------------- |
| Tickets          | ✅ Supported   |
| Tickets Comments | ✅ Supported   |
| Users            | ✅ Supported   |
| Organizations    | 🕐 On Request |
| Attachments      | 🕐 On Request |
| Ticket Forms     | 🕐 On Request |

<Callout type="info">
  Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!
</Callout>

# Authorize Zoho

> Authorize your Zoho app and sync data with Stacksync

Source: https://docs.stacksync.com/two-way-sync/connectors/zoho/authorize-zoho

Connecting to Zoho is done without any coding required in a few steps.

1. In Stacksync, click on "Create new sync".

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/stacksync-syncs-page-create-new-sync.webp" alt="Stacksync Syncs page listing an existing sync, with the &#x22;Create New Sync&#x22; button highlighted in the top right." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Select "Zoho CRM".

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/create-sync-select-zoho-crm.webp" alt="Stacksync Create New Sync page, Connect Apps step, with the Zoho CRM app tile highlighted." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. A new tab will open. Log in to Zoho and authorize Stacksync.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/zoho-authorize-stacksync-access.webp" alt="Zoho consent screen listing CRM permissions requested by Stacksync, with the &#x22;Accept&#x22; button highlighted." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Connect your database and click continue.
5. Map which Zoho objects to sync. Choose between an existing table in your database, or generating a new one.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/zoho-crm-postgres-link-tables.webp" alt="Stacksync Link Tables step mapping Zoho CRM objects like Account, Lead and Deal to Postgres tables with sync direction arrows." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Finally, link the fields to sync between Zoho and your target database.

   <figure>
     <img src="/https/docs.stacksync.com/images/connectors/zoho-crm-postgres-map-fields.webp" alt="Stacksync Map Fields step linking Zoho CRM Account fields such as Account Name and Phone to Postgres zoho_account columns." width="1600" height="997" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. Click "Create sync". Click on the toggle to activate your sync. Data is now flowing!

# Zoho

> Two-way sync between Zoho and your other systems.

Source: https://docs.stacksync.com/two-way-sync/connectors/zoho

Stacksync lets you sync the following Zoho CRM objects:

| Object         | Status      |
| -------------- | ----------- |
| Lead           | ✅ Supported |
| Contact        | ✅ Supported |
| Account        | ✅ Supported |
| Deal           | ✅ Supported |
| Task           | ✅ Supported |
| Meeting        | ✅ Supported |
| Call           | ✅ Supported |
| Product        | ✅ Supported |
| Quote          | ✅ Supported |
| Sales Order    | ✅ Supported |
| Purchase Order | ✅ Supported |
| Invoice        | ✅ Supported |
| Campaign       | ✅ Supported |
| Vendor         | ✅ Supported |
| Price Book     | ✅ Supported |
| Case           | ✅ Supported |
| Solution       | ✅ Supported |
| Note           | ✅ Supported |
| Attachment     | ✅ Supported |

Need to sync other objects? Email us at [integrations@stacksync.com](mailto:integrations@stacksync.com) and we can add support for them in no time!

# Associations support

Source: https://docs.stacksync.com/two-way-sync/features/associations-support

Associations link child records to their parent records across a sync. When a child record is created in your database, its parent may not exist in the other app yet, so the child cannot carry its parent's record ID. Associations tell Stacksync how to find the parent, wait for the parent's record ID to exist in the other app, and fill it into the child automatically.

Associations are configured on the **Associations** tab of the sync detail page.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-associations-tab-overview.webp" alt="Stacksync sync Associations tab explaining how child records link to parents, with opportunity associations that backfill Salesforce Ids." width="1600" height="1040" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## I. How It Works

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/associations-how-it-works-flow.webp" alt="&#x22;How this works&#x22; flow: child's reference key references parent's primary key, then parent's Salesforce ID backfills into child's backfilled column." width="1600" height="98" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Each association connects one child table to one parent table on the database side of the sync:

* **Reference key** (child): a column on the child table that holds the parent's key — for example an account number. This column is **not synced**; it only exists so Stacksync can identify the parent.
* **Primary key** (parent): the parent table's primary key that the reference key value is matched against. Assigned automatically.
* **Backfill source** (parent): the parent's record ID in the other app (for example the Salesforce `Id`). Assigned automatically.
* **Backfilled column** (child): a **synced** column on the child table that receives the parent's record ID.

The flow: the child's reference key **references** the parent's primary key → once the parent's record ID exists in the other app, it **backfills into** the child's backfilled column.

<Callout type="info">
  The order records are created in does not matter. If the child arrives before its parent exists in the other app, Stacksync holds the link and completes it as soon as the parent's record ID is available.
</Callout>

## II. Viewing Configured Associations

The Associations tab lists every configured association as a card, grouped by child table. Each card reads left to right:

* The child's **reference key** and the parent **primary key** it references.
* The parent table.
* The child's **backfilled column** and the record-ID column it receives (for example Salesforce `Id`).

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/associations-tab-configured-list.webp" alt="Associations tab listing 32 configured associations across child tables, each showing reference key, backfilled Id column and parent table." width="1600" height="812" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## III. Adding an Association

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/add-association-child-parent-form.webp" alt="Add association form: child table opportunity, reference key account_id, backfilled column id, linked to parent account with Salesforce Id source." width="1600" height="414" loading="lazy" decoding="async" />

  <figcaption />
</figure>

1. Click **Add your first Association** or **Edit**. Stacksync fetches the latest schema from both apps
2. In **Add association**, fill the **Child** panel: the child table, its reference key, and the synced column that should receive the parent's record ID.
3. In the **Parent** panel, choose the parent table. The primary key and backfill source are derived automatically and shown locked.
4. Click **Add**, then **Save associations**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/associations-save-associations-button.webp" alt="Associations edit view with two opportunity-to-account associations added and the &#x22;Save associations&#x22; button highlighted." width="1600" height="721" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Notes:

* Dropdowns are filtered by the live schema: the reference key list only offers unsynced columns, the backfilled column list only offers synced columns, and parent tables that cannot work (for example, no usable primary key) are disabled with a reason. Pairings that can't work never appear.
* Stacksync also detects unconfigured relationship-shaped columns (for example `parent_account_key`) and offers one-click prefills below the composer.
* Saving briefly pauses the sync while the configuration is applied, then resumes it automatically.

## IV. Schema Changes and Stale Associations

If a reference-key column is renamed or deleted in the database, the association can no longer match records. The Associations tab flags such associations as **stale** when you enter edit mode, and shows the likely replacement column when one is found. Delete the stale association and re-add it with the live column.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stale-association-schema-warning.webp" alt="Opportunity association flagged &#x22;1 stale&#x22;: parent_account_key is not in the live schema, suggesting parent_account_key__c instead." width="1600" height="370" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  Deleting an association only stops future backfills. It does not delete any column or data in either app.
</Callout>

If you have any questions, feel free to reach out at *[hello@stacksync.com](mailto:hello@stacksync.com)*, we are happy to help!

# Automatic Sync Configuration Update

Source: https://docs.stacksync.com/two-way-sync/features/automatic-sync-configuration-update

## Overview

Schema Updates Propagation keeps your sync running as source schemas evolve. You control whether new tables/columns are auto-added and whether deleted tables/columns are automatically removed from the sync mapping. This prevents sync pauses and reduces manual maintenance.

## I. Schema Change Detection Frequency (Per App)

* **Enable schema updates**: turns detection on/off for that app.
* **Frequency**: how often Stacksync checks for schema changes (1 hour to 24 hours).
* **Propagate now**: triggers an immediate detection run for that app. Useful when you just made a schema change in an app and want it to be propagated right now.

Notes:

* Detection can occur sooner if schema changes are observed during normal sync runs. This will enable the sync to keep running while otherwise the sync would pause in case a column or table it needs to sync does not exist anymore.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/schema-updates-detection-frequency.webp" alt="Schema Updates Propagation tab with HubSpot schema updates enabled at &#x22;Every 1 hour&#x22; and Postgres schema updates turned off." width="1407" height="592" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## II. When New Tables Are Detected

In **When the schema of tables already in sync is updated**, configure column-level behavior per table:

* **Do not propagate**: new tables are ignored (recommended if you manage schemas via migrations).
* **Auto-create in target**: new tables detected in the source are created in the target and added to the sync.

You can also add exclusions:

* **Exclude table names** by exact name.
* **Exclude by regex** for patterns (e.g., `^temp_.*`).

Notes:

* Auto-creation is only available if the target system supports creating tables and if the necessary permissions have been set to the user / service account granted access to Stacksync.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/new-tables-detected-auto-create.webp" alt="&#x22;When new tables are detected&#x22; settings: new HubSpot tables auto-create in Postgres, with exclude-by-name and regex rules." width="1402" height="792" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## III. When Existing Tables Change (Columns)

In **When the schema of tables already in sync is updated**, configure column-level behavior per table:

* **Add New Columns**: if enabled, a newly detected column in the source is created in the target and added to the sync.
* **Unsync Deleted Columns**: if enabled, deleted source columns are removed from the sync mapping.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/existing-tables-schema-update-columns.webp" alt="&#x22;When the schema of tables already in sync is updated&#x22; table with Add New Columns and Unsync Deleted Columns checkboxes for HubSpot and Postgres." width="1403" height="564" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Additional controls by clicking on the gear icon:

* **Column exclusions**: per table, exclude columns by exact name or regex.
* **Default behavior for new tables’ fields**: a default row sets how columns should be handled for tables added later.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/new-table-column-exclusions-dialog.webp" alt="Column Exclusions dialog for HubSpot new tables, with fields to exclude column names and regex patterns, plus Cancel and Done." width="1198" height="423" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Important:

* Removing a column from the sync does **not** delete the column in the target app; it simply stops syncing it.

### Column Renames (Automatic Mapping)

When a column is renamed in the source app, Stacksync attempts to preserve the sync by matching the column using the app’s immutable field identifiers (when available). This means a rename is treated as the same column with a new name, not as a deletion plus a new column.

What this does:

* Keeps the sync running without manual remapping.
* Avoids creating duplicate columns when only the name changed.
* Applies to apps that expose stable, immutable field IDs.

Notes:

* If the app does not provide immutable field IDs, a rename may be interpreted as “deleted + new” and will follow your column add/remove rules.

## IV. When Tables Are Deleted

In **When tables are deleted in an app**, choose the behavior:

* **Auto-unsync deleted tables** (recommended): removes the table from the sync mapping and keeps the sync running.
* **Keep in mapping**: the sync pauses and notifications are sent to workspace collaborators.

Important:

* Auto-unsync does **not** delete the target table in the app. It only stops syncing it.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/deleted-tables-sync-mapping-options.webp" alt="&#x22;When tables are deleted in an app&#x22; options for HubSpot and Postgres: auto-remove from sync mapping or keep and pause the sync." width="1199" height="372" loading="lazy" decoding="async" />

  <figcaption />
</figure>

If you have any questions, feel free to reach out at *[hello@stacksync.com](mailto:hello@stacksync.com)*, we are happy to help!

# Custom sync frequencies

> Set your own data sync frequencies to match your workflow and system needs. Customize how often your data updates to stay current without unnecessary load.

Source: https://docs.stacksync.com/two-way-sync/features/custom-sync-frequencies

<YouTube id="GZxKUO3UZ4I" title="Video" />

In this article, you'll learn how to set custom sync frequencies for your use case.

**Step 1:** Start by creating a new sync or click on an existing one.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-dashboard-select-sync.webp" alt="Stacksync Syncs dashboard listing syncs such as Salesforce-Postgres &#x22;Custom internal tooling on Salesforce data&#x22;, with one being clicked." width="1600" height="735" loading="lazy" decoding="async" />

  <figcaption>Click on a sync</figcaption>
</figure>

**Step 2:** After clicking on a sync, scroll all the way to the bottom and click on **Advanced Sync Settings**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/advanced-sync-settings-section.webp" alt="Sync detail page scrolled to &#x22;Advanced Sync Settings&#x22; showing Data Sync Frequency set to &#x22;In real-time&#x22;." width="1600" height="735" loading="lazy" decoding="async" />

  <figcaption>Click on 'Advanced Sync Settings'</figcaption>
</figure>

**Step 3:** Choose your desired **Data Sync Frequency**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/data-sync-frequency-dropdown.webp" alt="Data Sync Frequency dropdown open with options from &#x22;In real-time&#x22; to &#x22;At least once every 24 hours&#x22;." width="1600" height="735" loading="lazy" decoding="async" />

  <figcaption>Choose a data sync frequency from the dropdown</figcaption>
</figure>

**Step 4:** Finally, click on **Save changes** and you're all set!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/data-sync-frequency-save-changes.webp" alt="Data Sync Frequency set to &#x22;At least once every 24 hours&#x22; with the &#x22;Save changes&#x22; button being clicked." width="1600" height="735" loading="lazy" decoding="async" />

  <figcaption>Click on 'Save changes'</figcaption>
</figure>

# Delete Record Protection

Source: https://docs.stacksync.com/two-way-sync/features/delete-record-protection

Data sync is a powerful tool that can have consequences if wrongly used. Delete Record Protection enables you to prevent unintended record deletion if you know that your use case does not requires deletion at all.

For example, let's say you have a Salesforce account connected to your Postgres database. If you don't want the deletion of records in your Postgres database to delete the synced record in your Salesforce, you can set up the delete record protection for Salesforce.

## Set up

Once your sync is created, go on the Dashboard page, click on your sync and then on the app where you don't want the records to not be deleted.

<br />

<div>
  <figure>
    <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-dashboard-select-brilliant-sync.webp" alt="Syncs dashboard with the Postgres-to-Salesforce &#x22;Brilliant Sync&#x22; highlighted to open its details." width="1457" height="222" loading="lazy" decoding="async" />

    <figcaption />
  </figure>
</div>

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-connection-delete-protection-toggle.webp" alt="Salesforce connection settings in a sync showing Rate Limit, Connection Details, Use Bulk API, and the &#x22;Delete Protection&#x22; toggle highlighted." width="1033" height="686" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  Upon <mark>**deactivation**</mark> of the delete protection, all the records that should have been deleted if the record protection was not on will get <mark>**deleted**</mark> instantaneously. This is a <mark>**non revertible**</mark> operation.
</Callout>

Delete Record Protection also works for 1-way syncs.

You can activate the delete record protection for both apps at the same time. When a record will be deleted in any of the apps, it won't be deleted in the other app.

You can track at any point in time the number of **delete protected records** from the [sync statistics section](/two-way-sync/features/other-features/sync-statistics) of each sync.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-stats-delete-protected-records.webp" alt="Sync Stats table for Postgres and Salesforce with the &#x22;Number of delete protected records in table(s)&#x22; row highlighted." width="1076" height="532" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Database Query

> Execute a query in any database/data warehouse when some data events occur (e.g. a record is updated).

Source: https://docs.stacksync.com/two-way-sync/features/event-triggers/database-query

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-database-query-action.webp" alt="Event trigger &#x22;Then...&#x22; step on the Database Query tab with a SQL query using <<record>>.id and a &#x22;To Database&#x22; selector." width="1600" height="1170" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This field will work as a query maker for your database. It should follow the syntax of the database that is being queried.

You can execute any query to the database of your choice, it does not have to be the database that is synced in the sync itself. The query will be executed **as is**, we will not be running any checks to verify if the query is valid. If the query fails or times out, the failure will not stop the execution of other triggers as every trigger will be fired up independently.

The <mark>\<\<record>></mark> placeholder will be replaced by the JSON string containing all the fields of the record. The <mark>\<\<changes>></mark> placeholder will be replaced by the JSON string containing only the updated fields of the record. Properties of the record and changes can be accessed by using a period "." to access the property. This can be nested if the property is a JSON.

For example, a database insert query for PostgreSQL:

```
// Sample <<record>> JSON
{
   "name":"John",
   "address":{
      "street":"123 Main Street",
      "postal_code": 650
   }
}

// PostgreSQL query to insert name and the postal code
INSERT INTO user_table (user_name, postal_code)
VALUES ('<<record>>.name', <<record>>.address.postal_code);
```

<Callout type="info">
  Notice that the <mark>`<<record>>.name`</mark>placeholder is enclosed in single quotes as the column is of type string whereas <mark>`<<record>>.address.postal_code`</mark> is not enclosed in single quotes as the column is of type int.

  The query should follow the syntax of the database.
</Callout>

# Event triggers

> Trigger some Webhook call or Database queries when some data events happen in your sync (e.g. a contact is created in your CRM).

Source: https://docs.stacksync.com/two-way-sync/features/event-triggers

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-new-event-trigger-form.webp" alt="Create New Trigger form: Updated records on Account/max_account, Name and BillingCity conditions, and a webhook cURL action." width="1600" height="3354" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Guides

Check our setup guide at

<Cards>
  <Card title="Configure Event Triggers" href="/https/docs.stacksync.com/two-way-sync/guides/event-triggers" />
</Cards>

## FAQ

<details>
  <summary>
    How many triggers can I create?
  </summary>

  You can create as many triggers as you want, there are **no limits** as per how many triggers you can create. 🚀
</details>

<details>
  <summary>
    Is there a maximum number of nested conditions for filtering?
  </summary>

  No, there are **no limits**. You can create deep nested conditions as you please. Feel free to use the no-code editor as you please!

  Even if there are no limits, a good practice is to keep the number of nested levels below 5 for readability and maintainability. However, going deeper than 5 nested levels will not negatively impact the system performance, so rest assured and feel free to proceed!
</details>

<details>
  <summary>
    What data can I access from the changes in a trigger?
  </summary>

  We provide the <mark>\<\<record>></mark> placeholder which will be replaced by a JSON string containing the columns of the record that was changed. Depending on the operation done to the record, certain columns will be available.

  **INSERTS:** Only the columns which were added during the creation of the record will be available.

  **UPDATES:** All columns which have a value will be available. Even if a single column was updated for the record, all other non-null columns will appear in the <mark>\<\<record>></mark> JSON string.

  **DELETES:** Only the primary key of the table from where the record was deleted will be available. For example, in a sync between Salesforce and Postgres, if a record is deleted in Salesforce, the <mark>Id</mark> column will be available in the <mark>\<\<record>></mark> JSON string. If the record is deleted in Postgres, the primary key of that table, for instance <mark>stacksync_record_id_Aokoxe</mark> will be available in the <mark>\<\<record>></mark> JSON string.
</details>

## Need help?

We are happy to give you a helping hand! Contact us directly in our [Slack community chat](/two-way-sync/start-here/community) or via email at [hello@stacksync.com](mailto:hello@stacksync.com)

Feel free to drop us any feedback or feature request if you need something, we're glad to make it happen 😉

# Webhook (HTTP call)

> Make an HTTP call to any API endpoint when some data events (e.g. a record is updated).

Source: https://docs.stacksync.com/two-way-sync/features/event-triggers/webhook-http-call

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-webhook-http-call.webp" alt="Event trigger &#x22;Then...&#x22; step on the Webhook (HTTP Call) tab with a cURL POST template using <<record>> and <<changes>> placeholders." width="1600" height="843" loading="lazy" decoding="async" />

  <figcaption />
</figure>

This field is a full CURL as you know it from the open-source project [https://curl.se/](https://curl.se/)

You can include any authentication, parameters, turn the POST into a GET request or anything else. The CURL will just get executed **as is**, we will not run any checks on your behalf. If the API call fails or times out, the failure will not stop the execution of other triggers as every trigger will be fired up independently.

We recommend keeping the CURL as a POST request.

The <mark>\<\<record>></mark> placeholder will be replaced by the JSON string containing all the fields of the record. The <mark>\<\<changes>></mark> placeholder will be replaced by the JSON string containing only the updated fields of the record. Properties of the record and changes can be accessed by using a period "." to access the property. This can be nested if the property is a JSON.

The **payload** is also fully customizable. For example, add some additional custom parameters in the JSON body as follows:

```http
curl --request POST \
--url https://your-endpoint-url.com \
--header 'Content-Type: application/json' \
--data '{ "record": "<<record>>", "record_id": "<<record>>.id", "my_custom_param": 1234 }'
```

# Issues dashboard

> The issues dashboard helps you identify and fix all syncing issues potentially affecting your syncs. Your pipelines will never incur silent failures again.

Source: https://docs.stacksync.com/two-way-sync/features/issues-dashboard

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/issues-dashboard-overview.webp" alt="Stacksync Issues dashboard with region, sync, app and table filters, listing a Salesforce Contact issue with &#x22;Revert change&#x22; and &#x22;More details&#x22;." width="1455" height="755" loading="lazy" decoding="async" />

  <figcaption><p>Issues Dashboard in the Stacksync app</p></figcaption>
</figure>

The issues dashboard helps you:

1. get alerted in real-time about syncing issues
2. identify syncing issues for any record
3. fix the issue with one-click action options

When any of your systems is down or is in maintenance, or when some data updated in one system and cannot be updated in the other system for example due to datatype issues, custom validation rules (e.g. invalid phone number in a CRM), etc., the record won't be able to sync. When a record cannot sync, it will be displayed in the record issues dashboard.

Unlike other solutions that let your pipelines silently fail or switch off entirely, Stacksync keeps your mission-critical services up and running all the time and flags you which records had syncing issues so you can investigate and fix the issue with a single click.

For each issue, a detailed report and recommendation on how to fix it is included in the *Issues details* panel.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/issue-details-side-panel.webp" alt="Issue Details panel opened from the Issues dashboard, with &#x22;Revert change&#x22;, &#x22;Retry sync&#x22; and &#x22;Ignore issue&#x22; buttons and the issue summary." width="1463" height="694" loading="lazy" decoding="async" />

  <figcaption><p>Issues Dashboard in the Stacksync app, with the Issue Details panel open.</p></figcaption>
</figure>

<Callout type="info">
  Consider the following situation to illustrate the following examples:\
  System_A and system_B are in bidirectional sync. If a record in system_A was updated with a value that cannot sync to system_B (e.g. invalid phone number, or modification in system_A of a read-only column in system_B), the data update will not sync and will result in an issue in the Issues dashboard for that given record.
</Callout>

Issue resolution options are:

1. **Revert change**\
   **Reverts the erroneous value in system_A with its previous value** still stored in system_B (since the value update from system_A did not sync properly and ended up in the Issues dashboard). Since Stacksync does not store any of your data, Stacksync will query system_B for the exact record and fields concerned by the issue (cherry-pick the exact values) and sync it back to system_A. The end result is that system_A is reverted to its previous value, and system_A and system_B are again consistent.
2. **Retry to sync**\
   **Attempts to sync again the same value from system_A to system_B.** For instance, if the issue was caused by an "invalid phone number" error in your CRM (system_B in our example), and that the validation rule was removed, then retrying to sync the same value again from system_A to system_B should now successfully write the value to system_B. The end result is that system_B is updated with the value from system_A, system_A and system_B are again consistent.\
   Since Stacksync does not store any of your data, Stacksync will query system_A again to get the record's latest values and sync these values to system_B.
3. **Ignore issue**\
   **Ignores the issue and removes it from the Issues dashboard.** If your business use case requires system_A and system_B to have different states and tolerates inconsistencies between your systems, you can clean up your Issues dashboard by ignoring issues. The end result is that system_A and system_B will each contain different values for the given fields affected in the issue for that given record.\
   It is in general not recommended to ignore issues as the business use cases are limited. If you have any doubt, talk with the Stacksync support team to confirm before taking action. If you ignore Issues by mistake and would like to restore them, contact the Stacksync support team to restore the Issues in your Issues dashboard. Stacksync saves ignored Issues for a duration equal to the *log retention policy* associated with your pricing plan.

You can resolve issues with any of the 3 options above at scale with **bulk actions**. Select which records you want to resolve the issue for, and resolve them in bulk. Issues can also be [listed](/api-reference/syncs/issues/list_sync_issues) and [resolved](/api-reference/syncs/issues/resolve_sync_issues) through the API.

When an Issue is resolved, it is removed from the Issues dashboard. When your Issues dashboard is empty, your systems are fully consistent and in sync!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/issue-details-full-report.webp" alt="Full Issue Details report: summary, sync and app info, Salesforce and Postgres record Ids, issue type, columns with issues and shareable URL." width="1600" height="2102" loading="lazy" decoding="async" />

  <figcaption><p>Issue Details panel</p></figcaption>
</figure>

## Get notified of issues

Stacksync can tell you about new issues in two ways:

* **Email:** at most one alert per sync every 6 hours.
* **Webhook:** create a [sync webhook](/two-way-sync/features/sync-webhooks) with the `real_time_issue_notification` type to receive a call at your own URL when records fail to sync.

A webhook call covers a batch of records and carries no issue id, and failed calls are not retried. See [`real_time_issue_notification`](/two-way-sync/features/sync-webhooks#real_time_issue_notification) for what is sent and how to get each issue.

# Manage API rate limits

> Manage API rate limits for each of your Apps

Source: https://docs.stacksync.com/two-way-sync/features/manage-api-rate-limits

Stacksync is a data synchronization tool that ensures **real-time syncing between your Apps**. It optimizes data transfer by batching modifications and minimizing API calls, resulting in lower API consumption and potential cost savings. For high volumes of record updates, Stacksync scales up its workers and parallelizes processes for faster syncing.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-connection-rate-limit-setting.webp" alt="Salesforce connection settings with the Rate Limit section highlighted, set to Rate 5 per Second with a &#x22;Save changes&#x22; button." width="1030" height="672" loading="lazy" decoding="async" />

  <figcaption><p>Manage API rate limits from your Stacksync dashboard</p></figcaption>
</figure>

You can set rate limits to manage API calls during peak times or within specific time windows, preventing rate limit exceedance and effectively managing the load on your services. This is also useful if other services than Stacksync consume API calls on the same app so you can share your resources adequately. It's important to note that Stacksync only makes API calls when your data is updated, and when no data updates occur, no calls are made, except for a few queries in some cases.

To set rate limits for each App, [follow this detailed tutorial](/two-way-sync/connectors/setup-options/manage-api-rate-limits). It is recommended to use smaller scale rate limits (e.g., seconds or minutes) to ensure regular data syncing. Larger scale limits (e.g., hours or days) may result in data sync delays if sufficient credits are not available until the end of the period. Rest assured, once API credits are again available, your data will be synced without errors, it would just have taken more time 👍🏼.

<Callout type="info">
  For optimal real-time sync performance, a range of 5 to 10 requests per second is ideal in most cases.
</Callout>

Changes you make to the rate limits may take up to a minute to be applied. When no data updates occur in any of your Apps, Stacksync does not query the Apps as no data transfer is needed, with only negligible exceptions. [Learn more here.](/two-way-sync/connectors/setup-options/manage-api-rate-limits)

# Manage workspace users

> Invite users to collaborate in a workspace with Role-Based Access Control (RBAC)

Source: https://docs.stacksync.com/two-way-sync/features/manage-workspace-users

You can invite users to collaborate on a Stacksync workspace.

Stacksync uses Role-Based Access Control (RBAC) to let you manage permissions and access. Users can have the following roles:

* **Owner** (Can create and use all workspace resources except private resources owned by other users and manages the workspace billing).
* **Editor** (Can create and use all workspace resources except private resources owned by other users. Editors can also invite other users to join a workspace).
* **Viewer** (Can ONLY view non-private workspace resources. Viewers cannot create, update or delete any workspace resources).

## Invite users to a workspace

1. Go to "Workspace settings"
2. Insert email to invite and choose user role
3. Click "Send invite"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workspace-settings-invite-users.webp" alt="Workspace Settings page with Users Management highlighted: email field, Role dropdown (Editor or Viewer) and &#x22;Send invite&#x22; button." width="1600" height="832" loading="lazy" decoding="async" />

  <figcaption><p>Invite users to a Stacksync workspace</p></figcaption>
</figure>

Invitations can be revoked at any time. You can also add, update and remove workspace collaborators.

<Callout type="info">
  To join the workspace, the invited collaborator will receive an email with a link to join the workspace. If they do not click on the link to accept the invite, they will not be able to join the workspace.
</Callout>

If you want to enforce MFA for all users in your workspace or need SAML & SSO, follow the tutorial below.

<Cards>
  <Card title="Security" href="/https/docs.stacksync.com/two-way-sync/features/security" />
</Cards>

## Switching between workspaces

You can see all the workspaces you own and the workspaces you have been invited to in the Workspace selection view.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workspace-selector-switch-workspaces.webp" alt="Workspace selector dropdown listing My Workspaces and Shared Workspaces, with search and a &#x22;Create new workspace&#x22; option." width="1600" height="718" loading="lazy" decoding="async" />

  <figcaption><p>Switch between Stacksync workspaces and view the workspaces shared with you.</p></figcaption>
</figure>

# Other features

> Workspace security and other features that offer additional insights on your systems and architecture.

Source: https://docs.stacksync.com/two-way-sync/features/other-features

<Cards>
  <Card title="Sync statistics" href="/https/docs.stacksync.com/two-way-sync/features/other-features/sync-statistics" />
</Cards>

<Cards>
  <Card title="Monitoring" href="/https/docs.stacksync.com/two-way-sync/features/other-features/monitoring" />
</Cards>

# Monitoring

> Stacksync offers a Monitoring dashboard where you can track and understand exactly your data flows and sync operations.

Source: https://docs.stacksync.com/two-way-sync/features/other-features/monitoring

To access the Monitoring dashboard for a workspace, click on the "Monitoring" page in the workspace sidebar.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/monitoring-dashboard-charts.webp" alt="Stacksync Monitoring dashboard with filters and charts for new/updated/deleted records, issues, billable MAR and trigger executions." width="1600" height="1447" loading="lazy" decoding="async" />

  <figcaption><p>Stacksync Monitoring page with filtering options.</p></figcaption>
</figure>

# Sync statistics

> Know how your syncs are running in real time.

Source: https://docs.stacksync.com/two-way-sync/features/other-features/sync-statistics

**Sync Stats** gives you an overview of how many records are in each synced app, how many records are currently processing, how many sync issues there are and much more.

To view Sync Stats, Go to Dashboard > Open a Sync > Scroll to "Advanced Options" > Sync Stats.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-stats-hubspot-postgres-tables.webp" alt="Sync Stats for a HubSpot-Postgres sync showing records, issues and delete protected records per table (deals, stages, contacts)." width="1600" height="1186" loading="lazy" decoding="async" />

  <figcaption><p>Sync Stats.</p></figcaption>
</figure>

Refreshing sync stats will update the stats table.

# Security

> Security features available for Stacksync workspaces including MFA, SSO, SCIM, and SAML authentication.

Source: https://docs.stacksync.com/two-way-sync/features/security

Read more on the following pages:

<Cards>
  <Card title="SSO & SCIM" href="/https/docs.stacksync.com/two-way-sync/features/security/sso-and-scim" />
</Cards>

<Cards>
  <Card title="SCIM" href="/https/docs.stacksync.com/two-way-sync/features/security/scim" />
</Cards>

<Cards>
  <Card title="MFA" href="/https/docs.stacksync.com/two-way-sync/features/security/mfa" />
</Cards>

# MFA

> Multi factor authentication required for every workspace user to strengthen account and login security.

Source: https://docs.stacksync.com/two-way-sync/features/security/mfa

MFA (Multi Factor Authentication) can be activated for your workspace. Requiring MFA for a workspace will immediately activate MFA for all workspace collaborators. They will be logged out and be prompted to an MFA setup page at their next login.

To activate MFA, go to Workspace settings > scroll down to Security > Toggle ON the MFA

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workspace-security-mfa-toggle.webp" alt="Workspace settings Security section with the Multi Factor Authentication (MFA) status toggle." width="1600" height="338" loading="lazy" decoding="async" />

  <figcaption><p>MFA (Multi Factor Authentication) in Stacksync Workspace settings.</p></figcaption>
</figure>

# Azure Entra ID

> SCIM for Azure Entra ID

Source: https://docs.stacksync.com/two-way-sync/features/security/scim/azure-entra-id

[Contact us](/two-way-sync/start-here/community) to activate your SCIM! This is a feature part of our Enterprise plan.

# SCIM

> SCIM integration for Stacksync workspaces to manage user access and identity provisioning.

Source: https://docs.stacksync.com/two-way-sync/features/security/scim

[Contact us](/two-way-sync/start-here/community) to activate your SCIM! This is a feature part of our Enterprise plan.

Currently Stacksync supports OKTA and Azure Entra ID, and can add support for other identity providers on short notice.

SCIM stands for System for Cross-domain Identity Management, and it's an open standard protocol that automates the exchange of user identity information between IT systems and identity domains. SCIM is used to simplify the process of granting access to cloud-based applications for people and groups.

# OKTA

> SCIM for OKTA

Source: https://docs.stacksync.com/two-way-sync/features/security/scim/okta

<Callout type="info">
  The Stacksync OKTA app is currently under review by OKTA. Until the app is published on OKTA marketplace, here is a guide to synchronize your OKTA users automatically into Stacksync by creating the SCIM app yourself

  This setup takes \~10min
</Callout>

Notes:

* This setup needs to be implemented by an OKTA **ADMIN**
* The SCIM integration is associated to a unique Stacksync workspace. If you have multiple workspaces (such as dev, stage and prod) you will need to set up an SCIM app for each of these Stacksync workspaces. Each workspace has independent RBAC enforcement.

## Setup manual

1. On your OKTA homepage go on the admin section

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-homepage-admin-button.webp" alt="Okta My Apps homepage with the &#x22;Admin&#x22; button highlighted in the top right." width="1600" height="169" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Once you are on the admin page, go to `Applications` and click on `Create App Integration`

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-applications-browse-app-catalog.webp" alt="Okta admin Applications page with the &#x22;Browse App Catalog&#x22; button highlighted next to &#x22;Create App Integration&#x22;." width="1207" height="615" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Browse for SCIM 2.0 App with Header Authentication

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-catalog-scim-header-auth-app.webp" alt="Okta App Integration Catalog search for &#x22;scim&#x22; with &#x22;SCIM 2.0 Test App (Header Auth)&#x22; highlighted." width="1600" height="569" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
4. Add the application

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-add-scim-app-general-settings.webp" alt="Okta &#x22;Add SCIM 2.0 Test App (Header Auth)&#x22; General Settings with Application label set to &#x22;SCIM 2.0 Stacksync&#x22; and a Next button." width="1600" height="586" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. In the provisioning section click on `Configure API Integration`

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-provisioning-configure-api-integration.webp" alt="Okta SCIM 2.0 Stacksync app Provisioning tab showing &#x22;Provisioning is not enabled&#x22; with the &#x22;Configure API Integration&#x22; button highlighted." width="1600" height="716" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
6. Go to the Workspace Settings page at `https://app.stacksync.com` to find the informations necessary for the next steps.

   1. Find your `workspace_id` on the top of the page

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/stacksync-settings-workspace-id.webp" alt="Stacksync workspace Settings page with the Workspace Id (2610) highlighted under Workspace Details." width="1016" height="384" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   1. Generate a `workspace_api_key` at the bottom of the page.

      <figure>
        <img src="/https/docs.stacksync.com/images/two-way-sync/stacksync-generate-workspace-api-key.webp" alt="Bottom of Stacksync Settings with the Workspace API Key section highlighted, showing a key name field and &#x22;Generate new API key&#x22; button." width="1600" height="683" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
7. Set up the API integrations using your Stacksync credentials:
   1. **Base URL:** `https://api.stacksync.com /v1/workspace/<your_workspace_id>/scim/v2/`
   2. **API Token:** `Bearer <your_workspace_api_key>`

      <figure>
        <img src="/https/docs.stacksync.com/images/two-way-sync/okta-scim-api-integration-credentials.webp" alt="Okta Provisioning integration with Base URL https://api.stacksync.com/v1/workspace/..., API Token and Import Groups highlighted." width="1600" height="828" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
8. Now that you are connected to the Stacksync SCIM server, you can create a Group for the users that will have the role `editor` in Stacksync and then provision that group to the app you just created.\
   Note that there are 2 roles you can set for you group: `viewer` or `editor.`

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-group-assign-applications.webp" alt="Okta &#x22;Stacksync Editors&#x22; group Applications tab with the &#x22;Assign applications&#x22; button highlighted." width="1600" height="833" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-assign-application-editor-role.webp" alt="Okta &#x22;Assign Applications to Stacksync Editors&#x22; dialog with the roles attribute set to &#x22;editor&#x22; highlighted." width="1600" height="892" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
9. Now you can assign users to this group

   <figure>
     <img src="/https/docs.stacksync.com/images/two-way-sync/okta-group-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1600" height="634" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

Congrats' you just automatically provisioned users to the Stacksync app!

# Azure Entra ID

Source: https://docs.stacksync.com/two-way-sync/features/security/sso-and-scim/azure-entra-id

This guide will walk you through setting up automatic user provisioning between Azure Entra ID (formerly Azure Active Directory) and stacksync.

## Overview

By the end of this guide, you will have:

* ✅ SAML-based Single Sign-On configured
* ✅ Automatic user provisioning via SCIM
* ✅ Role-based access control
* ✅ Users automatically created/updated/deactivated in stacksync

**Estimated time:** 30-45 minutes

***

## Prerequisites

Before you begin, ensure you have:

* [ ] **Azure Entra ID admin access** with at least **Cloud Application Administrator** role
* [ ] **stacksync owner account**
* [ ] Your company's **email domain** (e.g., `acme.com`)
* [ ] List of users who should have access

***

## Part 1: Create Enterprise Application in Azure

### Step 1.1: Navigate to Enterprise Applications

1. Sign in to the **Azure Portal**: [https://portal.azure.com](https://portal.azure.com)
2. In the search bar at the top, type **"Microsoft Entra ID"** and select it
3. In the left sidebar, click **Enterprise applications**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-enterprise-applications-new-application.webp" alt="Azure Entra ID Enterprise applications list with the &#x22;New application&#x22; button highlighted." width="1600" height="484" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.2: Create New Application

1. Click **+ New application** (top left)
2. Click **+ Create your own application**
3. Enter the application name: **stacksync-example**
4. Select: **"Integrate any other application you don't find in the gallery (Non-gallery)"**
5. Click **Create**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-create-own-application-non-gallery.webp" alt="Azure &#x22;Create your own application&#x22; panel named stacksync-example, &#x22;Integrate any other application&#x22; (Non-gallery) selected, and Create." width="1600" height="800" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Wait a few seconds for Azure to create the application.

***

## Part 2: Configure SAML Single Sign-On

### Step 2.1: Start SAML Setup

1. In your **stacksync-example** enterprise application, click **Single sign-on** in the left sidebar
2. Click the **SAML** tile

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-single-sign-on-saml-method.webp" alt="Azure stacksync-example Single sign-on page with the &#x22;SAML&#x22; sign-on method tile highlighted." width="1600" height="511" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.2: Download Azure Metadata

**Before** configuring anything, download your Azure metadata file:

1. Scroll down to section **"3. SAML Certificates"**
2. Under **"Token signing certificate"**, click **Edit** (pencil icon on the right)
3. Click the **three dots menu (...)** next to the Active certificate
4. Select **"Download federated certificate XML"** from the dropdown menu
5. Save the file (e.g., `AzureMetadata.xml`)

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-download-federated-certificate-xml.webp" alt="Azure SAML Signing Certificate panel with the &#x22;...&#x22; menu open and &#x22;Download federated certificate XML&#x22; highlighted." width="1600" height="750" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.3: Configure SSO in your workspace

The SSO configuration should only be done once per company domain. All domains will be connected under the same SSO configuration

1. Navigate to your workspace settings
2. Choose Azure AD (Entra ID) as your identity provider
3. Upload the federated certificate XML file you downloaded from Azure in the step above
4. You can choose to "Restrict login to SSO only for this domain" using the checkbox. This will make it so users with this domain will only be able to login via the SSO flow
5. Click continue

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-sso-azure-metadata-upload.webp" alt="Stacksync Workspace Settings SCIM & SSO: Identity Provider &#x22;Azure AD (Entra ID)&#x22;, metadata XML uploaded, restrict-domain checkbox." width="1600" height="544" loading="lazy" decoding="async" />

  <figcaption />
</figure>

6. You should now see a page with all the necessary info to continue the setup in Azure.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-current-sso-configuration-azure.webp" alt="Stacksync &#x22;Current SSO configuration&#x22; showing azure_ad provider, Connection Name, Entity ID, ACS URL and Sign-In URL for Azure setup." width="1565" height="297" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

### Step 2.4: Configure Basic SAML Settings

Once you have terminated the SSO configuration in your workspace you can continue with the setup in Azure:

1. Go back to your Azure SAML setup page
2. Click **Edit** on section **"1. Basic SAML Configuration"**
3. Fill in the values **provided by stacksync support**:

**Identifier (Entity ID):**

```
urn:auth0:stacksync:companydomain-com-sso-azure-ad
```

*(Use the exact value from the above step)*

**Reply URL (Assertion Consumer Service URL):**

```
https://auth.stacksync.com/login/callback?connection=companydomain-com-sso-azure-ad
```

*(Use the exact value from the above step)*

**Sign on URL (optional):**

```
https://stacksync.com/login
```

4. Click **Save**
5. Close the panel by clicking **X**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-basic-saml-configuration-panel.webp" alt="Azure Basic SAML Configuration panel with Identifier (Entity ID) and Reply URL (ACS URL) fields filled in and the Save button highlighted." width="1600" height="777" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.5: Configuring email claim

This is needed because some emails could have upper case letter making the SSO login not work as expected.

1. Edit the Attributes & Claims section

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-attributes-claims-edit.webp" alt="Azure stacksync-example SAML-based Sign-on page with the &#x22;Edit&#x22; button on the Attributes & Claims section highlighted." width="1108" height="770" loading="lazy" decoding="async" />

  <figcaption />
</figure>

2. Click on the user.mail claim to start editing it

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-email-claim-user-mail.webp" alt="Azure Attributes & Claims list with the emailaddress claim mapped to user.mail highlighted under Additional claims." width="853" height="577" loading="lazy" decoding="async" />

  <figcaption />
</figure>

3. Change the source radio button to Transformation (this action should open a side pabel)
4. In the Transformation field drop down choose ToLowercase()
5. In the Attribute name field dropdown choose user.mail
6. Click add and then Save on the main page

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-email-claim-tolowercase-transformation.webp" alt="Azure Manage claim with Source &#x22;Transformation&#x22; and a Manage transformation panel set to ToLowercase() on attribute user.mail." width="1600" height="682" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 3: Set Up Automatic User Provisioning (SCIM)

### Step 3.1: Generate a api token for your workspace

1. In your stacksync workspace settings scroll down to "Stacksync Workspace API Key"
2. Create a api key for scim use.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-generate-workspace-api-key.webp" alt="Stacksync Workspace Settings with Key Name &#x22;SCIM API KEY&#x22; entered and the &#x22;Generate new API key&#x22; button highlighted." width="1532" height="446" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-workspace-api-key-preview.webp" alt="Stacksync &#x22;Workspace API Key Preview&#x22; dialog showing the generated key with a copy icon and a Close button." width="507" height="266" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.2: Enable Automatic Provisioning

1. In your **stacksync** enterprise application, click **Provisioning** in the left sidebar
2. Click **+ New configuration** button (at the top)
3. On the "New provisioning configuration" page:
   * **Select authentication method:** Bearer authentication (default)
   * **Tenant URL:** Paste the URL provided by stacksync support

```
     https://api.stacksync.com/v1/workspaces/[your-workspace-id]/scim/v2
```

* **Secret Token:** Paste the token that you generated in your workspace

4. Click **Test connection**
   * You should see: ✅ "Connection test for 'stacksync-example' was successful"
5. Click **Create** (bottom left)

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-scim-provisioning-bearer-token.webp" alt="Azure New provisioning configuration with Bearer authentication, Stacksync SCIM Tenant URL and Secret token, a successful test, and Create." width="1600" height="774" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 4: Create App Roles for stacksync

App Roles define which permission level users have in stacksync (viewer or editor).

### Step 4.1: Navigate to App Registrations

1. In the Azure Portal search bar, type: **"App registrations"**
2. Click **App registrations**
3. Click the **"View all applications in directory"** button
4. Find and click **stacksync-example**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-app-registrations-view-all.webp" alt="Azure App registrations page with the &#x22;View all applications in the directory&#x22; button highlighted." width="1600" height="389" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.2: Create "viewer" Role

1. In the left sidebar, click **App roles**
2. Click **+ Create app role**

Fill in:

* **Display name:** `viewer`
* **Allowed member types:** Users/Groups
* **Value:** `viewer`
* **Description:** `Viewer with read-only access`
* **Do you want to enable this app role?** ✅ Checked

3. Click **Apply**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-create-viewer-app-role.webp" alt="Azure stacksync-example App roles with a &#x22;Create app role&#x22; panel for a &#x22;viewer&#x22; role (Users/Groups, read-only access) and Apply." width="1600" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.3: Create "editor" Role

1. Click **+ Create app role** again

Fill in:

* **Display name:** `editor`
* **Allowed member types:** Users/Groups
* **Value:** `editor`
* **Description:** `Editor with standard access`
* **Do you want to enable this app role?** ✅ Checked

2. Click **Apply**

***

## Part 5: Configure Attribute Mappings

### Step 5.1: Access Attribute Mappings

1. Go back to **Enterprise applications** → **stacksync-example**
2. Click **Provisioning** in the left sidebar
3. Under **Attribute Mappings**, click **Provision Microsoft Entra ID Users**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-attribute-mapping-provision-users.webp" alt="Azure Attribute mapping page for stacksync-example with &#x22;Provision Microsoft Entra ID Users&#x22; highlighted." width="1421" height="515" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 5.2: Add Roles Mapping

1. Scroll to the bottom and click **Add New Mapping**

Fill in:

* **Mapping type:** Expression
* **Expression:**

```
  SingleAppRoleAssignment([appRoleAssignments])
```

* **Target attribute:** `roles[primary eq "True"].value`
* **Default value if null:** `viewer`
* **Apply this mapping:** Always
* **Match objects using this attribute:** No

2. Click **OK**
3. Click **Save** at the top

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-roles-expression-attribute-mapping.webp" alt="Azure Edit Attribute with Expression SingleAppRoleAssignment([appRoleAssignments]), default &#x22;viewer&#x22;, target roles[primary eq &#x22;True&#x22;].value." width="792" height="1019" loading="lazy" decoding="async" />

  <figcaption />
</figure>

***

## Part 6: Start Provisioning

### Step 6.1: Enable Provisioning

1. Go back to the main **Provisioning** page (Preview
2. Click **Start provisioning**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-start-provisioning.webp" alt="Azure stacksync-example provisioning Overview page with the &#x22;Start provisioning&#x22; button highlighted." width="1600" height="763" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Azure will now start provisioning users. The initial sync takes **5-10 minutes**.

***

## Part 7: Assign Roles to Users

### Step 7.1: Assign a Role to a User

1. Go to **Users and groups** in the left sidebar
2. Click **+ Add user/group**
3. Under **Users**, click **None Selected**
4. Select a user
5. Click **Select**
6. Under **Select a role**, click **None Selected**
7. Choose either **viewer** or **editor**
8. Click **Select**
9. Click **Assign**

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-add-assignment-select-user.webp" alt="Azure Add Assignment for stacksync-example with the Users panel open and the user test_2 selected." width="1600" height="809" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/azure-add-assignment-select-editor-role.webp" alt="Azure Add Assignment &#x22;Select a role&#x22; panel listing editor, User and viewer, with &#x22;editor&#x22; and the Select button highlighted." width="1600" height="804" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Repeat this for each user, assigning them the appropriate role.

***

## Part 8: Test the Setup

### Step 8.1: Test Provisioning

1. Go to **Provisioning** → **Provision on demand** (if available)
2. Select a test user (you'l need to search for the user)
3. Click **Provision**
4. Verify the user is successfully created in your stacksync workspace

***

## Troubleshooting

### Users Not Provisioning

**Check:**

* Provisioning Status is **On**
* Users are **assigned** to the stacksync application
* Users have a **role assigned** (viewer or editor)
* User has email property
* Wait 10-40 minutes for initial sync

**View logs:**

* Go to **Provisioning** → **View provisioning logs**

### Wrong Role Assigned

**Check:**

* Role is assigned correctly in **Users and groups**
* Roles attribute mapping includes default value `viewer`
* App roles display names are lowercase: `viewer`, `editor` (not `Viewer`, `Editor`)

# SSO & SCIM

> Manage user logins in your workspace using single sign on with supported identity providers.

Source: https://docs.stacksync.com/two-way-sync/features/security/sso-and-scim

[Contact us](https://www.stacksync.com/contact) to activate SSO on your Workspace! This is a feature part of our Enterprise plan.

Currently Stacksync supports OKTA and Azure Entra ID, and can add support for other identity providers on short notice.

# OKTA Stacksync

> SCIM setup instructions

Source: https://docs.stacksync.com/two-way-sync/features/security/sso-and-scim/okta-stacksync

This guide will walk you through setting up automatic user provisioning between Okta and Stacksync.

## Overview

By the end of this guide, you will have:

* ✅ SAML-based Single Sign-On configured
* ✅ Automatic user provisioning via SCIM
* ✅ Role-based access control
* ✅ Users automatically created/updated/deactivated in stacksync

**Estimated time:** 30-45 minutes

## Prerequisites

Before you begin, ensure you have:

* Okta admin access
* Stacksync owner account
* Your company's email domain (e.g., acme.com)
* List of users who should have access

## Supported Features

The following SAML 2.0 features are supported:

| Feature                         | Supported |
| ------------------------------- | --------- |
| SP-initiated SSO                | Yes       |
| IdP-initiated SSO               | Yes       |
| Just-In-Time (JIT) Provisioning | Yes       |
| Single Logout (SLO)             | No        |

## SCIM Provisioning Features

The following SCIM 2.0 provisioning features are supported:

| Feature                | Supported |
| ---------------------- | --------- |
| Push New Users         | Yes       |
| Push Profile Updates   | Yes       |
| Push User Deactivation | Yes       |
| Reactivate Users       | Yes       |
| Push Groups            | No        |
| Import Users           | No        |
| Import Groups          | No        |
| Sync Password          | No        |

## SCIM Attributes

The following user attributes are supported for SCIM provisioning operations:

| Attribute  | Required | Immutable | Description                                       |
| ---------- | -------- | --------- | ------------------------------------------------- |
| userName   | Yes      | No        | User's unique identifier (typically email)        |
| email      | Yes      | Yes       | User's email address (cannot be changed via SCIM) |
| givenName  | No       | No        | User's first name                                 |
| familyName | No       | No        | User's last name                                  |
| roles      | Yes      | No        | User's role: `viewer` or `editor`                 |

> **Note:** The `email` attribute is immutable. Once a user is created, their email address cannot be updated through SCIM. To change a user's email, you must deactivate the existing user and create a new one with the updated email.

## Additional Features

| Feature              | Supported |
| -------------------- | --------- |
| Force Authentication | No        |
| Encrypted Assertions | No        |
| Signed Requests      | Yes       |

## Notes

* **SP-initiated SSO**: Users can initiate login from the Stacksync login page by entering their email address. They will be redirected to Okta for authentication.
* **IdP-initiated SSO**: Users can initiate login directly from their Okta dashboard by clicking the Stacksync app tile.
* **SCIM Provisioning**: Automatic user lifecycle management including creation, updates, and deactivation. Each workspace requires a separate SCIM app configuration.
* **Role-Based Access Control**: Users can be assigned `viewer` or `editor` roles through Okta group membership.

## Important Notes

* You will create **one** "Stacksync - SSO" app for your entire organization
* You will create **one** "Stacksync - SCIM" app **per workspace**
* If you have multiple workspaces (e.g., dev, staging, production), you must set up a separate SCIM app for each
* Each workspace has independent RBAC enforcement

## Part 1: Configure SAML Single Sign-On

The SSO configuration connects your Okta organization to Stacksync. You only need to complete this once for your entire organization.

### Step 1.1: Add the Stacksync SSO App

1. Sign in to your Okta Admin Console
2. Navigate to **Applications** → **Applications**
3. Click **Browse App Catalog**
4. Search for and select **Stacksync - SSO**
5. Click **Add Integration**

### Step 1.2: Configure Application Settings

1. In the application setup form, enter:
   * **Organization Domain:** Your company domain with dashes instead of dots (e.g., `acme-com` for acme.com)
2. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-stacksync-sso-general-settings.webp" alt="Okta &#x22;Add Stacksync - SSO&#x22; General Settings form with Application label, Organization Domain and a Done button." width="1045" height="555" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Step 1.3: Retrieve SAML Configuration URLs

1. Navigate to the **General** tab
2. Scroll down to **App Embed Link**
3. Copy and save the embed link
4. Navigate to the **Sign On** tab
5. Copy and save the **Metadata URL**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-app-embed-link.webp" alt="Okta App Embed Link section with the Stacksync embed URL highlighted." width="728" height="477" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-sign-on-saml-metadata-url.webp" alt="Okta Sign On tab for the SAML 2.0 app with the Metadata URL under Metadata details highlighted and a Copy link." width="1025" height="842" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 1.4: Configure SSO in Stacksync

> **Note:** The SSO configuration should only be done once per company domain. All workspaces will share the same SSO configuration.

1. Navigate to your Stacksync workspace settings
2. Select **Okta** as your identity provider
3. Upload the SAML metadata or enter the metadata URL from Step 1.3
4. (Optional) Enable **Restrict login to SSO only for this domain** to require SSO authentication for all users with your domain
5. Click **Continue**

You should now see a confirmation page with all the necessary information to complete the setup.

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-sso-okta-metadata-url.webp" alt="Stacksync Workspace Settings SCIM & SSO with Identity Provider &#x22;Okta&#x22;, Okta SAML Metadata URL field, restrict-domain checkbox and Continue." width="1182" height="706" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You should now see a confirmation page with all the necessary information to complete the setup.

## Part 2: Set Up Automatic User Provisioning (SCIM)

The SCIM configuration enables automatic user provisioning. You must complete this for each Stacksync workspace.

### Step 2.1: Add the Stacksync SCIM App

1. In your Okta Admin Console, navigate to **Applications** → **Applications**
2. Click **Browse App Catalog**
3. Search for and select **Stacksync - SCIM**
4. Click **Add Integration**
5. Enter your **Workspace ID** when prompted
6. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-stacksync-scim-general-settings.webp" alt="Okta &#x22;Add Stacksync - SCIM&#x22; General Settings form with Application label, Workspace ID &#x22;1234&#x22; and a Done button." width="1054" height="557" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.2: Generate a Workspace API Key

1. Navigate to your Stacksync workspace settings
2. Scroll down to **Stacksync Workspace API Key**
3. Click **Create API Key**
4. Save the generated API key securely

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-generate-scim-api-key-okta.webp" alt="Stacksync Workspace Settings with Key Name &#x22;SCIM API KEY&#x22; and the &#x22;Generate new API key&#x22; button highlighted, for Okta SCIM." width="1600" height="460" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-scim-api-key-preview-okta.webp" alt="Stacksync &#x22;Workspace API Key Preview&#x22; dialog with the generated key highlighted, a copy icon and a Close button." width="508" height="262" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.3: Enable API Integration

1. Return to your Okta Admin Console
2. Open the Stacksync SCIM application you created
3. Navigate to the **Provisioning** tab
4. Click **Configure API Integration**
5. Check **Enable API Integration**
6. Paste your API key from Step 2.2
7. Click **Test API Credentials**
8. Verify that you see a success message
9. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-enable-api-integration-token.webp" alt="Okta Provisioning Integration with &#x22;Enable API integration&#x22; checked, the API Token field and &#x22;Test API Credentials&#x22; highlighted." width="1021" height="694" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 2.4: Configure Provisioning Settings

1. After saving, the page will display additional options
2. Click **Edit** in the **To App** section
3. Enable the following options:
   * Create Users
   * Update User Attributes
   * Deactivate Users
4. Disable **Set password when creating new users**
5. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-edit.webp" alt="Okta Provisioning &#x22;To App&#x22; settings for Stacksync with the Edit button highlighted above Create, Update and Deactivate Users." width="1034" height="907" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-enable-users.webp" alt="Okta Provisioning to App with Create Users, Update User Attributes and Deactivate Users enabled, set password unchecked, and Save." width="1015" height="806" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Part 3: Configure Role Attribute Mappings

App roles define which permission level users have in Stacksync (viewer or editor).

### Step 3.1: Access the Profile Editor

1. In the **Provisioning** tab, scroll down to **Attribute Mappings**
2. Click **Go to Profile Editor**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-attribute-mappings-profile-editor.webp" alt="Okta Stacksync Attribute Mappings section with the &#x22;Go to Profile Editor&#x22; button highlighted." width="803" height="425" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.2: Add the Roles Attribute

1. Click **+ Add Attribute**
2. Fill in the following fields:
   * **Data type:** string array
   * **Display name:** roles
   * **Variable name:** roles
   * **External name:** roles
   * **External namespace:** `urn:ietf:params:scim:schemas:core:2.0:User`
   * **Description:** SCIM role attribute for Stacksync app
   * **Enum:** Enabled
   * **Attribute members:** `viewer`, `editor`
   * **Attribute required:** Yes
   * **Attribute type:** Group
   * **Group Priority:** Use Group Priority
3. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-profile-editor-add-attribute.webp" alt="Okta Profile Editor for the Stacksync app user with the &#x22;Add Attribute&#x22; button highlighted under Attributes." width="1046" height="560" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-add-roles-attribute.webp" alt="Okta Add Attribute dialog for a &#x22;roles&#x22; string array with enum members Viewer/viewer and Editor/editor, Group type, Use Group Priority." width="1449" height="959" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 3.3: Configure Role Mapping Expression

1. Return to your SCIM application
2. Under **Attributes**, click **Mappings**
3. Switch to the **Okta User to Stacksync** tab
4. Find the **roles** attribute in the mapping list
5. Add the following expression:

   ```
   isMemberOfGroupName("Stacksync editors") ? {"editor"} : {"viewer"}
   ```
6. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-profile-editor-mappings-button.webp" alt="Okta Profile Editor Attributes list with the &#x22;Mappings&#x22; button highlighted." width="1015" height="288" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-user-to-stacksync-mappings.webp" alt="Okta Stacksync User Profile Mappings with the &#x22;Okta User to Stacksync&#x22; tab highlighted and user fields mapped to Stacksync attributes." width="1011" height="578" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-roles-mapping-expression.webp" alt="Okta mapping row with an isMemberOfGroupName(&#x22;Stacksync editors&#x22;) expression mapped to the Stacksync &#x22;roles&#x22; attribute." width="941" height="205" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## Part 4: Create Groups and Assign Users

### Step 4.1: Create Stacksync Groups

1. Navigate to **Directory** → **Groups**
2. Click **Add Group**
3. Create two groups:
   * **Stacksync Editors** — Users with editor permissions
   * **Stacksync Viewers** — Users with read-only permissions

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-groups-add-group.webp" alt="Okta Directory Groups page with the &#x22;Add group&#x22; button highlighted." width="1536" height="480" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.2: Add Users to Groups

1. Open each group you created
2. Click **Assign People**
3. Select the users who should have that access level
4. Click **Save**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-stacksync-editors-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1473" height="729" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Step 4.3: Assign Groups to the Application

1. Return to your Stacksync SCIM application
2. Navigate to the **Assignments** tab
3. Click **Assign** → **Assign to Groups**
4. Select **Stacksync Editors**
5. In the assignment dialog, set the **roles** field to `editor` by clicking the override text and choosing the radio button `editor`
6. Click **Save and Go Back**
7. Repeat for **Stacksync Viewers**, setting the **roles** field to `viewer`
8. Click **Done**

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-stacksync-app-assign-groups.webp" alt="Okta Stacksync application Assignments tab with the &#x22;Assign&#x22; dropdown and &#x22;Groups&#x22; filter highlighted." width="1390" height="837" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-group-assignment-roles-override.webp" alt="Okta group assignment form showing the roles expression with the &#x22;Override&#x22; link highlighted." width="623" height="410" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/home/okta-group-assignment-editor-role.webp" alt="Okta group assignment roles override with &#x22;Editor&#x22; checked instead of Viewer, and &#x22;Save and Go Back&#x22;." width="622" height="229" loading="lazy" decoding="async" />

  <figcaption />
</figure>

That's it! 🎉

## Troubleshooting

### Common Issues

### User not provisioned to Stacksync

* Verify the API key is correct in the Provisioning settings
* Check that the user is assigned to the Stacksync SCIM application
* Ensure the user has a valid role assigned (viewer or editor)

### Role not updating

* Verify the role mapping expression is correct
* Check that the user is in the correct Okta group (Stacksync Editors or Stacksync Viewers)
* Try removing and re-adding the user to the group

### SSO login fails

* Verify the Metadata URL is correct in Stacksync settings
* Check that the user's email domain matches the configured SSO domain
* Ensure the user is assigned to the Stacksync SSO application

### API credentials test fails

* Verify the Workspace ID is correct
* Regenerate the API key in Stacksync workspace settings
* Ensure you're using the correct workspace

### Support

For additional assistance, contact Stacksync support at [support@stacksync.com](mailto:support@stacksync.com)

# OKTA

> SSO and SCIM for OKTA

Source: https://docs.stacksync.com/two-way-sync/features/security/sso-and-scim/okta

<Callout type="info">
  The Stacksync OKTA app is currently under review by OKTA. Until the app is published on OKTA marketplace, here is a guide to synchronize your OKTA users automatically into Stacksync by creating the SCIM app yourself

  This setup takes \~10min
</Callout>

<Callout type="info">
  SSO is part of Stacksync Enterprise plan, you need to contact us at [sso@stacksync.com](mailto:sso@stacksync.com) to have set it up
</Callout>

Notes:

* This setup needs to be implemented by an OKTA **ADMIN**
* The SCIM integration is associated to a unique Stacksync workspace. If you have multiple workspaces (such as dev, stage and prod) you will need to set up an SCIM app for each of these Stacksync workspaces. Each workspace has independent RBAC enforcement.

## SSO (SAML) setup instructions

1. On your OKTA homepage go on the admin section

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-my-apps-admin-button.webp" alt="Okta My Apps homepage with the &#x22;Admin&#x22; button highlighted in the top bar." width="1600" height="169" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. In the Applications section, create an App integration of type SAML 2.0

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-create-app-integration.webp" alt="Okta Applications page with the &#x22;Create App Integration&#x22; button highlighted." width="856" height="592" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-new-app-integration-saml.webp" alt="Okta &#x22;Create a new app integration&#x22; dialog with sign-in method &#x22;SAML 2.0&#x22; selected and a Next button." width="1474" height="843" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
3. Give the App name to `Stacksync` and you can add the Stacksync app logo (download file below)

<FileDownload name="stacksync_logo.png" href="/https/docs.stacksync.com/images/home/stacksync-app-logo.webp" kind="image" size="21KB" />

4. Configure your SAML settings with:
   1. Single sign-on URL: `https://auth.stacksync.com/login/callback?connection=<sso_id_provided_by_stacksync_team_for_you>`
   2. Audience URI: `urn:auth0:stacksync:<sso_id_provided_by_stacksync_team_for_you>`
   3. Application username: `Email`
   4. Update application username on `Create and update`
   5. Attribute Statements:
      1. name=`emails`
      2. name format=`Basic`
      3. value=`user.email`<br />

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-saml-settings-email-attribute.webp" alt="Okta SAML Settings with Stacksync Single sign-on URL, Audience URI, Application username &#x22;Email&#x22; and attribute email = user.email." width="630" height="720" loading="lazy" decoding="async" />

           <figcaption />
         </figure>
   6. You can skip the `Feedback` section and click `Finish`
      1. Send us at `sso@stacksync.com` the following details:

         1. `Identity Provider Single Sign-On URL` at the top of the SAML setup instructions page.<br />

            <figure>
              <img src="/https/docs.stacksync.com/images/home/okta-view-saml-setup-instructions.webp" alt="Okta sso_connection_demo app Sign On tab with the &#x22;View SAML setup instructions&#x22; button highlighted." width="1558" height="912" loading="lazy" decoding="async" />

              <figcaption />
            </figure>

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-identity-provider-sso-url.webp" alt="Okta &#x22;How to Configure SAML 2.0&#x22; page with the Identity Provider Single Sign-On URL highlighted." width="1547" height="411" loading="lazy" decoding="async" />

           <figcaption />
         </figure>

         `2.SAML Signing Certificates` for `SHA2`

         <figure>
           <img src="/https/docs.stacksync.com/images/home/okta-saml-sha2-certificate-download.webp" alt="Okta SAML Signing Certificates with the SHA-2 Actions menu open, showing &#x22;View IdP metadata&#x22; and &#x22;Download certificate&#x22;." width="1508" height="824" loading="lazy" decoding="async" />

           <figcaption />
         </figure>

         1. Once we have received the above informations, we will activate SSO and you're all set! 🎉

## SCIM setup instructions

1. On the General page of the SAML app you just created, enable SCIM provisioning.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-app-settings-enable-scim.webp" alt="Okta sso_connection_demo General tab App Settings with Edit and the &#x22;SCIM&#x22; provisioning option highlighted." width="1600" height="702" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
2. Go to the Stacksync Workspace Settings page at `https://app.stacksync.com` to find the informations necessary for the next steps.
   1. Find your Stacksync `workspace_id` on top of the page.

      <figure>
        <img src="/https/docs.stacksync.com/images/home/stacksync-settings-workspace-id.webp" alt="Stacksync Settings Workspace Details with the &#x22;Workspace Id&#x22; field (2610) highlighted." width="1016" height="384" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
   2. Generate a `workspace_api_key` at the bottom of the same page. **Only the owner** of the Stacksync workspace can Stacksync workspace api keys.

      <figure>
        <img src="/https/docs.stacksync.com/images/home/stacksync-workspace-api-key-section.webp" alt="Stacksync Settings page with the &#x22;Stacksync Workspace API Key&#x22; section highlighted: Key Name field and &#x22;Generate new API key&#x22; button." width="1600" height="683" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
3. Go back to your SAML app on the Provisioning page. Fill in the following parameter:
   1. **Base URL:** `https://api.stacksync.com/v1/workspaces/<your_stacksync_workspace_id>/scim/v2/`
   2. **API Token:** `Bearer <your_stacksync_workspace_api_key>`<br />

      <figure>
        <img src="/https/docs.stacksync.com/images/home/okta-scim-connection-bearer-auth.webp" alt="Okta SCIM Connection: Stacksync base URL, unique identifier &#x22;email&#x22;, provisioning actions checked, HTTP Header Bearer authorization." width="1526" height="906" loading="lazy" decoding="async" />

        <figcaption />
      </figure>
4. Allow your SCIM app to create, update and deactivate users. Stacksync users never use passwords to connect to Stacksync therefore the `Sync Password` feature should be disabled.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-provisioning-to-app-sync-password.webp" alt="Okta Provisioning to App with Create Users, Update User Attributes and Deactivate Users enabled and Sync Password unchecked." width="1501" height="910" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
5. Go to the Profile Editor and add a new Attribute a new `roles`to the app. This is a standard SCIM attribute with the following fields:
   1. Data type: `string array`
   2. Display name: `roles`
   3. Variables name: `roles`
   4. External name: `roles`
   5. External namespace: `urn:ietf:params:scim:schemas:core:2.0:User`
   6. Description: `SCIM role attribute for Stacksync app`
   7. Enum: `true`
   8. Attribute member: `viewer` and `editor`
   9. Attribute required: `true`
   10. Attribute type: `Group`
   11. Group Priority: Use `Group Priority`<br />

       <figure>
         <img src="/https/docs.stacksync.com/images/home/okta-add-roles-attribute.webp" alt="Okta Add Attribute dialog for a &#x22;roles&#x22; string array with enum members Viewer/viewer and Editor/editor, Group type, Use Group Priority." width="1449" height="959" loading="lazy" decoding="async" />

         <figcaption />
       </figure>
6. Go to Directory/Groups, create 2 groups: `Stacksync Editors` and `Stacksync Viewers`. Each group will be assigned a different role in Stacksync (`editor` and `viewer`)<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-directory-groups-add-group.webp" alt="Okta Directory Groups page with the &#x22;Add group&#x22; button highlighted, used to create Stacksync Editors and Viewers groups." width="1577" height="493" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
7. Assign to the Stacksync Groups you just created the people you want to give access to Stacksync<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-stacksync-editors-assign-people.webp" alt="Okta &#x22;Stacksync Editors&#x22; group People tab with the &#x22;Assign people&#x22; button highlighted." width="1473" height="729" loading="lazy" decoding="async" />

     <figcaption />
   </figure>
8. Go back to your application and under `Assignments` assign these 2 groups to the application. Make sure you select the right role for each group. You can ignore the other fields, Stacksync is not reading them.<br />

   <figure>
     <img src="/https/docs.stacksync.com/images/home/okta-sso-app-assign-groups.webp" alt="Okta sso_connection_demo app Assignments tab with the &#x22;Assign&#x22; dropdown and &#x22;Groups&#x22; filter highlighted." width="1185" height="733" loading="lazy" decoding="async" />

     <figcaption />
   </figure>

That's it! 🎉

# Sync webhooks

> Get notified at your own URL when records fail to sync, an error forces a sync to stop or a full read finishes. Events, payloads, issue ids, bursts and retries.

Source: https://docs.stacksync.com/two-way-sync/features/sync-webhooks

A sync webhook makes Stacksync send an HTTP `POST` to your URL when something happens on a sync. Each webhook listens to one [notification type](#notification-types). To be told about syncing issues, use `real_time_issue_notification`.

Webhooks tell you that something happened and where. They are signals rather than a record of each issue, so read the issues themselves from the [List sync issues](/api-reference/syncs/issues/list_sync_issues) API.

<Callout type="warn">
  Keep these limits in mind when you build a receiver:

  * **Not one call per issue.** An issue notification covers a failed batch of records and carries no issue id.
  * **No retries.** Stacksync sends each notification once. If your endpoint fails, that notification is lost.
  * **No rate limit.** A large failure can send many calls at once, in no guaranteed order.

  To avoid missing an issue, treat the notification as a prompt to read the issues API, and also read that API on a schedule. See [Track every issue](#track-every-issue).
</Callout>

## Create a webhook

Webhooks are managed through the API: [create](/api-reference/syncs/webhooks/create_sync_webhook), [list](/api-reference/syncs/webhooks/list_sync_webhooks), [get](/api-reference/syncs/webhooks/get_sync_webhook), [update](/api-reference/syncs/webhooks/update_sync_webhook) and [delete](/api-reference/syncs/webhooks/delete_sync_webhook). These operations read and change a webhook's settings: its URL, notification type and API key. The events themselves are only ever sent to your URL, and no API lists past notifications.

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://hooks.example.com/stacksync",
    "notification_type": "real_time_issue_notification",
    "api_key": "a-secret-your-endpoint-checks"
  }'
```

The URL must use https on a public internet host and answer an `OPTIONS` request within 2 seconds. Stacksync only runs this check when the webhook is created or updated. A sync can hold one webhook per notification type and URL.

## Notification types

Choose a type with `notification_type` when you create the webhook. A webhook receives only its own type.

| `notification_type`                                             | What it tells you                      | Sync state                           | Extra fields                  |
| --------------------------------------------------------------- | -------------------------------------- | ------------------------------------ | ----------------------------- |
| [`real_time_issue_notification`](#real_time_issue_notification) | Records could not be written to an app | Keeps running                        | `app_id`, `internal_table_id` |
| [`base_activity`](#base_activity)                               | Stacksync stopped the sync             | Stopped until someone switches it on | None                          |
| [`backfill`](#backfill)                                         | A full read finished                   | Keeps running                        | None                          |

### `real_time_issue_notification`

Use this type to learn about syncing issues, the same ones shown in the [Issues dashboard](/two-way-sync/features/issues-dashboard).

**What it means:** Stacksync tried to insert, update or delete records in an app, and at least one could not be written, for example because of a validation rule or a datatype mismatch. Those records now have open issues and the sync keeps running.

**When it is sent:**

* Once for each batch with failures, for each table. See [Bursts](#bursts).
* Again when a record with an open issue fails again.

**When it is not sent:**

* Some issues are recorded without a notification, such as a record matched as a duplicate of one already synced, or an existing issue updated when the record is read again. Reading the issues API on a schedule picks these up.
* An issue is resolved. There is no notification for a retry that succeeds, a revert or an ignore.

**What to do:** the notification names the sync, app and table, but not the records or the error. Read them from the issues API, as described in [Track every issue](#track-every-issue).

```json
{
  "notification": {
    "created_time": "2026-11-05T14:02:11.482913",
    "notification_type": "real_time_issue_notification",
    "msg": "Some records had issues syncing on base: \"3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01\" for the app: \"b71d04e5\", to view the issue(s) go to the issues tab in your workspace",
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
    "app_id": "b71d04e5",
    "internal_table_id": "4d20ffb3"
  }
}
```

### `base_activity`

Use this type to learn that a sync has stopped. Despite its name, it does not report general activity on the sync.

**What it means:** Stacksync stopped the sync because it could not continue. No records sync until the cause is fixed and someone switches the sync on again.

**When it is sent:**

* An error Stacksync cannot recover from occurs.
* A temporary pause runs out of attempts to resume.
* The same error repeats too many times in a short period.
* The credentials of one of the sync's apps are found to be invalid. A single expired credential can send this more than once.

**When it is not sent:**

* A person switches or edits the sync.
* The sync fails to switch on.
* The sync is paused temporarily and resumes by itself.
* The schema of a connected app changes.

Rarely, a notification can follow a manual switch off, when a read in progress fails at that moment.

**What to do:** treat it as an alert. The payload does not name the app or the error, so show `msg` to a person or open the sync in Stacksync. `msg` is usually an HTML fragment, the same content as the alert email. For invalid credentials it is plain text.

```json
{
  "notification": {
    "created_time": "2026-11-05T14:02:11.482913",
    "notification_type": "base_activity",
    "msg": "<p>Hi there,</p><p>Your Sync <strong>CRM to Postgres</strong> in workspace <strong>Acme</strong> is forced to be paused because of the following error...</p>",
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
  }
}
```

### `backfill`

Use this type to learn that a sync has finished reading its existing records.

**What it means:** every full read of the sync has ended and the changes they found have been processed.

**When it is sent:** once, when all of these are true:

* The sync is running.
* Every full read process of the sync has ended.
* No changes from before the end of those reads are still waiting to be written.

Stacksync checks this periodically, so the notification can come some time after the read ends.

**When it is not sent:**

* A full read is still running on any table, or its changes are still being written.
* The sync is not running.

**What to do:** continue whatever was waiting for the initial data. The message says the process completed successfully, but that only means it ended: some records may still have failed. Check [List sync issues](/api-reference/syncs/issues/list_sync_issues) if you need every record to be in place.

```json
{
  "notification": {
    "created_time": "2026-11-05T14:02:11.482913",
    "notification_type": "backfill",
    "msg": "The back-fill process has been completed successfully for your base CRM to Postgres (id: 3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01).",
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
  }
}
```

## Payload

Every notification is a JSON object with a single `notification` key, sent with these headers:

```http
Content-Type: application/json
Authorization: Bearer <api_key>
```

`api_key` is the value you set on the webhook. Check it to confirm the call comes from Stacksync. Notifications are not signed, and the API returns this key when a webhook is read, so treat it as a secret.

| Field               | Type   | Present             | Meaning                                                                                         |
| ------------------- | ------ | ------------------- | ----------------------------------------------------------------------------------------------- |
| `created_time`      | string | Always              | When the notification was built, ISO 8601 without a UTC offset. It is not an ordering guarantee |
| `notification_type` | string | Always              | One of the [notification types](#notification-types)                                            |
| `msg`               | string | Always              | Text for people. Do not parse it: its wording can change                                        |
| `base_id`           | string | Always              | The sync                                                                                        |
| `app_id`            | string | Issue notifications | The app the records could not be written to. Matches `destination_app_id` on the issue          |
| `internal_table_id` | string | Issue notifications | The table pair. Use it as `table_id` when you list issues                                       |

The payload has no event id, no workspace id, no region and no count of the records affected. Keep the region of each sync on your side, because the issues API needs it.

## Issue ids

Notifications do not contain issue ids. `issue_id`, the failed record, the changed columns and the error message are all returned by [List sync issues](/api-reference/syncs/issues/list_sync_issues).

A record has at most one open issue per app and table. If it fails again, the same issue is overwritten: it gets a new `issue_id` and a new `last_modified_time` and `issue_message`, and keeps its `created_time`. So:

* `issue_id` identifies one failure. Use it to avoid processing the same failure twice, and to [resolve the issue](/api-reference/syncs/issues/resolve_sync_issues).
* To follow a record across repeated failures, use `base_id`, `destination_app_id`, `destination_table_id` and `source_record_id` or `destination_record_id`. A stored `issue_id` stops working once the record fails again.

## Delivery and failures

Stacksync sends each notification once and does not look at your response.

| What happens on your side                                              | Result                                                                                                               |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| Your endpoint answers with any status                                  | The response has no effect, and a `2xx` is not treated differently from an error                                     |
| It answers with an error, is unreachable or has an invalid certificate | The notification is lost. There is no retry and no replay                                                            |
| It is slow to answer                                                   | The sync does not wait for you, but answer quickly: a call still open when a Stacksync worker restarts is dropped    |
| It redirects                                                           | The redirect is followed, and a `301` or `302` usually turns the `POST` into a `GET` with no body. Use the final URL |
| It fails repeatedly                                                    | The webhook stays active, and you are not alerted that deliveries are failing                                        |

Failed deliveries never affect your data. The sync keeps running, and the issues stay in the [Issues dashboard](/two-way-sync/features/issues-dashboard) and the API until they are resolved. Delivery is best effort: a rare notification can also be lost on the Stacksync side, for example during a deployment.

## Bursts

* **One call per failed batch.** Stacksync writes records in batches, and each batch with failures sends one call for its table. The number of calls depends on the batching rather than on the number of records, so 10,000 failed records send neither 10,000 calls nor a single one.
* **No rate limit or grouping.** Calls are not throttled or merged, and you cannot configure a limit. The limit of one alert email per sync every 6 hours applies to email only.
* **Concurrent and unordered.** Batches run in parallel and each call is sent independently, so calls can overlap and arrive out of order.
* **Repeats.** Records that keep failing send new notifications, each looking the same apart from `created_time`.
* **Possibly early.** The notification can arrive just before its issues can be read. Wait a few seconds before reading them.

If your endpoint receives more than it can handle, the calls it drops are not sent again, so keep the endpoint light.

## Track every issue

To act on each issue reliably, including during bursts and outages:

1. **Answer immediately.** Check the `Authorization` header, put `base_id` and `internal_table_id` on a queue, and answer `200` before doing any other work.
2. **Group the calls.** Wait a few seconds and keep one pending read per `base_id` and `internal_table_id`, which turns a burst into a single read.
3. **Read the issues.** Call the API below and follow `pagination.next_page` until it is absent. Results are ordered by most recently modified first, so you can stop at issues older than your last read. Filter on `destination_app_id` if you only want one app.
4. **Skip what you have seen.** Store each `issue_id` you have processed, because every new failure has a new one.
5. **Read on a schedule too.** Run the same read every few minutes for each sync, without `table_id`. This picks up anything a lost notification missed.

```bash
curl "https://api.stacksync.com/v1/workspaces/{workspace_id}/issues?region=besg&base_id={base_id}&table_id={internal_table_id}&page_size=1000" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

Each issue in the answer holds `issue_id`, the action tried, the error message, the changed columns and the record ids. [Pagination](/api-reference/syncs/issues/list_sync_issues) and every field are described on the operation's page.

# Two-way sync

> Stacksync lets you sync your apps in real time and two-way! Really! 🥳✨

Source: https://docs.stacksync.com/two-way-sync/features/two-way-sync

Stacksync offers true bidirectional sync. Once set up, you can update data in either connected app and it will sync to the other in real time.

Enabling two-way sync for a new Stacksync base is a straightforward process. Just switch the direction arrows to the two-way mode:

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/edit-sync-link-tables-sync-direction.webp" alt="Edit Sync Link Tables step for Salesforce and Postgres, with direction arrows set to two-way for Account and Customer and one-way for projects." width="1600" height="835" loading="lazy" decoding="async" />

  <figcaption><p>Toggle table sync to two-way sync</p></figcaption>
</figure>

## Choosing which tables and fields to sync

You can choose which tables and which fields you want to sync. You can choose to sync all the data available in your App (e.g. CRM, ERP, Database,...) if needed, or you can select a subset of data if you only need that for your business use case. By default, Stacksync syncs the most popular tables and fields automatically so you can complete a basic sync setup in a few minutes. You can customize the sync configuration to fit your needs right from the beginning, or [update the sync configuration](/two-way-sync/features/update-sync-configuration) anytime as your business use case and data evolve later on.

## Read-only fields

Some tables contain fields that can only be read, but not written to. We call these **managed fields** which are **read-only.**

If you choose two-way sync, the read-only fields will only sync in one direction while the **other fields will still sync two-way**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/map-fields-read-only-field.webp" alt="Map Fields step for Salesforce Account to Postgres max_account, with the BillingAddress field marked &#x22;Read Only&#x22; highlighted." width="1600" height="835" loading="lazy" decoding="async" />

  <figcaption><p>Example of a read-only field in a base setup.</p></figcaption>
</figure>

Some examples of read-only fields can be:

* the record `id` managed by your CRM
* `last_modified_time` managed by your CRM
* formula or computed fields managed by a certain platform
* read-only columns defined for a certain database user

## Limitations

<Callout type="error">
  **Two-way sync is not compatible with Database view sync**\
  If you are using a database view sync, you can only sync one way from your database to your other app. This is because it is not possible to write data to a view.
</Callout>

<Callout type="error">
  **Stacksync does not "merge" duplicate records when you first turn on two-way sync**

  When initially activating two-way sync, duplicate data is not automatically merged. For a smoother experience, we recommend starting with one of your Apps to be empty (e.g. start with an empty database when syncing Postgres and Salesforce, or vice versa). Once the synchronization is started, subsequent updates will seamlessly sync in both directions. Please refer to the details below for further information:
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/two-way-sync-duplicates-without-dedup.webp" alt="Diagram: a Mark Spencer record in Salesforce and PostgreSQL becomes duplicated in both after activating two-way sync without deduplication." width="1600" height="1120" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Manual Sync Configuration Update

> As your business evolves, your data evolves too. Stacksync lets you update your sync configuration (change table and column names, add/remove columns in sync, change datatypes).

Source: https://docs.stacksync.com/two-way-sync/features/update-sync-configuration

You can add/update/remove tables and fields to your existing syncs from the Stacksync dashboard. Here is a [quick video on how to update sync config for HubSpot](/two-way-sync/guides/add-a-new-custom-field-to-an-existing-sync).

<details>
  <summary>
    Adding a new column in an existing sync: Explaining automatic data backfill for existing records.
  </summary>

  The sync configuration update is a smart feature. For example, when you add a new column, all the data of that new column will backfill for the already synced records (historical data backfill), and keep syncing incrementally for any new update in real-time.

    <img alt="Sketch of an already syncing table with a new field added, backfilled for existing records and synced for newly created records." src="__img0" />
</details>

Updating a sync can be done in simple steps. Here is how:

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/update-sync-configuration-banner.webp" alt="Stacksync &#x22;Update Sync Configuration&#x22; banner." width="1200" height="630" loading="lazy" decoding="async" />

  <figcaption><p>Update your Sync configuration GIF Guide</p></figcaption>
</figure>

## Step 1: Pause your sync

If your data keeps syncing while you modify your schema, table or column names/types in one of your synced apps, this could impact data in your other app in sync. This is why pausing the sync ensures maximum comfort for your sensible manipulations.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-list-sync-toggle-on.webp" alt="Stacksync Syncs list with the toggle for &#x22;The Sync Legacy&#x22; highlighted and switched on to &#x22;Syncing&#x22; while other syncs are &#x22;Paused&#x22;" width="1465" height="762" loading="lazy" decoding="async" />

  <figcaption><p>Pause your Sync (Switch OFF)</p></figcaption>
</figure>

## Step 2: Modify your schema, table or column names/types in your external apps

Now you can do any modification you would like, feel free!

<Callout type="success">
  All modifications are allowed, no limits!
</Callout>

## Step 3: Update your sync configuration

In your dashboard, open the sync details of the sync impacted by your changes.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-list-open-sync-legacy.webp" alt="Syncs list with the Salesforce-Postgres &#x22;The Sync Legacy&#x22; sync highlighted while syncing." width="1465" height="762" loading="lazy" decoding="async" />

  <figcaption><p>Open Sync details</p></figcaption>
</figure>

Click "Edit Sync" and follow the guided steps.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-details-edit-sync-button.webp" alt="Sync details showing authorized Salesforce and Postgres connected apps and Tables in Sync, with the &#x22;Edit sync&#x22; button highlighted." width="1456" height="759" loading="lazy" decoding="async" />

  <figcaption><p>Start Editing Sync</p></figcaption>
</figure>

This process is very similar to the [sync creation process](/two-way-sync/start-here/quick-start) (reauthorize apps if necessary, map tables and fields) but with additional features that enable you to keep going from where you left off! 🪄

## Step 4: Confirm your changes

<Callout type="error">
  Modifications to sync configuration are not reversible. Double-check your new configuration before validating!
</Callout>

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/edit-sync-map-fields-save-changes.webp" alt="Edit Sync Map Fields step for Salesforce Account and Postgres max_account, with the &#x22;Save changes&#x22; button highlighted." width="1455" height="754" loading="lazy" decoding="async" />

  <figcaption><p>Save your Sync edits</p></figcaption>
</figure>

## Step 5: Turn sync on!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-list-sync-toggle-on.webp" alt="Stacksync Syncs list with the toggle for &#x22;The Sync Legacy&#x22; highlighted and switched on to &#x22;Syncing&#x22; while other syncs are &#x22;Paused&#x22;" width="1465" height="762" loading="lazy" decoding="async" />

  <figcaption><p>Turn sync on and data starts syncing between your apps!</p></figcaption>
</figure>

That's it! 🎉 Data will start syncing between your tools.

# Add a New Custom Field to an Existing Sync

> As your business evolves, your data evolves too. This guide shows you how to add a new custom field to an existing sync between your CRM and database.

Source: https://docs.stacksync.com/two-way-sync/guides/add-a-new-custom-field-to-an-existing-sync

<YouTube id="BuGp2agb4Ww" title="Add a custom field in HubSpot CRM and send data to it directly from your database." />

# Database as a Write Proxy to another system

Source: https://docs.stacksync.com/two-way-sync/guides/database-as-a-write-proxy-to-another-system

For example, Stacksync allows PostgreSQL to act as a write proxy for systems like Salesforce, enabling teams to batch large volumes of changes, significantly reduce API calls, stay within rate limits, and minimize load on Salesforce.

Stacksync supports upsert-based syncs between a source application and a destination application using a custom-managed unique identifier, rather than the source or destination’s native primary key (for example, a Salesforce ID). Concretely, this means each write operation will create a new record or update an existing one in the destination based on that custom identifier, regardless of the destination’s internal primary key.

This allows the source system to act as a **write proxy** for the destination while preserving record uniqueness based on the custom identifier.

## Setup

1. **Prepare fields in the destination app**\
   Ensure that the customer-managed unique identifier, as well as every field you plan to populate from the source app, exists and is properly configured in the destination app (type, format, and uniqueness where applicable).
2. **Create the sync in StackSync**
   * Open the StackSync app and create a new sync.
   * Select the source app and table you want to sync from.
   * Select the destination app and object you want to sync to.
3. **Select columns to sync**\
   In the list of columns to sync, include only:
   * The customer-managed unique identifier.
   * The fields you want to populate in the destination app from the source app.
4. **Configure sync direction**\
   Set the sync direction to two-way sync so the customer-managed unique identifier is available in the source app and in Postgres. You are responsible for performing upserts in the source app using this identifier, and StackSync is responsible for propagating the updated fields from the source (via Postgres) into the destination app.

# Configure Event Triggers

> Trigger a custom workflow in Zapier, Make or any HTTP REST endpoint of your choice (e.g. Slack and AWS Lambda functions!) or execute a database query when your data gets updated.

Source: https://docs.stacksync.com/two-way-sync/guides/event-triggers

Stacksync lets you trigger custom workflows in real time when your data is created, updated, or deleted. When a data event happens and matches your custom filters, an HTTP request (or Database query) is sent to the endpoint of your choice.

* The triggered HTTP endpoint can be anything from an AWS Lambda function, a Zapier or Make workflow, or any other API endpoint.
* The triggered database query can target systems such as Postgres, Snowflake, BigQuery, DynamoDB, MongoDB, and more.

This guide illustrates how to create a trigger within a sync.

## Create a trigger

### 1. First, go to your Stacksync dashboard

[**https://app.stacksync.com**](https://app.stacksync.com)

### 2. Open a sync

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-list-open-sync-for-trigger.webp" alt="Syncs list with the paused Salesforce-Postgres &#x22;The Sync Legacy&#x22; sync highlighted to open it." width="1458" height="752" loading="lazy" decoding="async" />

  <figcaption><p>Open a sync</p></figcaption>
</figure>

### 3. Click "Create trigger"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-triggers-create-trigger-button.webp" alt="Sync detail Triggers section with the &#x22;Create trigger&#x22; button highlighted above an empty Create New Trigger form." width="1455" height="759" loading="lazy" decoding="async" />

  <figcaption><p>Click "Create trigger" button</p></figcaption>
</figure>

### 4. Configure your trigger

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-conditions-form.webp" alt="Trigger form for Updated records on Account/max_account, with BillingCity equals &#x22;San Francisco&#x22; AND OwnerId equals 83 conditions." width="1463" height="761" loading="lazy" decoding="async" />

  <figcaption><p>Example of trigger configuration</p></figcaption>
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-webhook-column-source.webp" alt="Trigger Webhook (HTTP Call) action with a cURL POST template and Column Name Source set to Salesforce." width="1117" height="534" loading="lazy" decoding="async" />

  <figcaption><p>Example configuration of Webhook in a trigger</p></figcaption>
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-database-query-mysql.webp" alt="Trigger Database Query action with a SELECT using <<record>>.id, run against the &#x22;MySQL demo&#x22; database." width="1122" height="641" loading="lazy" decoding="async" />

  <figcaption><p>Example configuration of DB query in a trigger</p></figcaption>
</figure>

Below is an explanation of every configuration parameter:

<details>
  <summary>
    From app... [app_1, app_2]
  </summary>

  This let's you choose which app should be watched for actions. For instance, if your sync is between Salesforce and Postgres and you create a trigger to be fired when a record is created **from app \[Salesforce],** this means that the trigger will only fire up when a record is created in Salesforce but not when a record is created in Postgres.
</details>

<details>
  <summary>
    Conditional filter based on record values
  </summary>

  You filter can contain zero (no conditions) or many conditions. The no-code editor lets you create any sort of custom logics in a "drag and drop" fashion.

  Need any help or have a feedback? Drop your question at [hello@stacksync.com](mailto:hello@stacksync.com).
</details>

<details>
  <summary>
    CURL to be executed
  </summary>

  This field is a full CURL as you know it from the open source project [https://curl.se/](https://curl.se/)

  You can include any authentication, parameters, turn the POST into a GET request or anything else. The CURL will just get executed **as is**, we will not run any checks on your behalf. If the API call fails or timeouts, the failure will not stop the execution of other triggers as every trigger will be fired up independently.

  We recommend to keep the CURL as a POST request.

  The **payload** is also fully customizable. For example, add some additional custom parameters in the JSON body as follows:

  ```http
  curl --request POST \
  --url https://{YOUR_URL_HERE} \
  --header 'Content-Type: application/json' \
  --data '{ "record": "<<record>>", "my param": "my value", "my number": 1234 }'
  ```

  If you need a utility to setup and test your requests and payloads, feel free to use the sandbox in our free and secure webhook utility [**my.hookforce.app**](https://my.hookforce.app/)**.**
</details>

<Callout type="info">
  If you need a free and secure sandbox to test your HTTP webhooks, check out Stacksync's free sandbox at [**my.hookforce.app**.](https://my.hookforce.app/)

  <img src="/https/docs.stacksync.com/images/two-way-sync/hookforce-no-code-trigger-homepage.webp" alt="Hookforce homepage, &#x22;The no-code trigger editor you'll love using&#x22;, with a preview of the webhooks dashboard." width="1600" height="1036" loading="lazy" decoding="async" />
</Callout>

<details>
  <summary>
    Select Column Name Source for the JSON payload
  </summary>

  When you sync data between your apps, apps will not always have the same schema and therefore column names. For instance, your column `first_name` in your CRM could be `user_first_name` in your database. Stacksync lets you choose which field names should be used for the data included in the JSON payload.

    <img alt="&#x22;Select Column Name Source&#x22; dropdown in a Stacksync trigger, choosing &#x22;salesforce&#x22; or &#x22;postgres_heroku&#x22; for the record JSON column names" src="__img0" />

  In this example, selecting "Salesforce" will use field names from your Salesforce app.
</details>

<details>
  <summary>
    Do not fire up trigger when all the changes belong to a given list of fields
  </summary>

  Some Systems such as HubSpot do have frequently changing system fields that might fire trigger execution when you do not want it.

    <img alt="Trigger &#x22;Advanced Options&#x22; with &#x22;List of columns to ignore&#x22; set to LastModifiedDate for Postgres and Salesforce" src="__img1" />

  You can choose a *list of fields to ignore*. This means that if the **all the fields that changed in a record** belong to fields in this list, then the **trigger will NOT fire**.

  For instance, let's assume you decide to ignore changes in columns `lastModifiedTime` and `PhoneNumber` (i.e. these fields are included in the *list of fields to ignore*).

  * If only the column `lastModifiedTime` was updated, the trigger will NOT fire.
  * If the columns `lastModifiedTime` and `PhoneNumber` were updated, the trigger will NOT fire.
  * If the columns `lastModifiedTime` and `Address` were updated, the trigger WILL fire since a field that does not belong to the *list of fields to ignore* was updated.

  <mark>
    Good to know 💡:
  </mark>

  * Fields included in the *list of fields to ignore* can still be used in all of your filters and conditions.
  * The execution of a trigger remains subject to match all of the filters and conditions (if any) that you have defined for that trigger. So when at least one field not in the *list of fields to ignore* is updated, the data will still be evaluated against your filters and conditions as usual.
</details>

### 5. Click "Create trigger"

Once your configuration is done, click "Create trigger" to start sending data to your HTTP endpoint.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-create-trigger-button.webp" alt="Trigger configuration form with Salesforce as column name source and the &#x22;CREATE TRIGGER&#x22; button highlighted" width="1030" height="417" loading="lazy" decoding="async" />

  <figcaption><p>Click "Create trigger"</p></figcaption>
</figure>

<Callout type="info">
  Created, Updated, or Deleted triggers can take up to a minute to propagate and start responding.
</Callout>

That's it! 🎉 You created a trigger!

## Pause a trigger

Pausing a trigger will stop its execution until you resume the trigger.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-pause-button.webp" alt="Triggers list showing &#x22;My Trigger&#x22; with the &#x22;PAUSE&#x22; button highlighted next to View and Edit" width="1077" height="207" loading="lazy" decoding="async" />

  <figcaption><p>Pause a trigger</p></figcaption>
</figure>

## Edit a trigger

Editing a trigger is easy, it follows the same procedure as creating one, but you first need to select the trigger you want to edit.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-edit-button.webp" alt="Triggers list showing &#x22;My Trigger&#x22; with the &#x22;EDIT&#x22; button highlighted next to View and Pause" width="1077" height="207" loading="lazy" decoding="async" />

  <figcaption><p>Edit a trigger</p></figcaption>
</figure>

You can then follow our [Create a trigger](#create-a-trigger) guide to edit your trigger.

## Remove a trigger

Simply click on the bin icon to remove a trigger.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/event-trigger-delete-bin-icon.webp" alt="Triggers list showing &#x22;My Trigger&#x22; with the red bin icon highlighted to remove the trigger" width="1077" height="207" loading="lazy" decoding="async" />

  <figcaption><p>Click the bin icon to remove a trigger.</p></figcaption>
</figure>

That’s it for triggers! Stacksync’s simple no-code editor lets you greatly simplify your backend and create as many triggers as you want. No limits!

Learn more by visiting our full trigger documentation at [Event triggers](/two-way-sync/features/event-triggers)

# Modify Salesforce Data in Postgres

> A 5-minute tutorial on how to set up a two-way sync between Salesforce and Postgres with no code! 🚀

Source: https://docs.stacksync.com/two-way-sync/guides/modify-salesforce-data-in-postgres

<YouTube id="CWd3-UYL7ds" title="Stacksync Demo: Two-way sync between Salesforce and Postgres in real time, no code required! 🤯" />

# Create a Postgres Database with Supabase (free forever)

> Create your free Postgres database in 4 minutes with Supabase 😍

Source: https://docs.stacksync.com/two-way-sync/guides/two-way-sync-salesforce-and-postgres/create-a-postgres-database-with-supabase-free-forever

Supabase is an open-source backend-as-a-service that provides developers with a database built on top of PostgreSQL. This guide shows you how to create your database for free in the Supabase cloud.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-postgres-database-supabase-cover.webp" alt="Stacksync guide cover &#x22;Create a Postgres Database with Supabase&#x22; with Postgres and Supabase logos" width="1200" height="630" loading="lazy" decoding="async" />

  <figcaption><p>Create a Postgres Database with Supabase Cloud in 4 minutes!</p></figcaption>
</figure>

Let's first go to [**supabase.com**](https://supabase.com/)

### 1. Click "Start your project"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-homepage-start-your-project.webp" alt="Supabase homepage with the &#x22;Start your project&#x22; button highlighted in the top navigation" width="1446" height="565" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Click "Sign Up Now" to create a new account or "Sign in" to log in to an existing account

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-sign-in-sign-up-now.webp" alt="Supabase &#x22;Welcome back&#x22; sign-in page with the &#x22;Sign Up Now&#x22; link highlighted" width="1438" height="736" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Switch to [app.supabase.com](https://app.supabase.com/projects)

### 4. Click "New project" and select your organization (typically the default one)

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-projects-new-project-button.webp" alt="Supabase Projects dashboard with the &#x22;New project&#x22; button highlighted" width="1464" height="636" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Fill in "Project name"

This can be any name such as "Stacksync pilot project"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-new-project-name-field.webp" alt="Supabase &#x22;Create a new project&#x22; form with the &#x22;Project name&#x22; field highlighted" width="1459" height="731" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Click "Copy the suggested strong password"

☝ Before creating a new project, it is crucial to COPY the database password, as it will not be accessible again. The only way to retrieve your database password later is by regenerating it, which will invalidate previous passwords (potentially breaking existing database connections).

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-database-password-copy.webp" alt="Supabase &#x22;Create a new project&#x22; form with the &#x22;Copy&#x22; button for the generated database password highlighted" width="1459" height="731" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 7. Click "Create new project"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-create-new-project-button.webp" alt="Supabase &#x22;Create a new project&#x22; form, region East US (Ohio), with the &#x22;Create new project&#x22; button highlighted" width="1459" height="731" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 8. Click on "Connect"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-project-dashboard-connect.webp" alt="Supabase project dashboard with the &#x22;Connect&#x22; button highlighted in the top bar" width="1459" height="719" loading="lazy" decoding="async" />

  <figcaption />
</figure>

You just created your first database project in Supabase! 🎉

Now let's get the <mark>**Database Connection URL**</mark> which is the fastest way to connect your Supabase instance to Stacksync.

### 9. Click "URI" and copy the connection URL

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/supabase-connection-string-uri-copy.webp" alt="Supabase &#x22;Connect to your project&#x22; dialog, Type &#x22;URI&#x22;, with the copy button for the direct postgresql:// connection string highlighted" width="1432" height="747" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## That's it! 🥳

Now that you have created your Postgres Database with Supabase, you can connect it to your existing Salesforce CRM (if you don't have a Salesforce CRM instance yet, check out this guide to [create a new Salesforce CRM developer instance, free forever!](https://docs.stacksync.cloud/guides/two-way-sync-salesforce-and-postgres/create-a-salesforce-developer-instance-free-forever)

# Create a Sync between Supabase Postgres and Salesforce

> You are 5 minutes away from your real-time and two-way sync between Salesforce and Postgres. This guide walks you through the 3 simple steps to get up and running!

Source: https://docs.stacksync.com/two-way-sync/guides/two-way-sync-salesforce-and-postgres/create-a-sync-between-supabase-postgres-and-salesforce

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-sync-postgres-salesforce-cover.webp" alt="Stacksync guide cover &#x22;Create a Sync between Postgres and Salesforce&#x22; with Postgres and Salesforce logos" width="1200" height="630" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### Go to [www.stacksync.com](https://app.stacksync.com)

### 1. Sign in or create your account

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stacksync-login-sign-up.webp" alt="Stacksync &#x22;Welcome&#x22; login form with email, &#x22;Continue&#x22;, &#x22;Sign up&#x22; link and Google or GitHub sign-in" width="1442" height="718" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Click "Create a New Sync"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stacksync-syncs-create-new-sync.webp" alt="Stacksync Syncs page listing existing syncs with the &#x22;CREATE NEW SYNC&#x22; button highlighted" width="1458" height="752" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 3. Select "Postgres" to connect this app

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-sync-select-postgres-app.webp" alt="Stacksync &#x22;Connected Apps&#x22; grid with the Postgres tile highlighted for selection" width="1458" height="761" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Paste your database 'Connection String' or manually fill in the connection credentials

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/postgres-connection-string-field.webp" alt="Stacksync Postgres connection dialog with the &#x22;Connection String&#x22; field highlighted above the host, port and user fields" width="1456" height="759" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click "Authorize App"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/postgres-supabase-authorize-app.webp" alt="Stacksync Postgres dialog filled with Supabase host, port 5432 and user postgres, with &#x22;AUTHORIZE APP&#x22; highlighted" width="1452" height="756" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Click on the Salesforce icon to connect this app

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-sync-select-salesforce-app.webp" alt="Stacksync &#x22;Connected Apps&#x22; grid with the Salesforce tile highlighted for selection" width="1457" height="762" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 7. Fill in your credentials and click "Log In"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-login-credentials.webp" alt="Salesforce login page with Username and Password fields and the &#x22;Log In to Sandbox&#x22; button highlighted" width="1457" height="757" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 8. Click " Allow "

### 9. Click "Link Tables"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-sync-link-tables-button.webp" alt="Stacksync Connect Apps step with Postgres and Salesforce both &#x22;AUTHORIZED&#x22; and the &#x22;LINK TABLES&#x22; button highlighted" width="1462" height="762" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 10. Click "Create New Table (Recommended)" or map existing tables as you prefer

Stacksync lets you map existing tables if both apps you want to connect already contain tables with the data you want to keep in sync (there’s no need for either to be empty). Alternatively, Stacksync can automatically create new tables for you if only one of your apps contains a table or schema with the data you want to sync.

In most cases, people will let Stacksync create tables as the new schemas created will always be pixel-perfect 😉.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/link-tables-create-new-table.webp" alt="Stacksync Link Tables step with the Postgres &#x22;Select Table&#x22; dropdown set to &#x22;Create New Table&#x22; highlighted" width="1460" height="751" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 11. Click "Map Fields"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/link-tables-map-fields-button.webp" alt="Link Tables step pairing Postgres customers with Salesforce Customer, with the &#x22;MAP FIELDS&#x22; button highlighted" width="1446" height="752" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 12. Click "Show More Columns" to review all the fields to be synced or select/unselect them

Now that you've mapped the tables, let's do the same for each of the fields you want to sync.

Stacksync will cleverly auto-map your columns. Some columns might need to be mapped manually if their names or meanings can’t be matched automatically.

Feel free to map, select, and unselect columns as you like.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/map-fields-show-columns.webp" alt="Stacksync Map Fields step for customers to Customer with the &#x22;SHOW COLUMNS&#x22; toggle highlighted" width="1458" height="756" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 13. Click "Create Base"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/map-fields-create-base-button.webp" alt="Stacksync Map Fields step for customers to Customer with the &#x22;CREATE BASE&#x22; button highlighted" width="1458" height="756" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 14. Switch on the sync

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-toggle-paused.webp" alt="Stacksync Syncs list with &#x22;Brilliant Sync&#x22; (Postgres and Salesforce) and its &#x22;Paused&#x22; toggle highlighted" width="1464" height="224" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 15. Your data is syncing!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/sync-toggle-syncing.webp" alt="Stacksync Syncs list with &#x22;Brilliant Sync&#x22; toggle switched on and showing &#x22;Syncing&#x22;" width="1461" height="214" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<Callout type="info">
  After turning the sync on, you can check the Issues page to view any sync errors from your connected apps. This can help you troubleshoot why some data isn’t appearing in one of your apps.
</Callout>

## Yay! Your data is syncing! 🥳

# Two-Way Sync Salesforce and Postgres

Source: https://docs.stacksync.com/two-way-sync/guides/two-way-sync-salesforce-and-postgres

This guide gets you from zero to hero in minutes and addresses anyone willing to try out the magic of Stacksync, even without a database or Salesforce instance. This tutorial walks you through all the steps to get your Postgres Database for free and your Salesforce developer instance (free forever too!). If you already have any of the above, feel free to skip the step to the next one ;)

Once you've created your Stacksync account at [www.stacksync.com](https://www.stacksync.com), you're ready to go!

Here are three steps, each taking about four minutes:

1. [Create a PostgreSQL database with Supabase (free forever)](/two-way-sync/guides/two-way-sync-salesforce-and-postgres/create-a-postgres-database-with-supabase-free-forever)
2. [Create a Salesforce Developer Instance (free forever)](/two-way-sync/guides/two-way-sync-salesforce-and-postgres/salesforce-developer-instance-free-forever-create-yours-in-4-minutes-2025)
3. [Set up a sync between your Salesforce and Postgres services with Stacksync](/two-way-sync/guides/two-way-sync-salesforce-and-postgres/create-a-sync-between-supabase-postgres-and-salesforce)

# Salesforce Developer Instance Free Forever – Create Yours in 4 Minutes (2025)

> Set up your Salesforce Developer instance free forever in 2025. Follow this 4-minute guide and start testing your CRM integrations instantly with Stacksync.

Source: https://docs.stacksync.com/two-way-sync/guides/two-way-sync-salesforce-and-postgres/salesforce-developer-instance-free-forever-create-yours-in-4-minutes-2025

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-developer-instance-cover.webp" alt="Stacksync guide cover &#x22;Create a Salesforce Developer Instance&#x22; with the Salesforce logo" width="1200" height="630" loading="lazy" decoding="async" />

  <figcaption><p>Create a Salesforce Developer Instance in 4 minutes!</p></figcaption>
</figure>

## How to Create a Salesforce Developer Instance (Free Forever in 2025)

Want to build and test on Salesforce without paying a cent? In this 2025 guide, you’ll learn **how to create a Salesforce Developer instance (free forever)** in just 4 minutes. It’s perfect for developers who want to explore Salesforce apps, APIs, or connect their CRM with tools like **Stacksync** for real-time sync.

## 🧭 Steps to Create Your Salesforce Developer Instance

### 1. Visit the official Salesforce signup page:

👉 [https://developer.salesforce.com/signup](https://developer.salesforce.com/signup)

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-developer-edition-signup-form.webp" alt="Salesforce Developer Edition sign-up form with an arrow pointing to the First Name field" width="1536" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 2. Fill in your details and click “Sign Up.”

* Use your work email for smoother integration later.
* **Remember** your username, you’ll need it to log in.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-developer-signup-button.webp" alt="Completed Salesforce Developer Edition sign-up form with the &#x22;Sign me Up&#x22; button highlighted" width="1536" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

👉 Make sure to remember the username you chose so you can log in later.

### 3. Verify your email.

<Callout type="info">
  You will receive an email in your mailbox to validate your email and account creation. The email might take a minute to arrive, perfect time to clean up your desk for 50 seconds!
</Callout>

### 3. Access your instance

Switch to *<mark>yourcompany-dev-ed.develop.my.salesforce.com</mark>* (the link has been sent to you via email for validation).

This link leads to your developer instance. Make sure to remember or bookmark it so you can return to it anytime!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-change-your-password-page.webp" alt="Salesforce &#x22;Change Your Password&#x22; page for a new developer instance user with password and security question fields" width="1536" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 4. Create your password

You now have to create your secure password to connect to your Salesforce instance.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-new-password-fields.webp" alt="Salesforce &#x22;Change Your Password&#x22; form highlighted, with New Password, Confirm New Password and security question fields" width="1536" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 5. Click "Change Password"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-change-password-button.webp" alt="Filled Salesforce password form with all requirements met and the &#x22;Change Password&#x22; button highlighted" width="1536" height="816" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 6. Switch to *<mark>yourcompany-dev-ed.develop.lightning.force.com</mark>* (you should be automatically redirected)

You are now in your Salesforce instance! 🎉

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-setup-home.webp" alt="Salesforce Setup Home page of the new developer instance, with the setup menu and feature cards" width="1536" height="794" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Once inside, explore Salesforce’s core objects: **Accounts, Leads, and Opportunities.**\
These are your main data tables.\
To view them:

* Click the **App Launcher (grid icon)**.
* Type **“Accounts”** and select it.
* Switch to **All Accounts** view to see your sample data.

<Callout type="info">
  💡 Tip: This sandbox mirrors a real Salesforce org, ideal for testing custom fields, workflows, and integrations before production.
</Callout>

### 7. Click on the App Launcher MENU

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-app-launcher-menu.webp" alt="Salesforce Setup Home with an arrow pointing to the &#x22;App Launcher&#x22; grid icon in the top-left corner" width="1536" height="794" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 8. \[1] Search "Accounts" and \[2] Click on "Accounts" in results

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-app-launcher-search-accounts.webp" alt="Salesforce App Launcher search with &#x22;acc&#x22; typed and the &#x22;Accounts&#x22; result highlighted" width="1536" height="794" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 9. Click "Recently Viewed"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-accounts-recently-viewed.webp" alt="Salesforce Accounts list view with the &#x22;Recently Viewed&#x22; list selector highlighted" width="1536" height="791" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 10. Click "All Accounts" to view all your data

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-accounts-all-accounts-view.webp" alt="Salesforce Accounts list view dropdown open with &#x22;All Accounts&#x22; highlighted" width="1536" height="793" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### 11. You are now in your "All Accounts" view!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/salesforce-all-accounts-list.webp" alt="Salesforce &#x22;All Accounts&#x22; view listing 13 sample accounts with billing state, phone, type and owner" width="1536" height="790" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## That's it! 🥳 - Next Step: Connect Your Salesforce Instance to a Database

Now that your developer instance is live, you can **sync Salesforce data in real time** with your database using **Stacksync**.\
Stacksync enables **bi-directional, sub-second sync** between Salesforce and Postgres, MySQL, or any database, no code required.

👉 [follow this short and sweet guide](/two-way-sync/guides/two-way-sync-salesforce-and-postgres/create-a-sync-between-supabase-postgres-and-salesforce)!

# What is Stacksync?

> Stacksync helps you deliver CRM integrations in minutes, not projects!

Source: https://docs.stacksync.com/two-way-sync

## Glad to see you here! 👋

[Stacksync](https://www.stacksync.com/) is a no-code tool that makes it easy to sync data between your Enterprise systems and Databases with real-time and two-way sync!

<YouTube id="lG7O_FYsM5w" title="Stacksync Demo in 2 minutes!" />

CRMs integrations are complex, costly and hard to maintain. Stacksync reduces implementation delays from months to minutes, costs by x10 factor and removes all the complexity behind enterprise system integration or CRM feature development.

Stacksync is a real-time and bidirectional data synchronization tool between CRMs (e.g., Salesforce, Hubspot or SAP) and databases (e.g., Postgres or Google BigQuery). Edits made to data in your CRM will instantly update in your Database, and vice versa.

To set up a sync, users simply have to connect the two chosen apps in one click and select the tables they want to sync, that’s it!

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-website-desktop-mockup.webp" alt="Two desktop monitors showing the Stacksync website: &#x22;Two-way sync at scale in real time&#x22; and &#x22;Connectors for every system&#x22;." width="1600" height="941" loading="lazy" decoding="async" />

  <figcaption />
</figure>

### With Stacksync you can do amazing things such as...

* Maintaining a single source of truth across your CRM and Databases with no effort
* Simplify the integration between CRM and your backend
* Ship all data insights from your data warehouse such as Google BigQuery or Snowflake to your CRM in real time!
* Stacksync is ideal for real-time updates of your:
  * lead scoring in your CRM
  * know how many times the user visited your website in the last days or hours in your CRM
  * Ship Google Analytics insights into your Salesforce contacts
* Have better campaign management from your CRM in real time as your campaigns roll out live
* Make your Sales and Marketing team happy by delivering them the new CRM features they need in hours, not years! Finally! 🎉

Stacksync is a pioneer of the composable CDP movement, where we make your backend/data warehouse the source of truth and let you work with data in any of your systems without worrying of data consistency issues. We got you covered 💪🏼

👉 If you are ready to step up data adoption in your organization like many of our customers already did (from startups to multinationals), [let's get started](/two-way-sync/start-here/quick-start)!

# Acceptable Use Policy (AUP)

Source: https://docs.stacksync.com/two-way-sync/legal/acceptable-use-policy-aup

## Stacksync Workspace & Cloud Identity Acceptable Use Policy

Last modified: October 31, 2025

Use of the Services is subject to this acceptable use policy ("AUP").

If not defined here, capitalized terms have the meaning stated in the applicable contract ("Agreement") between the customer, reseller or other authorized user ("You") and Stacksync.

You agree not, and not to allow third parties or Your End Users, to use the Services:

* to generate or facilitate unsolicited bulk commercial “spamming” operations;
* to violate, or encourage the violation of, the legal rights of others;
* to engage in, promote, or encourage illegal activity, including child sexual exploitation, child abuse, or terrorism or violence that can cause death, serious harm, or injury to individuals or groups of individuals;
* for any unlawful, invasive, infringing, defamatory, or fraudulent purpose including Non-consensual Explicit Imagery (NCEI), violating intellectual property rights of others, phishing, or creating a pyramid scheme;
* to distribute viruses, worms, Trojan horses, corrupted files, hoaxes or other items of a destructive or deceptive nature;
* to gain unauthorized access to, disrupt, or impair the use of the Services, or the equipment used to provide the Services, by customers, authorized resellers, or other authorized users;
* to alter, disable, interfere with or circumvent any aspect of the Services, Software, or the equipment used to provide the Services;
* to test or reverse-engineer the Services in order to find limitations or vulnerabilities, or to evade filtering capabilities;
* to grant multiple individuals access to an individual End User Account other than via the delegation and sharing features provided within the Services;
* to create End User Accounts assigned to business functions rather than to human beings for the purpose of sharing data within or outside of the domain;
* to use or resell End User Accounts, or parts thereof, as added into a commercial product offered to third parties (without the consent of Stacksync). It is also forbidden to do so in order to benefit from bulk discounts obtained from the common use of the same billing entity between different otherwise distinct business entities or companies;
* to process data of any kind without consent if such consent is required by applicable laws and regulations (You are solely responsible for ensuring compliance with all applicable laws and regulations in the relevant jurisdiction(s));
* to use the Services, or any interfaces provided with the Services, to access any other Stacksync product or service in a manner that violates the terms of service of such other Stacksync product or service.

Your failure to comply with the AUP may result in suspension or termination, or both, of the Services pursuant to the Agreement. You are solely responsible for any data you or your End Users transmit, process, or store through the Services. Stacksync will not be liable for, and You agree to indemnify and hold Stacksync harmless from, any claims, damages, or losses arising from the content, nature, or legality of such data or its transfer.

# Data Processing Addendum (DPA)

> Data Processing Addendum

Source: https://docs.stacksync.com/two-way-sync/legal/data-processing-addendum-dpa

Updated March 2nd, 2024

This Data Processing Addendum ("DPA"), is incorporated into and forms part of the terms and conditions of the Stacksync Terms and Conditions, Service Consumption Tables or other agreement under which Stacksync Inc. ("Stacksync") provides services to Customer ("Agreement") executed between the party identified as the "Customer" and Stacksync. This DPA is supplemental to the Agreement and sets out the roles and obligations that apply when Stacksync processes Personal Data on behalf of Customer in connection with Customer's use of Stacksync’s services ("Services"). If there is any conflict between the Agreement and this DPA, the terms of this DPA will prevail to the extent of such conflict. Any capitalized terms not defined in this DPA will have the meanings given to them in the Agreement.

1\. Definitions. For the purpose of this DPA:

1.1 "controller", "processor", "data subject", "personal data" and "processing" (and "process") will have the meanings given in EU/UK Data Protection Law;

1.2 "Applicable Data Protection Law" means all worldwide data protection and privacy laws and regulations applicable to the Personal Data in question, including, where applicable, EU/UK Data Protection Law, US Data Protection Law, Serbian Data Protection Law, Canadian Data Protection Law, and the Swiss DPA;

1.3 “Breach” means an accidental or unlawful destruction, loss, alteration, or unauthorised disclosure or access that is in violation of Stacksync’s security obligations under this Agreement by Stacksync or its agents of which Stacksync becomes aware. Breach will not include an unsuccessful Breach, which is one that results in no unauthorized access to Personal Data or to any Stacksync equipment or facilities storing the Personal Data, and could include (without limitation) pings and other broadcast attacks of firewalls or edge servers, port scans, unsuccessful log-on attempts, denial of service attacks, packet sniffing (or other unauthorized access to traffic data that does not result in access beyond headers) or similar incidents;

1.4 "Canadian Data Protection Law" means: (i) the Personal Information Protection and Electronic Documents Act S.C. 2000, c. 5; (ii) applicable provincial law; (iii) any and all applicable data protection laws made under, pursuant to or that apply in conjunction with any of (i) or (ii); in each case as may be amended or superseded from time to time;

1.5 “Data Privacy Framework” means the EU-US Data Privacy Framework, the UK extension to the EU-US Data Privacy Framework, and the Swiss-US Data Privacy Framework self-certification program operated by the US Department of Commerce;

1.6 “Data Privacy Principles” means the Data Privacy Framework principles (as supplemented by the Supplemental Principles);

1.7 "EU/UK Data Protection Law" means: (i) Regulation 2016/679 of the European Parliament and of the Council on the protection of natural persons with regard to the Processing of Personal Data and on the free movement of such data (General Data Protection Regulation) (the "EU GDPR"); (ii) the EU GDPR as saved into United Kingdom law by virtue of section 3 of the United Kingdom's European Union (Withdrawal) Act 2018 (the "UK GDPR"); (iii) the EU e-Privacy Directive (Directive 2002/58/EC); and (iv) any and all applicable national data protection laws made under, pursuant to or that apply in conjunction with any of (i), (ii) or (iii); in each case as may be amended or superseded from time to time;

1.8 "US Data Protection Law" means: (i) the California Consumer Privacy Act of 2018, including as amended by the California Privacy Rights Act of 2020, codified at Cal. Civ. Code §1798.100 et seq., upon the CPRA’s enforcement date of July 1, 2023 (together with its implementing regulations) (“CPRA”); (ii) the Virginia Consumer Data Protection Act; (iii) the Colorado Privacy Act; (iv) the Connecticut Personal Data Privacy and Online Monitoring Act; (v) the Utah Consumer Privacy Act; (vi) the Iowa Consumer Data Protection Act; (vii) the Indiana Consumer Data Protection Act; (viii) the Tennessee Information Protection Act; (ix) the Montana Consumer Data Privacy Act; (x) the Texas Data Privacy and Security Act; (xi) the Oregon Consumer Privacy Act; (xii) the Delaware Personal Data Privacy Act; and (xiii) any and all applicable comprehensive state data protection laws and regulations that are or are not yet in effect as of the Effective Date; in each case as may be amended or superseded from time to time;

1.9 "Serbian Data Protection Law" means: Law on Personal Data Protection (Zakon o zaštiti podataka o ličnosti; Official Gazette of the Republic of Serbia, no 87/2018). In the case of a transfer of Personal Data to a Non-Adequate Country, by entering into this DPA, the Customer is entering into the Serbian Standard Contractual Clauses (“Serbian SCCs”) as adopted by the "Serbian Commissioner for Information of Public Importance and Personal Data Protection", published at [https://www.poverenik.rs/images/stories/dokumentacija-nova/podzakonski-akti/Klauzulelat.docx](https://www.poverenik.rs/images/stories/dokumentacija-nova/podzakonski-akti/Klauzulelat.docx) to provide an adequate level of protection. References to the Standard Contractual Clauses in this DPA will include the Serbian SCCs. Information required to complete Appendices 1 to 8 of the Serbian SCCs for the purpose of governing the transfer of Personal Data to a Non-Adequate Country can be found in this DPA and accompanying appendices;

1.10 “Supplemental Principles” will have the meaning given in the Data Privacy Framework;

1.11 "Standard Contractual Clauses" means: (i) where the EU GDPR or Swiss DPA applies, the contractual clauses annexed to the European Commission's Implementing Decision 2021/914 of 4 June 2021 on standard contractual clauses for the transfer of Personal Data to third countries pursuant to Regulation (EU) 2016/679 of the European Parliament and of the Council ("EU SCCs"); and (ii) where the UK GDPR applies, standard data protection clauses adopted pursuant to or permitted under Article 46 of the UK GDPR ("UK SCCs"); and (iii) where Serbian Data Protection Law applies, the Serbian SCCs; and

1.12 "Swiss DPA" means the revised Swiss Federal Act on Data Protection enacted on September 25, 2020, and effective on September 1, 2023, as may be amended or superseded from time to time.

2\. Relationship of the parties: Customer instructs Stacksync to process the personal data described in Annex I (the "Personal Data") on its behalf. In respect of such processing, Customer will be the controller (or, where Customer is instructing Stacksync on behalf of a third party controller, a processor on behalf of that controller) and Stacksync will be a processor (or, where Customer is a processor on behalf of a third party controller, Stacksync will be a subprocessor to Customer). Each party will comply with the obligations that apply to it under Applicable Data Protection Law.

3\. Purpose limitation: Stacksync will process Personal Data for the purposes described in Annex I and strictly in accordance with the documented instructions of Customer (which instructions, where Customer is a processor, will reflect the instructions of its controller) (the "Permitted Purpose"), except where otherwise required by law(s) that are not incompatible with Applicable Data Protection Law. In no event will Stacksync process Personal Data for its own purposes or those of any third party. Stacksync will immediately inform Customer (who, where Customer is a processor, will inform its controller) if it becomes aware that such processing instructions infringe Applicable Data Protection Law.

4\. Cross border transfer mechanisms:

4.1 Order of precedence: To the extent Customer’s use of the Services requires an onward transfer mechanism to lawfully transfer personal data from a jurisdiction to Stacksync located outside of that jurisdiction (“Transfer Mechanism”), the terms set forth in this Section 4 will apply. In the event the Services are covered by more than one Transfer Mechanism, the transfer of Personal Data will be subject to a single Transfer Mechanism, as applicable, and in accordance with the following order of precedence: (i) the Data Privacy Framework as set forth in Section 4.2 (Data Privacy Framework) of this DPA; (ii) Standard Contractual Clauses as set forth in Section 4.3 (Standard Contractual Clauses) of this DPA; and, if neither (i) nor (ii) is applicable, then (iii) other applicable data Transfer Mechanisms permitted under Applicable Data Protection Law.

4.2 Data Privacy Framework: To the extent Stacksync processes any Personal Data via the services subject to EU/UK Data Protection Law and/or Swiss DPA, Stacksync represents that it is self-certified under the Data Privacy Framework and complies with the Data Privacy Principles when processing any such Personal Data. To the extent that Customer is either located in the United States of America and is self-certified under the Data Privacy Framework or subject to EU/UK Data Protection Law and/or Swiss DPA, Stacksync further agrees to (i) provide at least the same level of protection to any Personal Data as required by the Data Privacy Principles; (ii) notify Customer in writing, without undue delay, if its self-certification to the Data Privacy Framework is withdrawn, terminated, revoked, or otherwise invalidated; and (iii) upon written notice, work with Customer to take reasonable and appropriate steps to stop and remediate any unauthorized processing of Personal Data.

4.3 Standard Contractual Clauses: For cross border data transfers that are subject to Standard Contractual Clauses, the Standard Contractual Clauses will be deemed entered into, and incorporated into this DPA by this reference, and completed as follows:

4a. in relation to Personal Data that is protected by the EU GDPR, the EU SCCs will apply completed as follows:

(i) Module Two will apply to the extent that Customer is a controller of Personal Data, and Module Three will apply to the extent that Customer is a processor of Personal Data on behalf of a third party controller;

(ii) in Clause 7, the optional docking clause will not apply;

(iii) in Clause 9, Option 2 will apply, and the time period for prior notice of subprocessor changes will be as set out in Clause 8 of this DPA;

(iv) in Clause 11, the optional language will not apply;

(v) in Clause 17, Option 1 will apply, and the EU SCCs will be governed by Republic of Ireland law;

(vi) in Clause 18(b), disputes will be resolved before the courts of the Republic of Ireland;

(vii) Annex I of the EU SCCs will be deemed completed with the information set out in Annex I to this DPA;

(viii) Annex II of the EU SCCs will be deemed completed with the information set out in Annex II to this DPA; and

(ix) Annex III of the EU SCCs will be deemed completed with the information set out in Annex III to this DPA.

4b. in relation to Personal Data that is protected by the UK GDPR, the UK SCCs will apply completed as follows:

(i) for so long as Customer and Stacksync are lawfully permitted to rely on the EU SCCs for transfers of Personal Data from the United Kingdom subject to completion of a “UK Addendum to the EU Standard Contractual Clauses” (“UK Addendum”) issued by the Information Commissioner’s Office under s.119A(1) of the Data Protection Act 2018, then:

A. The EU SCCs, completed as set out above in Section 4.3(a) of this DPA will also apply to transfers of such Personal Data, subject to sub-clauses (B) and (C) below;

B. The UK Addendum will be deemed executed between the transferring Customer and Stacksync, and the EU SCCs will be deemed amended as specified by the UK Addendum in respect of the transfer of such Personal Data; and

C. The optional illustrative indemnification clause will not apply.

(ii) if Customer and Stacksync are no longer permitted to rely on the EU SCCs and the UK Addendum, then the Customer and Stacksync will cooperate in good faith to implement appropriate safeguards for transfers of such Personal Data as required or permitted by the UK GDPR without undue delay;

4c. in relation to Personal Data that is protected by the Swiss DPA, the EU SCCs will apply as set out in 4.3(a), amended as follows:

(i) references to ‘Regulation (EU) 2016/679’ in the EU SCCs will be deemed to refer to the Swiss DPA;

(ii) references to specific articles of ‘Regulation (EU) 2016/679’ will be deemed replaced with the equivalent article or section of the Swiss DPA;

(iii) references to ‘EU’, ‘Union’ and ‘Member State’ will be deemed replaced with ‘Switzerland’;

(iv) references to the ‘competent supervisory authority’ and ‘competent courts’ are replaced with the ‘Swiss Federal Data Protection Information Commissioner’ and ‘applicable courts of Switzerland’ (as applicable);

(v) in Clause 17, the EU SCCs will be governed by the laws of Switzerland; and

(vi) in Clause 18(b), disputes will be resolved before the competent courts of Switzerland.

4d. in the event that any provision of the Agreement (including this DPA) contradicts, directly or indirectly, the Standard Contractual Clauses, the Standard Contractual Clauses will prevail.

5\. Onward transfers: Stacksync will not participate in (nor permit any subprocessor to participate in) any other cross border transfers of Personal Data (whether as an exporter or an importer of Personal Data) unless it has taken such measures as are necessary to ensure the transfer is in compliance with Applicable Data Protection Law. Without prejudice to the foregoing, Customer consents to cross border transfers of Personal Data where Stacksync has implemented a transfer solution compliant with Applicable Data Protection Law.

6\. Confidentiality of processing: Stacksync will take appropriate measures to ensure the confidentiality of Personal Data as outlined in the Agreement.

7\. Security: Stacksync will implement appropriate technical and organisational measures to protect the Personal Data from a Breach. Such measures will have regard to the state of the art, the costs of implementation and the nature, scope, context and purposes of processing as well as the risk of varying likelihood and severity for the rights and freedoms of natural persons. Such measures will include, as appropriate:

(a) the pseudonymisation and encryption of Personal Data;

(b) the ability to ensure the ongoing confidentiality, integrity, availability and resilience of processing systems and services;

(c) the ability to restore the availability and access to Personal Data in a timely manner in the event of a physical or technical incident;

(d) a process for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures for ensuring the security of the processing;

(e) at a minimum, such measures will include the measures identified in Annex II.

8\. Subprocessing: Stacksync will not subcontract any processing of the Personal Data to a third party subprocessor without the prior written consent of Customer, which consent, where Customer is a processor, will reflect the instructions of its controller. Notwithstanding this, Customer consents to Stacksync engaging third party subprocessors to process the Personal Data provided that: (i) Stacksync provides at least 5 days' prior written notice of the addition or removal of any subprocessor (including details of the processing it performs or will perform), which will also include posting detail of such addition or removal at the following URL: [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors); and (ii) Stacksync imposes data protection terms on any subprocessor it appoints that protect the Personal Data, in substance, to the same standard provided for by this DPA. A list of approved subprocessors as of the date of this DPA is attached at Annex III, and Stacksync will maintain and provide updated copies of this list to Customer when it adds or removes subprocessors in accordance with this Section. If Customer refuses to consent to Stacksync's appointment of a third party subprocessor on reasonable grounds relating to the protection of the Personal Data, then either Stacksync will not appoint the subprocessor or Customer may elect to suspend or terminate the Agreement.

9\. Cooperation and data subjects' rights: Stacksync will provide all reasonable and timely assistance to Customer (at Customer's expense) to enable Customer (or, where Customer is a processor, its controller) to respond to: (i) any request from a data subject to exercise any of its rights under Applicable Data Protection Law (including its rights of access, correction, objection, erasure and data portability, as applicable); and (ii) any other correspondence, enquiry or complaint received from a data subject, regulator or other third party in connection with the processing of Personal Data. In the event that any such request, correspondence, enquiry or complaint is made directly to Stacksync, Stacksync will (unless prohibited by applicable law) promptly inform Customer (who, where Customer is a processor, will in turn inform its controller) providing full details of the same.

10\. Data Protection Impact Assessment: Stacksync will provide Customer with all such reasonable and timely assistance (at Customer’s expense) as Customer may require in order to enable it (or, where Customer is a processor, to enable its controller) to conduct a data protection impact assessment in accordance with Applicable Data Protection Law including, if necessary, assistance to Customer (or, where Customer is a processor, its controller) to consult with its relevant data protection authority.

11\. Breach notification: Upon becoming aware of a Breach, Stacksync will inform Customer (who, where Customer is a processor, will in turn inform its controller) without undue delay and will provide all such timely information and cooperation as Customer may require in order for Customer (or, where Customer is a processor, its controller) to fulfil its data breach reporting obligations under (and in accordance with the timescales required by) Applicable Data Protection Law. Stacksync will further take all such measures and actions as are necessary to remedy or mitigate the effects of the Breach and will keep Customer informed of all material developments in connection with the Breach.

12\. Deletion or return of Data: After a written request by Customer or the termination or expiration of the Agreement, Stacksync will destroy or return to Customer all Personal Data in its possession or control. This requirement will not apply to the extent that Stacksync: (i) is required by any applicable law to retain some or all Personal Data; and/or (ii) retains Personal Data in its backup systems until the backups have been overwritten or expunged in accordance with Stacksync’s backup policy; provided that, in the event of either (i) or (ii), Stacksync will isolate and protect Personal Data from any further processing except to the extent required until deletion is possible. Until Personal Data is deleted or returned, Stacksync will continue to ensure compliance with its security and privacy obligations in the Agreement and this DPA.

13\. Audit: Customer (and, where Customer is a processor, its controller) acknowledges that Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer (and, where Customer is a processor, its controller), which report(s) will be subject to the confidentiality provisions of the Agreement. Stacksync will also respond to any written audit questions submitted to it by Customer and meet by teleconference or in person (at Customer’s expense) to address follow up questions (and, where Customer is a processor, its controller), provided that Customer (and, where Customer is a processor, its controller) will not exercise this right more than once per year, except if and when required by instruction of a competent data protection authority.

14\. Processing in accordance with US Data Protection law:

14.1 Processing Of Personal Data: Customer appoints Stacksync as a processor (or, where Customer is a processor, Customer appoints Stacksync as a sub-processor) to process Personal Data only for the Business Purposes (as defined by CPRA) listed in Customer’s instructions under Annex I. Processing by Stacksync is outlined in Annex I that sets out the processing instructions to which Stacksync is bound, including the nature and purpose of the processing, the type of Personal Data subject to the processing, and the duration of the processing. Stacksync will adhere to Customer instructions as outlined in Section 3 and Annex I, and Stacksync will assist Customer in meeting its obligations under US Data Protection Law. Stacksync will comply with all applicable sections of US Data Protection Law, including providing the same level of protection for Personal Data as US Data Protection Law requires Customer to provide. Taking into account the nature of processing and the information available to Stacksync, Stacksync will assist Customer by:

(a) taking appropriate technical and organizational measures, insofar as this is possible, for the fulfillment of the controller's obligation to respond to data subject rights requests as outlined in Section 9;

(b) helping Customer meet its obligations in relation to the security of processing Personal Data and in relation to the notification of a breach of the security of the system as outlined in Section 7, Section 11, and Annex II;

(c) providing information to Customer necessary to enable Customer to conduct and document any data protection assessments as outlined in Section 10. Customer and Stacksync are each responsible for only the measures allocated to them;

(d) ensuring that each person processing Personal Data is subject to a duty of confidentiality with respect to Personal Data as outlined in Annex II; and

(e) after providing Customer an opportunity to object, engaging any subprocessor pursuant to a written contract in accordance with Section 8 that requires the subprocessor to meet the obligations of Stacksync with respect to Personal Data.

14.2 Security measures: Taking into account the context of processing, Customer and Stacksync will implement appropriate technical and organizational measures to ensure a level of security appropriate to the risk and establish a clear allocation of the responsibilities between them to implement the measures as outlined in Annex II.

14.3 Deletion or return of Personal Data: Stacksync will delete or return all Personal Data to Customer at the end of the provision of services as outlined in Section 12.

14.4 Audit rights: Stacksync grants Customer the right to take reasonable and appropriate steps to help ensure that Stacksync uses Personal Data consistent with US Data Protection Law and to stop and remediate unauthorized use of Personal Data. Stacksync will, upon the reasonable request of Customer, make available to Customer all information in its possession necessary to demonstrate Stacksync's compliance as outlined in Section 13. Stacksync will allow an audit of Stacksync's policies and technical and organizational measures in support of the obligations under US Data Protection Law and will provide a report of the audit to Customer upon request as outlined in Section 13.

14.5 Restrictions On Processing Personal Data: Stacksync is prohibited from: (i) processing Personal Data for any purposes but for the Business Purposes unless otherwise expressly permitted by US Data Protection Law; (ii) processing Personal Data for any additional commercial purpose (other than the Business Purposes) including in the servicing of a different business unless otherwise expressly permitted by US Data Protection Law; (iii) processing Personal Data outside the direct business relationship between Customer and Stacksync unless otherwise expressly permitted by US Data Protection Law; (iv) Selling or Sharing (as both are defined by CPRA) Personal Data; (v) combining Personal Data with Personal Data that it receives from, or on behalf of, another person or persons, or collects from its own interaction with a data subject unless otherwise expressly permitted by US Data Protection Law; or (vi) processing the Personal Data for any other purpose except as permitted by this DPA.

14.6 Inability To Comply With US Data Protection Law: Stacksync shall notify Customer after Stacksync determines that it no longer can meet its obligations under this DPA or US Data Protection Law. In the event of Stacksync’s inability to meet its obligations, Customer may, in its discretion; (i) take reasonable and appropriate steps to stop and remediate any unauthorized use of Personal Data; or (ii) terminate the Agreement.

14.7 Certification: Stacksync certifies that it understands and will comply with the restrictions set forth in this Section 14.

15\. System Data: Notwithstanding anything to the contrary in this Agreement, Stacksync may collect System Data and use such data internally to develop, improve, support, and operate its products and services. Stacksync’s use of System Data will comply with applicable data protection law. Stacksync may not share any System Data that includes Personal Data with a third party except to the extent the System Data is aggregated and anonymized such that Customer and Customer’s users cannot be identified.

16\. Local implementation agreement: If and when necessary to accommodate laws, regulations, and/or local business requirements in a particular country outside the United States, European Union, the European Economic Area and their member states, Switzerland and the United Kingdom, the parties may enter into a Local Implementation Addendum covering additional requirements under such laws that are not already addressed in the Agreement or this DPA.

17\. Personnel background checks: Prior to engaging any employee or contractor who may receive access to Personal Data Stacksync will conduct a criminal history background check (modified as appropriate to comply with applicable law in countries outside the United States) covering the three year period prior to the employment commencement date of such employee.

18\. Construction; Interpretation: This DPA is not a standalone agreement and is only effective if an Agreement is in effect between Stacksync and Customer. This DPA is part of the Agreement and is governed by its terms and conditions, including limitations of liability set forth therein. This DPA and the Agreement are the complete and exclusive statement of the mutual understanding of the parties and supersede and cancel all previous written and oral agreements and communications relating to the subject matter hereof. Headings contained in this DPA are for convenience of reference only and do not form part of this DPA.

19\. Severability: If any provision of this DPA is adjudicated invalid or unenforceable, this DPA will be amended to the minimum extent necessary to achieve, to the maximum extent possible, the same legal and commercial effect originally intended by the parties. To the extent permitted by applicable law, the parties waive any provision of law that would render any clause of this DPA prohibited or unenforceable in any respect.

20\. Amendment; Enforcement of rights: No modification of or amendment to this DPA, nor any waiver of any rights under this DPA, will be effective unless in writing signed by the parties to this DPA. The failure by either party to enforce any rights under this DPA will not be construed as a waiver of any rights of such party. This DPA may not be construed to create any right or cause of action on behalf of a third party, except to the minimum extent required available to data subjects under Applicable Data Protection Law.

21\. Assignment: This DPA may be assigned only in connection with a valid assignment pursuant to the Agreement. If the Agreement is assigned by a party in accordance with its terms, this DPA will be automatically assigned by the same party to the same assignee.

22\. Governing Law: This DPA will be governed by and construed in accordance with the laws of the jurisdiction governing the Agreement unless otherwise required by EU/UK Data Protection Law or Applicable Data Protection Law, in which case this DPA will be governed by the laws outlined in the relevant section of this DPA.

23\. Counterparts: This DPA may be executed and delivered by facsimile or electronic signature and in two or more counterparts, each of which will be deemed an original, but all of which together will constitute one and the same instrument.

24\. Supplementary terms to Standard Contractual Clauses

24.1 Documentation and compliance: For the purposes of Clause 8.9 the review and audit provisions in this DPA will apply.

24.2 Notification and transparency:

For purposes of Clause 8.3 – Modules 2 and 3 and Clause 15.1(a), the parties agree and acknowledge that it may not be possible for Stacksync to make the appropriate communications to data subjects and accordingly, Customer will (following notification by Stacksync) have the option to be the party who makes any communication to the data subject, and Stacksync will provide the level of assistance set out in this DPA.

24.3 Liability: For the purposes of Clause 12(a), the liability of the parties will be limited in accordance with the limitation of liability provisions in the Agreement. 

24.4 Signatories: Notwithstanding the fact that the Standard Contractual Clauses are incorporated herein by reference without being signed directly, Stacksync and Customer each agrees that their execution of the Agreement is deemed to constitute its execution of the Standard Contractual Clauses, and that it is duly authorized to do so on behalf of, and to contractually bind, the data exporter or data importer (as applicable) accordingly.

## Annex I

## Data Processing Description

This Annex I forms part of the DPA and describes the processing that the processor will perform on behalf of the controller.

A. LIST OF PARTIES

Controller(s) / Data exporter(s): \[Identity and contact details of the controller(s) /data exporter(s) and, where applicable, of its/their data protection officer and/or representative in the European Union]

| 1.            | Name:                                                            | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><br /></p> | Address:                                                         | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br /></p> | Contact person’s name, position and contact details:             | As provided by the Customer                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br /></p> | Activities relevant to the data transferred under these Clauses: | Stacksync will process Customer personal data in order to facilitate the data transfer and synchronization of data between Customer’s data sources such as databases, data warehouses and business apps in a unidirectional or bidirectional data flow. The frequency and retention periods for which personal data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/security/overview](https://docs.stacksync.cloud/security/overview) |
| <p><br /></p> | Role (controller/processor):                                     | Controller/processor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

Processor(s) / Data importer(s): \[Identity and contact details of the processor(s) /data importer(s), including any contact person with responsibility for data protection]

| 1.            | Name:                                                            | Stacksync Inc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><br /></p> | Address:                                                         | 2611, 1007 N Orange St. 4th Floor , Wilmington, DE, New Castle, US, 19801                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><br /></p> | Contact person’s name, position and contact details:             | Data Protection Officer (DPO): Ruben Burdin; [privacy@stacksync.com](mailto:privacy@stacksync.com); [DPO@stacksync.cloud](mailto:DPO@stacksync.cloud)                                                                                                                                                                                                                                                                                                                                      |
| <p><br /></p> | Activities relevant to the data transferred under these Clauses: | Stacksync will process Customer personal data in order to facilitate the data transfer and synchronization of data between Customer’s data sources such as databases, data warehouses and business apps in a unidirectional or bidirectional data flow. The frequency and retention periods for which personal data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/](https://docs.stacksync.cloud/) |
| <p><br /></p> | Role (controller/processor):                                     | Processor/Sub-processor                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |

\ <br />

В. DESCRIPTION OF TRANSFER

| Categories of data subjects whose Personal Data is transferred:                                                                                                                                                                                                                                                                                                                                                            | <p>Customer’s employees and consultants who use Stacksync’s Service.</p><p>Individuals whose Personal Data is stored in Customer’s data sources and processed by Stacksync.</p>                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Categories of Personal Data transferred:                                                                                                                                                                                                                                                                                                                                                                                   | <p>Stacksync may have access to Personal Data of Customer’s employees and consultants who use Stacksync’s Service.</p><p>Stacksync may have access to Personal Data of individuals whose Personal Data is stored in Customer’s data sources.</p><p>The types of Personal Data processed are determined by Customer and may include without limitation: Name, Email address, Physical address, IP-address and other online identifiers, Date of birth, Telephone/mobile number, Location Data.</p> |
| Sensitive data transferred (if applicable) and applied restrictions or safeguards that fully take into consideration the nature of the data and the risks involved, such as for instance strict purpose limitation, access restrictions (including access only for staff having followed specialised training), keeping a record of access to the data, restrictions for onward transfers or additional security measures: | As above                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| The frequency of the transfer (e.g. whether the data is transferred on a one-off or continuous basis):                                                                                                                                                                                                                                                                                                                     | <p>Duration of<br />account/agreement<br />life-cycle</p>                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Nature of the processing:                                                                                                                                                                                                                                                                                                                                                                                                  | The data processing activities carried out by Stacksync under the Agreement                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Purpose(s) of the data transfer and further processing:                                                                                                                                                                                                                                                                                                                                                                    | Stacksync will process Customer Personal Data in order to facilitate migration of data from Customer’s data sources into Customer’s data warehouse.                                                                                                                                                                                                                                                                                                                                               |
| The period for which the Personal Data will be retained, or, if that is not possible, the criteria used to determine that period:                                                                                                                                                                                                                                                                                          | The frequency and retention periods for which Personal Data may be stored will vary depending on Customer’s configuration of Stacksync’s Service and are described at [https://docs.stacksync.com/](https://docs.stacksync.cloud/)                                                                                                                                                                                                                                                                |
| For transfers to (sub-) processors, also specify subject matter, nature and duration of the processing:                                                                                                                                                                                                                                                                                                                    | As outlined at [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors)                                                                                                                                                                                                                                                                                                                                                                           |

C. COMPETENT SUPERVISORY AUTHORITY

| Identify the competent supervisory authority/ies in accordance (e.g. in accordance with Clause 13 SCCs) | Irish Supervisory Authority (DPC) |
| ------------------------------------------------------------------------------------------------------- | --------------------------------- |

## Annex II

## Technical and Organisational Security Measures

Description of the technical and organisational measures implemented by the processor(s) / data importer(s) (including any relevant certifications) to ensure an appropriate level of security, taking into account the nature, scope, context and purpose of the processing, and the risks for the rights and freedoms of natural persons.

| Measure                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Measures of pseudonymisation and encryption of Personal Data                                                                                                           | <p>Technical and Organizational Security Measures</p><p>Description of the technical and organisational security measures implemented by Stacksync in accordance with Applicable Data Protection Law:</p><p>Stacksync security measures can be found on Stacksync's website at <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a></p><p>Security measures include:</p><p>Transport layer security</p><ul><li>All data is transmitted to or from Stacksync over an encrypted protocol using industry-standard cryptographic protocols (TLS 1.2+)</li><li>Stacksync redirects unencrypted requests (HTTP) to an encrypted protocol (HTTPS)</li></ul><p>Physical & Environmental Security</p><p>The Stacksync services are hosted in Microsoft Azure, Google Cloud Platform (GCP), and Amazon Web Services (AWS), OVH and Scaleway. Hosting providers maintain physical & environmental security protections including:</p><ul><li>Physical access is restricted to approved employees based on the principle of least privilege</li><li>Multi-factor authentication when approved personnel access facilities</li><li>Closed Circuit Television Camera (CCTV) video recording of access points</li><li>Fire detection and suppression systems</li><li>Redundant infrastructure for power, networking, and cooling</li></ul><p>Logical Access controls</p><p>Logical access to the Stacksync services is restricted to employees based on the principle of least privilege. All access is formally approved and requires multi-factor authentication.</p><p>Access is removed in the event of employee termination or if the employee changes roles and no longer requires access, as well as being reviewed on a quarterly basis.</p> |
| Measures for ensuring ongoing confidentiality, integrity, availability and resilience of processing systems and services                                               | See previous section that outlines our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Measures for ensuring the ability to restore the availability and access to Personal Data in a timely manner in the event of a physical or technical incident          | See previous section that outlines our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Processes for regularly testing, assessing and evaluating the effectiveness of technical and organisational measures in order to ensure the security of the processing | Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Measures for user identification and authorisation                                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for the protection of data during transmission                                                                                                                | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for the protection of data during storage                                                                                                                     | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring physical security of locations at which Personal Data are processed                                                                              | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring events logging                                                                                                                                   | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for ensuring system configuration, including default configuration                                                                                            | See the previous sections that outline our controls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Measures for internal IT and IT security governance and management                                                                                                     | Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Measures for certification/assurance of processes and products                                                                                                         | Stacksync is currently undergoing the preparation to obtain certifications and be audited against ISO 27001, and SOC 2 by independent third party auditors. Upon request, Stacksync will supply a summary copy of its audit report(s) to Customer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Measures for ensuring data minimisation                                                                                                                                | <p>Processing of Customer Data</p><p>Data pipes for each customer are managed separately within the host environment. Stacksync does not store Customer Data, other than while in transit, except as described in <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a>.</p><p>Stacksync does not control the host physical infrastructure. Stacksync relies on the fault-tolerant nature of Microsoft Azure, GCP and AWS across multiple availability zones, and can redeploy the platform to another region in case of catastrophic failure.</p><p>Except as described at <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a>, Stacksync will process Customer Data within the region specified by Customer during configuration of the data pipe. Current geographic regions supported by Stacksync are found here: <a href="https://docs.stacksync.cloud/security/overview">[https://docs.stacksync.com/security/overview](https://docs.stacksync.com/security/overview)</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Measures for ensuring data quality                                                                                                                                     | Based on the nature of the Stacksync services, Stacksync is a data pipeline, so the accuracy of the Personal Data depends on whether or not Customer has provided accurate information                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Measures for ensuring limited data retention                                                                                                                           | Except as described at [https://docs.stacksync.com/security/overview](https://docs.stacksync.cloud/security/overview) Stacksync does not store Customer Data, other than while in transit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Measures for ensuring accountability                                                                                                                                   | Stacksync has a Data Protection Officer and a Chief Information Security Officer (the CTO, if CISO is not appointed).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Measures for allowing data portability and ensuring erasure                                                                                                            | Except as described at [https://docs.stacksync.com/security/overview](https://docs.stacksync.cloud/security/overview) Stacksync does not store Customer Data, other than while in transit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

For transfers to (sub-) processors, also describe the specific technical and organisational measures to be taken by the (sub-) processor to be able to provide assistance to the controller (and, for transfers from a processor to a sub-processor, to the data exporter).

| Measure              | Description                                                                                                                                                   |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Contractual language | Stacksync ensures that its subprocessors are subject to equivalent terms                                                                                      |
| Due Diligence        | Stacksync conducts due diligence on third parties, including necessary privacy and security reviews, such as privacy threshold and privacy impact assessments |

## Annex III

## List of Subprocessors

Stacksync’s current list of subprocessors may be found at [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors)

<br />

# Global Employee and Applicant Privacy Notice

> Privacy notice for our recruiting activities and HR efforts.

Source: https://docs.stacksync.com/two-way-sync/legal/global-employee-and-applicant-privacy-notice

Last updated February 25, 2023.

## Permission to process personal data by Stacksync

By submitting an application for an open position with Stacksync, whether via our career page, or via external platforms such as Indeed, LinkedIn, or Xing, you express your interest in taking up work with us. In this context, you transmit personal data, which we will use and store exclusively for the purpose of your job search / application process.

This data privacy statement, which refers exclusively to data collected as part of the online application process, is to inform you about how your personal data that is collected as part of the online application process is handled at our end.

## The controller

The controller under data protection law is:

Stacksync SA

1 rte d’Eguechaudens

1030 Bussigny, Vaud, Switzerland

Commercial register entry number: HRB 211731

Registration Court: Lausanne Local Court

Data Protection Officer contact: [dpo@stacksync.com](mailto:dpo@stacksync.com)

## Personal data collected as part of the application process

Personal data means any information concerning the personal or material circumstances of an identified or identifiable individual. This includes information such as, for example, your name, address, telephone number and date of birth, but also data relating to your specific career etc. by reference to which a specific individual can be identified with reasonable effort. However, information which cannot be (in)directly associated with your real-life identity is not personal data.

In particular, the following data is collected during this process:

* Name (first and last names)
* Email address
* phone number
* LinkedIn profile (optional)
* Channel through which you found us
* Any information typically detected by senses (e.g. Audio conversations,...)

Furthermore, you can choose to send us expressive documents such as a cover letter, your CV and reference letters. These may contain additional personal data such as date of birth, address, etc.

## How does the Company collect data?

1. The Company mainly collects and records your personal data from you. You will provide this information directly to your managers or local Human Resources contact or enter it into our systems, your participation in HR processes, emails and instant messages you send or through verbal information which is recorded electronically or manually. In addition, further information about you will come from your managers, Human Resources or occasionally your colleagues.
2. We also obtain some information from third parties: for example, references from a previous employer, medical reports from external professionals, information from tax authorities, benefit providers or where we employ a third party to carry out a background check (where permitted by applicable law) or occasionally from customers.
3. In some circumstances, data is collected indirectly from monitoring devices or by other means (for example, building and location access control and monitoring systems, CCTV, telephone logs and recordings, instant message logs and email and Internet access logs), if and to the extent permitted by applicable laws. In these circumstances, the data may be collected by the Company or a third party provider of the relevant service. This type of data is generally not accessed on a routine basis but access is possible.
4. Some data may be obtained from publicly accessible sources.
5. In the event that particular information is required by the contract or statute this will be indicated at the time of collection. We will also let you know where there are consequences of you not providing the information requested. Failure to provide some information will mean that we cannot carry out certain HR processes. For example, if you do not provide us with your bank details, we will not be able to pay you. In some cases it may mean that we are unable to continue with your employment or engagement as the Company will not have the personal data we believe to be necessary for the effective and efficient administration and management of our relationship with you.

## Use of your personal data

During the application process, your personal data will be stored, evaluated, processed or forwarded internally within Stacksync. Only authorized HR staff and/or staff involved in the application process have access to your data. The personal data is stored, as a rule, exclusively for the purpose of filling the vacancy for which you have applied.

The data may be used and processed for statistical purposes (e.g. reporting). Any conclusions drawn will not be related to individual persons.

If you are employed at Stacksync, your personal data are collected and processed for various business purposes, in accordance with applicable laws and any applicable collective bargaining agreements. We have set out in this Notice the purposes we may use your personal data for. Data may occasionally be used for purposes not obvious to you where the circumstances warrant such use (eg in investigations or disciplinary proceedings). We may, where we think it is necessary, provide you with additional information in relevant HR policies to ensure that you understand how your personal data may be used.

## Rights of data subjects

If Stacksync as the controller processes personal data, you as the data subject have certain rights under Chapter III of the EU General Data Protection Regulation (GDPR), depending on the legal basis and the purpose of the processing, in particular the right of access (article 15 of the GDPR) and the rights to rectification (article 16 of the GDPR), erasure (article 17 of the GDPR), restriction of processing (article 18 of the GDPR), and data portability (article 20 of the GDPR), as well as the right to object (article 21 of the GDPR). If the personal data is processed with your consent, you have the right to withdraw this consent under article 7 III of the GDPR. To assert your rights as a data subject in relation to the data processed for the purpose of operating this recruitment website, please refer to Stacksync’s Data Protection Officer (see above).

## Personal data storage

Your data will be stored for a period of 12 months after the application process has been concluded. This is usually done to fulfill legal requirements and/or defending ourselves against any claims arising from legal provisions. After this period, we are obligated to delete or anonymize your data. In case of anonymization, the data will only be available to us in the form of so-called metadata, without any direct personal reference, for statistical analysis (for example, share of male and/or female applicants, number of applications per specified period of time etc.).

Furthermore, we reserve the right to store your data for 36 months after the application process has been concluded for the purpose of adding it to our Talent Pool in order to identify any other vacancies that may be of interest to you. This includes, for example, applications for apprenticeships or internships. By accepting the data privacy statement, you consent to any further storage of your data as well as its inclusion in our Talent Pool.

Should you be offered and accept a position with us during the application process, we will store the personal data collected as part of the application process for at least the duration of your employment.

You will not be notified directly when your data has been deleted.

## Concluding provisions

Stacksync reserves the right to adjust this data privacy statement at any point in time to ensure that it is in line with the current legal requirements at all times, or in order to accommodate changes in the services offered, for example when new services are introduced. In this case, the new data privacy statement applies to any later visit of this recruitment website or any later job application.<br />

If you have any questions, feel free to contact us at [privacy@stacksync.com](mailto:privacy@stacksync.com)

# Privacy Notice

Source: https://docs.stacksync.com/two-way-sync/legal/privacy-notice

Last updated: January 10, 2023

Stacksync Inc. ("Stacksync") respects your right to privacy. This Privacy Notice explains who we are, how we collect, store, share and use personal data about you, and how you can exercise your privacy rights. This Privacy Notice applies to personal data that we collect, including through our website at [www.stacksync.com](http://www.stacksync.cloud), within our product(s) and on other websites that Stacksync operates and that link to this policy ("collectively Websites”).

If you have any questions or concerns about our use of your personal data, then please contact us using the contact details provided at the bottom of this Privacy Notice. This privacy notice is inspired by the documentation of industry peers and best practices such as Fivetran Inc.

## What personal data does Stacksync collect and why?

Broad Categories of personal data collected:

| Broad Categories Collected                | Examples                                                                                                                                                      |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Identifiers                               | Name, contact information, and other personal data that can directly or indirectly identify an consumer                                                       |
| Select Information in Customer Records    | Name, contact information, company information.                                                                                                               |
| Commercial Purchasing Information         | Records of products and services purchased                                                                                                                    |
| Internet or Network Activity              | <p>Browsing history,</p><p>search history,</p><p>information regarding a consumer’s interaction with an Internet Web site, application, or advertisement.</p> |
| Information Typically Detected by Senses  | Audio information (call recordings)                                                                                                                           |
| Employment Information                    | Role, title, and other relevant employer information                                                                                                          |
| Inferences Drawn from other Personal Data | Buying intent, and other relevant information to market or provide the services                                                                               |

The personal data that we may collect about you broadly falls into the following categories of sources:

* Information that you provide voluntarily\
  Certain parts of our Website may ask you to provide personal data voluntarily: for example, we may ask you to provide your contact details in order to register an account with us, for technical support, to subscribe to marketing communications from us, to register for an event, to access content, and/or to submit inquiries to us. The personal data that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal data.\
  If you decide not to provide some information voluntarily, you may still use our Websites though your access to some functionality and areas of our Websites may be restricted.\ <br />
* Information that we collect automatically\
  When you visit our Website, we may collect certain information automatically from your device. In some countries, including countries in the European Economic Area, this information may be considered personal data under applicable data protection laws.\
  \
  Specifically, the information we collect automatically may include information like your IP address, device type, unique device identification numbers, browser-type, broad geographic location (e.g. country or city-level location) and other technical information. We may also collect information about how your device has interacted with our Website, including the pages accessed and links clicked.\
  \
  Collecting this information enables us to better understand the visitors who come to our Website, where they come from, and what content on our Website is of interest to them. We use this information for our internal analytics purposes and to improve the quality and relevance of our Website to our visitors.\
  \
  Some of this information may be collected using cookies and similar tracking technology, as explained further under the heading “Cookies and similar tracking technology” below.\ <br />
* Information that we obtain from third party sources\
  From time to time, we may receive personal data about you from third-party sources (including, but not limited to, lead generation providers, partners, content syndication providers, third-party enrichment tools, and meeting maker vendors), but only where we have checked that these third parties either have your consent or are otherwise legally permitted or required to disclose your personal data to us.\
  \
  The types of information we collect from third parties include name, contact information, title and or role within your organization, internet activity, company data, and we use the information we receive from these third parties to market our services to you.

Sensitive Personal Data

We may collect sensitive personal data, or special category personal data, from customers as a part of providing our services. We do not use sensitive personal data for any other commercial purpose, we do not sell sensitive personal data, and do not share sensitive personal data for online advertising.

Who does Stacksync share my personal data with?

We may disclose your personal data to the following categories of recipients:

* to our group companies and third-party services providers who provide data processing services to us (for example, to support the delivery of, provide functionality on, or help to enhance the security of our Website), or who otherwise process personal data for purposes that are described in this Privacy Notice or notified to you when we collect your personal data. A list of our current subprocessors is available here [https://docs.stacksync.com/security/subprocessors](https://docs.stacksync.cloud/security/subprocessors);
* to our partners, who we may share with in connection with, selling or distributing our products and services, or engaging in joint marketing activities, in accordance with your expressed marketing preferences.
* to any competent law enforcement body, regulatory, government agency, court or other third party where we believe disclosure is necessary (i) as a matter of applicable law or regulation, (ii) to exercise, establish or defend our legal rights, or (iii) to protect your vital interests or those of any other person;
* to an actual or potential buyer (and its agents and advisers) in connection with any actual or proposed purchase, merger or acquisition of any part of our business, provided that we inform the buyer it must use your personal data only for the purposes disclosed in this Privacy Notice;
* to any other person with your consent to the disclosure.

Third parties we share with for a business purpose (in the last 12 months):

| Broad Categories Collected                | Types of third parties we share with             |
| ----------------------------------------- | ------------------------------------------------ |
| Identifiers                               | Group companies, service providers, and partners |
| Select Information in Customer Records    | Group companies, service providers, and partners |
| Commercial Purchasing Information         | Group companies, service providers, and partners |
| Internet or Network Activity              | Group companies, service providers, and partners |
| Information Typically Detected by Senses  | Group companies, service providers, and partners |
| Employment Information                    | Group companies, service providers, and partners |
| Inferences Drawn from other Personal Data | Group companies, service providers, and partners |

Third parties we share with for a commercial purpose (including sale/online advertising in the past 12 months):

| Broad Categories Collected                | Types of third parties we share with                              |
| ----------------------------------------- | ----------------------------------------------------------------- |
| Identifiers                               | Group companies, partners, and any other person with your consent |
| Select Information in Customer Records    | Group companies, partners, and any other person with your consent |
| Commercial Purchasing Information         | Group companies, partners, and any other person with your consent |
| Internet or Network Activity              | Group companies, partners, and any other person with your consent |
| Information Typically Detected by Senses  | Group companies, partners, and any other person with your consent |
| Employment Information                    | Group companies, partners, and any other person with your consent |
| Inferences Drawn from other Personal Data | Group companies, partners, and any other person with your consent |

## Legal basis for processing personal data

Our legal basis for collecting and using the personal data described above will depend on the personal data concerned and the specific context in which we collect it.

However, we will normally collect personal data from you only (i) where we need the personal data to perform a contract with you, (ii) where the processing is in our legitimate interests and not overridden by your rights, or (iii) where we have your consent to do so. In some cases, we may also have a legal obligation to collect personal data from you or may otherwise need the personal data to protect your vital interests or those of another person.

If we ask you to provide personal data to comply with a legal requirement or to perform a contract with you, we will make this clear at the relevant time and advise you whether the provision of your personal data is mandatory or not (as well as of the possible consequences if you do not provide your personal data).

If we collect and use your personal data in reliance on our legitimate interests (or those of any third party), this will normally be to operate our platform and to communicate with you as necessary – for example, when responding to your queries, analyzing use of and improving our platform, undertaking marketing activities for existing customers as legally permitted, and detecting or preventing illegal activities. We may have other legitimate interests and we will make clear to you at the relevant time what those legitimate interests are. We rely on these legal bases to process data for the following purposes: to help provide the services (e.g. customer support and usage data) and to market our services to you (e.g. online advertising and gauging buyer intent).

If you have questions about or need further information concerning the legal basis on which we collect and use your personal data, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.

## Cookies and similar tracking technology

What are cookies?

Cookies are small data files that are placed on your computer or mobile device when you visit a website. Website owners can use cookies for a variety of reasons that can include enabling their websites to work (or work more efficiently), providing personalized content and advertising, and creating website analytics.

Cookies set by the website owner (in this case, Stacksync) are called "first-party cookies". Only the website owner can access the first-party cookies it sets. Cookies set by parties other than the website owner are called "third-party cookies.” Third-party cookies enable third party features or functionality to be provided on or through the website (e.g. like advertising, interactive content and social sharing). The parties that set these third-party cookies can recognize your device both when it visits the website in question and also when it visits other websites that have partnered with them.

Stacksync may use web beacons, tags, flash cookies, HTML5, and scripts (“Data Tools”) in the Websites or in emails to help deliver cookies, count visits, understand usage and campaign effectiveness and determine whether an email has been opened and acted upon. Stacksync may receive reports based on the use of these technologies by our service/analytics providers on an individual and aggregated basis.

If you want to learn more about cookies, or how to control, disable or delete them, please visit [https://allaboutcookies.org](https://allaboutcookies.org) for detailed guidance. For further information on how to manage Flash cookies, please click [here](http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html).

Why do we use cookies?

We use first-party and third-party cookies for several reasons. Some cookies are required for technical reasons that are strictly necessary for our Websites to operate, and we refer to these as "essential" cookies. Other cookies also enable us to provide website functionality, or to enhance visitors' experience on our Websites by providing them with personalized content and advertising. This is described in more detail below.

Cookies collect certain standard information that your browser sends to the Websites such as your browser type and language, access times, and the address of the website from which you arrived at a Website. They may also collect information about your Internet Protocol (IP) address, clickstream behavior (i.e. the pages you view, the links you click, and other actions you take when you use the Websites) and product information. These are called first-party cookies and they are essential to the Websites’ operation.

Stacksync may also contract with third-party advertising networks that collect non-personally identifiable information and personal data through the Websites and emails and on third-party web sites. Ad networks follow your online activities over time by collecting usage data through Data Tools. They use this information to provide advertisements about products and services tailored to your interests. You may see these advertisements on other websites. This process also helps us manage and track the effectiveness of Stacksync’s marketing efforts.

The Websites may include third-party social media features, such as the Facebook Like button, and third-party widgets, such as the ‘Share This’ button or interactive mini-programs that run on the Websites. These features may collect your IP address, which page you are visiting on the Websites, and set a cookie to enable the feature to function properly. Your interaction with these features is governed by the privacy policy of the third-party company providing it.

We use third-party advertising companies to display ads on the Websites tailored to your individual interests based on your internet activity, as well as to provide advertising-related services such as ad delivery, reporting, attribution, analytics, and market research. You can manage your preferences with regards to the receipt of tailored advertisements in the cookie settings described below. Please note if these cookies are switched off, you will continue to see advertisements, but they will no longer be tailored to your interests.

The specific types of first- and third-party cookies served through our Websites and the purposes they perform are described in our cookie settings page.

What about other tracking technologies, like web beacons?

Cookies are not the only way to recognize or track visitors to a website. We may use other, similar technologies from time to time, like web beacons (sometimes called "tracking pixels" or "clear gifs"). These are tiny graphics files that contain a unique identifier that enable us to recognize when someone has visited our Website or opened an email that we have sent them. This allows us, for example, to monitor the traffic patterns of users from one page within our Websites to another, to deliver or communicate with cookies, to understand whether you have come to our Websites from an online advertisement displayed on a third-party website, to improve site performance, and to measure the success of email marketing campaigns. In many instances, these technologies are reliant on cookies to function properly, and so declining cookies will often impair their functioning.

How can you control cookies?

You have the right to decide whether to accept or reject cookies. You can exercise your cookie preferences in our cookie settings page.

You can also set or amend your web browser controls to accept or refuse cookies. If you choose to reject cookies, you may still use our Websites though your access to some functionality and areas of our Websites may be restricted. As the means by which you can refuse cookies through your web browser controls vary from browser to browser, you should visit your browser's help menu for more information.

In addition, most advertising networks offer you a way to opt out of targeted advertising. If you would like to find out more information, please visit [https://www.aboutads.info/choices/](https://www.aboutads.info/choices/) or [https://www.youronlinechoices.eu/](https://www.youronlinechoices.eu/) if located in the European Union.

## How does Stacksync keep my personal data secure?

We use appropriate technical and organizational measures to protect the personal data that we collect and process about you. The measures we use are designed to provide a level of security appropriate to the risk of processing your personal data. Stacksync is hosted on leading cloud service providers (linked on our security page at [https://stacksync.com/docs/security#physicalandenvironmentalsafeguards](https://stacksync.com/docs/security#physicalandenvironmentalsafeguards)) and uses industry-standard security protocols to protect personal data. Personal data is stored on private servers. All connections between the end user and our servers are encrypted with SSL, and server software is kept continuously up to date with the latest security patches.

## International data transfers

Your personal data may be transferred to, and processed in, countries other than the country in which you are resident. These countries may have data protection laws that are different to the laws of your country.

To view our data residency locations, view our data residency policy here at [https://stacksync.com/docs/security#stacksyncdataresidency](https://stacksync.com/docs/security#stacksyncdataresidency). Our group companies, third party service providers, and partners operate around the world.

However, we have taken appropriate safeguards to require that your personal data will remain protected in accordance with this Privacy Notice. These include implementing the European Commission’s Standard Contractual Clauses, the UK Addendum for Standard Contractual Clauses, and other applicable standard contractual clauses for transfers of personal data between our group companies, which require all group companies to protect personal data they process in accordance with applicable data protection law.

Our Data Protection Addendum is available online at [https://www.stacksync.com/legal#dpa](https://www.stacksync.com/legal#dpa), and our Standard Contractual Clauses can be provided on request by contacting us at [privacy@stacksync.com](mailto:privacy@stacksync.com). We have implemented similar appropriate safeguards with our third-party service providers and partners and further details can be provided upon request.

## Data retention

We retain personal data we collect from you where we have an ongoing legitimate business need to do so (for example, to provide you with a service you have requested or to comply with applicable legal, tax or accounting requirements).

When we have no ongoing legitimate business need to process your personal data, we will either delete or anonymize it or, if this is not possible (for example, because your personal data has been stored in backup archives), then we will securely store your personal data and isolate it from any further processing until deletion is possible. For more detailed information on our retention practices, see [https://stacksync.com/docs/security#retentionofcustomerdata](https://stacksync.com/docs/security#retentionofcustomerdata).

## Your data protection rights

You have the following data protection rights:

* If you wish to access, correct, update or request deletion of your personal data, you can do so at any time by contacting us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* In addition, you can object to processing of your personal data, ask us to restrict processing of your personal data or request portability of your personal data. Again, you can exercise these rights by contacting us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* You have the right to opt-out of marketing communications we send you at any time. You can exercise this right by clicking on the “unsubscribe” or “opt-out” link in the marketing emails we send you. To opt-out of other forms of marketing (such as postal marketing or telemarketing), then please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* Similarly, if we have collected and processed your personal data with your consent, then you can withdraw your consent at any time. Withdrawing your consent will not affect the lawfulness of any processing we conducted prior to your withdrawal, nor will it affect processing of your personal data conducted in reliance on lawful processing grounds other than consent.
* You have the right to opt out of the sale of your personal data, including sharing personal data for online advertising. For more information, visit our cookie settings page.
* We do not use or disclose your sensitive personal data, except for the purposes of providing the services to our customers.
* You have the right to non-discrimination, meaning we may not discriminate against a data subject for exercising a privacy right.
* You have the right to have your authorized agent make a data privacy request on your behalf. For more information, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice.
* You have the right to complain to a data protection authority about our collection and use of your personal data. For more information, please contact your local data protection authority.
* If you are not satisfied with our response regarding your data privacy request, you have the right to appeal our decision. For more information, please contact us using the contact details provided under the “How to contact us” heading at the bottom of this notice. If you are not satisfied with the result of the appeal, you have the right to contact your respective attorney general depending on where you reside.

We respond to all requests we receive from individuals wishing to exercise their data protection rights in accordance with applicable data protection laws.

## Data Privacy Framework Participation

1\. Data Privacy Framework Participation\
StackSync Inc. complies with the EU-U.S. Data Privacy Framework (EU-U.S. DPF), the UK Extension to the EU-U.S. DPF, and the Swiss-U.S. Data Privacy Framework (Swiss-U.S. DPF) as set forth by the U.S. Department of Commerce regarding the collection, use, and retention of personal data transferred from the European Union, the United Kingdom (and Gibraltar), and Switzerland to the United States.\
StackSync has certified to the U.S. Department of Commerce that it adheres to the Data Privacy Framework Principles. If there is any conflict between the terms in this Privacy Notice and the DPF Principles, the DPF Principles shall govern. To learn more about the Data Privacy Framework program, and to view StackSync’s certification, please visit: [https://www.dataprivacyframework.gov](https://www.dataprivacyframework.gov/)

2\. Accountability for Onward Transfers\
StackSync is responsible for the processing of personal data it receives under the DPF and subsequently transfers to a third party acting as an agent on its behalf. We comply with the DPF Principles for all onward transfers of personal data from the EU, UK, and Switzerland, including the onward transfer liability provisions.

3\. What Personal Data We Collect\
We may collect the following types of personal data:

* Identifiers: Name, email address, IP address, phone number
* Employment Info: Job title, company name, role
* Internet/Network Activity: IP addresses, cookies, browser type, usage data
* Commercial Info: Purchase history, product interactions
* Inferences: Preferences, behavioral insights
* Audio Data: Recordings from support calls (when applicable)

4\. Why We Collect and Use Personal Data\
We use personal data to:

* Provide our services and customer support
* Respond to inquiries and fulfill contracts
* Improve our products and user experience
* Send marketing communications (where legally permitted)
* Detect and prevent fraud and abuse
* Comply with legal obligations and regulatory requirements

5\. Information Disclosure to Third Parties\
We may disclose personal data to:

* Service providers (e.g., cloud infrastructure, analytics, marketing)
* Business partners (for joint offerings or referrals)
* Third-party platforms integrated at your request
* Government authorities in response to lawful requests
* Acquirers in case of a merger, acquisition, or sale of assets

Each recipient is contractually bound to handle data securely and only for the intended purposes.

6\. Your Rights\
You have the following rights under the DPF Principles and applicable laws:

* Right to access your personal data
* Right to correct or update inaccurate data
* Right to delete your data where applicable
* Right to restrict or object to processing
* Right to withdraw consent for data use (e.g., marketing)
* Right to opt out of sale or disclosure for cross-context advertising

To exercise these rights, contact us at: [privacy@stacksync.com](mailto:privacy@stacksync.com)

7\. Limiting Use and Disclosure\
StackSync provides the following mechanisms to limit use/disclosure of personal data:

* Cookie settings and ad tracking preferences
* Unsubscribe links in marketing communications
* Direct opt-out requests via email
* Platform-based controls for integrations or data sharing

8\. Lawful Requests by Public Authorities\
We may disclose your personal data in response to lawful requests by public authorities, including to meet national security or law enforcement requirements.

9\. Independent Recourse Mechanism\
In compliance with the DPF Principles, StackSync commits to resolving complaints about our collection or use of your personal data.\
If you have a concern, please first contact us at: [privacy@stacksync.com](mailto:privacy@stacksync.com)<br />

StackSync has selected JAMS (Judicial Arbitration and Mediation Services, Inc.) as our independent recourse mechanism for DPF-related complaints. If you do not receive a timely acknowledgment or are unsatisfied with our response, you may contact JAMS at no cost via: [https://www.jamsadr.com/contact](https://www.jamsadr.com/contact)

10\. Binding Arbitration\
Under certain conditions, you may invoke binding arbitration to resolve unresolved complaints not addressed through the recourse mechanism above. Details can be found in Annex I of the DPF Principles: [https://www.dataprivacyframework.gov](https://www.dataprivacyframework.gov/)

11\. U.S. Regulatory Oversight\
StackSync is subject to the investigatory and enforcement powers of the U.S. Federal Trade Commission (FTC) in relation to its compliance with the DPF Principles.

12\. Security and Retention\
We implement appropriate technical and organizational security measures. Personal data is retained only for as long as needed for the purposes outlined or as required by law.

13\. Updates to This Notice\
This Privacy Notice may be updated periodically. Changes will be posted on this page, and material changes will be communicated when required by law.

14\. Contact Information\
For questions, concerns, or requests, please contact: [privacy@stacksync.com](mailto:privacy@stacksync.com)<br />

StackSync Inc.\
Attn: Data Protection Officer\
Address: 2611, 1007 N Orange St. 4th Floor, Wilmington, DE, New Castle, USA, 19801\
DPO Contact: [dpo@stacksync.com](mailto:dpo@stacksync.com)

## Updates to this Privacy Notice

We may update this Privacy Notice from time to time in response to changing legal, technical or business developments. When we update our Privacy Notice, we will take appropriate measures to inform you, consistent with the significance of the changes we make. We will obtain your consent to any material Privacy Notice changes if and where this is required by applicable data protection laws.

You can see when this Privacy Notice was last updated by checking the “last updated” date displayed at the top of this Privacy Notice.

## How to contact us

If you have any questions or concerns about our use of your personal data, please contact us at [privacy@stacksync.com](mailto:privacy@stacksync.com), or at the following address:

Stacksync Inc., Attn: Data Protection Officer,

Address: 2611, 1007 N Orange St. 4th Floor, Wilmington, DE, New Castle, US, 19801

We have a Data Protection Officer ("DPO") responsible for compliance with data protection law. Their contact details are [dpo@stacksync.com](mailto:dpo@stacksync.com).

The data controller of your personal data is Stacksync Inc. when we collect information from you for marketing purposes. Our customers are the data controller for personal data they provide to us when they use our services.

For any legal claims, the jurisdiction of state of Delaware, USA is the prevailing court.

<br />

# Referral Program Policy

> Refer and earn 15% revenue commission for 1 year on successful referrals with Stacksync!

Source: https://docs.stacksync.com/two-way-sync/legal/referral-program-policy

Last updated: December 3rd, 2024

This referral program policy ("Policy") outlines the terms and conditions of the referral program offered by Stacksync Inc. ("Stacksync"). By participating in the referral program, you ("Referrer") agree to the terms and conditions set forth in this Policy.

## Eligibility

The referral program is open to all users of Stacksync who are 18 years of age or older or Incorporated companies. To participate, the Referrer must have an active account with Stacksync.

## Referral Process

To refer a new user to Stacksync, the Referrer must share their unique referral link with the potential new user. The referral link can be found in the Referrer's Stacksync account dashboard. The new user must sign up for a paid plan within 3 months of the registration date using the referral link provided by the Referrer.

Here are the Do's for sharing your affiliate link:

* Share your affiliate link with your friends and family and partners.
* Share your affiliate link on social media.
* Share your affiliate link on community channels.
* Share your affiliate link with your mailing list or anyone who might be interested in using Stacksync for their business needs.

The don'ts for the referral program:

* Refer yourself (use your own affiliate link to sign up to Stacksync)
* Act on Stacksync's behalf

## Referral Bonus

For every successful referral, the Referrer will receive a referral bonus equal to 15% of the revenue generated by the new user for Stacksync for a duration of 12 months starting from the subscription of a paid plan. The revenue generated is calculated based on the amount paid by the new user for their Stacksync subscription plan. Unpaid bills do not count towards the referral bonus.

## Payouts

Referral bonuses can be claimed 30 days after the new user has paid their bills. Payouts will be made to the Referrer's Stacksync account. The Referrer can use the payout towards their own Stacksync subscription plan or request a transfer to their bank account. Currency exchanges are applied, possibly with a fee. All banking fees resulting from the payment to the Referrer's bank account are to be borne by the Referrer.

## Misconduct

Any misconduct that is against reasonable behaviour according to the referral program policy can result in exclusion from the referral program and a cancellation of any payout still to be processed at any point. Stacksync reserves the right to exclude anyone from the referral program at any time without further reason to be provided.

## Conclusion

By participating in the referral program, the Referrer agrees to the terms and conditions set forth in this Policy. Stacksync reserves the right to modify this Policy at any time without prior notice. If you have any questions about the referral program or this Policy, please contact Stacksync support.

# Service Consumption Tables

Source: https://docs.stacksync.com/two-way-sync/legal/service-consumption-tables

**V.1.0.3**\
**Effective November 4, 2024. Updated March 20, 2026.**

### Overview

These Service Consumption Terms are effective as of November 4, 202 (the "Effective Date") and apply to all customers on Stacksync’s consumption-based pricing model.

Stacksync provides automated cloud data pipelines (“Connectors”, “Apps”) to its customers (each a “Customer”, “you”, “your”) as a service that transports data from various sources to specific destinations (the “Stacksync Service”). The service supports unidirectional and bidirectional data sync and is available in multiple plans (“Plans”) hosted across various geographical regions ("Regions") by third-party cloud providers (“Cloud Providers”), as described in your agreement with Stacksync (“Agreement”). Event-based actions (“Triggers”) may be initiated based on data activity within Connectors.

### Definitions

* **Workspace:** The customer’s collaborative space attached to a subscription. Each workspace has exactly one active subscription. A Workspace contains Connectors and Destinations grouped into Syncs.
* **Sync:** Two or more apps connected together with data in sync. A Sync may be active, paused or deleted. Syncs are organized within workspaces.
* **Account:** The Customer’s account on Stacksync. An Account may own or have access to multiple workspaces. An Account contains personal data about the customer.
* **Arrears:** For Capacity Purchases (defined below) only, this means any additional usage after the initial purchase has been used, but before the end of the original term. The Arrears period ensures you are able to continue using the Stacksync Services, even if the original Contracted Spend has already been consumed. You will be alerted by Stacksync when you are in Arrears.
* **Subscription:** A paid plan attached to a workspace.
* **Billing Period:** A calendar month running from the first to the last day of the month.
* **Capacity Purchase:** A subscription-based plan which requires an annual upfront purchase of Contracted Spend in bulk.
* **Contracted Spend:** The total dollar amount purchased as listed in the Order Form. Contracted Spend is shown on an annual basis.
* **Destination:** A destination is a data warehouse, database, data lake, or data lake house where the data is delivered.
* **Incremental Spend:** The price charged for the next thousand **Records in sync** (or portion of the next thousand **Records in sync**) consumed after surpassing the **Records in sync** Threshold for the month in question.
* **Initial Sync:** The first time that a connector completes a historical sync.
* **Monthly Purchase:** A plan which is not subscription-based, whereby a Customer is billed monthly in-arrears for their usage during the prior Billing Period. Monthly plans are available to purchase at the (i) stacksync.com user interface or through the (ii) AWS, (iii) GCP, or (iv) Azure marketplaces.
* **Records in sync:** The number of distinct Primary Keys synced via Stacksync, calculated on a per-Sync basis. We only count a row once per Billing Period, even if it syncs multiple times.
* **Records in sync Threshold:** The minimum **Records in sync** usage requirement to receive the consumption rates on the Service Consumption Table below.
* **Monthly Spend:** The dollar amount consumed each Billing Period from your Contracted Spend based on your actual monthly usage.
* **Total Monthly Spend:** Total Monthly Spend is the sum of Monthly Spend on Connectors and any other applicable uses of the Stacksync platform and Services.
* **Order Form:** The form used to purchase Contracted Spend from Stacksync. For Capacity Purchase customers, this is an order form document. For Monthly customers, this may be an order form document or may be the terms attached to a Monthly Purchase through one of the marketplaces identified above.
* **Plan:** The bundle of features included as a part of your Stacksync Service and outlined here. Plans may be Capacity Purchase plans (subscription-based) or may be Monthly Purchase plans (do not require annual subscriptions).
* **Primary Key:** A unique identifier that specifies a distinct row within a table. In bidirectional sync mode, the primary keys of the rows in the synced apps are mapped together. In this context, the Primary Key corresponds to a unique mapping. For instance, a corresponding row in synced apps within the same Sync results in only one Primary Key.

## Records in sync

**Records in sync** represents the number of distinct Primary Keys processed per Workspace per Billing Period. If a Primary Key is synced multiple times, it counts as one **Record in sync**. Up to 50% of the **Records in sync** for an Initial Sync is excluded for each new Sync.\
\
In cases where network troubleshooting is needed, Customer cooperation may be required to allow data flow to Stacksync.

#### Records in sync Computation

Records in sync serve as billing units and are determined within a billing period of one month. Records in sync billing is based on these actions:

1. **Record changes**: each created, updated, or deleted record within a Billing Period is counted as one Records in sync, even if updated multiple times within the same period, it only counts as one Records in sync.
2. **Triggers:** each successful trigger counts as an additional Records in sync. For instance, if a record is updated five times during the billing period, and two of those updates activate triggers, only one Records in sync will be counted for the five record updates, and two Records in sync will be counted for the triggered actions. Thus, a total of three Records in sync will be billed for that scenario.
3. **Full crawling requirements:** some systems, like Hubspot, require full crawling to detect changes. All records synced will count as Records in sync. All synced records will be counted at least once as Records in sync within a billing period if they exist. However, even if the full data crawling occurs multiple times during the billing period, the records will only count as one Records in sync. Furthermore, if these same records are updated during the period, they will not count twice as Records in sync since they were already counted once within that period.
4. **Workflow execution**: each successful workflow execution counts as an additional Record in sync. Unlike record updates, which are counted once per unique record in a billing period, each individual execution of a workflow is a distinct, billable event.

   For example, if updating 50 unique records causes a workflow to execute 50 times, this will be counted as 50 Records in sync for the record updates plus 50 additional Records in sync for the workflow executions, resulting in a total of 100 Records in sync.

* **API proxy**
  * **Standard calls**: included up to the plan’s quota, with excess usage billed at the Records in sync rate.
  * **AI Insights calls**: AI-driven calls (marked with “ai” in the URL) are included up to the plan’s quota and billed at 15 Records in sync per call once the quota is exceeded.

### Service consumption and spend calculation

Monthly Spend depends on **Records in sync** usage and the selected Plan. Each Plan has a base price covering limited usage, with incremental costs for usage beyond the included limit.

#### Plan pricing

* **Starter Plan:** $1400/mo (or $1000/mo billed yearly)
* **Pro Plan:** $3700/mo (or $3000/mo billed yearly)
* **Managed Pro Plan:** $4,900/mo (or $4,200/mo billed yearly)
* **Enterprise Plan:** custom pricing based on specific requirements

#### Service consumption table

Additional **Records in sync** pricing (Consumption based). The pricing increments in thousands of **Records in sync**. Each thousand **Records in sync** started, even partly consumed, is due in full.

| Records in sync Tier | Price per 1,000 |
| -------------------- | --------------- |
| 0 - 50k              | $0              |
| 50k → 150k           | $8.00           |
| 150k - 1M            | $2.00           |
| 1M → 10M             | $0.90           |
| 10M → 100M           | $0.40           |
| over 100M            | $0.10           |

**Note:** Pricing can change at any time without notice.

#### Example of cost calculation

Suppose you’re on a **yearly** Starter Plan with a base price and have used 200,000 **Records in sync** in one month. Here’s how costs are calculated:

* First 50,000 **Records in sync**, included in your plan.
* Next 100,000 **Records in sync**, priced at $8 per 1,000: 100 \* $8 = $800.
* Additional 50,000 **Records in sync**, priced at $2 per 1,000: 50 \* $2 = $100.
* **Total Records in sync cost:** $0 + $800 + $100 = $900.
* **Total Monthly Spend:** Base Price ($1000) + **Records in sync** Cost ($900) = $1900.

### Custom development services

For services outside of standard support, such as custom development, the following hourly rates apply:

* **Junior Engineers / Junior Solutions Architects**: $250 USD per hour
* **Senior Engineers / Senior Solutions Architects**: $400 USD per hour

#### Capacity purchase plan

For customers with a Capacity Purchase Plan, usage rates are based on the Service Consumption Table. Multiple Workspaces under one Capacity Purchase Plan can share Contracted Spend but cannot combine Synced Rows for volume discounts.

### What happens when Contracted Spend is depleted?

Capacity Purchase Customers will enter an Arrears period if Contracted Spend is depleted, during which they can continue using Stacksync Services at the "Monthly Pay As You Go" rates. Stacksync will prompt customers to purchase additional usage.

### Expiration of Contracted Spend

Contracted Spend must be used within the subscription term, with no rollover to the next term. Contact your account representative for renewals or new orders.

### Multiple Workspaces

Each Workspace’s Records in sync usage is calculated independently. Combining Rows Synced across Workspaces for discounts is not allowed, but consolidation into a single Workspace is available upon request.

### Support Plans

#### Support Priorities

Stacksync provides highly responsive support channels. The following priority levels define how issues are classified and handled:

#### P-0 — Critical / Production Down

* Full production outage or data corruption
* Core functionality unavailable
* Immediate business impact
* Requires instant escalation to on-call engineering

#### P-1 — High / Severe Degradation

* Major functionality impaired, though partially operational
* Significant performance degradation
* No viable workaround
* Requires rapid attention

#### P-2 — Medium / Functional Issue

* Non-critical feature malfunction
* Business impact present but mitigations available
* Addressed during business hours

#### P-3 — Low / Minor Bug or Usability Issue

* Cosmetic issues or low-impact defects
* No operational disruption
* Resolved in standard maintenance cycles

#### P-4 — Inquiry / Feature Request

* Clarifications, documentation questions, or enhancement requests
* No operational impact

***

#### Support Channels

* **P-4 to P-0** issues should be raised via the standard support channels included in your plan (Email, Slack, or Phone).
* **P-0** incidents may be escalated through the dedicated 24/7 hotline available under **Workspace Settings → Support Methods** (if included in your plan).

Triggering a P-0 escalation immediately notifies an on-call engineer. Your team must be ready to respond in real time (chat and/or call) to ensure rapid resolution.

**Note:** Submitting non-urgent or lower-severity issues through the P-0 hotline may incur fees of up to **$1,000 per false alert due immediately**.

### Changes to the Stacksync Service Consumption Table

Stacksync may periodically update this Service Consumption Table. When updates are made, the **“effective date”** at the top of the document will be revised.

* For **Capacity Purchase plans**, the updated table will apply upon renewal or when entering a new Order Form after the changes go into effect. This holds true if no other agreement between the parties supersedes this Service Consumption Table.
* For **Monthly Purchases/Plans**, the updates will apply in the first Billing Period following the new effective date.

If a material change is made, Stacksync will make reasonable efforts to notify you through the Stacksync dashboard or via email prior to the update taking effect.

### Benefits per plan

Each Plan offers specific benefits as detailed below. Not all features are available in every contract. For Enterprise Plans, benefits are customized and not universally included. Refer to your Order Form for specific entitlements.

| Feature                                      | Starter               | Pro                   | Enterprise                         |
| -------------------------------------------- | --------------------- | --------------------- | ---------------------------------- |
| **Two-way sync**                             |                       |                       |                                    |
| Number of Syncs                              | 1                     | 3                     | Unlimited                          |
| Synced records                               | 50K                   | 1M                    | Custom                             |
| Real-time data sync                          | ✓                     | ✓                     | ✓                                  |
| One-way syncs                                | ✓                     | ✓                     | ✓                                  |
| Two-way syncs                                | ✓                     | ✓                     | ✓                                  |
| Automatic data backfill                      | ✓                     | ✓                     | ✓                                  |
| Edit sync configuration                      | ✓                     | ✓                     | ✓                                  |
| Sync event triggers                          | ✓                     | ✓                     | ✓                                  |
| Issues dashboard                             | ✓                     | ✓                     | ✓                                  |
| Sync statistics and metrics                  | ✓                     | ✓                     | ✓                                  |
| Smart API rate limits                        | ✓                     | ✓                     | ✓                                  |
| Basic connectors                             | ✓                     | ✓                     | ✓                                  |
| Enterprise connectors                        | -                     | -                     | ✓                                  |
| Early access to Preview integrations         | -                     | ✓                     | ✓                                  |
| **Workflow automation**                      |                       |                       |                                    |
| Number of Workflows                          | 5                     | 25                    | Unlimited                          |
| Workflow executions                          | 10K                   | 1M                    | Custom                             |
| Configure workflow with YAML/JSON files      | ✓                     | ✓                     | ✓                                  |
| Asynchronous workflow executions             | ✓                     | ✓                     | ✓                                  |
| Synchronous workflow executions              | ✓                     | ✓                     | ✓                                  |
| Replay failed workflows                      | ✓                     | ✓                     | ✓                                  |
| Workflow versioning                          | ✓                     | ✓                     | ✓                                  |
| Log explorer                                 | ✓                     | ✓                     | ✓                                  |
| Store logs in your own storage               | -                     | -                     | ✓                                  |
| Managed ultra-scalable message queues        | 1k events /min /queue | 5k events /min /queue | 10M events /min /queue             |
| Number of managed queues                     | 1                     | 5                     | Unlimited                          |
| Variables and Secrets                        | ✓                     | ✓                     | ✓                                  |
| Basic connectors                             | ✓                     | ✓                     | ✓                                  |
| Enterprise connectors                        | -                     | -                     | ✓                                  |
| **API management suite**                     |                       |                       |                                    |
| API proxy                                    | ✓                     | ✓                     | ✓                                  |
| API proxy access                             | ✓                     | ✓                     | ✓                                  |
| API proxy - rate limit                       | 50k calls /day        | 150k calls /day       | Unlimited                          |
| **Platform**                                 |                       |                       |                                    |
| Collaborators per workspace                  | 3                     | Unlimited             | Unlimited                          |
| Select processing region                     | Basic                 | Extended              | All (including Custom regions)     |
| Select cloud provider (GCP, AWS, or Azure)   | -                     | -                     | ✓                                  |
| Monitoring Dashboard                         | -                     | ✓                     | ✓                                  |
| Log retention policy                         | 1 day                 | 7 days                | 30 days                            |
| SLAs                                         | -                     | -                     | ✓                                  |
| Notifications and Alerting                   | Email                 | Email                 | Email, Slack, Whatsapp, Pagerduty  |
| Environments (e.g. Dev, Staging, Production) | 1                     | 1                     | 3                                  |
| "No data retention" policy                   | ✓                     | ✓                     | ✓                                  |
| On-premise deployment                        | -                     | -                     | ✓                                  |
| GovCloud solutions                           | -                     | -                     | ✓                                  |
| White label platform                         | -                     | -                     | ✓                                  |
| **Security**                                 |                       |                       |                                    |
| Passwordless and social logins               | ✓                     | ✓                     | ✓                                  |
| MFA                                          | -                     | ✓                     | ✓                                  |
| SSO & SCIM                                   | -                     | -                     | ✓                                  |
| RBAC (Role Based Access Control)             | ✓                     | ✓                     | ✓                                  |
| SSH tunneling                                | ✓                     | ✓                     | ✓                                  |
| Reverse SSH tunnels (annual contract only)   | -                     | -                     | ✓                                  |
| IP whitelisting                              | -                     | ✓                     | ✓                                  |
| SSL certificates                             | -                     | ✓                     | ✓                                  |
| VPC peering                                  | -                     | -                     | ✓                                  |
| VPN gateway                                  | -                     | -                     | ✓                                  |
| AWS Transit gateway                          | -                     | -                     | ✓                                  |
| GCP CloudSQL proxy                           | -                     | -                     | ✓                                  |
| Private networking for AWS/Azure/Google      | -                     | -                     | ✓                                  |
| **Compliance**                               |                       |                       |                                    |
| SOC2 type 2                                  | ✓                     | ✓                     | ✓                                  |
| GDPR                                         | ✓                     | ✓                     | ✓                                  |
| CCPA                                         | ✓                     | ✓                     | ✓                                  |
| ISO27001                                     | -                     | ✓                     | ✓                                  |
| HIPAA                                        | -                     | ✓                     | ✓                                  |
| **Extensibility**                            |                       |                       |                                    |
| Stacksync's Management API                   | -                     | ✓                     | ✓                                  |
| Configuration as code (for Syncs)            | -                     | ✓                     | ✓                                  |
| Configuration as code (for Workflows)        | -                     | ✓                     | ✓                                  |
| **Support**                                  |                       |                       |                                    |
| Documentation                                | ✓                     | ✓                     | ✓                                  |
| Slack community                              | ✓                     | ✓                     | ✓                                  |
| Dedicated Slack support channel              | -                     | ✓                     | ✓                                  |
| Email, Chat and phone. Up to 24/7 support.   | -                     | -                     | ✓                                  |
| Solutions Architect                          | On Demand             | On Demand             | Dedicated during setup and monthly |

# Stacksync Certified Partner Program Terms and Conditions

Source: https://docs.stacksync.com/two-way-sync/legal/stacksync-certified-partner-program-terms-and-conditions

Last updated: April 16, 2023

These Terms and Conditions (the "Agreement") govern your participation in the Stacksync Certified Partner Program (the "Program") offered by Stacksync SA ("Stacksync"). By participating in the Program, you agree to be bound by this Agreement and any additional terms and conditions that Stacksync may adopt from time to time.

## Program Description

The Program is designed to provide a platform for consulting partners, freelance consultants, and agencies ("Partners") to support customers who need assistance with the strategy or technical implementation of Stacksync's real-time and bidirectional data synchronization solution between CRMs and Databases. Stacksync will display Partner's logos and provide referrals to Partners who offer such services to customers.

## Eligibility

Partners must meet the following eligibility criteria to participate in the Program:

1. Have experience and expertise in enterprise system integration, CRM integration, Data Warehousing, Data Activation and/or Cloud technologies
2. Agree to abide by this Agreement and any additional terms and conditions that Stacksync may adopt from time to time
3. Register for the Program on the Stacksync website and provide all requested information
4. Stacksync reserves the right to approve or reject any Partner application in its sole discretion, without reason to be disclosed.

## Partner Obligations

As a Partner in the Program, you agree to:

1. Provide high-quality services to customers referred to you by Stacksync in a professional and timely manner
2. Maintain a high level of customer service and support
3. Comply with all applicable laws and regulations in the performance of your services
4. Display Stacksync's logo on your website in the relevant sections and advertising materials as a Stacksync Certified Partner
5. Not make any decisions or speak on behalf of Stacksync

## Referral Process

Stacksync may refer customers to Partners who offer services related to Stacksync's solution. Stacksync will have no obligation to refer any customer to a Partner, and may refer customers to any other Partner or service provider at its sole discretion. Partners may not represent themselves as an agent or legal representative of Stacksync, and may not bind Stacksync to any obligation or agreement.

## Partner Fees

Stacksync does not require any fee from Partners for participation in the Program or for referrals. Partners may receive compensation from their customers for their services in accordance with their own pricing and policies.

If a partner refers and brings new clients to Stacksync as understood in the Stacksync Referral Programme Policy, the provisions under the Stacksync Referral Program Policy apply (available at [https://docs.stacksync.com/legal/referral-program-policy](https://docs.stacksync.cloud/legal/referral-program-policy)).

## Term and Termination

This Agreement will begin upon acceptance of your Partner application and will continue until terminated by either party. Either party may terminate this Agreement at any time, with or without cause, by giving the other party written notice of termination. Upon termination of this Agreement, Partner will immediately cease all use of Stacksync's trademarks, trade names, logos, and other proprietary materials. Any rights or obligations that by their nature should survive termination of this Agreement will survive, including, without limitation, the provisions regarding intellectual property, confidentiality, and limitation of liability.

## Confidentiality

Partners will have access to confidential and proprietary information about Stacksync's technology and business operations as a result of their participation in the Program. Partners agree to keep such information confidential and to not disclose it to any third party without the prior written consent of Stacksync.

## Intellectual Property

Stacksync owns all intellectual property rights in its technology, software, and related materials. Partners may use Stacksync's logo and trademarks solely for the purpose of promoting their participation in the Program, but may not use such intellectual property in any other manner without the prior written consent of Stacksync.

## Indemnification

Partners agree to indemnify, defend, and hold harmless Stacksync, its affiliates, and their respective officers, directors, employees, and agents from and against any claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising out of or in connection with Partner's participation in the Program or any breach of this Agreement.

## Limitation of Liability

Stacksync will not be liable to Partners for any special, indirect, incidental, consequential, or punitive damages arising out of or in connection with Partner's participation in the Program, even if Stacksync has been advised of the possibility of such damages. Stacksync's total liability under this Agreement will not exceed the fees paid to Partner, if any, under this Agreement.

## Governing Law and Dispute Resolution

This Agreement will be governed by and constructed in accordance with the laws of the state of Vaud in Switzerland, without regard to its conflict of law provisions. To promote peaceful resolution of any disputes, amicable dispute resolution through mediation should be preferred and attempted before resorting to arbitration or going to court. Any disputes arising out of or in connection with this Agreement will be resolved through confidential and binding arbitration in accordance with the rules of the Swiss Law. The arbitration will take place in Vaud, Switzerland, and the award of the arbitrator will be final and binding.

## Miscellaneous

This Agreement constitutes the entire agreement between the parties regarding the subject matter hereof, and supersedes all prior agreements and understandings, whether written or oral. This Agreement may not be amended or modified except in writing signed by both parties. If any provision of this Agreement is found to be unenforceable, the remaining provisions will remain in full force and effect. This Agreement may not be assigned by Partner without the prior written consent of Stacksync. Stacksync may assign this Agreement without Partner's consent. This Agreement will be binding upon and inure to the benefit of the parties hereto and their respective successors and permitted assigns.

## Relationship of the Parties

Nothing contained in this Agreement will be deemed or construed by the parties or any third party as creating the relationship of principal and agent, partnership, joint venture, or any other form of legal association or organization between the parties, nor will this Agreement be deemed or construed as creating any obligation of either party to enter into any further agreement with the other party.

## Contact Information

If you have any questions about these T\&C or the Program, you can contact Stacksync at [https://www.stacksync.com/contact](https://www.stacksync.cloud/contact).

By submitting an application to become a Stacksync Certified Partner, you acknowledge that you have read, understood, and agree to be bound by the terms and conditions of this Agreement.

\ <br />

# Terms and Conditions for Stacksync Content Creator Programme

> Policy and Terms and Conditions for the Content Creator Programme.

Source: https://docs.stacksync.com/two-way-sync/legal/terms-and-conditions-for-stacksync-content-creator-programme

Last updated: April 12th, 2023

These terms and conditions ("T\&C") govern your participation as a content creator in the Stacksync content creator programme ("Programme"). By participating in the Programme, you agree to these T\&C and any other guidelines or rules that we may communicate to you from time to time.

The content creator programme page can be accessed at: [https://www.stacksync.cloud/content-creator-programme](https://www.stacksync.cloud/content-creator-programme)

### Eligibility

To participate in the Programme, you must be at least 18 years old and have a passion for writing and blogging in the data fields. You must also have a valid bank account and be legally able to receive payments in the country where you reside. Stacksync reserves the right to accept or reject any application to participate in the Programme in its sole discretion.

### Content Creation

As a content creator, you will create original and high-quality content on topics related to the data fields as proposed and approved by Stacksync. You can also propose your own topics for approval by Stacksync. All content must be your own original work and not infringe on any intellectual property rights. By submitting content for approval, you grant Stacksync a perpetual, non-exclusive, royalty-free, worldwide license to use, reproduce, modify, distribute, and display the content in any manner Stacksync deems appropriate.

### Compensation

Stacksync will compensate you for approved content in the amount specified for each topic. You will be paid through your Stacksync cash account balance, which can be withdrawn to your bank account at any time. Stacksync reserves the right to change the compensation amount for each topic at any time in its sole discretion.

### Content Review and Approval

After you select and book your topic, you must submit your content for approval within 3 weeks. Stacksync will review and provide feedback on your content in up to 2-3 rounds of review. Only approved content will be published and compensated. Stacksync reserves the right to reject any content that does not meet its quality standards or that it deems inappropriate for any reason.

### Confidentiality

As a content creator, you may have access to confidential information about Stacksync and its operations. You agree to keep all such information confidential and not disclose it to any third party without Stacksync's prior written consent.

### Termination

Stacksync may terminate your participation in the Programme at any time for any reason, with or without cause, in its sole discretion. Upon termination, any compensation owed to you for approved content will be paid out to your Stacksync cash account balance.

### Indemnification

You agree to indemnify and hold Stacksync, its affiliates, and their respective officers, directors, employees, agents, and licensors harmless from any claims, liabilities, damages, and expenses (including reasonable attorneys' fees) arising out of or in connection with your participation in the Programme or your breach of these T\&C.

### Governing Law and Dispute Resolution

These T\&C shall be governed by and construed in accordance with the laws of the country where Stacksync is incorporated (Canton of Vaud, Switzerland). Any dispute arising out of or in connection with these T\&C or the Programme shall be resolved through binding arbitration in accordance with the rules of the arbitration organization designated by Stacksync.

### Amendments

Stacksync reserves the right to modify these T\&C at any time in its sole discretion. Any such modifications will be effective immediately upon posting on the Stacksync website. Your continued participation in the Programme after any modifications to these T\&C constitutes your acceptance of the modified T\&C.

### Entire Agreement

These T\&C constitute the entire agreement between you and Stacksync with respect to your participation in the Programme and supersedes all prior or contemporaneous communications and proposals, whether oral or written, between you and Stacksync. If any provision of these T\&C is found to be invalid or unenforceable, the remaining provisions will remain in full force and effect. Stacksync's failure to enforce any right or provision of these T\&C shall not be deemed a waiver of such right or provision.

## Contact Information

If you have any questions about these T\&C or the Programme, you can contact Stacksync at [https://www.stacksync.com/contact](https://www.stacksync.cloud/contact).

# Terms of Service and Conditions (TC)

> General Terms and Conditions for the Stacksync Service.

Source: https://docs.stacksync.com/two-way-sync/legal/terms-of-service-and-conditions-tc

Last updated: October 25th, 2025

Please read these terms and conditions carefully before using Our Service.

## Interpretation and Definitions

### Interpretation

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

### Definitions

For the purposes of these Terms and Conditions:

* Affiliate means an entity that controls, is controlled by or is under common control with a party, where "control" means ownership of 50% or more of the shares, equity interest or other securities entitled to vote for election of directors or other managing authority.
* Country refers to: Delaware, United States of America (USA).
* Company (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to Stacksync.
* Device means any device that can access the Service such as a computer, a cellphone or a digital tablet.
* Service refers to the Website.
* Terms and Conditions (also referred as "Terms") mean these Terms and Conditions that form the entire agreement between You and the Company regarding the use of the Service.
* Third-party Social Media Service means any services or content (including data, information, products or services) provided by a third-party that may be displayed, included or made available by the Service.
* Website refers to Stacksync, accessible from `https://www.stacksync.com` or any other product Stacksync offers, such as but not exhaustively, Hookforce accessible at [https://www.hookforce.app](https://www.hookforce.app).
* You means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable.

## Acknowledgment

These are the Terms and Conditions governing the use of this Service and the agreement that operates between You and the Company. These Terms and Conditions set out the rights and obligations of all users regarding the use of the Service.

Your access to and use of the Service is conditioned on Your acceptance of and compliance with these Terms and Conditions. These Terms and Conditions apply to all visitors, users and others who access or use the Service.

By accessing or using the Service You agree to be bound by these Terms and Conditions. If You disagree with any part of these Terms and Conditions then You may not access the Service.

You represent that you are over the age of 18. Stacksync does not permit those under 18 to use the Service.

Your access to and use of the Service is also conditioned on Your acceptance of and compliance with the Privacy Policy of the Company. Our Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your personal information when You use the Application or the Website and tells You about Your privacy rights and how the law protects You. Please read Our Privacy Policy carefully before using Our Service.

## Links to Other Websites

Our Service may contain links to third-party web sites or services that are not owned or controlled by the Company.

The Company has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that the Company shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods or services available on or through any such web sites or services.

We strongly advise You to read the terms and conditions and privacy policies of any third-party web sites or services that You visit.

## Termination

We may terminate or suspend Your access immediately, without prior notice or liability, for any reason whatsoever, including without limitation if You breach these Terms and Conditions.

Upon termination, Your right to use the Service will cease immediately.

Either party may terminate this Agreement upon written notice if the other party materially breaches the Agreement and fails to cure such breach within 30 days of receiving written notice.

## Limitation of Liability

Notwithstanding any damages that You might incur, the entire liability of the Company and any of its suppliers under any provision of this Terms and Your exclusive remedy for all of the foregoing shall be limited to the amount actually paid by You through the Service or 100 USD if You haven't purchased anything through the Service.

To the maximum extent permitted by applicable law, in no event shall the Company or its suppliers be liable for any special, incidental, indirect, or consequential damages whatsoever (including, but not limited to, damages for loss of profits, loss of data or other information, for business interruption, for personal injury, loss of privacy arising out of or in any way related to the use of or inability to use the Service, third-party software and/or third-party hardware used with the Service, or otherwise in connection with any provision of this Terms), even if the Company or any supplier has been advised of the possibility of such damages and even if the remedy fails of its essential purpose.

Some states do not allow the exclusion of implied warranties or limitation of liability for incidental or consequential damages, which means that some of the above limitations may not apply. In these states, each party's liability will be limited to the greatest extent permitted by law.

### "AS IS" and "AS AVAILABLE" Disclaimer

The Service is provided to You "AS IS" and "AS AVAILABLE" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, the Company, on its own behalf and on behalf of its Affiliates and its and their respective licensors and service providers, expressly disclaims all warranties, whether express, implied, statutory or otherwise, with respect to the Service, including all implied warranties of merchantability, fitness for a particular purpose, title and non-infringement, and warranties that may arise out of course of dealing, course of performance, usage or trade practice. Without limitation to the foregoing, the Company provides no warranty or undertaking, and makes no representation of any kind that the Service will meet Your requirements, achieve any intended results, be compatible or work with any other software, applications, systems or services, operate without interruption, meet any performance or reliability standards or be error free or that any errors or defects can or will be corrected.

Without limiting the foregoing, neither the Company nor any of the company's provider makes any representation or warranty of any kind, express or implied: (i) as to the operation or availability of the Service, or the information, content, and materials or products included thereon; (ii) that the Service will be uninterrupted or error-free; (iii) as to the accuracy, reliability, or currency of any information or content provided through the Service; or (iv) that the Service, its servers, the content, or e-mails sent from or on behalf of the Company are free of viruses, scripts, trojan horses, worms, malware, timebombs or other harmful components.

Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a consumer, so some or all of the above exclusions and limitations may not apply to You. But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law.

## Governing Law

The laws of the Country, excluding its conflicts of law rules, shall govern this Terms and Your use of the Service. Your use of the Application may also be subject to other local, state, national, or international laws.

## Disputes Resolution

If You have any concern or dispute about the Service, You agree to first try to resolve the dispute informally by contacting the Company.

If the dispute cannot be resolved through informal discussions within thirty (30) days, the parties shall engage in mandatory, non-binding mediation conducted by a mutually agreed-upon neutral mediator before initiating any arbitration or other formal legal proceeding.\
The mediation shall take place in Wilmington, Delaware, unless otherwise mutually agreed, and the costs of mediation shall be shared equally between the parties, unless otherwise agreed in writing.\
Participation in mediation shall be a condition precedent to the initiation of arbitration or any other form of dispute resolution.

### Arbitration Procedure

Any dispute, controversy, or claim arising out of or relating to this Agreement that is not resolved through mediation shall be finally resolved by binding arbitration administered by the American Arbitration Association (AAA) in accordance with its Commercial Arbitration Rules.\
The arbitration shall be conducted by a single arbitrator appointed in accordance with such rules.\
The seat and venue of arbitration shall be Wilmington, Delaware, and the arbitration shall be conducted in English.\
Judgment on the award rendered by the arbitrator may be entered in any court having jurisdiction thereof.

### For European Union (EU) Users

If You are a European Union consumer, you will benefit from any mandatory provisions of the law of the country in which you are resident in.

### United States Legal Compliance

You represent and warrant that (i) You are not located in a country that is subject to the United States government embargo, or that has been designated by the United States government as a "terrorist supporting" country, and (ii) You are not listed on any United States government list of prohibited or restricted parties.

## Severability and Waiver

### Severability

If any provision of these Terms is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect.

### Waiver

Except as provided herein, the failure to exercise a right or to require performance of an obligation under this Terms shall not effect a party's ability to exercise such right or require such performance at any time thereafter nor shall be the waiver of a breach constitute a waiver of any subsequent breach.

## Fees and Payment

### Fees

Customer shall pay to Stacksync the fees for the Service. Except as expressly set forth in the Order, the Service is non-cancellable and all fees are non-refundable. Customer shall have no right to withhold or reduce fees under the Agreement or set off any amount against fees owed for alleged defects in the Service.

### Payment

Customer shall pay to Stacksync the fees for the Service provided hereunder, in the amount set forth in the Order, by recurring credit card charges made on the first day of each subscription period or by invoice within thirty (30) days from the invoice date. Payment shall always be made by the start date when paying by credit card and prior to the start date of the Service when paying by invoice. Without limiting any other rights or remedies Stacksync may have, any amount not paid when due will be subject to interest equal to the lesser of: (i) 5% per month of the overdue amount; or (ii) the highest lawful rate allowed by applicable law. Such interest shall accrue on a daily basis from the due date until actual payment of the overdue amount, whether before or after judgment. In addition to any interest due under this Section, Customer shall reimburse any costs or expenses (including, but not limited to, any penalties, charges and legal and other reasonable professional costs and expenses) incurred by Stacksync to collect any amount that is not paid when due.

### Additional charges

Additional charges emerging from refunds, chargebacks, payment disputes or any other financial transaction between the Company and the Customer should be borne by the customer, especially if the request originates from the Customer. For instance, charges from payment providers or banks to transfer the amount of a refund from the Company to the Customer might be borne by the Customer.

These charges might be, by payment modality, charged to the Customer via the financial provider. When this is not possible, the charges might directly be deducted from the transferred amount being sent from the Company to the Customer. These charges might also be offset against future payment from the Company to the Customer or additionally included on future payables such as bills from the Customer to the Company.

### Taxes.

All fees are exclusive of taxes, levies, and duties, and Customer shall be responsible for payment of all such taxes, levies, and duties, including value-added tax (VAT), withholding, or similar taxes. Stacksync may calculate taxes based on the billing information Customer provides.

### Fee Increase.

Stacksync may increase the fees for the Service, which will be effective at the beginning of the next subscription period. Stacksync will notify Customer of any increase prior to it becoming effective; notice may be in the form of an invoice. Customer acknowledges that expiration of any discount or incentive programs to which Customer was previously entitled does not constitute a fee increase.

### Renewal

All contracts renew automatically if the service is not cancelled by either party before the renewal date.

### Effects on non-payment.

Stacksync may suspend Customer’s access to the Service without advance notice if Customer fails to pay in full when due. Stacksync will notify the Customer of the reason for the suspension.

### Cancellation

The Client may request cancellation of the contract without cause by providing a written notice at least 30 days prior to the contract's expiration date.

Fees for the running contract term are non refundable.

### Breach

If Customer breaches these Terms, including but not limited to non-payment or violation of the Acceptable Use Policy, all fees paid shall be non-refundable, and Customer shall remain liable for any unpaid fees due for the then-current contract term.

If the Stacksync materially breaches these Terms and fails to cure such breach within thirty (30) days after receiving written notice from Customer, Customer will be entitled to a refund of prepaid fees on a pro-rata basis for the unused portion of the Service period. This refund shall constitute Customer’s sole and exclusive remedy for such breach.

## Marketing and Branding

By agreeing to these Terms, You grant the Company a non-exclusive, royalty-free, worldwide license to use Your company’s name, logo, and trademarks for marketing and promotional purposes. This includes, but is not limited to, featuring Your logo on the Company’s Website, presentations, case studies, and promotional materials.

The Company may obtain Your logo and branding assets from publicly available sources or request them directly from You to ensure proper representation. Additionally, You agree to collaborate with the Company to provide marketing content, such as case studies, testimonials, or relevant media, upon reasonable request.

If You have specific branding guidelines, You agree to provide them upon request to ensure compliance with Your standards.

You may revoke this permission by providing written notice to the Company. Upon receipt of such notice, the Company will cease using Your logo and branding in any new materials within 30 business days.

## Ownership of Intellectual Property Rights

### Stacksync’s IP

Stacksync, or its licensors, own all right, title and interest in and to any and all copyrights, trademark rights, patent rights, database rights and other intellectual property or other rights in and to the Service, including without limitation all software, integrations, integrations with Data Sources and Data Destinations, technology and other rights used to provide the Service, and all graphics, user interfaces and any documentation, any improvements, design contributions or derivative works thereto, and any knowledge or processes related thereto and/or provided hereunder. Except for the limited rights expressly granted herein, the Agreement does not transfer from Stacksync any proprietary right or interest in the Service. All rights not expressly granted to Customer in the Agreement are reserved to Stacksync and its licensors.

### Customer’s IP

Customer shall own all right, title and interest in and to any copyrights, trademark rights, patent rights, database rights and other intellectual property or other rights in and to the Customer Data. Except for the limited rights expressly granted herein, the Agreement does not transfer from Customer any proprietary right or interest in the Customer Data. All rights regarding Customer Data not expressly granted to Stacksync in the Agreement are reserved to Customer.

## Third Party Indemnification

### Claims Brought Against Customer

Stacksync shall defend (at its sole expense) Customer against claims brought against Customer by any third party alleging that Customer’s use of the Service, in accordance with the terms and conditions of the Agreement, constitutes an infringement or misappropriation of a patent claim(s), copyright, or trade secret rights or any other third party intellectual property rights. Stacksync will pay damages finally awarded against Customer with respect to such claims, and will pay reasonable attorney’s fees in connection with such defense. This obligation of Stacksync shall not apply if the alleged infringement or misappropriation results from use of the Service in conjunction with any other software or service not provided by Stacksync or in the event of free (no fee) or trial use of the Service.

### Intellectual Property Claims

In the event a claim under the previous Section is made or in Stacksync’s reasonable opinion is likely to be made, Stacksync may, at its sole option and expense: (i) procure for Customer the right to continue using the Service under the terms of the Agreement; or (ii) replace or modify the Service to be non-infringing without material decrease in functionality. If Stacksync provides written notice to Customer that the foregoing options are not reasonably available, Stacksync or Customer may terminate the Agreement and Stacksync shall refund to Customer all prepaid fees for the remainder of its term after the date of termination.

### Claims Brought Against Stacksync

Customer shall defend (at its sole expense) Stacksync and licensors against claims brought against Stacksync by any third party arising from or related to an allegation that the Customer Data used in connection with the Service violates, infringes or misappropriates the intellectual property rights of a third party. Customer will pay damages finally awarded against Stacksync with respect to such claims, and will pay reasonable attorney’s fees in connection with such defense. The foregoing shall apply regardless of whether such damage is caused by the conduct of Customer or by the conduct of a third party using Customer’s access credentials.

### Conditions

The obligations under this Section are conditioned on (i) the Party against whom a third party claim is brought timely notifying the other Party in writing of any such claim, provided however that a Party’s failure to provide or delay in providing such notice shall not relieve a Party of its obligations under this Section except to the extent such failure or delay prejudices the defense; (ii) the Party who is obligated hereunder to defend a claim having the right to fully control the defense of such claim; and (iii) the Party against whom a third party claim is brought reasonably cooperating in the defense of such claim. Any settlement of any claim shall not include a financial or specific performance obligation on or admission of liability by the Party against whom the claim is brought, provided however that Stacksync may settle any claim on a basis requiring Stacksync to substitute for the Service any alternative substantially equivalent non-infringing service. The Party against whom a third party claim is brought may appear, at its own expense, through counsel reasonably acceptable to the Party obligated to defend claims hereunder. Neither Party shall undertake any action in response to any infringement or misappropriation, or alleged infringement or misappropriation that is prejudicial to the other Party’s rights.

### Third Party Indemnification Disclaimer

THE PROVISIONS OF THIS SECTION STATE THE SOLE, EXCLUSIVE AND ENTIRE LIABILITY OF A PARTY TO THE OTHER PARTY, AND IS THE OTHER PARTY’S SOLE REMEDY, WITH RESPECT TO THIRD PARTY CLAIMS COVERED HEREUNDER AND TO THE INFRINGEMENT OR MISAPPROPRIATION OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS.

## Translation Interpretation

These Terms and Conditions may have been translated if We have made them available to You on our Service. You agree that the original English text shall prevail in the case of a dispute.

## Changes to These Terms and Conditions

We reserve the right, at Our sole discretion, to modify or replace these Terms at any time. If a revision is material We will make reasonable efforts to provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at Our sole discretion.

By continuing to access or use Our Service after those revisions become effective, You agree to be bound by the revised terms. If You do not agree to the new terms, in whole or in part, please stop using the website and the Service.

## Attached documentation

All other documents under this legal section such as, but not exhaustively, the Privacy Notice, Service Consumption Tables, Acceptable Use Policy, and all other documents are also agreed via the acceptance of this Terms of Service and Conditions also referred to as "TC" (this document itself). The division of the text in several document pages is for visual and layout purposes only, but all belong to the same conditions to use the Stacksync service.

## Contact Us

If you have any questions about these Terms and Conditions, You can contact us by email at <mark>[hello@stacksync.com](mailto:hello@stacksync.com)</mark>

<br />

# Content Creator Guidelines

> Stacksync published content should have a consistent styling across publications. These guidelines help you build amazing content ready to be published!

Source: https://docs.stacksync.com/two-way-sync/others/content-creator-guidelines

The content creator programme page can be accessed at: [https://www.stacksync.com/content-creator-programme](https://www.stacksync.cloud/content-creator-programme)

## Which tools can I use?

You are free to use any tool you like to build amazing content, feel comfortable to use your own stack. If you do not have a favourite stack yet, check our recommendations:

1. [Guidde](https://www.guidde.com/) to make stunning tutorials in no time. You can create a free account.
2. [Zappy](https://zapier.com/zappy) for screen recording + [imovie](https://www.apple.com/imovie/) for video editing
3. [ScreenStudio](https://www.screen.studio/) for screen recording
4. [Shottr](https://shottr.cc/) for screenshot (screenshots of all shapes! even pages!) and image editing
5. [3D transformer](https://www.3dtransformer.com/) for beautiful 3D images
6. [Brandbird](https://www.brandbird.app/studio) for pixel perfect gradient images
7. [Carbon](https://carbon.now.sh/) for beautiful code snippets

## Examples of Contents

Testimonial: [https://www.stacksync.com/blog/stacksync-a-great-alternative-to-heroku-connect](https://www.stacksync.cloud/blog/stacksync-a-great-alternative-to-heroku-connect)

Guide/Tutorial: [https://docs.stacksync.com/guides/two-way-sync-salesforce-and-postgres](https://docs.stacksync.cloud/guides/two-way-sync-salesforce-and-postgres)

Video guide: [https://www.youtube.com/watch?v=CWd3-UYL7ds](https://www.youtube.com/watch?v=CWd3-UYL7ds)

And there are many more around! Feel free to also get inspired by other best-practice companies such as Stripe, AppSmith and more.

# Quick Start

Source: https://docs.stacksync.com/two-way-sync/quick-start

Welcome to real-time two-way sync in Stacksync! Get started by watching this video

<YouTube id="xcU_7XU3txw" title="Video" />

# EU Data Protection

Source: https://docs.stacksync.com/two-way-sync/security/eu-data-protection

Updated January 10, 2023

Stacksync prioritizes customer trust. We know that the safekeeping of customer data is critically important to our customers’ values and operations. That is why we keep it private and safe.

Stacksync helps customers maintain control of privacy and data security in multiple ways:

* Data Security: Stacksync complies with high security standards, such as encryption of data in transit and at rest, focus on latest regulations, and a support team that is on-call when you need it.
* Disclosure of Customer Data: Stacksync only discloses customer data to third parties where disclosure is necessary to provide the services or as required to respond to lawful requests from public authorities.
* Trust: Stacksync has developed security protections and control processes to help our customers ensure a secure environment for their information. Stacksync adheres to high industry standards.
* Access Management: Stacksync provides an advanced set of access and encryption features to help customers effectively protect their information. We do not access or use customer's data for any purpose other than providing, maintaining and improving the Stacksync services and as otherwise required by law.

### What is Customer Data?

### Customer Data is any information, including personal data, which is replicated via the Stacksync services, by, or on behalf of, our customers and their end-users.

### Who owns control of the Customer Data?

From a privacy perspective, the customer is the controller of Customer Data, and Stacksync is a processor. This means that throughout the time that a customer subscribes to services with Stacksync, the customer retains ownership of and control over Customer Data in its account.

### Who are Stacksync’s sub-processors?

Stacksync maintains an up-to-date list of the names and locations of all sub-processors (including members of the Stacksync subsidiaries and third parties) used for hosting or other processing of Customer Data, which can be found in our Stacksync Subprocessors documentation. The list may also be obtained by contacting [security@stacksync.com](mailto:security@stacksync.com).

### How does Stacksync process Customer Data?

Stacksync replicates data from Customer databases and cloud sources, processes and loads it into the Customer’s destination. This can also be done in a bidirectional manner, from and to connected applications (“apps”) also named “Services” or “External Platforms”.

To learn more about our data handling and retention periods, see our technical documentation.

### What steps does Stacksync take to secure Service Data?

Stacksync prioritizes data security and combines enterprise-class security features with comprehensive audits of our applications, systems, and networks to ensure customer and business data is always protected.

### Where will Customer Data be stored?

Stacksync runs data connectors on servers in various locations such as in the United States (US), Canada, European Union (EU), United Kingdom (UK), Australia, and Singapore (non-exhaustive list). When customers connect an app, they select the region to be used for the processing and storage of the encrypted data. If customers configure their connectors to use our EU servers, their data will not leave the EU during processing including connectors that sync webhooks and event data. See our Stacksync Data Residency documentation for details. Customer Data is cached on Stacksync servers while operations are running, and is purged from Stacksync's system as soon as it is deleted in the connected app. See our Data Retention documentation for details.

### How does Stacksync respond to Information Requests?

### Stacksync recognizes that privacy and data security issues are top priorities for customers. Stacksync does not disclose Customer Data except as necessary to provide its services to its customers and comply with the law as detailed in our Privacy Policy.

### GDPR (General Data Protection Regulation)

Stacksync has a strong commitment to privacy, security, compliance and transparency. This includes supporting our customers’ compliance with EU data protection requirements, including those set out in the General Data Protection Regulation (“GDPR”).

If a Stacksync customer collects, transmits, hosts or analyzes personal data of EU citizens, GDPR requires the company to comply with specific technical and organizational requirement. Stacksync does not persistently store Customer Data but we nevertheless assist customers to meet their obligations to:

* Respond to requests from data subjects to correct, amend or delete personal data;
* Report personal data breaches to relevant supervisory authorities and data subjects in accordance with GDPR time frames;
* Demonstrate compliance with the GDPR as pertaining to Stacksync’s services.

### How does the GDPR apply to customers?

Stacksync customers that collect and store personal data are considered data controllers under the GDPR. Data controllers bear the primary responsibility for ensuring that their processing of personal data is compliant with relevant EU data protection law, including the GDPR.

### What implications does GDPR have for organizations processing the personal data of EU citizens?

One of the key aspects of the GDPR is that it creates consistency across EU member states on how personal data can be processed, used, and exchanged securely. Organizations need to demonstrate the security of the data they are processing and their compliance with GDPR on a continual basis, by implementing and regularly reviewing robust technical and organizational measures, as well as compliance policies.

### How has Stacksync been preparing for the GDPR?

Stacksync’s Services are designed with privacy and security at its core. It is therefore GDPR-native in a sense. Additionally, our privacy team is continuing its review of Stacksync’s current product features and practices (including adding features such as column exclusion and column hashing) to ensure we support our customers with their GDPR compliance requirements.

### Which Stacksync services and features can support customers' compliance with the GDPR?

All Stacksync services are GDPR compliant, so customers can use any available Stacksync service and remain GDPR compliant.

***

## Questions?

We're always happy to help with any other questions you might have! Send us an email at <mark>[privacy@stacksync.com](mailto:privacy@stacksync.com)</mark>.

<br />

# Overview - Security

> Stacksync is committed to security and focused on keeping you and your data safe. Stacksync adheres to industry-leading standards while connecting your apps together.

Source: https://docs.stacksync.com/two-way-sync/security/overview-security

Updated November 13, 2026

Stacksync is committed to security and focused on keeping you and your data safe. Stacksync adheres to industry-leading standards while connecting, replicating, and loading data from all of your data sources.

Contact <mark>[security@stacksync.com](mailto:security@stacksync.com)</mark> if you have any questions or comments.

***

## TL;DR

Stacksync does not store any customer data, data is only processed at Stacksync but never persisted. Even during transit, all data is encrypted with AES encryption (military-grade protocol). Only the credentials to access the client's external platform instance or database, and some minimum metadata about the tables and columns synced are stored (not all columns, only the ones that are selected to be synced). The metadata is stored in a custom Stacksync format, which removes most of the attributes of the tables and columns, keeping only the name of the column (or identifier) and datatype.

All data and credentials are AES encrypted with regularly rotating keys in a fully autonomous way, such that no one can access it in production. Stacksync stands at the top standard in terms of security and privacy.

Stacksync lets you [choose the region](/two-way-sync/connectors/setup-options/choose-data-processing-region) where your data is processed. This enables for maximum compliance and system performance (due to proximity with client’s data sources).

***

## Detailed security policies

### Web portal connectivity

* All connections to Stacksync's web portal are encrypted by default using industry-standard cryptographic protocols (TLS 1.2+).
* Any attempt to connect over an unencrypted channel (HTTP) is redirected to an encrypted channel (HTTPS).
* To take advantage of HTTPS, your browser must support encryption protection (all versions of Google Chrome, Firefox, and Safari).

***

### Role-Based Access Control (RBAC)

Users accessing the Stacksync User Interface (UI) for a given workspace are subject to Role-Based Access Control (RBAC). These are the different roles. Below is a top-level description for every role:

* **Owner** (there is exactly one Owner per workspace). The Owner has all the permission that the Editors have, but they are also able and responsible for managing the billing settings for the workspace.
* **Editor** (there can be zero or many Editors per workspace). Editors can view and edit most resources in the workspace.
* **Viewer** (there can be zero or many Viewers per workspace). Viewers can view most workspace resources but cannot edit anything in the workspace.

Some resources such as, for example, *Connections*, *API proxy services* or *Schedules jobs* have the option to be shared with other members of the workspace. Depending on the resource type and if the collaboration with other members of the workspace is deactivated, the resource will be non-editable for all users other than its resource creator and in certain cases even non-visible. This offers higher security levels for some workspace resources.

RBAC is workspace-specific. Users can have different roles in different workspaces. A User can have only one role per workspace.

***

### Connectors

* Connections to customers' database sources and destinations are SSL encrypted by default.
* Stacksync can support multiple connectivity channels.
* Connections to customers' software-as-a-service (SaaS) tool sources and destinations are encrypted through HTTPS.

***

### Permissions

* Databases and API cloud applications - Stacksync requires READ and WRITE permissions.
* Connected Applications - Stacksync requires the READ and WRITE permission. This permission allows Stacksync to CREATE a schema within your destination, CREATE tables within that schema, and WRITE to those tables.

***

### Retention of customer data

How long we retain customer data depends on the data type:

| Customer data (in-flight processing)                                       | a few seconds (\< 1 hour in rare conditions, usually) | <p>We purge customer data as soon as it is successfully written to the destination, except in the cases below.</p><p>The operations should last, in most cases, only a couple of milliseconds or seconds since we sync data in real-time but some technical conditions and data volumes might require longer processing, usually up to one hour.<br />-> In-flight data is fully encrypted and is never persisted in plain text. We are compatible with the highest security standard for in-flight data processing.</p>                                                                                                                                                                                                       |
| -------------------------------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Customer data (synced)                                                     | Persistent                                            | In order to detect changes when customers edit data in their app, Stacksync needs to keep a hashed version (fingerprint only) of each synced record. The hashed copy is stored permanently (or until it is deleted in the synced apps) in our regional storage, in the region you have chosen in your Base configuration. The data is hashed using various algorithms so it cannot be reversed in any case. This hashed record image is also stored in our most secure storages. This technical design is fully approved by highest security and privacy standards and regulations.                                                                                                                                            |
| Customer data where sync errors are detected.                              | Varies                                                | Stacksync detects errors when syncing one-way or bidirectionally between apps. These errors most often result from differences in schemas between synced apps. These differences are authorized and are normally handled by Stacksync automatically. However, customers might insert data in one app that cannot be replicated on the other synced app. When this is the case, Stacksync detects the error and stores the encrypted data to display it to the user (for troubleshooting) and then tries to re-sync it. When the error is fixed by the user or is overridden by another valid (i.e., non-error) update, the error is deleted from our storage. The retention period depends on the time taken to fix the issue. |
| Event data from the Webhooks connector and other connectors using webhooks | \< 3 minutes                                          | If you sync webhooks or event data, we do not retain data since data is processed immediately when it is received on your servers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Customer access keys                                                       | Persistent                                            | We retain customer database credentials and SaaS OAuth tokens to securely and continuously extract data and troubleshoot customer issues. These credentials are securely stored in a key management system, which is backed by a hardware security module managed by our cloud provider.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Customer metadata                                                          | Persistent                                            | We retain configuration details and data points (such as table and column names) for each connector so that this information can be displayed in your Stacksync dashboard and be used to process data as well.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

In the following two cases, customer data is purged as soon as it is successfully written to the destination. If the data writing process takes longer than usual, the data is however kept for object lifecycle management:

* Destination outage: If your destination is down, we maintain the data that we've read from your source so we can resume the sync without losing progress once the issue is resolved.
* Schema information for column blocking or hashing purposes: If you choose not to sync a column before syncing your new connector, we queue your data while we read the full schema. We only write the data to the destination that you approve.

***

### Encryption and Hashing

Stacksync uses best-in-class algorithm to encrypt and hash your data.

**Encryption**: AES encryption with autonomous rotating keys. Encryption keys are frequently updated ensuring effective partitioning of data on several keys as well as [perfect forward secrecy](https://en.wikipedia.org/wiki/Forward_secrecy). AES is a military-grade standard.

**Hashing**: various algorithms, often coupled with byte compression.

***

### Solution infrastructure

Access to Stacksync production infrastructure is only allowed via hardened IAM (identity and access management) policies. Further access to the environment and enforcement of least privilege is controlled by IAM policies. Privileged actions are captured in audit logs for review and anomalous behavior detection.

***

### Physical and environmental safeguards

Physical and environmental security is handled entirely by our cloud service providers. Each of our cloud service providers provides an extensive list of compliance and regulatory assurances, including SOC 1/2-3, PCI-DSS, and ISO27001.

#### Google

See the [Google Cloud Platform compliance](https://cloud.google.com/security/compliance/), [security](https://cloud.google.com/security/overview/), and [data center security](https://cloud.google.com/security/overview/whitepaper#state-of-the-art_data_centers) documentation for more detailed information.

#### Amazon

See the [Amazon Web Services compliance](https://aws.amazon.com/compliance/), [security](https://aws.amazon.com/security/), and [data center security](https://aws.amazon.com/compliance/data-center/controls/) documentation for more detailed information.

#### Azure

See the [Azure compliance](https://docs.microsoft.com/en-us/azure/compliance/), [security](https://docs.microsoft.com/en-us/azure/security/), and [data center security](https://docs.microsoft.com/en-us/azure/security/fundamentals/physical-security) documentation for more detailed information.

***

### Stacksync data residency

Stacksync runs data connectors on servers such as in the United States (US), Canada, European Union (EU), United Kingdom (UK), Australia, Singapore (non-exhaustive list). You can select your preferred data processing location when configuring your Base. All connectors configured in a destination run in the destination's designated location. This means that your data will not leave our region-specific servers during processing. For example, if you configure your destination to use our EU servers, your data will not leave the EU during processing or storage. See our Base and Connected Apps documentation to learn how to configure your data processing location.

Stacksync runs services on Google Cloud Platform (GCP), Amazon Web Services (AWS), and Azure. The following table lists regions supported by Stacksync for each service provider:

| GEOGRAPHY | GCP REGIONS                                                                                                           | AWS REGIONS                                               | AZURE REGIONS |
| --------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------- |
| Americas  | <p>us-east1 (South Carolina)\*</p><p>us-west1 (Oregon)</p><p>us-central1 (Iowa)<br />us-east4 (Northern Virginia)</p> | <p>us-east-1 (N. Virginia)\*</p><p>us-west-2 (Oregon)</p> | N/A           |
| EU        | <p>europe-west1 (Belgium)\*</p><p>europe-west3 (Frankfurt, Germany)<br />europe-west6 (Zurich, Switzerland)</p>       | eu-central-1 (Frankfurt)\*                                | N/A           |
| Asia      | asia-southeast1 (Singapore)\*                                                                                         | <p>ap-southeast-1 (Singapore)\*</p><p><br /></p>          | N/A           |

\*NOTE: Default region for a given cloud provider / geography combination.

IMPORTANT: Google Cloud Platform is the default cloud service provider. You can select a different cloud service provider and region if you are on a plan that allows that option.

***

### Your organization permissions

* Only users of your organization registered within Stacksync and Stacksync operations staff have access to your organization's Stacksync dashboard.
* Your organization's Stacksync Dashboard provides visibility into the status of each integration, the aforementioned metadata for each integration, and the ability to pause or delete the integration connection - not organization data.
* Organization administrators can immediately revoke an organization member’s access to a workspace at any time from the Workspace Settings page. Otherwise, Organization administrators can request that Stacksync revoke an organization member's access at any point; these requests will be honored within 24 hours or less.

***

### Company policies

* Stacksync requires that all employees comply with security policies designed to keep any and all customer information safe, and address multiple security compliance standards, rules and regulations.
* Two-factor authentication and strong password controls are required for administrative access to systems.
* Security policies and procedures are documented and reviewed on a regular basis.
* Current and future development follows industry-standard secure coding guidelines, such as those recommended by OWASP.

***

### In the event of a data breach

To date, Stacksync has not experienced a breach in security of any kind. In the event of such an occurrence, Stacksync protocol is such that customers would be made aware as soon as the compromise is confirmed.

***

### Responsible disclosure policy

At Stacksync, we are committed to keeping our systems, data and product(s) secure. Despite the measures we take, security vulnerabilities will always be possible.

If you believe you’ve found a security vulnerability, please send it to us by emailing [security@stacksync.cloud](mailto:security@stacksync.cloud). Please include the following details with your report:

* Description of the location and potential impact of the vulnerability.
* A detailed description of the steps required to reproduce the vulnerability (POC scripts, screenshots, and compressed screen captures are all helpful to us).

Please make a good faith effort to avoid privacy violations as well as destruction, interruption or segregation of services and/or data.

We will respond to your report within 5 business days of receipt. If you have followed the above instructions, we will not take any legal action against you regarding the report.

***

### Diagnostic data access

IMPORTANT: Stacksync cannot access your data without your approval.

When working on a support ticket, we may need to access your data to troubleshoot or fix your broken connector or destination. In that case, we will ask you to grant Stacksync access to your data for the next 21 days. You can allow or deny data access. If you grant us data access, you can revoke it at any moment before the 21-day diagnostic period has expired.

See our support documentation for more details.

***

Questions?

We're always happy to help with any other questions you might have! Send us an email at <mark>[security@stacksync.com](mailto:security@stacksync.com)</mark>

<br />

# Security Whitepaper

> An in-depth overview of Stacksync's commitment to data protection, privacy, and compliance for modern enterprise automation.

Source: https://docs.stacksync.com/two-way-sync/security/security-whitepaper

<Embed src="https://drive.google.com/file/d/1ANEh9qLfTy7Sk4y5u8agfz4oRzTEZy7I/preview" title="Google Drive file" />

# Subprocessors

Source: https://docs.stacksync.com/two-way-sync/security/subprocessors

Updated November 11, 2026

Stacksync SA (“Stacksync”) uses certain subprocessors to assist it in providing the Stacksync Services as described in the Terms of Service (TOS). Defined terms used herein shall have the same meaning as defined in the TOS.

## What is a Subprocessor?

A subprocessor is a third-party data processor engaged by Stacksync, including entities from within the Stacksync Group, who has or potentially will have access to or process personal data on behalf of a Customer. Stacksync engages different types of subprocessors to perform various functions as explained in the tables below. Stacksync refers to third parties that do not have access to or process personal data on behalf of a Customer, but who are otherwise used to provide the Services, as "subcontractors" and not "subprocessors".

## Pipeline Data Subprocessors

**These are subprocessors who have access to Stacksync production systems and data by virtue of the services they provide.**

| NAME            | NATURE OF PROCESSING                                                | TERRITORY(IES) |
| --------------- | ------------------------------------------------------------------- | -------------- |
| Amazon, Inc.    | AWS hosting environment for Supplier services                       | Global         |
| Google, Inc.    | Google Cloud hosting environment for Supplier services              | Global         |
| Ubicloud        | Ubicloud hosting environment for Supplier services                  | Global         |
| Microsoft, Inc. | Azure hosting environment for Supplier services                     | Global         |
| Okta, Inc.      | Authentication and authorization for Stacksync Websites (via Auth0) | Global         |
| Scaleway SAS    | Scaleway hosting environment for Supplier services                  | Global         |
| OVH Groupe SAS  | OVH hosting environment for Supplier services                       | Global         |
| Orderful, Inc.  | Electronic data interchange (EDI) platform provider                 | United States  |

## Affiliates

Stacksync SA maintains affiliate companies in countries where our full-time employees work. Each of these affiliate companies comprises members of the Stacksync team who contribute from outside of Switzerland.

| NAME    | NATURE OF PROCESSING | TERRITORY(IES) |
| ------- | -------------------- | -------------- |
| Cegelem | Web Consultants      | France         |

## AI inference providers

| NAME                      | NATURE OF PROCESSING               | TERRITORY(IES)       |
| ------------------------- | ---------------------------------- | -------------------- |
| OpenAI                    | AI inference provider              | Global (all regions) |
| Anthropic                 | AI inference provider              | Global (all regions) |
| OpenRouter                | AI inference provider              | Global (all regions) |
| TypeSafe                  | AI inference provider              | Global (all regions) |
| Google, Inc. (Gemini API) | AI inference provider              | Global (all regions) |
| Perplexity AI, Inc.       | AI inference provider (web search) | Global (all regions) |

***

## Questions?

We're always happy to help with any other questions you might have! Send us an email at [hello@stacksync.com](mailto:hello@stacksync.com)

# Stacksync Catalyst Program - Master Participation Agreement (“MPA”)

> Master Participation Agreement ("MPA") to the Stacksync Catalyst Program.

Source: https://docs.stacksync.com/two-way-sync/stacksync-catalyst-program-master-participation-agreement-mpa

**Last updated 8 July 2025**\
This MPA is a binding agreement between **Stacksync Inc.** (“**Stacksync**”) and the individual or entity that registers for the Catalyst Community (the “**Participant**”). It governs all Catalyst Program activities and incorporates by reference the policies published at [https://docs.stacksync.com/legal](https://docs.stacksync.com/legal).

***

## 1 Scope and Hierarchy

## 1.1 Program Purpose.

The Catalyst Program enables Participants to build production-grade connectors and workflow templates for the Stacksync platform using the public Connected Development Kit (“**CDK**”).<br />

**1.2** **Precedence.**

If a Connector Assignment Agreement (“CAA”, §5) conflicts with this MPA, the CAA controls for that connector; otherwise this MPA prevails.<br />

**1.3** **Incorporated Policies.**

The Stacksync Terms of Service, Privacy Notice, Acceptable Use Policy, Data Processing Addendum, and Certified Partner Program Terms are incorporated herein (collectively, the “**Policies**”).

***

## 2 Eligibility and On-Boarding

Participation requires (i) legal capacity to contract, (ii) acceptance of this MPA and the Policies, and (iii) provision of accurate payment information. Stacksync may approve, reject, or revoke participation at its sole discretion.

***

## 3 Confidentiality

Each party shall protect non-public information disclosed by the other party, use it solely for Catalyst purposes, and return or destroy it upon request. This obligation survives for three years after disclosure.

***

## 4 Intellectual Property

**4.1** **Assignment.**

Upon payment of the reward specified in §7, the Participant assigns to Stacksync all worldwide intellectual-property rights in each accepted connector or template (“**Deliverable**”), excluding pre-existing open-source components used under their respective licences.<br />

**4.2** **Moral Rights.**

The Participant waives, to the fullest extent permitted by law, any moral rights in each Deliverable.

**4.3** **Attribution.**

Stacksync may publicly reference the Participant’s name, badge, or partner status in marketing materials.

***

## 5 Connector Assignment Agreements

Each Deliverable is governed by a CAA specifying:

* connector or template ID and title;
* scope and APIs to cover;
* complexity tier (Simple / Medium / Complex);
* delivery deadline;
* fixed reward;
* three-week post-production maintenance window;
* quality checklist (annexed to the CAA).

***

## 6 Development and Quality Obligations

Deliverables must:

* follow CDK guidelines and the Acceptable Use Policy;
* implement all API operations defined in the CAA;
* include unit or integration tests, robust error handling, logs, and user-facing documentation;
* pass Stacksync code review and continuous-integration checks;
* satisfy a 48-hour response SLA for bug reports during the maintenance window.

***

## 7 Compensation

**7.1 Base Reward Range.**\
Each Connector Assignment Agreement (“CAA”) specifies a base reward for the related Deliverable. As of the Effective Date, base rewards range from **USD 50** to **USD 300**, determined by the complexity and urgency tiers defined by Stacksync.

**7.2 Right to Modify Rewards.**\
Stacksync may revise the base-reward schedule or any related multipliers at any time and without prior notice. Any revision applies only to CAAs executed after the effective date of the revision.

**7.3 Volume-Based Multipliers.**\
Upon acceptance of cumulative Deliverables by the same Participant, the following percentage multipliers apply to the base reward stated in each subsequent CAA:

* **Six (6) to ten (15) accepted Deliverables:** +10 %
* **Eleven (11) to thirty (30) accepted Deliverables:** +20 %
* **More than thirty (30) accepted Deliverables:** +30 %

**7.4 Payment Timing.**\
Rewards, inclusive of any applicable multipliers, are payable twenty-one (21) calendar days after Stacksync confirms production acceptance of the Deliverable and no Critical-Severity defects remain open.

**7.5 Payment Method and Taxes.**\
Rewards are remitted via ACH, PayPal, or Wise. All transaction fees and applicable taxes are the responsibility of the Participant.

**7.6 Set-off.**\
Stacksync may withhold or set off amounts necessary to cover unresolved breaches, indemnity obligations, or chargebacks attributable to the Participant.

***

## 8 Badges, Certifications, and Partner Status

Badges are awarded automatically for predefined milestones. Certifications require successful completion of a technical assessment. Certified partners may display the “Stacksync Certified” or “Stacksync Certified” mark subject to the Partner Terms.

***

## 9 Data Protection

The Participant shall process personal data only in accordance with the Data Processing Addendum and implement industry-standard security measures. Any security incident must be reported to Stacksync without undue delay.

***

## 10 Acceptable Use and Community Conduct

All Catalyst communications occur in the designated Slack workspace. The Participant shall comply with the Acceptable Use Policy and maintain professional conduct. Violations may result in immediate termination.

***

## 11 Representations and Warranties

The Participant represents that each Deliverable: (i) is original or properly licensed, (ii) does not infringe third-party rights, (iii) complies with applicable laws, and (iv) is free of malicious code.

***

## 12 Indemnification

The Participant shall indemnify and hold harmless Stacksync from any third-party claims arising from a breach of §§6, 9, or 11.

***

## 13 Limitation of Liability

Except for indemnification or gross negligence, each party’s aggregate liability under this MPA is limited to the greater of USD 1,000 or 150 % of the total rewards paid to the Participant in the preceding twelve months. Neither party is liable for indirect or consequential damages.

***

## 14 Term and Termination

This MPA commences on the Effective Date recorded in the Catalyst dashboard and continues until terminated. Either party may terminate for convenience with 30 days’ written notice. Immediate termination applies for material breach, AUP violations, or bankruptcy. §§3, 4, 11-15 survive termination.

***

## 15 Governing Law and Dispute Resolution

This MPA is governed by the laws of the State of Delaware, USA. Disputes shall be resolved by binding arbitration in Wilmington, Delaware, under AAA Commercial Rules. Class-action procedures are waived.

***

### 16 No Public Affiliation

The Participant is an independent contractor and shall not:\
(a) represent or imply that it is a partner, affiliate, employee, agent, or legal representative of Stacksync;\
(b) disclose or advertise any relationship with Stacksync, or use Stacksync’s name, logo, or trademarks in press releases, marketing materials, social media, or other public communications, without Stacksync’s prior written consent; or\
(c) create any obligation or liability on behalf of Stacksync.<br />

Nothing in this Agreement creates a joint venture, franchise, agency, fiduciary, or employment relationship between the parties.

***

### 17 Miscellaneous

* **Independent Contractors.** The parties are independent entities.
* **Assignment.** The Participant may not assign this MPA without Stacksync’s prior written consent.
* **Notices.** Legal notices must be sent to [legal@stacksync.com](mailto:legal@stacksync.com) and to the Participant’s email on record.
* **Entire Agreement.** This MPA, all CAAs, and the Policies constitute the entire agreement.
* **Amendments.** Stacksync may update this MPA on 30 days’ notice; continued participation constitutes acceptance.

***

**Stacksync Inc.**                      **Participant**

*Execution through the Catalyst dashboard constitutes acceptance of all terms herein.*

# Community

> Join the Stacksync community to connect with other data syncers and share what you are building. 💪🏼

Source: https://docs.stacksync.com/two-way-sync/start-here/community

We're glad you are here! 💜

## Slack community 🎉

Our [Slack community](https://join.slack.com/t/stacksync-community/shared_invite/zt-1tx5lljv4-xNErkvjR9K4MXwUOSI7ItQ) is full of folks ready help you and share what they're building with Stacksync!

[Join our community now with this invite link](https://join.slack.com/t/stacksync-community/shared_invite/zt-1tx5lljv4-xNErkvjR9K4MXwUOSI7ItQ)

<figure>
  <img src="/https/docs.stacksync.com/images/home/slack-logo.webp" alt="Slack logo" width="1200" height="449" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Our founders host office hours, events, and more. You can also reach our support team, who are ready to jump in and help anytime. See you there!

### Book a demo or support session with an engineer

<Embed src="https://cal.com/rubenburdin/stacksync-demo?embed=true" title="Book a meeting" />

## Contact us

For any other chit chat, send us a note at [hello@stacksync.com](mailto:hello@stacksync.com).

If you're trying to reach us in other ways, here's all our [contact info](https://www.stacksync.com/contact).

<Callout type="info">
  For critical issues, use [<mark>critical@stacksync.com</mark>](mailto:critical@stacksync.com).
</Callout>

# Getting Started with Stacksync

> Set up your first sync in less than 5 minutes

Source: https://docs.stacksync.com/two-way-sync/start-here/quick-start

Stacksync lets you sync data across your tools so when you update data anywhere, it updates everywhere! You can create your first sync in under 5 minutes. Here's how:

## Step 1: Create a new sync

From your dashboard, click "Create a new sync"

<figure>
  <img src="/https/docs.stacksync.com/images/home/stacksync-syncs-create-new-sync.webp" alt="Stacksync Syncs dashboard listing paused syncs with the &#x22;Create new sync&#x22; button highlighted at top right." width="1460" height="757" loading="lazy" decoding="async" />

  <figcaption><p>Click "Create a new sync"</p></figcaption>
</figure>

## Step 2: Connect your apps

Click on each app you want to sync and connect with a single click!

<figure>
  <img src="/https/docs.stacksync.com/images/home/create-sync-connect-apps.webp" alt="Stacksync &#x22;Create New Sync&#x22; Connect Apps step with sync name, data processing region and connected app tiles, Salesforce selected" width="1463" height="757" loading="lazy" decoding="async" />

  <figcaption><p>Connect your App in a click</p></figcaption>
</figure>

## Step 3: Map tables

<figure>
  <img src="/https/docs.stacksync.com/images/home/create-sync-link-tables.webp" alt="&#x22;Link Tables&#x22; step pairing Salesforce and HubSpot tables via &#x22;Select Table&#x22; dropdowns with sync direction arrows between them" width="1460" height="752" loading="lazy" decoding="async" />

  <figcaption><p>Map tables between your Apps</p></figcaption>
</figure>

If both of your apps contain tables that should be synced together, you can select them side by side. If, for some tables in an app, you don’t yet have a table in the other app, Stacksync will create pixel-perfect schemas for you! ✨ In most cases, you’ll let Stacksync create new tables for you, but it’s up to you!

You can also choose the sync direction: **one-way or two-way sync 😍**

## Step 4: Map fields

For every table you want to sync, you will map fields (i.e. columns) together.

Stacksync uses AI auto-mapping, which finds the best matching pairs for you so you don’t have to do all the work manually. You can modify the proposed mapping as you like, with maximum flexibility.

<figure>
  <img src="/https/docs.stacksync.com/images/home/create-sync-map-fields.webp" alt="&#x22;Map Fields&#x22; step mapping Salesforce AIInsightFeedback Id to HubSpot Appointments id, with a &#x22;Sync More Fields&#x22; button" width="1461" height="754" loading="lazy" decoding="async" />

  <figcaption><p>Map fields in Stacksync UI</p></figcaption>
</figure>

<Callout type="info">
  Field *names* do not have to match.

  Field *types* need to be compatible (no need to be exactly the same but semantically compatible). Check our documentation on field mapping for more details.
</Callout>

## Step 5: Turn sync on!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/syncs-list-sync-toggle-on.webp" alt="Stacksync Syncs list with the toggle for &#x22;The Sync Legacy&#x22; highlighted and switched on to &#x22;Syncing&#x22; while other syncs are &#x22;Paused&#x22;" width="1465" height="762" loading="lazy" decoding="async" />

  <figcaption><p>Turn sync on and data starts syncing between your apps!</p></figcaption>
</figure>

That's it! 🎉 Data will start syncing between your tools. With real-time and two-way sync you can modify your data in any of your synced apps for it to be updated in any other apps.

<Callout type="info">
  After turning sync on, you can check the **issues dashboard** to see any sync errors from your connected apps. Access it from the menu on the left of your Stacksync screen.
</Callout>

## 👉 Keep reading!

<Cards>
  <Card title="Two-Way Sync Salesforce and Postgres" href="/https/docs.stacksync.com/two-way-sync/guides/two-way-sync-salesforce-and-postgres" />
</Cards>

# Connectors

Source: https://docs.stacksync.com/two-way-sync/workflows/connectors



# Authorize Stripe

Source: https://docs.stacksync.com/two-way-sync/workflows/connectors/stripe/authorize-stripe

## 1. Log into Stripe Dashboard and click on Developers > API Keys

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-dashboard-developers-api-keys.webp" alt="Stripe Dashboard Developers page with &#x22;Developers&#x22; in the sidebar and the &#x22;API keys&#x22; tab highlighted" width="1600" height="860" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Click on "+ Create secret key"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-create-secret-key-button.webp" alt="Stripe API keys page with an arrow pointing to the &#x22;+ Create secret key&#x22; button under Standard keys" width="1600" height="870" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 3. Select "Build your own integration" and then "Create secret key"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-build-your-own-integration.webp" alt="Stripe &#x22;Create a secret key&#x22; panel with &#x22;Building your own integration&#x22; selected and &#x22;Create secret key&#x22; button" width="1600" height="870" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 4. Type the name of the secret key (e.g. "Stacksync Key") and click "Create"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-secret-key-name-dialog.webp" alt="Stripe &#x22;Create a new secret key&#x22; dialog with Key name &#x22;Demo Key&#x22; and the &#x22;Create&#x22; button highlighted" width="1600" height="871" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Copy to clipboard your newly created API key.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-copy-new-api-key.webp" alt="Stripe &#x22;Your new API key&#x22; dialog with the redacted secret key and a &#x22;Copy to clipboard&#x22; tooltip highlighted" width="1600" height="868" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Log into Stacksync and click on **Connections** > **Create new connection**.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stacksync-connections-create-new-connection.webp" alt="Stacksync My Connections page with arrows pointing to &#x22;Connections&#x22; in the sidebar and &#x22;CREATE NEW CONNECTION&#x22;" width="1600" height="898" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 7. Select "Stripe"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-connection-select-stripe.webp" alt="Stacksync &#x22;Create a Connection&#x22; app grid with the Stripe tile highlighted" width="1600" height="909" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 8. Paste in your Stripe API Key and click "Authorize App"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-api-key-authorize-app.webp" alt="Stacksync Stripe dialog with the &#x22;API Key (Bearer)&#x22; field filled and &#x22;AUTHORIZE APP&#x22; highlighted" width="1600" height="903" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 9. Change the Connection Name or Region and click "Create Connection"

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/stripe-create-connection-button.webp" alt="Stacksync Create a Connection page with Stripe authorized, name &#x22;My Connection&#x22;, region Belgium and &#x22;CREATE CONNECTION&#x22; highlighted" width="1600" height="910" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# Stripe

Source: https://docs.stacksync.com/two-way-sync/workflows/connectors/stripe



# Features

Source: https://docs.stacksync.com/two-way-sync/workflows/features



# Variables and Secrets

Source: https://docs.stacksync.com/two-way-sync/workflows/features/variables-and-secrets



# Variable replacement

> Variable replacement rules in module fields.

Source: https://docs.stacksync.com/two-way-sync/workflows/features/variables-and-secrets/variable-replacement

Variables in module input fields are replaced following the standard Jinja templating rules, here are some examples:

<table>
  <thead><tr><th width="141.8046875">Comment on source value</th><th width="231.0703125">Source value (exact value of x)</th><th>Body to be replaced</th><th>Final result</th><th>Comment on final result</th></tr></thead>

  <tbody><tr><td>null value</td><td>null</td><td>{{ x }}</td><td>null</td><td>null value</td></tr><tr><td>string</td><td>hello</td><td>{{ x }}</td><td>hello</td><td>string</td></tr><tr><td>json</td><td>{"y":"world"}</td><td>{{ x }}</td><td>{"y":"world"}</td><td>json</td></tr><tr><td>string</td><td>{"y":"world"}</td><td>{{ x }}</td><td>{"y":"world"}</td><td>string</td></tr><tr><td>number</td><td>123</td><td>{{ x }}</td><td>123</td><td>number</td></tr><tr><td>string</td><td>123</td><td>{{ x }}</td><td>123</td><td>string</td></tr><tr><td>empty string</td><td /><td>{{ x }}</td><td /><td>empty string</td></tr><tr><td>string</td><td>{{ text }}</td><td>{{ x }}</td><td>{{ text }}</td><td>string</td></tr><tr><td>null value</td><td>null</td><td>{{ x.y }}</td><td>null</td><td>null value</td></tr><tr><td>string</td><td>hello</td><td>{{ x.y }}</td><td>null</td><td>null value</td></tr><tr><td>json</td><td>{"y":"world"}</td><td>{{ x.y }}</td><td>world</td><td>string</td></tr><tr><td>empty string</td><td /><td>{{ x.y }}</td><td>null</td><td>empty string</td></tr><tr><td>json</td><td>{"y":"world"}</td><td>{{ x.y }}</td><td>world</td><td>string</td></tr><tr><td>string</td><td>{"y":"world"}</td><td>{{ x.y }}</td><td>null</td><td>null value</td></tr><tr><td>number</td><td>123</td><td>{{ x.y }}</td><td>null</td><td>number</td></tr><tr><td>string</td><td>123</td><td>{{ x.y }}</td><td>null</td><td>string</td></tr><tr><td>json</td><td>{"y":123}</td><td>{{ x.y }}</td><td>123</td><td>number</td></tr><tr><td>json</td><td>{"y":"123"}</td><td>{{ x.y }}</td><td>123</td><td>string</td></tr><tr><td>string</td><td>{{ text }}</td><td>{{ x.y }}</td><td>{{ text }}</td><td>string</td></tr></tbody>
</table>

## Not replacing sections enclosed in double curly brackets

Use cases require to have a text between curly brackets NOT replaced by the templating engine.

An example body not to be replaced is `{{ customer text that should remain in curly brackets }}`\
In this case, the text not to be replaced can be formatted as follows to maintain the curly brackets

```
 {{ {{ customer text that should remain in curly brackets }} }}
```

where the final result would be in the final body (after replacement) is

```
{{ customer text that should remain in curly brackets }}
```

# Workflows Quick Start

Source: https://docs.stacksync.com/two-way-sync/workflows/workflows-quick-start

Welcome to Stacksync Workflows!

Stacksync Workflows allows you to automate processes and tasks with enterprise-level security, scalability and performance.

<Cards>
  <Card title="https://youtu.be/mEbM0YCIOZQ" href="https://youtu.be/mEbM0YCIOZQ" description="youtu.be" />
</Cards>

## 1. Select "Workflows" under the "Workflow Automation" menu.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-automation-workflows-menu.webp" alt="Stacksync sidebar with &#x22;Workflows&#x22; under &#x22;Workflow Automation&#x22; highlighted, showing a running workflow" width="1600" height="944" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 2. Create a workflow by adding a unique name and choosing the region.

We recommend you choose the region closest to you and / or the server(s) and service(s) the Workflow will be interacting with.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-workflow-name-region.webp" alt="Stacksync &#x22;Create a workflow&#x22; dialog with Workflow Name and Workflow Region (Belgium) fields and Save button" width="1254" height="678" loading="lazy" decoding="async" />

  <figcaption />
</figure>

Once created you will see the Workflow designer with an empty workflow and a default POST Trigger. This trigger may be used to run your workflow from a terminal or through an API request.

## 3. Create your first action.

Click on the ➕ Icon to create a new action and you will see a menu with all of the currently available Action Modules.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-designer-create-action.webp" alt="Stacksync workflow designer with a POST Trigger and Input node, an arrow pointing to the &#x22;Create Action&#x22; plus icon" width="1600" height="942" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<img alt="Close-up of the workflow Input node below the POST Trigger, with an arrow pointing to &#x22;Create Action&#x22;" src="__img0" />. <img alt="Workflow &#x22;Action Configuration&#x22; menu listing modules like Airtable (Create, Delete, List, Update, Upsert Record(s)), Attio and HubSpot" src="__img1" />

In this example we will be using the "Create Record(s)" module of Airtable. Stacksync allows you to create batches of records with one simple to use action.

## 4. Configure your action.

After having set a preferred Display Name for your Action, you will need to add a **Connection**. If you have currently have no connections simply click on "➕ Add New Connection".

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-action-configuration-connection.webp" alt="Workflow Action Configuration panel for Airtable Create Record(s) with Display Name, Module ID and empty Connection fields" width="1600" height="942" loading="lazy" decoding="async" />

  <figcaption />
</figure>

After clicking on "Add new connection" you'll be redirected to the page to Create a Connection.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/create-connection-select-app-grid.webp" alt="Stacksync &#x22;Create a Connection&#x22; page with the Select App grid of connectors such as Salesforce, HubSpot and NetSuite" width="1600" height="1052" loading="lazy" decoding="async" />

  <figcaption><p>Follow the instructions to set up your connection.</p></figcaption>
</figure>

Follow the instructions for your selected Application. Once you have finished adding your connection, go back to your Workflow's page.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-action-airtable-connection-configured.webp" alt="Workflow action &#x22;create records&#x22; configured with &#x22;My Airtable Connection&#x22;, a base and the &#x22;Jobs&#x22; table selected" width="1600" height="943" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 5. Run and Deploy your workflow!

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-designer-run-button.webp" alt="Stacksync workflow with POST Trigger and Airtable &#x22;create records&#x22; action, an arrow pointing to the &#x22;Run&#x22; button" width="1600" height="941" loading="lazy" decoding="async" />

  <figcaption />
</figure>

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-toolbar-save-run-deploy.webp" alt="Workflow toolbar with Save, Run, Replay and Deploy buttons and the &#x22;v1 (draft)&#x22; version selector" width="1336" height="136" loading="lazy" decoding="async" />

  <figcaption />
</figure>

## 6. Monitor your execution logs.

<figure>
  <img src="/https/docs.stacksync.com/images/two-way-sync/workflow-execution-logs-output.webp" alt="Workflow Execution Logs with a successful run expanded, showing input and create_records output JSON from Airtable" width="1600" height="774" loading="lazy" decoding="async" />

  <figcaption />
</figure>

# List workspaces

> The workspaces the API key can act in, with the caller's role in each. A workspace API key lists its own workspace.

Source: https://docs.stacksync.com/api-reference/workspaces/list_workspaces

`GET https://api.stacksync.com/v1/workspaces`

- Operation: `list_workspaces`
- Resource: Workspaces
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Workspace) | Yes |  |
| `data[].workspace_id` | integer | Yes |  |
| `data[].workspace_name` | string | Yes |  |
| `data[].role` | string (viewer \| editor \| owner) \| null | Yes | The caller's role in the workspace: viewer, editor or owner (a workspace API key acts as an editor) |
| `data[].default_region` | string (besg \| usnv) \| null | Yes | The region the web app opens on and new resources go to by default |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "workspace_id": 0,
      "workspace_name": "<workspace_name>",
      "role": "viewer",
      "default_region": "besg"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the members of a workspace](https://docs.stacksync.com/api-reference/workspaces/list_workspace_members)
- [Get a workspace](https://docs.stacksync.com/api-reference/workspaces/get_workspace)

# Get a workspace

> The workspace's name, the caller's role in it and its default region (where new resources go).

Source: https://docs.stacksync.com/api-reference/workspaces/get_workspace

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}`

- Operation: `get_workspace`
- Resource: Workspaces
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes |  |
| `workspace_name` | string | Yes |  |
| `role` | string (viewer \| editor \| owner) \| null | Yes | The caller's role in the workspace: viewer, editor or owner (a workspace API key acts as an editor) |
| `default_region` | string (besg \| usnv) \| null | Yes | The region the web app opens on and new resources go to by default |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "workspace_id": 0,
  "workspace_name": "<workspace_name>",
  "role": "viewer",
  "default_region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workspaces](https://docs.stacksync.com/api-reference/workspaces/list_workspaces)
- [List the members of a workspace](https://docs.stacksync.com/api-reference/workspaces/list_workspace_members)

# List the members of a workspace

> The people of the workspace with their role, and its groups with their members: the user_id and group_id an access grant names its principal by. Pending invitations are not members yet.

Source: https://docs.stacksync.com/api-reference/workspaces/list_workspace_members

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/members`

- Operation: `list_workspace_members`
- Resource: Workspaces
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `users` | array of object (WorkspaceMember) | Yes |  |
| `users[].user_id` | integer | Yes |  |
| `users[].email` | string | Yes |  |
| `users[].firstname` | string \| null | Yes |  |
| `users[].lastname` | string \| null | Yes |  |
| `users[].role` | string (viewer \| editor \| owner) | Yes | The person's role in the workspace: viewer, editor or owner |
| `groups` | array of object (WorkspaceGroup) | Yes |  |
| `groups[].group_id` | string (uuid) | Yes |  |
| `groups[].name` | string | Yes |  |
| `groups[].description` | string | Yes |  |
| `groups[].member_user_ids` | array of integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/members" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "users": [
    {
      "user_id": 0,
      "email": "<email>",
      "firstname": "<firstname>",
      "lastname": "<lastname>",
      "role": "viewer"
    }
  ],
  "groups": [
    {
      "group_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "name": "<name>",
      "description": "<description>",
      "member_user_ids": [
        0
      ]
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workspaces](https://docs.stacksync.com/api-reference/workspaces/list_workspaces)
- [Get a workspace](https://docs.stacksync.com/api-reference/workspaces/get_workspace)

# List regions

> The regions a resource can live in. Routes acting on a regional resource take one as the `region` parameter.

Source: https://docs.stacksync.com/api-reference/workspaces/regions/list_regions

`GET https://api.stacksync.com/v1/regions`

- Operation: `list_regions`
- Resource: Regions
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Region) | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `data[].location` | string | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/regions" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "region": "besg",
      "location": "<location>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json

# Get the folder tree

> Every folder of the workspace in one region, nested under its parent, as the web app's sidebar shows it.

Source: https://docs.stacksync.com/api-reference/folders/get_folder_tree

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/tree`

- Operation: `get_folder_tree`
- Resource: Folders
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes |  |
| `folders` | array of object (FolderTreeNode) | Yes | The folders at the root, each with its sub-folders |
| `folders[].folder_id` | string | Yes |  |
| `folders[].folder_name` | string | Yes |  |
| `folders[].folders` | array of object (FolderTreeNode) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/tree?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "region": "besg",
  "folders": [
    {
      "folder_id": "<folder_id>",
      "folder_name": "<folder_name>",
      "folders": []
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# Get a folder

> The folder's details in the region asked: name, resource id, parent folder and timestamps.

Source: https://docs.stacksync.com/api-reference/folders/get_folder

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}`

- Operation: `get_folder`
- Resource: Folders
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `folder_id` | string (uuid) | Yes | The folder. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_id` | string | Yes |  |
| `folder_name` | string | Yes |  |
| `folder_resource_id` | string | Yes |  |
| `parent_folder_id` | string \| null | Yes | The folder it is in; None at the root |
| `region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "folder_id": "<folder_id>",
  "folder_name": "<folder_name>",
  "folder_resource_id": "<folder_resource_id>",
  "parent_folder_id": "<parent_folder_id>",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# Rename a folder

> A name another folder has in the region of the workspace is refused with 409, as a create refuses it. With validate_only, every check runs and 204 answers, nothing is saved.

Source: https://docs.stacksync.com/api-reference/folders/update_folder

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}`

- Operation: `update_folder`
- Resource: Folders
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `folder_id` | string (uuid) | Yes | The folder. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_name` | string, 1 to 255 characters | Yes |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_id` | string | Yes |  |
| `folder_name` | string | Yes |  |
| `folder_resource_id` | string | Yes |  |
| `parent_folder_id` | string \| null | Yes | The folder it is in; None at the root |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "folder_name": "<folder_name>"
}'
```

## Example response (200)

```json
{
  "folder_id": "<folder_id>",
  "folder_name": "<folder_name>",
  "folder_resource_id": "<folder_resource_id>",
  "parent_folder_id": "<parent_folder_id>",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# Delete an empty folder

> A folder that still holds sub-folders or resources is refused with 409: move or delete them first. Answers the deleted folder. With validate_only, the same checks run and 204 answers, nothing is deleted.

Source: https://docs.stacksync.com/api-reference/folders/delete_folder

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}`

- Operation: `delete_folder`
- Resource: Folders
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `folder_id` | string (uuid) | Yes | The folder. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_id` | string | Yes |  |
| `folder_name` | string | Yes |  |
| `folder_resource_id` | string | Yes |  |
| `parent_folder_id` | string \| null | Yes | The folder it is in; None at the root |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "folder_id": "<folder_id>",
  "folder_name": "<folder_name>",
  "folder_resource_id": "<folder_resource_id>",
  "parent_folder_id": "<parent_folder_id>",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# List the resources at the root

> The workflows, syncs, connections, genies, knowledge bases, queues, variables, API proxies and folders at the root of the workspace. `limit` and `offset` apply to each resource type.

Source: https://docs.stacksync.com/api-reference/folders/list_root_folder_resources

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/root/resources`

- Operation: `list_root_folder_resources`
- Resource: Folders
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `resource_types` | array of string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) \| null | No | Only these resource types; all types when absent |
| `search` | string \| null, 1 to 255 characters | No | Only resources whose name or id contains this text, searched in sub-folders too |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (FolderResource) | Yes |  |
| `data[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `data[].resource_id` | string | Yes |  |
| `data[].resource_name` | string | Yes |  |
| `data[].status` | string \| null | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `data[].apps` | array of string | Yes | The apps the resource connects, as the web app shows them; empty when none |
| `data[].parent_folder_id` | string \| null | Yes |  |
| `data[].last_modified_time` | string (date-time) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |
| `total_count` | integer | Yes | How many resources of the requested types the folder holds (the matches of a search), across every page |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/root/resources?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "resource_name": "<resource_name>",
      "status": "<status>",
      "region": "besg",
      "apps": [
        "<apps>"
      ],
      "parent_folder_id": "<parent_folder_id>",
      "last_modified_time": "2027-01-15T09:00:00Z"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0,
  "total_count": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# Move resources to the root

> Each resource leaves its folder for the root of the workspace. A retry is safe.

Source: https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/root/resources`

- Operation: `move_resources_to_root_folder`
- Resource: Folders
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `resources` | array of object (ResourceToMove), at least 1 item, at most 200 items | Yes |  |
| `resources[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `resources[].resource_id` | string (uuid) | Yes | Id of the resource |
| `resources[].region` | string (besg \| usnv) | Yes |  |
| `validate_only` | boolean, default false | No | Run every check of the move and answer what would move and what would not, with why, without moving anything: a refused request answers the error the move would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_id` | string \| null | Yes | The destination folder; None for the root |
| `moved` | array of object (MovedResource) | Yes |  |
| `moved[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `moved[].resource_id` | string | Yes |  |
| `moved[].region` | string (besg \| usnv) | Yes |  |
| `moved[].resource_name` | string \| null | No | The name of the resource; None when it was not found |
| `moved[].source_folder_id` | string \| null | No | The folder it was in before the move; None at the root or when it was not found |
| `failed` | array of object (ResourceNotMoved) | Yes |  |
| `failed[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `failed[].resource_id` | string | Yes |  |
| `failed[].region` | string (besg \| usnv) | Yes |  |
| `failed[].resource_name` | string \| null | No | The name of the resource; None when it was not found |
| `failed[].source_folder_id` | string \| null | No | The folder it was in before the move; None at the root or when it was not found |
| `failed[].msg` | string | Yes | Why this resource was not moved |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/root/resources?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "resources": [
    {
      "resource_type": "connection",
      "resource_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "region": "besg"
    }
  ]
}'
```

## Example response (200)

```json
{
  "folder_id": "<folder_id>",
  "moved": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "region": "besg",
      "resource_name": "<resource_name>",
      "source_folder_id": "<source_folder_id>"
    }
  ],
  "failed": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "region": "besg",
      "resource_name": "<resource_name>",
      "source_folder_id": "<source_folder_id>",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)

# List the resources in a folder

> What the folder holds, sub-folders included. `limit` and `offset` apply to each resource type.

Source: https://docs.stacksync.com/api-reference/folders/list_folder_resources

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}/resources`

- Operation: `list_folder_resources`
- Resource: Folders
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `folder_id` | string (uuid) | Yes | The folder. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `resource_types` | array of string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) \| null | No | Only these resource types; all types when absent |
| `search` | string \| null, 1 to 255 characters | No | Only resources whose name or id contains this text, searched in sub-folders too |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (FolderResource) | Yes |  |
| `data[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `data[].resource_id` | string | Yes |  |
| `data[].resource_name` | string | Yes |  |
| `data[].status` | string \| null | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `data[].apps` | array of string | Yes | The apps the resource connects, as the web app shows them; empty when none |
| `data[].parent_folder_id` | string \| null | Yes |  |
| `data[].last_modified_time` | string (date-time) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |
| `total_count` | integer | Yes | How many resources of the requested types the folder holds (the matches of a search), across every page |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}/resources?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "resource_name": "<resource_name>",
      "status": "<status>",
      "region": "besg",
      "apps": [
        "<apps>"
      ],
      "parent_folder_id": "<parent_folder_id>",
      "last_modified_time": "2027-01-15T09:00:00Z"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0,
  "total_count": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# Move resources into a folder

> Each resource (from GET .../resources) is filed under the folder; a resource of another region than the folder is not moved. Moving again to the same folder changes nothing, so a retry is safe. With validate_only, the answer tells what would move, without moving anything.

Source: https://docs.stacksync.com/api-reference/folders/move_resources_to_folder

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}/resources`

- Operation: `move_resources_to_folder`
- Resource: Folders
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `folder_id` | string (uuid) | Yes | The folder. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `resources` | array of object (ResourceToMove), at least 1 item, at most 200 items | Yes |  |
| `resources[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `resources[].resource_id` | string (uuid) | Yes | Id of the resource |
| `resources[].region` | string (besg \| usnv) | Yes |  |
| `validate_only` | boolean, default false | No | Run every check of the move and answer what would move and what would not, with why, without moving anything: a refused request answers the error the move would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_id` | string \| null | Yes | The destination folder; None for the root |
| `moved` | array of object (MovedResource) | Yes |  |
| `moved[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `moved[].resource_id` | string | Yes |  |
| `moved[].region` | string (besg \| usnv) | Yes |  |
| `moved[].resource_name` | string \| null | No | The name of the resource; None when it was not found |
| `moved[].source_folder_id` | string \| null | No | The folder it was in before the move; None at the root or when it was not found |
| `failed` | array of object (ResourceNotMoved) | Yes |  |
| `failed[].resource_type` | string (connection \| folder \| workflow \| workspace_variable \| sync \| api_proxy \| app_queue \| genie \| knowledge_base) | Yes |  |
| `failed[].resource_id` | string | Yes |  |
| `failed[].region` | string (besg \| usnv) | Yes |  |
| `failed[].resource_name` | string \| null | No | The name of the resource; None when it was not found |
| `failed[].source_folder_id` | string \| null | No | The folder it was in before the move; None at the root or when it was not found |
| `failed[].msg` | string | Yes | Why this resource was not moved |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}/resources?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "resources": [
    {
      "resource_type": "connection",
      "resource_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "region": "besg"
    }
  ]
}'
```

## Example response (200)

```json
{
  "folder_id": "<folder_id>",
  "moved": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "region": "besg",
      "resource_name": "<resource_name>",
      "source_folder_id": "<source_folder_id>"
    }
  ],
  "failed": [
    {
      "resource_type": "connection",
      "resource_id": "<resource_id>",
      "region": "besg",
      "resource_name": "<resource_name>",
      "source_folder_id": "<source_folder_id>",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Create a folder](https://docs.stacksync.com/api-reference/folders/create_folder)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# Create a folder

> At the root, or inside another folder of the same region (parent_folder_id). A folder_resource_id or name already used in the region of the workspace is refused with 409. With validate_only, every check runs and 204 answers, nothing is created.

Source: https://docs.stacksync.com/api-reference/folders/create_folder

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/folders`

- Operation: `create_folder`
- Resource: Folders
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_name` | string, 1 to 255 characters | Yes |  |
| `folder_resource_id` | string \| null, pattern `^[a-z0-9_]{1,60}$` | No | A unique, readable id of the folder in the region of the workspace (lowercase letters, digits and _); derived from the name when absent |
| `parent_folder_id` | string (uuid) \| null | No | The folder to create it in; the root when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folder_id` | string | Yes |  |
| `folder_name` | string | Yes |  |
| `folder_resource_id` | string | Yes |  |
| `parent_folder_id` | string \| null | Yes | The folder it is in; None at the root |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/folders?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "folder_name": "<folder_name>"
}'
```

## Example response (201)

```json
{
  "folder_id": "<folder_id>",
  "folder_name": "<folder_name>",
  "folder_resource_id": "<folder_resource_id>",
  "parent_folder_id": "<parent_folder_id>",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List the resources in a folder](https://docs.stacksync.com/api-reference/folders/list_folder_resources)
- [List the resources at the root](https://docs.stacksync.com/api-reference/folders/list_root_folder_resources)
- [Get a folder](https://docs.stacksync.com/api-reference/folders/get_folder)
- [Get the folder tree](https://docs.stacksync.com/api-reference/folders/get_folder_tree)
- [Rename a folder](https://docs.stacksync.com/api-reference/folders/update_folder)
- [Delete an empty folder](https://docs.stacksync.com/api-reference/folders/delete_folder)
- [Move resources into a folder](https://docs.stacksync.com/api-reference/folders/move_resources_to_folder)
- [Move resources to the root](https://docs.stacksync.com/api-reference/folders/move_resources_to_root_folder)

# List connections

> The connections of the workspace in one region that the caller can see: the ones they created and the ones shared with the workspace.

Source: https://docs.stacksync.com/api-reference/connections/list_connections

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/connections`

- Operation: `list_connections`
- Resource: Connections
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the connection: besg or usnv |
| `name` | string \| null | No | Only the connection with exactly this name |
| `connection_name` | string \| null | No | Same as name |
| `search` | string \| null, 1 to 200 characters | No | Only connections whose name contains this text, case-insensitive |
| `app_type` | string \| null | No | Only connections of this app type: the type shown in Stacksync (app_type) or the underlying connector type, case-insensitive |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Connection) | Yes |  |
| `data[].connection_id` | string | Yes |  |
| `data[].connection_name` | string | Yes |  |
| `data[].app_type` | string | Yes | The type shown in Stacksync |
| `data[].is_shared_with_workspace` | boolean | Yes |  |
| `data[].created_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data[].last_modified_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data[].credentials_options` | object | Yes | The identifiers of the connection (instance_id, instance_url, shop_name, sub_domain...), never a secret |
| `data[].connection_resource_id` | string \| null | Yes | The name workflow steps reference the connection by |
| `data[].region` | string | Yes |  |
| `data[].needs_reauthorization` | boolean | Yes | True when Stacksync marked the credentials invalid (the app refused to refresh them): reauthorize it in Stacksync. Credentials the app refuses on a read are reported by that read |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "connection_id": "<connection_id>",
      "connection_name": "<connection_name>",
      "app_type": "<app_type>",
      "is_shared_with_workspace": false,
      "created_time": "<created_time>",
      "last_modified_time": "<last_modified_time>",
      "credentials_options": {},
      "connection_resource_id": "<connection_resource_id>",
      "region": "<region>",
      "needs_reauthorization": false
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a connection](https://docs.stacksync.com/api-reference/connections/get_connection)
- [Create a connection](https://docs.stacksync.com/api-reference/connections/create_connection)
- [Update a connection](https://docs.stacksync.com/api-reference/connections/update_connection)
- [Delete a connection](https://docs.stacksync.com/api-reference/connections/delete_connection)
- [Reauthorize a connection](https://docs.stacksync.com/api-reference/connections/reauthorize_connection)

# Create a connection

> Create a connection to an app with the credentials given, after testing them against the app. Only the user of the API key can use the connection unless `is_shared_with_workspace` is true. Answers the connection without its secrets.

Source: https://docs.stacksync.com/api-reference/connections/create_connection

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/connections`

- Operation: `create_connection`
- Resource: Connections
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region the connection is stored in |

## Request body

`application/json`. The connection to create

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_name` | string | Yes | The name of the connection, unique in the workspace |
| `is_shared_with_workspace` | boolean | Yes | True to let every editor of the workspace use the connection, false to keep it to the user of the API key |
| `app_type` | string (postgres \| postgres_heroku \| salesforce \| hubspot \| bigquery \| amazon_lightsail \| amazon_rds \| supabase \| supabase_oauth \| scaleway_postgres \| cockroachdb \| render_postgres \| google_alloydb \| snowflake \| dynamodb \| mongodb \| sap \| zendesk \| zoho_crm \| microsoft_dynamics \| dynamics365_crm \| dynamics365_finance \| dynamics365_business_central \| pipedrive \| marketo \| odoo \| airtable \| attio_crm \| motherduck \| shopify \| oracledb \| mysql \| mariadb \| sqlserver \| suiteanalytics \| twilio \| bamboohr \| sendgrid \| twenty_crm \| monday \| acumatica \| extensiv) | Yes | The app to connect, as shown in Stacksync |
| `credentials` | object | Yes | The credentials of the app, checked per app type before the connection is tested; a missing field is answered with a 400 that names it: `postgres`, `postgres_heroku`, `amazon_lightsail`, `amazon_rds`, `supabase`, `supabase_oauth`, `scaleway_postgres`, `cockroachdb`, `render_postgres`: `connection_string`, `schema`; `mongodb`: `connection_string`, `database`; `hubspot`, `monday`: `code` (the OAuth authorization code); `salesforce`: `code`, `account_type` (`standard` or `sandbox`); `sendgrid`: `api_key`; `twenty_crm`: `api_key`, optional `base_url` (a self-hosted Twenty); `twilio`: `account_sid`, `auth_token`; `bamboohr`: `company_domain`, `api_key`; `snowflake`: `account`, `username`, `database`, `schema`, `warehouse`, `public_key` (the workspace's public key, shown in the Snowflake connection form of the web app, one per workspace and region: set it on the Snowflake user and send it exactly as shown, Stacksync keeps its private key); `suiteanalytics`: `account_id`, `consumer_key`, `consumer_secret`, `token_id`, `token_secret`, `role_id`; `bigquery`: `service_account_credentials` (the service account JSON: `type`, `project_id`, `private_key_id`, `private_key`, `client_email`, `client_id`, `auth_uri`, `token_uri`, `auth_provider_x509_cert_url`, `client_x509_cert_url`); `acumatica`: `instance_name`, `client_id`, `client_secret`, `code`, `redirect_uri`; `extensiv`: `client_id`, `client_secret`, optional `user_login_id` and `is_sandbox` (boolean). Other app types take the fields their connection form asks for; they are checked when the connection is tested. |

## Returns

### 200 The connection created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (Connection) | Yes |  |
| `data.connection_id` | string | Yes |  |
| `data.connection_name` | string | Yes |  |
| `data.app_type` | string | Yes | The type shown in Stacksync |
| `data.is_shared_with_workspace` | boolean | Yes |  |
| `data.created_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data.last_modified_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data.credentials_options` | object | Yes | The identifiers of the connection (instance_id, instance_url, shop_name, sub_domain...), never a secret |
| `data.connection_resource_id` | string \| null | Yes | The name workflow steps reference the connection by |
| `data.region` | string | Yes |  |
| `data.needs_reauthorization` | boolean | Yes | True when Stacksync marked the credentials invalid (the app refused to refresh them): reauthorize it in Stacksync. Credentials the app refuses on a read are reported by that read |

## Example request

One of: Postgres

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "connection_name": "Production Postgres",
  "is_shared_with_workspace": true,
  "app_type": "postgres",
  "credentials": {
    "connection_string": "postgresql://sync_user:********@db.example.com:5432/crm",
    "schema": "public"
  }
}'
```

Or: Snowflake (key pair)

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "connection_name": "Snowflake Analytics",
  "is_shared_with_workspace": true,
  "app_type": "snowflake",
  "credentials": {
    "account": "myorg-myaccount",
    "username": "STACKSYNC_USER",
    "warehouse": "COMPUTE_WH",
    "database": "ANALYTICS",
    "schema": "PUBLIC",
    "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\n-----END PUBLIC KEY-----"
  }
}'
```

`db.example.com` is a placeholder: replace it with your own host, which the API checks before saving (the example as written is refused).

## Example response (200)

```json
{
  "data": {
    "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
    "connection_name": "Production Postgres",
    "app_type": "postgres",
    "is_shared_with_workspace": true,
    "created_time": "2026-10-01 09:12:44",
    "last_modified_time": "2026-10-01 09:12:44",
    "credentials_options": {
      "uses_ssh_tunnel": false,
      "connection_mode": "direct"
    },
    "connection_resource_id": "production_postgres",
    "region": "usnv",
    "needs_reauthorization": false
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; a required field is missing or of the wrong type; the app type is not supported; the credentials miss a field the app type needs (`Invalid Request Body`, naming the missing field; Snowflake names every missing field at once); the app refused the credentials (`Error creating connection`); the connection was created but could not be read back (`Error reading the created connection`: get it by the id in `msg`, never create it again) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connections](https://docs.stacksync.com/api-reference/connections/list_connections)
- [Get a connection](https://docs.stacksync.com/api-reference/connections/get_connection)
- [Update a connection](https://docs.stacksync.com/api-reference/connections/update_connection)
- [Delete a connection](https://docs.stacksync.com/api-reference/connections/delete_connection)
- [Reauthorize a connection](https://docs.stacksync.com/api-reference/connections/reauthorize_connection)

# Get a connection

> One connection, with every sync, workflow, API proxy and scheduled task that uses it and whether it can be deleted. Never its credentials.

Source: https://docs.stacksync.com/api-reference/connections/get_connection

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}`

- Operation: `get_connection`
- Resource: Connections
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `connection_id` | string (uuid) | Yes | The connection. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the connection: besg or usnv |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (ConnectionWithUsage) | Yes |  |
| `data.connection_id` | string | Yes |  |
| `data.connection_name` | string | Yes |  |
| `data.app_type` | string | Yes | The type shown in Stacksync |
| `data.is_shared_with_workspace` | boolean | Yes |  |
| `data.created_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data.last_modified_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data.credentials_options` | object | Yes | The identifiers of the connection (instance_id, instance_url, shop_name, sub_domain...), never a secret |
| `data.connection_resource_id` | string \| null | Yes | The name workflow steps reference the connection by |
| `data.region` | string | Yes |  |
| `data.needs_reauthorization` | boolean | Yes | True when Stacksync marked the credentials invalid (the app refused to refresh them): reauthorize it in Stacksync. Credentials the app refuses on a read are reported by that read |
| `data.used_in_syncs` | array of object (ConnectionSync) | Yes |  |
| `data.used_in_syncs[].sync_id` | string | Yes |  |
| `data.used_in_syncs[].sync_name` | string | Yes |  |
| `data.used_in_workflows` | array of object (ConnectionWorkflow) | Yes |  |
| `data.used_in_workflows[].workflow_id` | string | Yes |  |
| `data.used_in_workflows[].workflow_name` | string | Yes |  |
| `data.used_in_api_proxies` | array of object (ConnectionApiProxy) | Yes |  |
| `data.used_in_api_proxies[].api_proxy_id` | string | Yes |  |
| `data.used_in_api_proxies[].api_proxy_name` | string | Yes |  |
| `data.used_in_tasks` | array of object (ConnectionTask) | Yes |  |
| `data.used_in_tasks[].task_id` | string | Yes |  |
| `data.used_in_tasks[].task_name` | string | Yes |  |
| `data.used_in_tasks[].sync_id` | string \| null | No | The sync of the trigger this task runs, null for a scheduled task |
| `data.used_in_tasks[].trigger_id` | string \| null | No | The sync trigger this task runs, null for a scheduled task |
| `data.can_delete` | boolean | Yes | False while a sync, workflow, API proxy or task uses the connection |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": {
    "connection_id": "<connection_id>",
    "connection_name": "<connection_name>",
    "app_type": "<app_type>",
    "is_shared_with_workspace": false,
    "created_time": "<created_time>",
    "last_modified_time": "<last_modified_time>",
    "credentials_options": {},
    "connection_resource_id": "<connection_resource_id>",
    "region": "<region>",
    "needs_reauthorization": false,
    "used_in_syncs": [
      {
        "sync_id": "<sync_id>",
        "sync_name": "<sync_name>"
      }
    ],
    "used_in_workflows": [
      {
        "workflow_id": "<workflow_id>",
        "workflow_name": "<workflow_name>"
      }
    ],
    "used_in_api_proxies": [
      {
        "api_proxy_id": "<api_proxy_id>",
        "api_proxy_name": "<api_proxy_name>"
      }
    ],
    "used_in_tasks": [
      {
        "task_id": "<task_id>",
        "task_name": "<task_name>",
        "sync_id": "<sync_id>",
        "trigger_id": "<trigger_id>"
      }
    ],
    "can_delete": false
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connections](https://docs.stacksync.com/api-reference/connections/list_connections)
- [Create a connection](https://docs.stacksync.com/api-reference/connections/create_connection)
- [Update a connection](https://docs.stacksync.com/api-reference/connections/update_connection)
- [Delete a connection](https://docs.stacksync.com/api-reference/connections/delete_connection)
- [Reauthorize a connection](https://docs.stacksync.com/api-reference/connections/reauthorize_connection)

# Delete a connection

> Refused while a sync, workflow, API proxy or scheduled task uses the connection.

Source: https://docs.stacksync.com/api-reference/connections/delete_connection

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}`

- Operation: `delete_connection`
- Resource: Connections
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `connection_id` | string (uuid) | Yes | The connection. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the connection: besg or usnv |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (DeletedConnection) | Yes |  |
| `data.connection_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": {
    "connection_id": "<connection_id>"
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connections](https://docs.stacksync.com/api-reference/connections/list_connections)
- [Get a connection](https://docs.stacksync.com/api-reference/connections/get_connection)
- [Create a connection](https://docs.stacksync.com/api-reference/connections/create_connection)
- [Update a connection](https://docs.stacksync.com/api-reference/connections/update_connection)
- [Reauthorize a connection](https://docs.stacksync.com/api-reference/connections/reauthorize_connection)

# Update a connection

> Rename a connection, share it with the workspace, or replace its credentials (validated by the app first). Any editor who can see a connection shared with the workspace can update it. New credentials that miss a field the app type needs, or that the app refuses, answer `Invalid Credentials` with `field: credentials`; the stored ones stay.

Source: https://docs.stacksync.com/api-reference/connections/update_connection

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}/update`

- Operation: `update_connection`
- Resource: Connections
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `connection_id` | string (uuid) | Yes | The connection. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the connection: besg or usnv |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_name` | string \| null, 3 to 63 characters, pattern `^[A-Za-z0-9_\- ]+$` | No | The new name: letters, numbers, dashes, underscores and spaces, 3 to 63 characters |
| `is_shared_with_workspace` | boolean \| null | No | True to share the connection with every member of the workspace |
| `credentials` | object \| null | No | The new credentials of the app, checked per app type as on create, then tested by the app before they are stored. They replace the stored credentials whole: send every field the app takes, not only the changed one (a Snowflake connection sends account, username, database, schema, warehouse and public_key again). The stored credentials stay when the new ones are refused. |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (Connection) | Yes |  |
| `data.connection_id` | string | Yes |  |
| `data.connection_name` | string | Yes |  |
| `data.app_type` | string | Yes | The type shown in Stacksync |
| `data.is_shared_with_workspace` | boolean | Yes |  |
| `data.created_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data.last_modified_time` | string | Yes | UTC, YYYY-MM-DD HH:MM:SS |
| `data.credentials_options` | object | Yes | The identifiers of the connection (instance_id, instance_url, shop_name, sub_domain...), never a secret |
| `data.connection_resource_id` | string \| null | Yes | The name workflow steps reference the connection by |
| `data.region` | string | Yes |  |
| `data.needs_reauthorization` | boolean | Yes | True when Stacksync marked the credentials invalid (the app refused to refresh them): reauthorize it in Stacksync. Credentials the app refuses on a read are reported by that read |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}/update?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "connection_name": "Production Postgres"
}'
```

## Example response (200)

```json
{
  "data": {
    "connection_id": "<connection_id>",
    "connection_name": "<connection_name>",
    "app_type": "<app_type>",
    "is_shared_with_workspace": false,
    "created_time": "<created_time>",
    "last_modified_time": "<last_modified_time>",
    "credentials_options": {},
    "connection_resource_id": "<connection_resource_id>",
    "region": "<region>",
    "needs_reauthorization": false
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connections](https://docs.stacksync.com/api-reference/connections/list_connections)
- [Get a connection](https://docs.stacksync.com/api-reference/connections/get_connection)
- [Create a connection](https://docs.stacksync.com/api-reference/connections/create_connection)
- [Delete a connection](https://docs.stacksync.com/api-reference/connections/delete_connection)
- [Reauthorize a connection](https://docs.stacksync.com/api-reference/connections/reauthorize_connection)

# Reauthorize a connection

> Replace the credentials of a connection after testing them on the app of a sync that uses it. The test covers that sync only, not the other syncs or API proxies of the connection. Answers the connection without its secrets.

Source: https://docs.stacksync.com/api-reference/connections/reauthorize_connection

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}/reauthorize`

- Operation: `reauthorize_connection`
- Resource: Connections
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `connection_id` | string (uuid) | Yes | The connection to reauthorize |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the resources |

## Request body

`application/json`. The new credentials and the sync app to test them on

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_id` | string (uuid) | Yes | The sync whose app uses the connection |
| `app_id` | string | Yes | The app of the sync that uses the connection (its `app_id` in the sync) |
| `credentials` | object | Yes | The new credentials, in the shape the connection's app type takes (see the create connection body). `connection_id`, when sent, must be the connection of the path. |

## Returns

### 200 The reauthorized connection

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (ConnectionDetails) | Yes | A connection as the connection routes answer it |
| `data.connection_id` | string (uuid) | Yes | The connection |
| `data.connection_name` | string | Yes | The name of the connection, unique in the workspace |
| `data.app_type` | string | Yes | The app the connection is for, as shown in Stacksync (for example `postgres`, `salesforce`, `supabase`) |
| `data.is_shared_with_workspace` | boolean | Yes | Whether every editor of the workspace can use the connection, or only the user who created it |
| `data.created_time` | string | Yes | When the connection was created. Local server time as `YYYY-MM-DD HH:MM:SS` (UTC) |
| `data.last_modified_time` | string | Yes | When the connection was last changed. Local server time as `YYYY-MM-DD HH:MM:SS` (UTC) |
| `data.credentials_options` | object | Yes | The non-secret settings of the connection. A database connection carries `uses_ssh_tunnel` (boolean) and `connection_mode` (`direct` or `ssh_tunnel`); a Salesforce connection carries `organization_id` and `instance_url`; a HubSpot connection carries its portal settings. Secrets are never answered. |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/connections/{connection_id}/reauthorize?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
  "app_id": "3f9a1c2e",
  "credentials": {
    "code": "aPrxk9...",
    "account_type": "standard"
  }
}'
```

## Example response (200)

```json
{
  "data": {
    "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
    "connection_name": "Salesforce production",
    "app_type": "salesforce",
    "is_shared_with_workspace": true,
    "created_time": "2026-10-01 09:12:44",
    "last_modified_time": "2026-10-01 09:12:44",
    "credentials_options": {
      "instance_url": "https://acme.my.salesforce.com",
      "organization_id": "00D5g000004abcdEAA"
    }
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `connection_id` is not a UUID; a body field is missing or of the wrong type; `base_id` and `app_id` name no app of a sync of the workspace (`Error reauthorizing connection`); the credentials miss a field the app type needs (`Invalid Credentials`); `credentials.connection_id` differs from the path; the app refused the credentials (`Error Authenticating`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connections](https://docs.stacksync.com/api-reference/connections/list_connections)
- [Get a connection](https://docs.stacksync.com/api-reference/connections/get_connection)
- [Create a connection](https://docs.stacksync.com/api-reference/connections/create_connection)
- [Update a connection](https://docs.stacksync.com/api-reference/connections/update_connection)
- [Delete a connection](https://docs.stacksync.com/api-reference/connections/delete_connection)

# List connector apps

> The apps whose actions and triggers can be workflow steps, as the workflow builder lists them, with how many of each and whether they need a connection.

Source: https://docs.stacksync.com/api-reference/connectors/list_connector_apps

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/apps`

- Operation: `list_connector_apps`
- Resource: Connectors
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Region whose catalog to read: besg or usnv |
| `search` | string \| null, 1 to 200 characters | No | Only apps with a module whose name, type or app contains this text |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (WorkflowModuleApp) | Yes |  |
| `data[].app_type` | string | Yes | The app, as GET .../workflows/modules/apps/<app_type> takes it |
| `data[].action_count` | integer | Yes |  |
| `data[].trigger_count` | integer | Yes |  |
| `data[].is_connection_required` | boolean | Yes | Whether a module of the app needs a connection to the app |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/apps?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "app_type": "<app_type>",
      "action_count": 0,
      "trigger_count": 0,
      "is_connection_required": false
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a connector app](https://docs.stacksync.com/api-reference/connectors/get_connector_app)
- [Get a connector module form](https://docs.stacksync.com/api-reference/connectors/get_connector_module_form)
- [Run an action](https://docs.stacksync.com/api-reference/connectors/run_connector_module)

# Get a connector app

> One app's actions and triggers, each with the module_id and module_version the module form takes.

Source: https://docs.stacksync.com/api-reference/connectors/get_connector_app

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/apps/{app_type}`

- Operation: `get_connector_app`
- Resource: Connectors
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `app_type` | string | Yes | The connector's app type, as listed by List connector apps. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region whose catalog to read: besg or usnv |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_type` | string | Yes |  |
| `actions` | array of object (WorkflowModuleSummary) | Yes |  |
| `actions[].module_id` | string | Yes |  |
| `actions[].module_version` | string | Yes |  |
| `actions[].module_name` | string | Yes |  |
| `actions[].module_description` | string | Yes |  |
| `actions[].is_connection_required` | boolean | Yes |  |
| `actions[].connection_app_types` | array of string | Yes | The app types of the connections the module accepts |
| `actions[].is_read_action` | boolean \| null | Yes | For an action, True when it only reads from the app (a viewer may run it), False when it can change data; None for a trigger |
| `actions[].module_type` | string | Yes | The module's type, the same for each of its versions (e.g. search_records) |
| `actions[].operation` | string (search \| get \| query \| read_files \| create \| update \| upsert \| delete \| run_query \| send_message \| enrich \| write_files) \| null | No | For an action, the operation it performs on the app; None for an action that runs only as a workflow step (a raw API request, an app operation chosen from a list, an AI step) and for a trigger |
| `triggers` | array of object (WorkflowModuleSummary) | Yes |  |
| `triggers[].module_id` | string | Yes |  |
| `triggers[].module_version` | string | Yes |  |
| `triggers[].module_name` | string | Yes |  |
| `triggers[].module_description` | string | Yes |  |
| `triggers[].is_connection_required` | boolean | Yes |  |
| `triggers[].connection_app_types` | array of string | Yes | The app types of the connections the module accepts |
| `triggers[].is_read_action` | boolean \| null | Yes | For an action, True when it only reads from the app (a viewer may run it), False when it can change data; None for a trigger |
| `triggers[].module_type` | string | Yes | The module's type, the same for each of its versions (e.g. search_records) |
| `triggers[].operation` | string (search \| get \| query \| read_files \| create \| update \| upsert \| delete \| run_query \| send_message \| enrich \| write_files) \| null | No | For an action, the operation it performs on the app; None for an action that runs only as a workflow step (a raw API request, an app operation chosen from a list, an AI step) and for a trigger |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/apps/{app_type}?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "app_type": "<app_type>",
  "actions": [
    {
      "module_id": "<module_id>",
      "module_version": "<module_version>",
      "module_name": "<module_name>",
      "module_description": "<module_description>",
      "is_connection_required": false,
      "connection_app_types": [
        "<connection_app_types>"
      ],
      "is_read_action": false,
      "module_type": "<module_type>",
      "operation": "search"
    }
  ],
  "triggers": [
    {
      "module_id": "<module_id>",
      "module_version": "<module_version>",
      "module_name": "<module_name>",
      "module_description": "<module_description>",
      "is_connection_required": false,
      "connection_app_types": [
        "<connection_app_types>"
      ],
      "is_read_action": false,
      "module_type": "<module_type>",
      "operation": "search"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connector apps](https://docs.stacksync.com/api-reference/connectors/list_connector_apps)
- [Get a connector module form](https://docs.stacksync.com/api-reference/connectors/get_connector_module_form)
- [Run an action](https://docs.stacksync.com/api-reference/connectors/run_connector_module)

# Get a connector module form

> The form of an action or trigger, for the connection and values chosen so far (the form changes as it is filled), and the options of the dropdowns asked for: the form a workflow step or a run of the action is filled from. No workflow is needed. A read: nothing is saved.

Source: https://docs.stacksync.com/api-reference/connectors/get_connector_module_form

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/forms`

- Operation: `get_connector_module_form`
- Resource: Connectors
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region whose catalog to read: besg or usnv |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `module_id` | string, at least 1 characters | Yes | The module, from GET .../workflows/modules/apps/<app_type> |
| `module_version` | string, at least 1 characters | Yes | The module version, from the same answer |
| `connection_id` | string (uuid) \| null | No | The connection the step uses, from GET .../connections (same region); None before one is chosen |
| `values` | object \| null | No | The form values chosen so far: the form can change with them |
| `object_type` | string \| null, 1 to 200 characters | No | The object the action works on, e.g. contacts: put into the action's object field (object_field of the form answer). None for an action without one, or when values already hold it |
| `dropdown_ids` | array of string \| null | No | The dropdowns whose options to load, from dropdown_ids of a previous answer |
| `include_ready_dropdowns` | boolean, default false | No | true also loads the options of every dropdown that can list them now, and names in waiting_dropdown_ids the ones that wait for another field's value or could not load now; a built-in module ignores it (its stored form loads only dropdown_ids) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `input_schema` | object \| null | Yes | The JSON schema of the step's values; a field whose options come from the app names them in dropdown_ids |
| `connection_requirement` | object (ConnectionRequirement) \| null | Yes |  |
| `connection_requirement.is_required` | boolean | Yes |  |
| `connection_requirement.app_types` | array of string | Yes |  |
| `dropdown_ids` | array of string | Yes | Every dropdown the form declares |
| `dropdowns` | array of object (Dropdown) | Yes | The options of the dropdowns asked for |
| `dropdowns[].dropdown_id` | string | Yes |  |
| `dropdowns[].options` | array of object (DropdownOption) | Yes |  |
| `dropdowns[].options[].value` | any | Yes |  |
| `dropdowns[].options[].label` | any | Yes |  |
| `dropdowns[].has_more_options` | boolean | Yes |  |
| `waiting_dropdown_ids` | array of string | No | With include_ready_dropdowns: the dropdowns whose options are not listed: they wait for the fields they depend on, or could not load now |
| `object_field` | string \| null | No | The field that takes the action's object (the first field whose choice reloads the form), where object_type is put; None for a form without one |
| `connection_fields` | array of string | No | The fields that hold the step's connection: filled from connection_id, never given in values |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/forms?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "module_id": "<module_id>",
  "module_version": "<module_version>"
}'
```

## Example response (200)

```json
{
  "input_schema": {},
  "connection_requirement": {
    "is_required": false,
    "app_types": [
      "<app_types>"
    ]
  },
  "dropdown_ids": [
    "<dropdown_ids>"
  ],
  "dropdowns": [
    {
      "dropdown_id": "<dropdown_id>",
      "options": [
        {
          "value": "<value>",
          "label": "<label>"
        }
      ],
      "has_more_options": false
    }
  ],
  "waiting_dropdown_ids": [
    "<waiting_dropdown_ids>"
  ],
  "object_field": "<object_field>",
  "connection_fields": [
    "<connection_fields>"
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connector apps](https://docs.stacksync.com/api-reference/connectors/list_connector_apps)
- [Get a connector app](https://docs.stacksync.com/api-reference/connectors/get_connector_app)
- [Run an action](https://docs.stacksync.com/api-reference/connectors/run_connector_module)

# Run an action

> Run one action of an app on its own, outside any workflow, with a connection and the values of its form: the values are checked against the app's live form, then the app runs them once. A read action (get, list, search...) is open to a viewer; any other can change data in the app and needs an editor. A run the app failed or did not answer is answered with its status. With validate_only, every check runs and the answer tells what would run, nothing runs; with validate_only_for_writes, a read runs and an action that can change data only answers that dry run.

Source: https://docs.stacksync.com/api-reference/connectors/run_connector_module

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/runs`

- Operation: `run_connector_module`
- Resource: Connectors
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region whose catalog to read: besg or usnv |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `module_id` | string, at least 1 characters | Yes | The action, from the actions of GET .../workflows/modules/apps/<app_type> (its current version) |
| `module_version` | string, at least 1 characters | Yes | The action's version, from the same answer |
| `connection_id` | string (uuid) \| null | No | The connection the action uses, from GET .../connections (same region); None for an action that takes none |
| `values` | object | No | The action's form values, as the module form describes them (POST .../workflows/modules/forms) |
| `object_type` | string \| null, 1 to 200 characters | No | The object the action works on, e.g. contacts: put into the action's object field (object_field of the form answer). None for an action without one, or when values already hold it |
| `validate_only` | boolean, default false | No | Run every check of the run (action, role, connection, values against the app's live form) and answer what would run, with whether it only reads, without running it: a refused request answers the error the run would |
| `validate_only_for_writes` | boolean, default false | No | true runs a read action at once and only validates a write action (as validate_only would); false runs any action |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `module_id` | string | Yes |  |
| `module_version` | string | Yes |  |
| `module_name` | string | Yes |  |
| `app_type` | string | Yes |  |
| `connection_id` | string \| null | Yes |  |
| `connection_name` | string \| null | Yes | The name of the connection the action used, None for none |
| `is_read_action` | boolean | Yes | True for an action that only reads from the app (a viewer may run it); any other action can change data and needs an editor |
| `status` | string (validated \| succeeded \| failed \| outcome_unknown) | Yes | How a run ended |
| `data` | any | No | What the action answered, as the next step of a workflow would receive it; None unless it succeeded |
| `is_data_truncated` | boolean, default false | No | True when data was too large to answer: data is then the start of it as JSON text; narrow the action's filters to get it whole |
| `error_message` | string \| null | No | Why the action failed, or why its outcome is unknown |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/modules/runs?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "module_id": "<module_id>",
  "module_version": "<module_version>"
}'
```

## Example response (200)

```json
{
  "module_id": "<module_id>",
  "module_version": "<module_version>",
  "module_name": "<module_name>",
  "app_type": "<app_type>",
  "connection_id": "<connection_id>",
  "connection_name": "<connection_name>",
  "is_read_action": false,
  "status": "validated",
  "data": "<data>",
  "is_data_truncated": false,
  "error_message": "<error_message>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List connector apps](https://docs.stacksync.com/api-reference/connectors/list_connector_apps)
- [Get a connector app](https://docs.stacksync.com/api-reference/connectors/get_connector_app)
- [Get a connector module form](https://docs.stacksync.com/api-reference/connectors/get_connector_module_form)

# List queues

> The live queues of the workspace in one region, newest first.

Source: https://docs.stacksync.com/api-reference/queues/list_queues

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/queues`

- Operation: `list_queues`
- Resource: Queues
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Queue) | Yes |  |
| `data[].queue_id` | string | Yes |  |
| `data[].queue_name` | string | Yes |  |
| `data[].queue_resource_id` | string | Yes |  |
| `data[].status` | string (running \| paused) | Yes |  |
| `data[].consumer_workflow_id` | string \| null | Yes | The workflow that receives the flushed records, if any |
| `data[].flush_batch_size` | integer | Yes | Records sent to the consumer workflow per flush |
| `data[].flush_record_max_age` | integer \| null | Yes | Seconds a record may wait before the queue flushes |
| `data[].flush_rate_limit_max_flush_count` | integer \| null | Yes | Maximum flushes per rate limit window |
| `data[].flush_rate_limit_time_window` | integer \| null | Yes | The rate limit window, in seconds |
| `data[].flush_strategy` | string (fifo \| lifo) | Yes | fifo sends the oldest records first, lifo the newest |
| `data[].parent_folder_id` | string \| null | Yes |  |
| `data[].created_time` | string (date-time) | Yes |  |
| `data[].last_modified_time` | string (date-time) | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "queue_id": "<queue_id>",
      "queue_name": "<queue_name>",
      "queue_resource_id": "<queue_resource_id>",
      "status": "running",
      "consumer_workflow_id": "<consumer_workflow_id>",
      "flush_batch_size": 0,
      "flush_record_max_age": 0,
      "flush_rate_limit_max_flush_count": 0,
      "flush_rate_limit_time_window": 0,
      "flush_strategy": "fifo",
      "parent_folder_id": "<parent_folder_id>",
      "created_time": "2027-01-15T09:00:00Z",
      "last_modified_time": "2027-01-15T09:00:00Z",
      "region": "besg"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# Create a queue

> A queue, running unless sent paused: records added by workflows (and syncs) wait in it until its flush rules send them to its consumer workflow. Send the status, rate limit and strategy of a queue read with GET to copy it. Send an Idempotency-Key to retry safely.

Source: https://docs.stacksync.com/api-reference/queues/create_queue

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/queues`

- Operation: `create_queue`
- Resource: Queues
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_name` | string, 1 to 255 characters | Yes |  |
| `queue_resource_id` | string \| null, pattern `^[a-z0-9_]{1,60}$` | No | The id workflow steps name the queue by; generated from the name when absent |
| `flush_batch_size` | integer, 1 to 10000 | Yes |  |
| `flush_record_max_age` | integer, 1 to 86400 | Yes |  |
| `parent_folder_id` | string \| null | No | The folder to create the queue in, the root when absent |
| `status` | string (running \| paused) \| null | No | running when absent |
| `flush_rate_limit_max_flush_count` | integer \| null, 1 to 2147483647 | No | 10 when absent |
| `flush_rate_limit_time_window` | integer \| null, 1 to 2147483647 | No | 1 second when absent |
| `flush_strategy` | string (fifo \| lifo) \| null | No | fifo when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_id` | string | Yes |  |
| `queue_name` | string | Yes |  |
| `queue_resource_id` | string | Yes |  |
| `status` | string (running \| paused) | Yes |  |
| `consumer_workflow_id` | string \| null | Yes | The workflow that receives the flushed records, if any |
| `flush_batch_size` | integer | Yes | Records sent to the consumer workflow per flush |
| `flush_record_max_age` | integer \| null | Yes | Seconds a record may wait before the queue flushes |
| `flush_rate_limit_max_flush_count` | integer \| null | Yes | Maximum flushes per rate limit window |
| `flush_rate_limit_time_window` | integer \| null | Yes | The rate limit window, in seconds |
| `flush_strategy` | string (fifo \| lifo) | Yes | fifo sends the oldest records first, lifo the newest |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "queue_name": "<queue_name>",
  "flush_batch_size": 1,
  "flush_record_max_age": 1
}'
```

## Example response (201)

```json
{
  "queue_id": "<queue_id>",
  "queue_name": "<queue_name>",
  "queue_resource_id": "<queue_resource_id>",
  "status": "running",
  "consumer_workflow_id": "<consumer_workflow_id>",
  "flush_batch_size": 0,
  "flush_record_max_age": 0,
  "flush_rate_limit_max_flush_count": 0,
  "flush_rate_limit_time_window": 0,
  "flush_strategy": "fifo",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# Get a queue

> The queue, the workflows and syncs that feed it (producers) and the workflow that consumes it.

Source: https://docs.stacksync.com/api-reference/queues/get_queue

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}`

- Operation: `get_queue`
- Resource: Queues
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_app_queue_id` | string (uuid) | Yes | The queue. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_id` | string | Yes |  |
| `queue_name` | string | Yes |  |
| `queue_resource_id` | string | Yes |  |
| `status` | string (running \| paused) | Yes |  |
| `consumer_workflow_id` | string \| null | Yes | The workflow that receives the flushed records, if any |
| `flush_batch_size` | integer | Yes | Records sent to the consumer workflow per flush |
| `flush_record_max_age` | integer \| null | Yes | Seconds a record may wait before the queue flushes |
| `flush_rate_limit_max_flush_count` | integer \| null | Yes | Maximum flushes per rate limit window |
| `flush_rate_limit_time_window` | integer \| null | Yes | The rate limit window, in seconds |
| `flush_strategy` | string (fifo \| lifo) | Yes | fifo sends the oldest records first, lifo the newest |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `producers` | array of object (QueueResourceReference) | Yes |  |
| `producers[].resource_type` | string | Yes | workflow or sync |
| `producers[].resource_id` | string | Yes |  |
| `producers[].resource_name` | string | Yes |  |
| `producers[].is_deployed` | boolean \| null | No | For a workflow: a version using the queue is deployed |
| `producers[].is_trigger_paused` | boolean \| null | No | For a sync: its queue trigger is paused |
| `producers[].is_sync_paused` | boolean \| null | No | For a sync: the sync itself is paused |
| `consumers` | array of object (QueueResourceReference) | Yes |  |
| `consumers[].resource_type` | string | Yes | workflow or sync |
| `consumers[].resource_id` | string | Yes |  |
| `consumers[].resource_name` | string | Yes |  |
| `consumers[].is_deployed` | boolean \| null | No | For a workflow: a version using the queue is deployed |
| `consumers[].is_trigger_paused` | boolean \| null | No | For a sync: its queue trigger is paused |
| `consumers[].is_sync_paused` | boolean \| null | No | For a sync: the sync itself is paused |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "queue_id": "<queue_id>",
  "queue_name": "<queue_name>",
  "queue_resource_id": "<queue_resource_id>",
  "status": "running",
  "consumer_workflow_id": "<consumer_workflow_id>",
  "flush_batch_size": 0,
  "flush_record_max_age": 0,
  "flush_rate_limit_max_flush_count": 0,
  "flush_rate_limit_time_window": 0,
  "flush_strategy": "fifo",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg",
  "producers": [
    {
      "resource_type": "<resource_type>",
      "resource_id": "<resource_id>",
      "resource_name": "<resource_name>",
      "is_deployed": false,
      "is_trigger_paused": false,
      "is_sync_paused": false
    }
  ],
  "consumers": [
    {
      "resource_type": "<resource_type>",
      "resource_id": "<resource_id>",
      "resource_name": "<resource_name>",
      "is_deployed": false,
      "is_trigger_paused": false,
      "is_sync_paused": false
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# Update a queue

> Rename a queue, pause or resume it, or change its flush rules. Only the fields sent change.

Source: https://docs.stacksync.com/api-reference/queues/update_queue

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}`

- Operation: `update_queue`
- Resource: Queues
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_app_queue_id` | string (uuid) | Yes | The queue. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_name` | string \| null, 1 to 255 characters | No |  |
| `status` | string (running \| paused) \| null | No |  |
| `flush_batch_size` | integer \| null, 1 to 10000 | No |  |
| `flush_record_max_age` | integer \| null, 1 to 86400 | No |  |
| `flush_rate_limit_max_flush_count` | integer \| null, 1 to 2147483647 | No |  |
| `flush_rate_limit_time_window` | integer \| null, 1 to 2147483647 | No |  |
| `flush_strategy` | string (fifo \| lifo) \| null | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_id` | string | Yes |  |
| `queue_name` | string | Yes |  |
| `queue_resource_id` | string | Yes |  |
| `status` | string (running \| paused) | Yes |  |
| `consumer_workflow_id` | string \| null | Yes | The workflow that receives the flushed records, if any |
| `flush_batch_size` | integer | Yes | Records sent to the consumer workflow per flush |
| `flush_record_max_age` | integer \| null | Yes | Seconds a record may wait before the queue flushes |
| `flush_rate_limit_max_flush_count` | integer \| null | Yes | Maximum flushes per rate limit window |
| `flush_rate_limit_time_window` | integer \| null | Yes | The rate limit window, in seconds |
| `flush_strategy` | string (fifo \| lifo) | Yes | fifo sends the oldest records first, lifo the newest |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "queue_name": "<queue_name>"
}'
```

## Example response (200)

```json
{
  "queue_id": "<queue_id>",
  "queue_name": "<queue_name>",
  "queue_resource_id": "<queue_resource_id>",
  "status": "running",
  "consumer_workflow_id": "<consumer_workflow_id>",
  "flush_batch_size": 0,
  "flush_record_max_age": 0,
  "flush_rate_limit_max_flush_count": 0,
  "flush_rate_limit_time_window": 0,
  "flush_strategy": "fifo",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# Delete a queue

> Its waiting records are removed; workflows using it can no longer add or receive records.

Source: https://docs.stacksync.com/api-reference/queues/delete_queue

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}`

- Operation: `delete_queue`
- Resource: Queues
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_app_queue_id` | string (uuid) | Yes | The queue. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_id` | string | Yes |  |
| `queue_name` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "queue_id": "<queue_id>",
  "queue_name": "<queue_name>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# Flush a queue

> Send the next record_count waiting records to the queue's consumer workflow now, whatever its flush rules. A queue without a consumer workflow is refused with 409: nothing could receive the records. With validate_only, the same checks run and 204 answers, nothing is requested.

Source: https://docs.stacksync.com/api-reference/queues/flush_queue

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/flush`

- Operation: `flush_queue`
- Resource: Queues
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_app_queue_id` | string (uuid) | Yes | The queue. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `record_count` | integer, 1 to 10000 | Yes | Waiting records to send to the consumer now |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_id` | string | Yes |  |
| `queue_name` | string | Yes |  |
| `queue_resource_id` | string | Yes |  |
| `status` | string (running \| paused) | Yes |  |
| `consumer_workflow_id` | string \| null | Yes | The workflow that receives the flushed records, if any |
| `flush_batch_size` | integer | Yes | Records sent to the consumer workflow per flush |
| `flush_record_max_age` | integer \| null | Yes | Seconds a record may wait before the queue flushes |
| `flush_rate_limit_max_flush_count` | integer \| null | Yes | Maximum flushes per rate limit window |
| `flush_rate_limit_time_window` | integer \| null | Yes | The rate limit window, in seconds |
| `flush_strategy` | string (fifo \| lifo) | Yes | fifo sends the oldest records first, lifo the newest |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `flush_requested_record_count` | integer | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/flush?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "record_count": 1
}'
```

## Example response (200)

```json
{
  "queue_id": "<queue_id>",
  "queue_name": "<queue_name>",
  "queue_resource_id": "<queue_resource_id>",
  "status": "running",
  "consumer_workflow_id": "<consumer_workflow_id>",
  "flush_batch_size": 0,
  "flush_record_max_age": 0,
  "flush_rate_limit_max_flush_count": 0,
  "flush_rate_limit_time_window": 0,
  "flush_strategy": "fifo",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg",
  "flush_requested_record_count": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# List a queue's waiting records

> The records waiting in the queue, oldest or newest first, with their payload, and how many wait in total.

Source: https://docs.stacksync.com/api-reference/queues/list_queue_records

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/records`

- Operation: `list_queue_records`
- Resource: Queues
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_app_queue_id` | string (uuid) | Yes | The queue. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 100, default 20 | No | Maximum number of records returned, at most 100 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |
| `order` | string (oldest \| newest), default "oldest" | No | Which waiting records come first: the oldest (the next to be flushed) or the newest |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (QueueRecord) | Yes |  |
| `data[].record_id` | string | Yes |  |
| `data[].created_time` | string \| null | Yes |  |
| `data[].process_start_time` | string \| null | Yes | When a flush started sending the record, null while it waits |
| `data[].is_to_retry` | boolean \| null | Yes | The record failed in a flush and is sent again |
| `data[].data` | string | Yes | The record's payload, at most 10,000 characters |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |
| `waiting_record_count` | integer | Yes | Every record waiting in the queue, not only this page |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/records?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "record_id": "<record_id>",
      "created_time": "<created_time>",
      "process_start_time": "<process_start_time>",
      "is_to_retry": false,
      "data": "<data>"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0,
  "waiting_record_count": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)
- [Clear a queue's waiting records](https://docs.stacksync.com/api-reference/queues/clear_queue_records)

# Clear a queue's waiting records

> Every record waiting in the queue is removed and never reaches the consumer workflow. The queue itself stays.

Source: https://docs.stacksync.com/api-reference/queues/clear_queue_records

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/records`

- Operation: `clear_queue_records`
- Resource: Queues
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_app_queue_id` | string (uuid) | Yes | The queue. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queue_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/records?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "queue_id": "<queue_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List queues](https://docs.stacksync.com/api-reference/queues/list_queues)
- [List a queue's waiting records](https://docs.stacksync.com/api-reference/queues/list_queue_records)
- [Get a queue](https://docs.stacksync.com/api-reference/queues/get_queue)
- [Create a queue](https://docs.stacksync.com/api-reference/queues/create_queue)
- [Update a queue](https://docs.stacksync.com/api-reference/queues/update_queue)
- [Delete a queue](https://docs.stacksync.com/api-reference/queues/delete_queue)
- [Flush a queue](https://docs.stacksync.com/api-reference/queues/flush_queue)

# List variables

> The variables and secrets of the workspace in one region, newest first. A secret's value is never answered.

Source: https://docs.stacksync.com/api-reference/variables/list_variables

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/variables`

- Operation: `list_variables`
- Resource: Variables
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Variable) | Yes |  |
| `data[].variable_id` | string | Yes |  |
| `data[].variable_name` | string | Yes |  |
| `data[].variable_resource_id` | string | Yes |  |
| `data[].description` | string \| null | Yes |  |
| `data[].is_secret` | boolean | Yes | A secret's value is encrypted and never answered |
| `data[].value` | string \| null | Yes | The value as text (JSON text for object, array and json); null for a secret |
| `data[].value_type` | string (string \| number \| boolean \| object \| array \| json) \| null | Yes | How workflow steps read the value; for a secret, answered by GET /variables/<id> (stored encrypted with its value, not read by the list) |
| `data[].reference` | string | Yes | What a workflow step writes to read the variable |
| `data[].parent_folder_id` | string \| null | Yes |  |
| `data[].created_time` | string (date-time) | Yes |  |
| `data[].last_modified_time` | string (date-time) | Yes |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/variables?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "variable_id": "<variable_id>",
      "variable_name": "<variable_name>",
      "variable_resource_id": "<variable_resource_id>",
      "description": "<description>",
      "is_secret": false,
      "value": "<value>",
      "value_type": "string",
      "reference": "<reference>",
      "parent_folder_id": "<parent_folder_id>",
      "created_time": "2027-01-15T09:00:00Z",
      "last_modified_time": "2027-01-15T09:00:00Z",
      "region": "besg"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a variable](https://docs.stacksync.com/api-reference/variables/get_variable)
- [Create a variable](https://docs.stacksync.com/api-reference/variables/create_variable)
- [Update a variable](https://docs.stacksync.com/api-reference/variables/update_variable)
- [Delete a variable](https://docs.stacksync.com/api-reference/variables/delete_variable)

# Create a variable

> A workspace variable, or a secret (is_secret: its value is encrypted and never answered again). Send an Idempotency-Key to retry safely.

Source: https://docs.stacksync.com/api-reference/variables/create_variable

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/variables`

- Operation: `create_variable`
- Resource: Variables
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variable_name` | string, 1 to 255 characters | Yes |  |
| `value` | string, default "" | No | The value as text; for object, array and json the JSON text |
| `value_type` | string (string \| number \| boolean \| object \| array \| json), default "string" | No |  |
| `is_secret` | boolean, default false | No | A secret's value is encrypted and never answered; cannot be undone |
| `description` | string \| null | No |  |
| `variable_resource_id` | string \| null, pattern `^[a-z0-9_]{1,60}$` | No | The id workflow steps read the variable by; generated from the name when absent |
| `parent_folder_id` | string \| null | No | The folder to create the variable in, the root when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variable_id` | string | Yes |  |
| `variable_name` | string | Yes |  |
| `variable_resource_id` | string | Yes |  |
| `description` | string \| null | Yes |  |
| `is_secret` | boolean | Yes | A secret's value is encrypted and never answered |
| `value` | string \| null | Yes | The value as text (JSON text for object, array and json); null for a secret |
| `value_type` | string (string \| number \| boolean \| object \| array \| json) \| null | Yes | How workflow steps read the value; for a secret, answered by GET /variables/<id> (stored encrypted with its value, not read by the list) |
| `reference` | string | Yes | What a workflow step writes to read the variable |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/variables?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "variable_name": "<variable_name>"
}'
```

## Example response (201)

```json
{
  "variable_id": "<variable_id>",
  "variable_name": "<variable_name>",
  "variable_resource_id": "<variable_resource_id>",
  "description": "<description>",
  "is_secret": false,
  "value": "<value>",
  "value_type": "string",
  "reference": "<reference>",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List variables](https://docs.stacksync.com/api-reference/variables/list_variables)
- [Get a variable](https://docs.stacksync.com/api-reference/variables/get_variable)
- [Update a variable](https://docs.stacksync.com/api-reference/variables/update_variable)
- [Delete a variable](https://docs.stacksync.com/api-reference/variables/delete_variable)

# Get a variable

> A variable or secret: its value (never a secret's), type, description and reference.

Source: https://docs.stacksync.com/api-reference/variables/get_variable

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}`

- Operation: `get_variable`
- Resource: Variables
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_variable_id` | string (uuid) | Yes | The variable. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variable_id` | string | Yes |  |
| `variable_name` | string | Yes |  |
| `variable_resource_id` | string | Yes |  |
| `description` | string \| null | Yes |  |
| `is_secret` | boolean | Yes | A secret's value is encrypted and never answered |
| `value` | string \| null | Yes | The value as text (JSON text for object, array and json); null for a secret |
| `value_type` | string (string \| number \| boolean \| object \| array \| json) \| null | Yes | How workflow steps read the value; for a secret, answered by GET /variables/<id> (stored encrypted with its value, not read by the list) |
| `reference` | string | Yes | What a workflow step writes to read the variable |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "variable_id": "<variable_id>",
  "variable_name": "<variable_name>",
  "variable_resource_id": "<variable_resource_id>",
  "description": "<description>",
  "is_secret": false,
  "value": "<value>",
  "value_type": "string",
  "reference": "<reference>",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List variables](https://docs.stacksync.com/api-reference/variables/list_variables)
- [Create a variable](https://docs.stacksync.com/api-reference/variables/create_variable)
- [Update a variable](https://docs.stacksync.com/api-reference/variables/update_variable)
- [Delete a variable](https://docs.stacksync.com/api-reference/variables/delete_variable)

# Update a variable

> Change a variable's name, description, value or value type, or turn it into a secret (for good). Only the fields sent change. A secret's value is never read back: to change its type, send its value too.

Source: https://docs.stacksync.com/api-reference/variables/update_variable

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}`

- Operation: `update_variable`
- Resource: Variables
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_variable_id` | string (uuid) | Yes | The variable. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variable_name` | string \| null, 1 to 255 characters | No |  |
| `description` | string \| null | No |  |
| `value` | string \| null | No | For a secret, send the value with its value_type |
| `value_type` | string (string \| number \| boolean \| object \| array \| json) \| null | No |  |
| `is_secret` | boolean \| null | No | true turns the variable into a secret, for good |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variable_id` | string | Yes |  |
| `variable_name` | string | Yes |  |
| `variable_resource_id` | string | Yes |  |
| `description` | string \| null | Yes |  |
| `is_secret` | boolean | Yes | A secret's value is encrypted and never answered |
| `value` | string \| null | Yes | The value as text (JSON text for object, array and json); null for a secret |
| `value_type` | string (string \| number \| boolean \| object \| array \| json) \| null | Yes | How workflow steps read the value; for a secret, answered by GET /variables/<id> (stored encrypted with its value, not read by the list) |
| `reference` | string | Yes | What a workflow step writes to read the variable |
| `parent_folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "variable_name": "<variable_name>"
}'
```

## Example response (200)

```json
{
  "variable_id": "<variable_id>",
  "variable_name": "<variable_name>",
  "variable_resource_id": "<variable_resource_id>",
  "description": "<description>",
  "is_secret": false,
  "value": "<value>",
  "value_type": "string",
  "reference": "<reference>",
  "parent_folder_id": "<parent_folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List variables](https://docs.stacksync.com/api-reference/variables/list_variables)
- [Get a variable](https://docs.stacksync.com/api-reference/variables/get_variable)
- [Create a variable](https://docs.stacksync.com/api-reference/variables/create_variable)
- [Delete a variable](https://docs.stacksync.com/api-reference/variables/delete_variable)

# Delete a variable

> Delete a variable or secret; workflow steps referencing it no longer resolve it.

Source: https://docs.stacksync.com/api-reference/variables/delete_variable

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}`

- Operation: `delete_variable`
- Resource: Variables
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflows_variable_id` | string (uuid) | Yes | The variable. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variable_id` | string | Yes |  |
| `variable_name` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "variable_id": "<variable_id>",
  "variable_name": "<variable_name>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List variables](https://docs.stacksync.com/api-reference/variables/list_variables)
- [Get a variable](https://docs.stacksync.com/api-reference/variables/get_variable)
- [Create a variable](https://docs.stacksync.com/api-reference/variables/create_variable)
- [Update a variable](https://docs.stacksync.com/api-reference/variables/update_variable)

# List API proxies

> The API proxies of the workspace in one region that the caller may see (created by them, or shared), newest first.

Source: https://docs.stacksync.com/api-reference/api-proxies/list_api_proxies

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy`

- Operation: `list_api_proxies`
- Resource: API proxies
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |
| `name` | string \| null | No | Only the API proxies with exactly this name |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `api_proxy_services` | array of object (ApiProxy) | Yes |  |
| `api_proxy_services[].connection_id` | string \| null | Yes |  |
| `api_proxy_services[].api_proxy_id` | string | Yes |  |
| `api_proxy_services[].api_proxy_name` | string | Yes |  |
| `api_proxy_services[].api_proxy_resource_id` | string \| null | Yes | Answered by GET /api-proxy/<api_proxy_id>; null in the list, whose core does not select it |
| `api_proxy_services[].app_type` | string | Yes |  |
| `api_proxy_services[].connection_name` | string \| null | Yes |  |
| `api_proxy_services[].is_shared_with_workspace` | boolean | Yes | Every workspace member may use the proxy, not only its creator |
| `api_proxy_services[].max_objects_per_request` | integer \| null | Yes | The workspace plan's limit of objects per proxied request; null in the list |
| `api_proxy_services[].parent_folder_id` | string \| null | Yes | The folder of the proxy; null at the root, and in the list |
| `api_proxy_services[].created_by` | integer | Yes |  |
| `api_proxy_services[].created_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `api_proxy_services[].last_modified_by` | integer | Yes |  |
| `api_proxy_services[].last_modified_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `api_proxy_services[].region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "api_proxy_services": [
    {
      "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"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get an API proxy](https://docs.stacksync.com/api-reference/api-proxies/get_api_proxy)
- [Create an API proxy](https://docs.stacksync.com/api-reference/api-proxies/create_api_proxy)
- [Update an API proxy](https://docs.stacksync.com/api-reference/api-proxies/update_api_proxy)
- [Delete an API proxy](https://docs.stacksync.com/api-reference/api-proxies/delete_api_proxy)
- [Regenerate an API proxy token](https://docs.stacksync.com/api-reference/api-proxies/regenerate_api_proxy_token)

# Create an 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.

Source: https://docs.stacksync.com/api-reference/api-proxies/create_api_proxy

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy`

- Operation: `create_api_proxy`
- Resource: API proxies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string (uuid) | Yes | The connection the proxy calls the app with; its app is the proxy's app |
| `api_proxy_name` | string \| null, 3 to 63 characters, pattern `^[A-Za-z][A-Za-z0-9_\- ]*$` | No | 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 |
| `is_shared_with_workspace` | boolean, default false | No |  |
| `api_proxy_resource_id` | string \| null, pattern `^[a-z0-9_]{1,60}$` | No |  |
| `parent_folder_id` | string \| null | No | The folder to create the proxy in, the root when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string \| null | Yes |  |
| `api_proxy_id` | string | Yes |  |
| `api_proxy_name` | string | Yes |  |
| `api_proxy_resource_id` | string \| null | Yes | Answered by GET /api-proxy/<api_proxy_id>; null in the list, whose core does not select it |
| `app_type` | string | Yes |  |
| `connection_name` | string \| null | Yes |  |
| `is_shared_with_workspace` | boolean | Yes | Every workspace member may use the proxy, not only its creator |
| `max_objects_per_request` | integer \| null | Yes | The workspace plan's limit of objects per proxied request; null in the list |
| `parent_folder_id` | string \| null | Yes | The folder of the proxy; null at the root, and in the list |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `region` | string (besg \| usnv) | Yes |  |
| `api_proxy_token` | string \| null | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "api_proxy_name": "Salesforce Proxy",
  "connection_id": "6f1c2a9e-4b7d-4e3a-9c5f-2d8b1e7a4c60"
}'
```

## Example response (200)

```json
{
  "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>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List API proxies](https://docs.stacksync.com/api-reference/api-proxies/list_api_proxies)
- [Get an API proxy](https://docs.stacksync.com/api-reference/api-proxies/get_api_proxy)
- [Update an API proxy](https://docs.stacksync.com/api-reference/api-proxies/update_api_proxy)
- [Delete an API proxy](https://docs.stacksync.com/api-reference/api-proxies/delete_api_proxy)
- [Regenerate an API proxy token](https://docs.stacksync.com/api-reference/api-proxies/regenerate_api_proxy_token)

# Get an API proxy

> Its app, the connection it calls the app with, and whether it is shared with the workspace. Never its token.

Source: https://docs.stacksync.com/api-reference/api-proxies/get_api_proxy

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}`

- Operation: `get_api_proxy`
- Resource: API proxies
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `api_proxy_id` | string (uuid) | Yes | The API proxy. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string \| null | Yes |  |
| `api_proxy_id` | string | Yes |  |
| `api_proxy_name` | string | Yes |  |
| `api_proxy_resource_id` | string \| null | Yes | Answered by GET /api-proxy/<api_proxy_id>; null in the list, whose core does not select it |
| `app_type` | string | Yes |  |
| `connection_name` | string \| null | Yes |  |
| `is_shared_with_workspace` | boolean | Yes | Every workspace member may use the proxy, not only its creator |
| `max_objects_per_request` | integer \| null | Yes | The workspace plan's limit of objects per proxied request; null in the list |
| `parent_folder_id` | string \| null | Yes | The folder of the proxy; null at the root, and in the list |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "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"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List API proxies](https://docs.stacksync.com/api-reference/api-proxies/list_api_proxies)
- [Create an API proxy](https://docs.stacksync.com/api-reference/api-proxies/create_api_proxy)
- [Update an API proxy](https://docs.stacksync.com/api-reference/api-proxies/update_api_proxy)
- [Delete an API proxy](https://docs.stacksync.com/api-reference/api-proxies/delete_api_proxy)
- [Regenerate an API proxy token](https://docs.stacksync.com/api-reference/api-proxies/regenerate_api_proxy_token)

# Update an API proxy

> Rename it, share it with the workspace (or stop), or switch it to another connection. Only the fields sent change.

Source: https://docs.stacksync.com/api-reference/api-proxies/update_api_proxy

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}`

- Operation: `update_api_proxy`
- Resource: API proxies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `api_proxy_id` | string (uuid) | Yes | The API proxy. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `api_proxy_name` | string \| null, 3 to 63 characters, pattern `^[A-Za-z][A-Za-z0-9_\- ]*$` | No | 3 to 63 characters: a letter first, then letters, digits, spaces, _ and -; unique among the API proxies of the workspace in the region |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `connection_id` | string (uuid) \| null | No | Switch the proxy to another connection of the same app |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string \| null | Yes |  |
| `api_proxy_id` | string | Yes |  |
| `api_proxy_name` | string | Yes |  |
| `api_proxy_resource_id` | string \| null | Yes | Answered by GET /api-proxy/<api_proxy_id>; null in the list, whose core does not select it |
| `app_type` | string | Yes |  |
| `connection_name` | string \| null | Yes |  |
| `is_shared_with_workspace` | boolean | Yes | Every workspace member may use the proxy, not only its creator |
| `max_objects_per_request` | integer \| null | Yes | The workspace plan's limit of objects per proxied request; null in the list |
| `parent_folder_id` | string \| null | Yes | The folder of the proxy; null at the root, and in the list |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes | HTTP date (RFC 9110), UTC |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "api_proxy_name": "Salesforce Proxy"
}'
```

## Example response (200)

```json
{
  "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"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List API proxies](https://docs.stacksync.com/api-reference/api-proxies/list_api_proxies)
- [Get an API proxy](https://docs.stacksync.com/api-reference/api-proxies/get_api_proxy)
- [Create an API proxy](https://docs.stacksync.com/api-reference/api-proxies/create_api_proxy)
- [Delete an API proxy](https://docs.stacksync.com/api-reference/api-proxies/delete_api_proxy)
- [Regenerate an API proxy token](https://docs.stacksync.com/api-reference/api-proxies/regenerate_api_proxy_token)

# Delete an API proxy

> Its tokens stop working.

Source: https://docs.stacksync.com/api-reference/api-proxies/delete_api_proxy

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}`

- Operation: `delete_api_proxy`
- Resource: API proxies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `api_proxy_id` | string (uuid) | Yes | The API proxy. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `api_proxy_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "api_proxy_id": "<api_proxy_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List API proxies](https://docs.stacksync.com/api-reference/api-proxies/list_api_proxies)
- [Get an API proxy](https://docs.stacksync.com/api-reference/api-proxies/get_api_proxy)
- [Create an API proxy](https://docs.stacksync.com/api-reference/api-proxies/create_api_proxy)
- [Update an API proxy](https://docs.stacksync.com/api-reference/api-proxies/update_api_proxy)
- [Regenerate an API proxy token](https://docs.stacksync.com/api-reference/api-proxies/regenerate_api_proxy_token)

# Regenerate an API proxy token

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

Source: https://docs.stacksync.com/api-reference/api-proxies/regenerate_api_proxy_token

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}/regenerate-token`

- Operation: `regenerate_api_proxy_token`
- Resource: API proxies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `api_proxy_id` | string (uuid) | Yes | The API proxy; it must be yours or shared with the workspace |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the API proxy |

## Returns

### 200 The API proxy with its new token

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string (uuid) | Yes | The connection the proxy forwards to |
| `api_proxy_id` | string (uuid) | Yes | The API proxy |
| `api_proxy_name` | string | Yes | The name of the API proxy |
| `app_type` | string | Yes | The app the proxy fronts |
| `created_by` | integer | Yes | The user who created the proxy |
| `created_time` | string | Yes | When the proxy was created |
| `last_modified_by` | integer | Yes | The user who last changed it |
| `last_modified_time` | string | Yes | When it was last changed |
| `api_proxy_token` | string | Yes | The new token, shown once. It replaces the previous token. |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/api-proxy/{api_proxy_id}/regenerate-token?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "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"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `api_proxy_id` is not a UUID; no API proxy with this id exists in the workspace and region, or it is not visible to the user of the API key (`Error Getting API Proxy Services`, answered with 400); the token could not be stored | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List API proxies](https://docs.stacksync.com/api-reference/api-proxies/list_api_proxies)
- [Get an API proxy](https://docs.stacksync.com/api-reference/api-proxies/get_api_proxy)
- [Create an API proxy](https://docs.stacksync.com/api-reference/api-proxies/create_api_proxy)
- [Update an API proxy](https://docs.stacksync.com/api-reference/api-proxies/update_api_proxy)
- [Delete an API proxy](https://docs.stacksync.com/api-reference/api-proxies/delete_api_proxy)

# List Genies

> The Genies of the workspace in one region, newest first.

Source: https://docs.stacksync.com/api-reference/genies/list_genies

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies`

- Operation: `list_genies`
- Resource: Genies
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Region to list: besg or usnv |
| `folder_id` | string (uuid) \| null | No | Only the genies of this folder; every genie of the workspace when absent |
| `search` | string \| null, 1 to 255 characters | No | Only genies whose name contains this text |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (GenieSummary) | Yes |  |
| `data[].genie_id` | string | Yes |  |
| `data[].name` | string | Yes |  |
| `data[].status` | string \| null | No |  |
| `data[].region` | string (besg \| usnv) | Yes |  |
| `data[].apps` | array of string | No | The apps its skills act in |
| `data[].folder_id` | string \| null | No |  |
| `data[].last_modified_time` | string (date-time) \| null | No |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "genie_id": "<genie_id>",
      "name": "<name>",
      "status": "<status>",
      "region": "besg",
      "apps": [
        "<apps>"
      ],
      "folder_id": "<folder_id>",
      "last_modified_time": "2027-01-15T09:00:00Z"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie logs](https://docs.stacksync.com/api-reference/genies/list_genie_logs)
- [Get a Genie](https://docs.stacksync.com/api-reference/genies/get_genie)
- [Create a genie](https://docs.stacksync.com/api-reference/genies/create_genie)
- [Update a Genie](https://docs.stacksync.com/api-reference/genies/update_genie)
- [Delete a Genie](https://docs.stacksync.com/api-reference/genies/delete_genie)

# Create a genie

> The configuration's defaults are the web app's (every tool on); the description is written by Stacksync from the instructions. Send a configuration made by the genies setup wizard (genies.stacksync.com .../genies/wizard/generate-config) after filling the connection of each skill.

Source: https://docs.stacksync.com/api-reference/genies/create_genie

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/genies`

- Operation: `create_genie`
- Resource: Genies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string, 1 to 255 characters | Yes | Unique among the workspace's genies of the region |
| `folder_id` | string (uuid) \| null | No | The folder to create it in; the root when absent |
| `is_shared_with_workspace` | boolean, default true | No | Whether every member of the workspace sees it |
| `genie_config` | object (GenieConfigInput) | No |  |
| `genie_config.master_prompt` | string, default "" | No | The genie's instructions |
| `genie_config.description` | string, default "" | No | Leave empty: Stacksync writes it from the instructions |
| `genie_config.model_selection` | object (GenieModelSelectionDocument) | No | The LLM the genie runs on, as the web app's Model dropdown picks it (genie_config.model_selection, read by genies) |
| `genie_config.model_selection.model` | string \| null | No | The model name, e.g. gemini-3.8-flash; null or a name genies does not offer runs Stacksync's default |
| `genie_config.interfaces` | array of object (GenieInterfaceDocument) | No |  |
| `genie_config.interfaces[].id` | string | Yes |  |
| `genie_config.interfaces[].type` | string | Yes | slack, teams, google_chat, email or app_trigger. A Trigger (record changes of an app) is set up with POST /app-triggers after the row is added; removing the row deletes it |
| `genie_config.interfaces[].details` | string | Yes | For email: the address '<alias>@stacksync.email'; for a Trigger: the app and tables it watches |
| `genie_config.interfaces[].connection_id` | string, default "" | No | The Slack, Teams or Google Chat connection of the workspace (for a Trigger, the connection of the app it watches); empty for email |
| `genie_config.interfaces[].connection_resource_id` | string, default "" | No | The resource id of that connection; empty for email |
| `genie_config.interfaces[].base_id` | string, default "" | No | Read-only. The sync that runs a Trigger; removing the Trigger deletes it |
| `genie_config.skills` | array of object (GenieSkillDocument) | No |  |
| `genie_config.skills[].id` | string | Yes | The module id |
| `genie_config.skills[].name` | string | Yes |  |
| `genie_config.skills[].description` | string, default "" | No |  |
| `genie_config.skills[].type` | "Module", default "Module" | No |  |
| `genie_config.skills[].enabled` | boolean, default true | No |  |
| `genie_config.skills[].connection` | string \| null | No | The connection id the action runs with |
| `genie_config.skills[].connection_resource_id` | string \| null | No | The resource id of that connection |
| `genie_config.skills[].approval_policy` | string (always_allow \| approval_required), default "always_allow" | No | approval_required pauses the genie until a person approves the action |
| `genie_config.app_descriptions` | object | No | Per skill app type: when and how the genie uses that app |
| `genie_config.resources` | array of object (GenieResourceDocument) | No |  |
| `genie_config.resources[].name` | string | Yes |  |
| `genie_config.resources[].type` | string (connection \| variable \| secret) | Yes |  |
| `genie_config.resources[].value` | string | Yes | The connection id or the variable id |
| `genie_config.resources[].instructions` | string, default "" | No |  |
| `genie_config.teams` | array of object (GenieTeamDocument) | No |  |
| `genie_config.teams[].id` | string | Yes |  |
| `genie_config.teams[].name` | string | Yes |  |
| `genie_config.contacts` | array of object (GenieContactDocument) | No |  |
| `genie_config.contacts[].id` | string | Yes |  |
| `genie_config.contacts[].name` | string | Yes |  |
| `genie_config.contacts[].email` | string | Yes |  |
| `genie_config.tools` | object (GenieToolsDocument) | No | The built-in tools the genie may use; all on by default, as in the web app |
| `genie_config.tools.web_search` | boolean, default true | No |  |
| `genie_config.tools.execute_browser` | boolean, default true | No |  |
| `genie_config.tools.api_call` | boolean, default true | No |  |
| `genie_config.tools.code_execution` | boolean, default true | No |  |
| `genie_config.tools.stacksync_ocr` | boolean, default true | No |  |
| `genie_config.tools.modify_scheduled_task` | boolean, default true | No |  |
| `genie_config.api_key` | string \| null | No | Your own LLM API key for the model; never returned |
| `knowledge_bases` | array of object (GenieKnowledgeBaseDocument) | No |  |
| `knowledge_bases[].knowledge_base_id` | string (uuid) | Yes | As answered by the knowledge base routes |
| `knowledge_bases[].instructions` | string, default "" | No |  |
| `knowledge_bases[].enabled` | boolean, default true | No | Whether the genie consults it; kept as stored when an update leaves it out |
| `knowledge_bases[].disabled_document_ids` | array of string (uuid) | No | The files of the knowledge base the genie leaves out; every other file, including later ones, is consulted. Kept as stored when an update leaves it out |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `genie_id` | string | Yes |  |
| `name` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `folder_id` | string \| null | No |  |
| `status` | string \| null | No |  |
| `public_access_rights` | string \| null | No |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `has_api_key` | boolean | Yes | Whether an LLM API key of yours is stored (the key itself is never returned) |
| `genie_config` | object (GenieConfigDocument) | Yes | What the genie does and how: its instructions, channels, skills, resources and tools |
| `genie_config.master_prompt` | string, default "" | No | The genie's instructions |
| `genie_config.description` | string, default "" | No | Leave empty: Stacksync writes it from the instructions |
| `genie_config.model_selection` | object (GenieModelSelectionDocument) | No | The LLM the genie runs on, as the web app's Model dropdown picks it (genie_config.model_selection, read by genies) |
| `genie_config.model_selection.model` | string \| null | No | The model name, e.g. gemini-3.8-flash; null or a name genies does not offer runs Stacksync's default |
| `genie_config.interfaces` | array of object (GenieInterfaceDocument) | No |  |
| `genie_config.interfaces[].id` | string | Yes |  |
| `genie_config.interfaces[].type` | string | Yes | slack, teams, google_chat, email or app_trigger. A Trigger (record changes of an app) is set up with POST /app-triggers after the row is added; removing the row deletes it |
| `genie_config.interfaces[].details` | string | Yes | For email: the address '<alias>@stacksync.email'; for a Trigger: the app and tables it watches |
| `genie_config.interfaces[].connection_id` | string, default "" | No | The Slack, Teams or Google Chat connection of the workspace (for a Trigger, the connection of the app it watches); empty for email |
| `genie_config.interfaces[].connection_resource_id` | string, default "" | No | The resource id of that connection; empty for email |
| `genie_config.interfaces[].base_id` | string, default "" | No | Read-only. The sync that runs a Trigger; removing the Trigger deletes it |
| `genie_config.skills` | array of object (GenieSkillDocument) | No |  |
| `genie_config.skills[].id` | string | Yes | The module id |
| `genie_config.skills[].name` | string | Yes |  |
| `genie_config.skills[].description` | string, default "" | No |  |
| `genie_config.skills[].type` | "Module", default "Module" | No |  |
| `genie_config.skills[].enabled` | boolean, default true | No |  |
| `genie_config.skills[].connection` | string \| null | No | The connection id the action runs with |
| `genie_config.skills[].connection_resource_id` | string \| null | No | The resource id of that connection |
| `genie_config.skills[].approval_policy` | string (always_allow \| approval_required), default "always_allow" | No | approval_required pauses the genie until a person approves the action |
| `genie_config.app_descriptions` | object | No | Per skill app type: when and how the genie uses that app |
| `genie_config.resources` | array of object (GenieResourceDocument) | No |  |
| `genie_config.resources[].name` | string | Yes |  |
| `genie_config.resources[].type` | string (connection \| variable \| secret) | Yes |  |
| `genie_config.resources[].value` | string | Yes | The connection id or the variable id |
| `genie_config.resources[].instructions` | string, default "" | No |  |
| `genie_config.teams` | array of object (GenieTeamDocument) | No |  |
| `genie_config.teams[].id` | string | Yes |  |
| `genie_config.teams[].name` | string | Yes |  |
| `genie_config.contacts` | array of object (GenieContactDocument) | No |  |
| `genie_config.contacts[].id` | string | Yes |  |
| `genie_config.contacts[].name` | string | Yes |  |
| `genie_config.contacts[].email` | string | Yes |  |
| `genie_config.tools` | object (GenieToolsDocument) | No | The built-in tools the genie may use; all on by default, as in the web app |
| `genie_config.tools.web_search` | boolean, default true | No |  |
| `genie_config.tools.execute_browser` | boolean, default true | No |  |
| `genie_config.tools.api_call` | boolean, default true | No |  |
| `genie_config.tools.code_execution` | boolean, default true | No |  |
| `genie_config.tools.stacksync_ocr` | boolean, default true | No |  |
| `genie_config.tools.modify_scheduled_task` | boolean, default true | No |  |
| `knowledge_bases` | array of object (GenieKnowledgeBaseDocument) | Yes |  |
| `knowledge_bases[].knowledge_base_id` | string (uuid) | Yes | As answered by the knowledge base routes |
| `knowledge_bases[].instructions` | string, default "" | No |  |
| `knowledge_bases[].enabled` | boolean, default true | No | Whether the genie consults it; kept as stored when an update leaves it out |
| `knowledge_bases[].disabled_document_ids` | array of string (uuid) | No | The files of the knowledge base the genie leaves out; every other file, including later ones, is consulted. Kept as stored when an update leaves it out |
| `created_time` | string (date-time) \| null | No |  |
| `last_modified_time` | string (date-time) \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "<name>"
}'
```

## Example response (201)

```json
{
  "genie_id": "<genie_id>",
  "name": "<name>",
  "region": "besg",
  "folder_id": "<folder_id>",
  "status": "<status>",
  "public_access_rights": "<public_access_rights>",
  "is_shared_with_workspace": false,
  "has_api_key": false,
  "genie_config": {
    "master_prompt": "",
    "description": "",
    "model_selection": {
      "model": "<model>"
    },
    "interfaces": [
      {
        "id": "<id>",
        "type": "<type>",
        "details": "<details>",
        "connection_id": "",
        "connection_resource_id": "",
        "base_id": ""
      }
    ],
    "skills": [
      {
        "id": "<id>",
        "name": "<name>",
        "description": "",
        "type": "Module",
        "enabled": true,
        "connection": "<connection>",
        "connection_resource_id": "<connection_resource_id>",
        "approval_policy": "always_allow"
      }
    ],
    "app_descriptions": {},
    "resources": [
      {
        "name": "<name>",
        "type": "connection",
        "value": "<value>",
        "instructions": ""
      }
    ],
    "teams": [
      {
        "id": "<id>",
        "name": "<name>"
      }
    ],
    "contacts": [
      {
        "id": "<id>",
        "name": "<name>",
        "email": "<email>"
      }
    ],
    "tools": {
      "web_search": true,
      "execute_browser": true,
      "api_call": true,
      "code_execution": true,
      "stacksync_ocr": true,
      "modify_scheduled_task": true
    }
  },
  "knowledge_bases": [
    {
      "knowledge_base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "instructions": "",
      "enabled": true,
      "disabled_document_ids": [
        "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
      ]
    }
  ],
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genies](https://docs.stacksync.com/api-reference/genies/list_genies)
- [List Genie logs](https://docs.stacksync.com/api-reference/genies/list_genie_logs)
- [Get a Genie](https://docs.stacksync.com/api-reference/genies/get_genie)
- [Update a Genie](https://docs.stacksync.com/api-reference/genies/update_genie)
- [Delete a Genie](https://docs.stacksync.com/api-reference/genies/delete_genie)

# Get a Genie

> The Genie and its configuration.

Source: https://docs.stacksync.com/api-reference/genies/get_genie

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}`

- Operation: `get_genie`
- Resource: Genies
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `genie_id` | string | Yes |  |
| `name` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `folder_id` | string \| null | No |  |
| `status` | string \| null | No |  |
| `public_access_rights` | string \| null | No |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `has_api_key` | boolean | Yes | Whether an LLM API key of yours is stored (the key itself is never returned) |
| `genie_config` | object (GenieConfigDocument) | Yes | What the genie does and how: its instructions, channels, skills, resources and tools |
| `genie_config.master_prompt` | string, default "" | No | The genie's instructions |
| `genie_config.description` | string, default "" | No | Leave empty: Stacksync writes it from the instructions |
| `genie_config.model_selection` | object (GenieModelSelectionDocument) | No | The LLM the genie runs on, as the web app's Model dropdown picks it (genie_config.model_selection, read by genies) |
| `genie_config.model_selection.model` | string \| null | No | The model name, e.g. gemini-3.8-flash; null or a name genies does not offer runs Stacksync's default |
| `genie_config.interfaces` | array of object (GenieInterfaceDocument) | No |  |
| `genie_config.interfaces[].id` | string | Yes |  |
| `genie_config.interfaces[].type` | string | Yes | slack, teams, google_chat, email or app_trigger. A Trigger (record changes of an app) is set up with POST /app-triggers after the row is added; removing the row deletes it |
| `genie_config.interfaces[].details` | string | Yes | For email: the address '<alias>@stacksync.email'; for a Trigger: the app and tables it watches |
| `genie_config.interfaces[].connection_id` | string, default "" | No | The Slack, Teams or Google Chat connection of the workspace (for a Trigger, the connection of the app it watches); empty for email |
| `genie_config.interfaces[].connection_resource_id` | string, default "" | No | The resource id of that connection; empty for email |
| `genie_config.interfaces[].base_id` | string, default "" | No | Read-only. The sync that runs a Trigger; removing the Trigger deletes it |
| `genie_config.skills` | array of object (GenieSkillDocument) | No |  |
| `genie_config.skills[].id` | string | Yes | The module id |
| `genie_config.skills[].name` | string | Yes |  |
| `genie_config.skills[].description` | string, default "" | No |  |
| `genie_config.skills[].type` | "Module", default "Module" | No |  |
| `genie_config.skills[].enabled` | boolean, default true | No |  |
| `genie_config.skills[].connection` | string \| null | No | The connection id the action runs with |
| `genie_config.skills[].connection_resource_id` | string \| null | No | The resource id of that connection |
| `genie_config.skills[].approval_policy` | string (always_allow \| approval_required), default "always_allow" | No | approval_required pauses the genie until a person approves the action |
| `genie_config.app_descriptions` | object | No | Per skill app type: when and how the genie uses that app |
| `genie_config.resources` | array of object (GenieResourceDocument) | No |  |
| `genie_config.resources[].name` | string | Yes |  |
| `genie_config.resources[].type` | string (connection \| variable \| secret) | Yes |  |
| `genie_config.resources[].value` | string | Yes | The connection id or the variable id |
| `genie_config.resources[].instructions` | string, default "" | No |  |
| `genie_config.teams` | array of object (GenieTeamDocument) | No |  |
| `genie_config.teams[].id` | string | Yes |  |
| `genie_config.teams[].name` | string | Yes |  |
| `genie_config.contacts` | array of object (GenieContactDocument) | No |  |
| `genie_config.contacts[].id` | string | Yes |  |
| `genie_config.contacts[].name` | string | Yes |  |
| `genie_config.contacts[].email` | string | Yes |  |
| `genie_config.tools` | object (GenieToolsDocument) | No | The built-in tools the genie may use; all on by default, as in the web app |
| `genie_config.tools.web_search` | boolean, default true | No |  |
| `genie_config.tools.execute_browser` | boolean, default true | No |  |
| `genie_config.tools.api_call` | boolean, default true | No |  |
| `genie_config.tools.code_execution` | boolean, default true | No |  |
| `genie_config.tools.stacksync_ocr` | boolean, default true | No |  |
| `genie_config.tools.modify_scheduled_task` | boolean, default true | No |  |
| `knowledge_bases` | array of object (GenieKnowledgeBaseDocument) | Yes |  |
| `knowledge_bases[].knowledge_base_id` | string (uuid) | Yes | As answered by the knowledge base routes |
| `knowledge_bases[].instructions` | string, default "" | No |  |
| `knowledge_bases[].enabled` | boolean, default true | No | Whether the genie consults it; kept as stored when an update leaves it out |
| `knowledge_bases[].disabled_document_ids` | array of string (uuid) | No | The files of the knowledge base the genie leaves out; every other file, including later ones, is consulted. Kept as stored when an update leaves it out |
| `created_time` | string (date-time) \| null | No |  |
| `last_modified_time` | string (date-time) \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "genie_id": "<genie_id>",
  "name": "<name>",
  "region": "besg",
  "folder_id": "<folder_id>",
  "status": "<status>",
  "public_access_rights": "<public_access_rights>",
  "is_shared_with_workspace": false,
  "has_api_key": false,
  "genie_config": {
    "master_prompt": "",
    "description": "",
    "model_selection": {
      "model": "<model>"
    },
    "interfaces": [
      {
        "id": "<id>",
        "type": "<type>",
        "details": "<details>",
        "connection_id": "",
        "connection_resource_id": "",
        "base_id": ""
      }
    ],
    "skills": [
      {
        "id": "<id>",
        "name": "<name>",
        "description": "",
        "type": "Module",
        "enabled": true,
        "connection": "<connection>",
        "connection_resource_id": "<connection_resource_id>",
        "approval_policy": "always_allow"
      }
    ],
    "app_descriptions": {},
    "resources": [
      {
        "name": "<name>",
        "type": "connection",
        "value": "<value>",
        "instructions": ""
      }
    ],
    "teams": [
      {
        "id": "<id>",
        "name": "<name>"
      }
    ],
    "contacts": [
      {
        "id": "<id>",
        "name": "<name>",
        "email": "<email>"
      }
    ],
    "tools": {
      "web_search": true,
      "execute_browser": true,
      "api_call": true,
      "code_execution": true,
      "stacksync_ocr": true,
      "modify_scheduled_task": true
    }
  },
  "knowledge_bases": [
    {
      "knowledge_base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "instructions": "",
      "enabled": true,
      "disabled_document_ids": [
        "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
      ]
    }
  ],
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genies](https://docs.stacksync.com/api-reference/genies/list_genies)
- [List Genie logs](https://docs.stacksync.com/api-reference/genies/list_genie_logs)
- [Create a genie](https://docs.stacksync.com/api-reference/genies/create_genie)
- [Update a Genie](https://docs.stacksync.com/api-reference/genies/update_genie)
- [Delete a Genie](https://docs.stacksync.com/api-reference/genies/delete_genie)

# Update a Genie

> Changes a Genie: name, configuration (only the keys sent), knowledge bases, who may use it, active or not.

Source: https://docs.stacksync.com/api-reference/genies/update_genie

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}`

- Operation: `update_genie`
- Resource: Genies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string \| null, 1 to 255 characters | No |  |
| `genie_config` | object (GenieConfigChanges) \| null | No |  |
| `genie_config.master_prompt` | string \| null | No |  |
| `genie_config.description` | string \| null | No |  |
| `genie_config.model_selection` | object (GenieModelSelectionDocument) \| null | No |  |
| `genie_config.model_selection.model` | string \| null | No | The model name, e.g. gemini-3.8-flash; null or a name genies does not offer runs Stacksync's default |
| `genie_config.interfaces` | array of object (GenieInterfaceDocument) \| null | No |  |
| `genie_config.interfaces[].id` | string | Yes |  |
| `genie_config.interfaces[].type` | string | Yes | slack, teams, google_chat, email or app_trigger. A Trigger (record changes of an app) is set up with POST /app-triggers after the row is added; removing the row deletes it |
| `genie_config.interfaces[].details` | string | Yes | For email: the address '<alias>@stacksync.email'; for a Trigger: the app and tables it watches |
| `genie_config.interfaces[].connection_id` | string, default "" | No | The Slack, Teams or Google Chat connection of the workspace (for a Trigger, the connection of the app it watches); empty for email |
| `genie_config.interfaces[].connection_resource_id` | string, default "" | No | The resource id of that connection; empty for email |
| `genie_config.interfaces[].base_id` | string, default "" | No | Read-only. The sync that runs a Trigger; removing the Trigger deletes it |
| `genie_config.skills` | array of object (GenieSkillDocument) \| null | No |  |
| `genie_config.skills[].id` | string | Yes | The module id |
| `genie_config.skills[].name` | string | Yes |  |
| `genie_config.skills[].description` | string, default "" | No |  |
| `genie_config.skills[].type` | "Module", default "Module" | No |  |
| `genie_config.skills[].enabled` | boolean, default true | No |  |
| `genie_config.skills[].connection` | string \| null | No | The connection id the action runs with |
| `genie_config.skills[].connection_resource_id` | string \| null | No | The resource id of that connection |
| `genie_config.skills[].approval_policy` | string (always_allow \| approval_required), default "always_allow" | No | approval_required pauses the genie until a person approves the action |
| `genie_config.app_descriptions` | object \| null | No |  |
| `genie_config.resources` | array of object (GenieResourceDocument) \| null | No |  |
| `genie_config.resources[].name` | string | Yes |  |
| `genie_config.resources[].type` | string (connection \| variable \| secret) | Yes |  |
| `genie_config.resources[].value` | string | Yes | The connection id or the variable id |
| `genie_config.resources[].instructions` | string, default "" | No |  |
| `genie_config.teams` | array of object (GenieTeamDocument) \| null | No |  |
| `genie_config.teams[].id` | string | Yes |  |
| `genie_config.teams[].name` | string | Yes |  |
| `genie_config.contacts` | array of object (GenieContactDocument) \| null | No |  |
| `genie_config.contacts[].id` | string | Yes |  |
| `genie_config.contacts[].name` | string | Yes |  |
| `genie_config.contacts[].email` | string | Yes |  |
| `genie_config.tools` | object \| null | No | Only the tools to switch, e.g. {"web_search": false} |
| `genie_config.api_key` | string \| null | No | Your own LLM API key for the model; never returned |
| `knowledge_bases` | array of object (GenieKnowledgeBaseDocument) \| null | No | Replaces the list |
| `knowledge_bases[].knowledge_base_id` | string (uuid) | Yes | As answered by the knowledge base routes |
| `knowledge_bases[].instructions` | string, default "" | No |  |
| `knowledge_bases[].enabled` | boolean, default true | No | Whether the genie consults it; kept as stored when an update leaves it out |
| `knowledge_bases[].disabled_document_ids` | array of string (uuid) | No | The files of the knowledge base the genie leaves out; every other file, including later ones, is consulted. Kept as stored when an update leaves it out |
| `public_access_rights` | string (allow_without_authorization \| allow_with_authorization \| allow_selected_users_and_groups) \| null | No | Who may use the genie |
| `status` | string (active \| inactive) \| null | No | active or inactive |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `genie_id` | string | Yes |  |
| `name` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `folder_id` | string \| null | No |  |
| `status` | string \| null | No |  |
| `public_access_rights` | string \| null | No |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `has_api_key` | boolean | Yes | Whether an LLM API key of yours is stored (the key itself is never returned) |
| `genie_config` | object (GenieConfigDocument) | Yes | What the genie does and how: its instructions, channels, skills, resources and tools |
| `genie_config.master_prompt` | string, default "" | No | The genie's instructions |
| `genie_config.description` | string, default "" | No | Leave empty: Stacksync writes it from the instructions |
| `genie_config.model_selection` | object (GenieModelSelectionDocument) | No | The LLM the genie runs on, as the web app's Model dropdown picks it (genie_config.model_selection, read by genies) |
| `genie_config.model_selection.model` | string \| null | No | The model name, e.g. gemini-3.8-flash; null or a name genies does not offer runs Stacksync's default |
| `genie_config.interfaces` | array of object (GenieInterfaceDocument) | No |  |
| `genie_config.interfaces[].id` | string | Yes |  |
| `genie_config.interfaces[].type` | string | Yes | slack, teams, google_chat, email or app_trigger. A Trigger (record changes of an app) is set up with POST /app-triggers after the row is added; removing the row deletes it |
| `genie_config.interfaces[].details` | string | Yes | For email: the address '<alias>@stacksync.email'; for a Trigger: the app and tables it watches |
| `genie_config.interfaces[].connection_id` | string, default "" | No | The Slack, Teams or Google Chat connection of the workspace (for a Trigger, the connection of the app it watches); empty for email |
| `genie_config.interfaces[].connection_resource_id` | string, default "" | No | The resource id of that connection; empty for email |
| `genie_config.interfaces[].base_id` | string, default "" | No | Read-only. The sync that runs a Trigger; removing the Trigger deletes it |
| `genie_config.skills` | array of object (GenieSkillDocument) | No |  |
| `genie_config.skills[].id` | string | Yes | The module id |
| `genie_config.skills[].name` | string | Yes |  |
| `genie_config.skills[].description` | string, default "" | No |  |
| `genie_config.skills[].type` | "Module", default "Module" | No |  |
| `genie_config.skills[].enabled` | boolean, default true | No |  |
| `genie_config.skills[].connection` | string \| null | No | The connection id the action runs with |
| `genie_config.skills[].connection_resource_id` | string \| null | No | The resource id of that connection |
| `genie_config.skills[].approval_policy` | string (always_allow \| approval_required), default "always_allow" | No | approval_required pauses the genie until a person approves the action |
| `genie_config.app_descriptions` | object | No | Per skill app type: when and how the genie uses that app |
| `genie_config.resources` | array of object (GenieResourceDocument) | No |  |
| `genie_config.resources[].name` | string | Yes |  |
| `genie_config.resources[].type` | string (connection \| variable \| secret) | Yes |  |
| `genie_config.resources[].value` | string | Yes | The connection id or the variable id |
| `genie_config.resources[].instructions` | string, default "" | No |  |
| `genie_config.teams` | array of object (GenieTeamDocument) | No |  |
| `genie_config.teams[].id` | string | Yes |  |
| `genie_config.teams[].name` | string | Yes |  |
| `genie_config.contacts` | array of object (GenieContactDocument) | No |  |
| `genie_config.contacts[].id` | string | Yes |  |
| `genie_config.contacts[].name` | string | Yes |  |
| `genie_config.contacts[].email` | string | Yes |  |
| `genie_config.tools` | object (GenieToolsDocument) | No | The built-in tools the genie may use; all on by default, as in the web app |
| `genie_config.tools.web_search` | boolean, default true | No |  |
| `genie_config.tools.execute_browser` | boolean, default true | No |  |
| `genie_config.tools.api_call` | boolean, default true | No |  |
| `genie_config.tools.code_execution` | boolean, default true | No |  |
| `genie_config.tools.stacksync_ocr` | boolean, default true | No |  |
| `genie_config.tools.modify_scheduled_task` | boolean, default true | No |  |
| `knowledge_bases` | array of object (GenieKnowledgeBaseDocument) | Yes |  |
| `knowledge_bases[].knowledge_base_id` | string (uuid) | Yes | As answered by the knowledge base routes |
| `knowledge_bases[].instructions` | string, default "" | No |  |
| `knowledge_bases[].enabled` | boolean, default true | No | Whether the genie consults it; kept as stored when an update leaves it out |
| `knowledge_bases[].disabled_document_ids` | array of string (uuid) | No | The files of the knowledge base the genie leaves out; every other file, including later ones, is consulted. Kept as stored when an update leaves it out |
| `created_time` | string (date-time) \| null | No |  |
| `last_modified_time` | string (date-time) \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Support Genie"
}'
```

## Example response (200)

```json
{
  "genie_id": "<genie_id>",
  "name": "<name>",
  "region": "besg",
  "folder_id": "<folder_id>",
  "status": "<status>",
  "public_access_rights": "<public_access_rights>",
  "is_shared_with_workspace": false,
  "has_api_key": false,
  "genie_config": {
    "master_prompt": "",
    "description": "",
    "model_selection": {
      "model": "<model>"
    },
    "interfaces": [
      {
        "id": "<id>",
        "type": "<type>",
        "details": "<details>",
        "connection_id": "",
        "connection_resource_id": "",
        "base_id": ""
      }
    ],
    "skills": [
      {
        "id": "<id>",
        "name": "<name>",
        "description": "",
        "type": "Module",
        "enabled": true,
        "connection": "<connection>",
        "connection_resource_id": "<connection_resource_id>",
        "approval_policy": "always_allow"
      }
    ],
    "app_descriptions": {},
    "resources": [
      {
        "name": "<name>",
        "type": "connection",
        "value": "<value>",
        "instructions": ""
      }
    ],
    "teams": [
      {
        "id": "<id>",
        "name": "<name>"
      }
    ],
    "contacts": [
      {
        "id": "<id>",
        "name": "<name>",
        "email": "<email>"
      }
    ],
    "tools": {
      "web_search": true,
      "execute_browser": true,
      "api_call": true,
      "code_execution": true,
      "stacksync_ocr": true,
      "modify_scheduled_task": true
    }
  },
  "knowledge_bases": [
    {
      "knowledge_base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "instructions": "",
      "enabled": true,
      "disabled_document_ids": [
        "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
      ]
    }
  ],
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genies](https://docs.stacksync.com/api-reference/genies/list_genies)
- [List Genie logs](https://docs.stacksync.com/api-reference/genies/list_genie_logs)
- [Get a Genie](https://docs.stacksync.com/api-reference/genies/get_genie)
- [Create a genie](https://docs.stacksync.com/api-reference/genies/create_genie)
- [Delete a Genie](https://docs.stacksync.com/api-reference/genies/delete_genie)

# Delete a Genie

> Deletes a Genie, the access grants on it, its scheduled tasks and its triggers.

Source: https://docs.stacksync.com/api-reference/genies/delete_genie

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}`

- Operation: `delete_genie`
- Resource: Genies
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deleted_genie_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "deleted_genie_id": "<deleted_genie_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genies](https://docs.stacksync.com/api-reference/genies/list_genies)
- [List Genie logs](https://docs.stacksync.com/api-reference/genies/list_genie_logs)
- [Get a Genie](https://docs.stacksync.com/api-reference/genies/get_genie)
- [Create a genie](https://docs.stacksync.com/api-reference/genies/create_genie)
- [Update a Genie](https://docs.stacksync.com/api-reference/genies/update_genie)

# List Genie logs

> A Genie's logs by conversation: per message, what it was asked, what it answered, the tools it called and the tokens and cost used.

Source: https://docs.stacksync.com/api-reference/genies/list_genie_logs

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/logs`

- Operation: `list_genie_logs`
- Resource: Genies
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |
| `time_range_start` | string (date-time) \| null | No | Only logs at or after this time, ISO 8601 UTC |
| `time_range_end` | string (date-time) \| null | No | Only logs at or before this time, ISO 8601 UTC |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (GenieLogConversation) | Yes |  |
| `data[].conversation_id` | string | Yes |  |
| `data[].name` | string \| null | No |  |
| `data[].status` | string \| null | No |  |
| `data[].created_at` | string \| null | No |  |
| `data[].updated_at` | string \| null | No |  |
| `data[].tool_costs` | number, default 0 | No |  |
| `data[].token_costs` | object (GenieTokenCosts) \| null | No |  |
| `data[].token_costs.tokens_in` | integer, default 0 | No |  |
| `data[].token_costs.tokens_in_cached` | integer, default 0 | No |  |
| `data[].token_costs.tokens_out` | integer, default 0 | No |  |
| `data[].token_costs.tokens_thoughts` | integer, default 0 | No |  |
| `data[].token_costs.cost` | number, default 0 | No |  |
| `data[].messages` | array of object (GenieLogMessage) | Yes |  |
| `data[].messages[].message_id` | string | Yes |  |
| `data[].messages[].prompt` | string \| null | No | What the genie was asked |
| `data[].messages[].response` | string \| null | No | What it answered |
| `data[].messages[].started_at` | string \| null | No |  |
| `data[].messages[].finished_at` | string \| null | No |  |
| `data[].messages[].llm_call_count` | integer, default 0 | No |  |
| `data[].messages[].tool_calls` | integer, default 0 | No |  |
| `data[].messages[].tools_called` | array of string \| null | No |  |
| `data[].messages[].tool_costs` | number, default 0 | No |  |
| `data[].messages[].token_costs` | object (GenieTokenCosts) \| null | No |  |
| `data[].messages[].token_costs.tokens_in` | integer, default 0 | No |  |
| `data[].messages[].token_costs.tokens_in_cached` | integer, default 0 | No |  |
| `data[].messages[].token_costs.tokens_out` | integer, default 0 | No |  |
| `data[].messages[].token_costs.tokens_thoughts` | integer, default 0 | No |  |
| `data[].messages[].token_costs.cost` | number, default 0 | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/logs?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "conversation_id": "<conversation_id>",
      "name": "<name>",
      "status": "<status>",
      "created_at": "<created_at>",
      "updated_at": "<updated_at>",
      "tool_costs": 0,
      "token_costs": {
        "tokens_in": 0,
        "tokens_in_cached": 0,
        "tokens_out": 0,
        "tokens_thoughts": 0,
        "cost": 0
      },
      "messages": [
        {
          "message_id": "<message_id>",
          "prompt": "<prompt>",
          "response": "<response>",
          "started_at": "<started_at>",
          "finished_at": "<finished_at>",
          "llm_call_count": 0,
          "tool_calls": 0,
          "tools_called": [
            "<tools_called>"
          ],
          "tool_costs": 0,
          "token_costs": {
            "tokens_in": 0,
            "tokens_in_cached": 0,
            "tokens_out": 0,
            "tokens_thoughts": 0,
            "cost": 0
          }
        }
      ]
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genies](https://docs.stacksync.com/api-reference/genies/list_genies)
- [Get a Genie](https://docs.stacksync.com/api-reference/genies/get_genie)
- [Create a genie](https://docs.stacksync.com/api-reference/genies/create_genie)
- [Update a Genie](https://docs.stacksync.com/api-reference/genies/update_genie)
- [Delete a Genie](https://docs.stacksync.com/api-reference/genies/delete_genie)

# List Genie access grants

> Who holds a role on a Genie: the users and groups its sharing dialog lists, as Set a Genie access grant sets them.

Source: https://docs.stacksync.com/api-reference/genies/access-grants/list_genie_access_grants

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/access-grants`

- Operation: `list_genie_access_grants`
- Resource: Genie access grants
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (GenieAccessGrantSummary) | Yes |  |
| `data[].principal` | object (GenieAccessPrincipal) | Yes |  |
| `data[].principal.type` | string (user \| group) | Yes |  |
| `data[].principal.id` | string, 1 to 64 characters | Yes | The user id or the group id |
| `data[].role` | string | Yes | operator, editor or owner, or the custom_role_id of a custom role |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/access-grants?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "principal": {
        "type": "user",
        "id": "<id>"
      },
      "role": "<role>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Set a Genie access grant](https://docs.stacksync.com/api-reference/genies/access-grants/set_genie_access_grant)

# Set a Genie access grant

> Gives a user or a group a role on a Genie (operator uses it, editor changes it, owner manages its access), changes it, or removes it (role null). Who may change access is decided per genie, as in the web app: an owner of the genie, or a workspace admin adding an owner. A genie always keeps one owner.

Source: https://docs.stacksync.com/api-reference/genies/access-grants/set_genie_access_grant

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/access-grants`

- Operation: `set_genie_access_grant`
- Resource: Genie access grants
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `principal` | object (GenieAccessPrincipal) | Yes |  |
| `principal.type` | string (user \| group) | Yes |  |
| `principal.id` | string, 1 to 64 characters | Yes | The user id or the group id |
| `role` | string (operator \| editor \| owner) \| null | Yes | The role to give; null removes the principal |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `genie_id` | string | Yes |  |
| `principal` | object (GenieAccessPrincipal) | Yes |  |
| `principal.type` | string (user \| group) | Yes |  |
| `principal.id` | string, 1 to 64 characters | Yes | The user id or the group id |
| `role` | string (operator \| editor \| owner) \| null | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/access-grants?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "principal": {
    "type": "user",
    "id": "<id>"
  },
  "role": "operator"
}'
```

## Example response (200)

```json
{
  "genie_id": "<genie_id>",
  "principal": {
    "type": "user",
    "id": "<id>"
  },
  "role": "operator"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie access grants](https://docs.stacksync.com/api-reference/genies/access-grants/list_genie_access_grants)

# List Genie tasks

> The tasks of a Genie you can see: yours and the ones shared with the workspace.

Source: https://docs.stacksync.com/api-reference/genies/tasks/list_genie_tasks

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks`

- Operation: `list_genie_tasks`
- Resource: Genie tasks
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (GenieTask) | Yes |  |
| `data[].task_id` | string | Yes |  |
| `data[].name` | string \| null | No |  |
| `data[].instruction` | string \| null | No | What the genie is asked each time |
| `data[].cron_expression` | string \| null | No |  |
| `data[].run_at` | string \| null | No | For a one-time task: when it runs, ISO 8601 |
| `data[].start_time` | string \| null | No | For a scheduled task: when the schedule starts |
| `data[].next_run_time` | string \| null | No |  |
| `data[].is_paused` | boolean \| null | No |  |
| `data[].is_shared_with_workspace` | boolean \| null | No |  |
| `data[].created_time` | string \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "task_id": "<task_id>",
      "name": "<name>",
      "instruction": "<instruction>",
      "cron_expression": "<cron_expression>",
      "run_at": "<run_at>",
      "start_time": "<start_time>",
      "next_run_time": "<next_run_time>",
      "is_paused": false,
      "is_shared_with_workspace": false,
      "created_time": "<created_time>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/get_genie_task)
- [Create a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/create_genie_task)
- [Update a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/update_genie_task)
- [Delete a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/delete_genie_task)

# Create a Genie task

> Gives a Genie a task to run once (run_at) or on a cron schedule (UTC). An editor role is required: a task makes the genie act in the apps it is connected to.

Source: https://docs.stacksync.com/api-reference/genies/tasks/create_genie_task

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks`

- Operation: `create_genie_task`
- Resource: Genie tasks
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string, 1 to 255 characters | Yes | Unique among the workspace's cron tasks of the region |
| `instruction` | string, at least 1 characters | Yes | What the genie is asked each time the task runs |
| `cron_expression` | string \| null | No | Run on this cron schedule (UTC), e.g. '0 8 * * 1-5'; or run_at |
| `run_at` | string (date-time) \| null | No | Run once at this time (future), ISO 8601; or cron_expression |
| `start_time` | string (date-time) \| null | No | With cron_expression: the schedule starts after this time |
| `is_shared_with_workspace` | boolean, default true | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `task_id` | string | Yes |  |
| `name` | string \| null | No |  |
| `instruction` | string \| null | No | What the genie is asked each time |
| `cron_expression` | string \| null | No |  |
| `run_at` | string \| null | No | For a one-time task: when it runs, ISO 8601 |
| `start_time` | string \| null | No | For a scheduled task: when the schedule starts |
| `next_run_time` | string \| null | No |  |
| `is_paused` | boolean \| null | No |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `created_time` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "cron_expression": "0 8 * * 1-5",
  "instruction": "Summarize the deals that changed stage yesterday",
  "name": "Weekday sales summary"
}'
```

## Example response (201)

```json
{
  "task_id": "<task_id>",
  "name": "<name>",
  "instruction": "<instruction>",
  "cron_expression": "<cron_expression>",
  "run_at": "<run_at>",
  "start_time": "<start_time>",
  "next_run_time": "<next_run_time>",
  "is_paused": false,
  "is_shared_with_workspace": false,
  "created_time": "<created_time>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie tasks](https://docs.stacksync.com/api-reference/genies/tasks/list_genie_tasks)
- [Get a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/get_genie_task)
- [Update a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/update_genie_task)
- [Delete a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/delete_genie_task)

# Get a Genie task

> One task of a Genie: its instruction, schedule (cron expression or one-time run), next run and whether it is paused.

Source: https://docs.stacksync.com/api-reference/genies/tasks/get_genie_task

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks/{scheduled_task_id}`

- Operation: `get_genie_task`
- Resource: Genie tasks
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |
| `scheduled_task_id` | string (uuid) | Yes | The Genie task. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `task_id` | string | Yes |  |
| `name` | string \| null | No |  |
| `instruction` | string \| null | No | What the genie is asked each time |
| `cron_expression` | string \| null | No |  |
| `run_at` | string \| null | No | For a one-time task: when it runs, ISO 8601 |
| `start_time` | string \| null | No | For a scheduled task: when the schedule starts |
| `next_run_time` | string \| null | No |  |
| `is_paused` | boolean \| null | No |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `created_time` | string \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks/{scheduled_task_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "task_id": "<task_id>",
  "name": "<name>",
  "instruction": "<instruction>",
  "cron_expression": "<cron_expression>",
  "run_at": "<run_at>",
  "start_time": "<start_time>",
  "next_run_time": "<next_run_time>",
  "is_paused": false,
  "is_shared_with_workspace": false,
  "created_time": "<created_time>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie tasks](https://docs.stacksync.com/api-reference/genies/tasks/list_genie_tasks)
- [Create a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/create_genie_task)
- [Update a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/update_genie_task)
- [Delete a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/delete_genie_task)

# Update a Genie task

> Changes a Genie task: name, instruction, schedule (cron_expression or run_at), start time, paused or not.

Source: https://docs.stacksync.com/api-reference/genies/tasks/update_genie_task

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks/{scheduled_task_id}`

- Operation: `update_genie_task`
- Resource: Genie tasks
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |
| `scheduled_task_id` | string (uuid) | Yes | The Genie task. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string \| null, 1 to 255 characters | No |  |
| `instruction` | string \| null, at least 1 characters | No |  |
| `cron_expression` | string \| null | No |  |
| `run_at` | string (date-time) \| null | No |  |
| `start_time` | string (date-time) \| null | No |  |
| `is_paused` | boolean \| null | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `task_id` | string | Yes |  |
| `name` | string \| null | No |  |
| `instruction` | string \| null | No | What the genie is asked each time |
| `cron_expression` | string \| null | No |  |
| `run_at` | string \| null | No | For a one-time task: when it runs, ISO 8601 |
| `start_time` | string \| null | No | For a scheduled task: when the schedule starts |
| `next_run_time` | string \| null | No |  |
| `is_paused` | boolean \| null | No |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `created_time` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks/{scheduled_task_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "cron_expression": "0 9 * * 1-5"
}'
```

## Example response (200)

```json
{
  "task_id": "<task_id>",
  "name": "<name>",
  "instruction": "<instruction>",
  "cron_expression": "<cron_expression>",
  "run_at": "<run_at>",
  "start_time": "<start_time>",
  "next_run_time": "<next_run_time>",
  "is_paused": false,
  "is_shared_with_workspace": false,
  "created_time": "<created_time>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie tasks](https://docs.stacksync.com/api-reference/genies/tasks/list_genie_tasks)
- [Get a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/get_genie_task)
- [Create a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/create_genie_task)
- [Delete a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/delete_genie_task)

# Delete a Genie task

> Deletes a Genie task and its queued run.

Source: https://docs.stacksync.com/api-reference/genies/tasks/delete_genie_task

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks/{scheduled_task_id}`

- Operation: `delete_genie_task`
- Resource: Genie tasks
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_id` | string (uuid) | Yes | The Genie. |
| `scheduled_task_id` | string (uuid) | Yes | The Genie task. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deleted_task_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/{genie_id}/tasks/{scheduled_task_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "deleted_task_id": "<deleted_task_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie tasks](https://docs.stacksync.com/api-reference/genies/tasks/list_genie_tasks)
- [Get a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/get_genie_task)
- [Create a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/create_genie_task)
- [Update a Genie task](https://docs.stacksync.com/api-reference/genies/tasks/update_genie_task)

# List Genie conversations

> The Genie conversations of a workspace in one region, newest activity first, in cursor pages.

Source: https://docs.stacksync.com/api-reference/genies/conversations/list_genie_conversations

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations`

- Operation: `list_genie_conversations`
- Resource: Genie conversations
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |
| `genie_id` | string (uuid) \| null | No | Only the conversations of this genie |
| `limit` | integer, 1 to 100, default 50 | No | Maximum number of conversations returned, at most 100 |
| `cursor` | string \| null, at most 64 characters | No | next_cursor of the previous page |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (GenieConversationSummary) | Yes |  |
| `data[].conversation_id` | string | Yes |  |
| `data[].genie_id` | string \| null | No |  |
| `data[].genie_name` | string \| null | No |  |
| `data[].name` | string \| null | No |  |
| `data[].status` | string \| null | No |  |
| `data[].status_label` | string \| null | No |  |
| `data[].last_activity_time` | string \| null | No |  |
| `data[].message_count` | integer, default 0 | No |  |
| `data[].step_count` | integer, default 0 | No |  |
| `has_more` | boolean | Yes |  |
| `next_cursor` | string \| null | No | Pass it as cursor for the next page |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "conversation_id": "<conversation_id>",
      "genie_id": "<genie_id>",
      "genie_name": "<genie_name>",
      "name": "<name>",
      "status": "<status>",
      "status_label": "<status_label>",
      "last_activity_time": "<last_activity_time>",
      "message_count": 0,
      "step_count": 0
    }
  ],
  "has_more": false,
  "next_cursor": "<next_cursor>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a Genie conversation](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_conversation)
- [Get a Genie tool execution](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_tool_execution)
- [Get a Genie browser session](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_browser_session)

# Get a Genie conversation

> One conversation: its messages and the customer-visible steps the Genie took. Internal steps and raw prompts are never returned.

Source: https://docs.stacksync.com/api-reference/genies/conversations/get_genie_conversation

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations/{genie_conversation_id}`

- Operation: `get_genie_conversation`
- Resource: Genie conversations
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_conversation_id` | string (uuid) | Yes | The Genie conversation. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `conversation_id` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `messages` | array of object (GenieMessage) | Yes |  |
| `messages[].message_id` | string | Yes |  |
| `messages[].created_time` | string \| null | No |  |
| `messages[].channel` | string \| null | No |  |
| `messages[].sender_role` | string \| null | No | customer or genie |
| `messages[].sender_name` | string \| null | No |  |
| `messages[].body` | string \| null | No |  |
| `messages[].attachments` | array of object (GenieMessageAttachment) | No |  |
| `messages[].attachments[].name` | string | Yes |  |
| `messages[].attachments[].mime_type` | string \| null | No |  |
| `messages[].attachments[].size_bytes` | integer \| null | No |  |
| `messages[].attachments[].file_id` | string \| null | No | The workspace file, once stored |
| `messages[].approval` | object (GenieApproval) \| null | No |  |
| `messages[].approval.approval_id` | string | Yes |  |
| `messages[].approval.status` | string \| null | No |  |
| `messages[].approval.module_id` | string \| null | No |  |
| `messages[].approval.module_name` | string \| null | No |  |
| `messages[].approval.channel_type` | string \| null | No |  |
| `messages[].approval.target` | string \| null | No |  |
| `messages[].approval.instructions` | string \| null | No |  |
| `messages[].approval.requested_at` | string \| null | No |  |
| `messages[].approval.decision_at` | string \| null | No |  |
| `messages[].approval.approver_name` | string \| null | No |  |
| `steps` | array of object (GenieStep) | Yes |  |
| `steps[].description` | string \| null | No |  |
| `steps[].execution_status` | string \| null | No |  |
| `steps[].error_message` | string \| null | No |  |
| `steps[].log_type` | string \| null | No |  |
| `steps[].execution_log_id` | string \| null | No | Open the tool run with the tool-executions route |
| `steps[].started_time` | string \| null | No |  |
| `steps[].finished_time` | string \| null | No |  |
| `steps[].duration_ms` | integer \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations/{genie_conversation_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "conversation_id": "<conversation_id>",
  "region": "besg",
  "messages": [
    {
      "message_id": "<message_id>",
      "created_time": "<created_time>",
      "channel": "<channel>",
      "sender_role": "<sender_role>",
      "sender_name": "<sender_name>",
      "body": "<body>",
      "attachments": [
        {
          "name": "<name>",
          "mime_type": "<mime_type>",
          "size_bytes": 0,
          "file_id": "<file_id>"
        }
      ],
      "approval": {
        "approval_id": "<approval_id>",
        "status": "<status>",
        "module_id": "<module_id>",
        "module_name": "<module_name>",
        "channel_type": "<channel_type>",
        "target": "<target>",
        "instructions": "<instructions>",
        "requested_at": "<requested_at>",
        "decision_at": "<decision_at>",
        "approver_name": "<approver_name>"
      }
    }
  ],
  "steps": [
    {
      "description": "<description>",
      "execution_status": "<execution_status>",
      "error_message": "<error_message>",
      "log_type": "<log_type>",
      "execution_log_id": "<execution_log_id>",
      "started_time": "<started_time>",
      "finished_time": "<finished_time>",
      "duration_ms": 0
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie conversations](https://docs.stacksync.com/api-reference/genies/conversations/list_genie_conversations)
- [Get a Genie tool execution](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_tool_execution)
- [Get a Genie browser session](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_browser_session)

# Get a Genie tool execution

> One tool run of a conversation (a step's execution_log_id): how the tool was called and what came back.

Source: https://docs.stacksync.com/api-reference/genies/conversations/get_genie_tool_execution

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations/{genie_conversation_id}/tool-executions/{execution_log_id}`

- Operation: `get_genie_tool_execution`
- Resource: Genie conversations
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_conversation_id` | string (uuid) | Yes | The Genie conversation. |
| `execution_log_id` | string | Yes | The tool execution, a step's execution_log_id in the conversation. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `execution_log_id` | string | Yes |  |
| `execution_type` | string \| null | No |  |
| `status` | string \| null | No |  |
| `started_at` | string \| null | No |  |
| `finished_at` | string \| null | No |  |
| `duration_ms` | integer \| null | No |  |
| `request` | any | No |  |
| `response` | any | No |  |
| `module_runs` | array of object (GenieModuleRun) | No |  |
| `module_runs[].execution_log_id` | string | Yes |  |
| `module_runs[].execution_type` | string \| null | No |  |
| `module_runs[].status` | string \| null | No |  |
| `module_runs[].started_at` | string \| null | No |  |
| `module_runs[].finished_at` | string \| null | No |  |
| `module_runs[].duration_ms` | integer \| null | No |  |
| `module_runs[].request` | any | No |  |
| `module_runs[].response` | any | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations/{genie_conversation_id}/tool-executions/{execution_log_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "execution_log_id": "<execution_log_id>",
  "execution_type": "<execution_type>",
  "status": "<status>",
  "started_at": "<started_at>",
  "finished_at": "<finished_at>",
  "duration_ms": 0,
  "request": "<request>",
  "response": "<response>",
  "module_runs": [
    {
      "execution_log_id": "<execution_log_id>",
      "execution_type": "<execution_type>",
      "status": "<status>",
      "started_at": "<started_at>",
      "finished_at": "<finished_at>",
      "duration_ms": 0,
      "request": "<request>",
      "response": "<response>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie conversations](https://docs.stacksync.com/api-reference/genies/conversations/list_genie_conversations)
- [Get a Genie conversation](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_conversation)
- [Get a Genie browser session](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_browser_session)

# Get a Genie browser session

> A browser session a Genie opened in a conversation: its status and, while live, its live view.

Source: https://docs.stacksync.com/api-reference/genies/conversations/get_genie_browser_session

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations/{genie_conversation_id}/browser-sessions/{session_id}`

- Operation: `get_genie_browser_session`
- Resource: Genie conversations
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `genie_conversation_id` | string (uuid) | Yes | The Genie conversation. |
| `session_id` | string | Yes | The browser session, as the conversation's steps name it. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the genie: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `session_id` | string | Yes |  |
| `status` | string \| null | No |  |
| `live_view_url` | string \| null | No | Absent once the live browser has expired |
| `expires_at` | string \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/genies/conversations/{genie_conversation_id}/browser-sessions/{session_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "session_id": "<session_id>",
  "status": "<status>",
  "live_view_url": "<live_view_url>",
  "expires_at": "<expires_at>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List Genie conversations](https://docs.stacksync.com/api-reference/genies/conversations/list_genie_conversations)
- [Get a Genie conversation](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_conversation)
- [Get a Genie tool execution](https://docs.stacksync.com/api-reference/genies/conversations/get_genie_tool_execution)

# List knowledge bases

> The knowledge bases of the workspace in a region, newest first.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/list_knowledge_bases

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases`

- Operation: `list_knowledge_bases`
- Resource: Knowledge bases
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Region whose knowledge bases are listed: besg (Europe) or usnv (United States) |
| `search` | string \| null, 1 to 255 characters | No | Only knowledge bases whose name contains this text |
| `folder_id` | string (uuid) \| null | No | Only the knowledge bases of this folder |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (KnowledgeBase) | Yes |  |
| `data[].knowledge_base_id` | string | Yes |  |
| `data[].name` | string | Yes |  |
| `data[].resource_id` | string | Yes |  |
| `data[].region` | string | Yes |  |
| `data[].is_shared_with_workspace` | boolean | Yes |  |
| `data[].folder_id` | string \| null | Yes |  |
| `data[].created_time` | string (date-time) | Yes |  |
| `data[].last_modified_time` | string (date-time) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "knowledge_base_id": "<knowledge_base_id>",
      "name": "<name>",
      "resource_id": "<resource_id>",
      "region": "<region>",
      "is_shared_with_workspace": false,
      "folder_id": "<folder_id>",
      "created_time": "2027-01-15T09:00:00Z",
      "last_modified_time": "2027-01-15T09:00:00Z"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/get_knowledge_base)
- [Create a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/create_knowledge_base)
- [Update a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/update_knowledge_base)
- [Delete a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/delete_knowledge_base)

# Create a knowledge base

> Creates an empty knowledge base; add documents with Add a knowledge base document. With validate_only, the checks run and 204 answers, nothing is created.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/create_knowledge_base

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases`

- Operation: `create_knowledge_base`
- Resource: Knowledge bases
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string, 1 to 255 characters | Yes | Name, unique among the workspace's knowledge bases of the region |
| `resource_id` | string \| null, pattern `^[a-z0-9_]{1,60}$` | No | The id genies reference it by, unique in the region; derived from the name when absent (a renamed knowledge base keeps its own, so its old name needs another one) |
| `folder_id` | string (uuid) \| null | No | Folder to list it in; the root when absent |
| `is_shared_with_workspace` | boolean, default false | No | true lets every member of the workspace use it |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `knowledge_base_id` | string | Yes |  |
| `name` | string | Yes |  |
| `resource_id` | string | Yes |  |
| `region` | string | Yes |  |
| `is_shared_with_workspace` | boolean | Yes |  |
| `folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "<name>"
}'
```

## Example response (201)

```json
{
  "knowledge_base_id": "<knowledge_base_id>",
  "name": "<name>",
  "resource_id": "<resource_id>",
  "region": "<region>",
  "is_shared_with_workspace": false,
  "folder_id": "<folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge bases](https://docs.stacksync.com/api-reference/knowledge-bases/list_knowledge_bases)
- [Get a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/get_knowledge_base)
- [Update a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/update_knowledge_base)
- [Delete a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/delete_knowledge_base)

# Get a knowledge base

> The knowledge base and its settings.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/get_knowledge_base

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}`

- Operation: `get_knowledge_base`
- Resource: Knowledge bases
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `knowledge_base_id` | string | Yes |  |
| `name` | string | Yes |  |
| `resource_id` | string | Yes |  |
| `region` | string | Yes |  |
| `is_shared_with_workspace` | boolean | Yes |  |
| `folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "knowledge_base_id": "<knowledge_base_id>",
  "name": "<name>",
  "resource_id": "<resource_id>",
  "region": "<region>",
  "is_shared_with_workspace": false,
  "folder_id": "<folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge bases](https://docs.stacksync.com/api-reference/knowledge-bases/list_knowledge_bases)
- [Create a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/create_knowledge_base)
- [Update a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/update_knowledge_base)
- [Delete a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/delete_knowledge_base)

# Update a knowledge base

> Renames a knowledge base or changes whether every member of the workspace may use it. With validate_only, the checks run and 204 answers, nothing changes.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/update_knowledge_base

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}`

- Operation: `update_knowledge_base`
- Resource: Knowledge bases
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string \| null, 1 to 255 characters | No | New name |
| `is_shared_with_workspace` | boolean \| null | No | true lets every member of the workspace use it |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `knowledge_base_id` | string | Yes |  |
| `name` | string | Yes |  |
| `resource_id` | string | Yes |  |
| `region` | string | Yes |  |
| `is_shared_with_workspace` | boolean | Yes |  |
| `folder_id` | string \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |
| `last_modified_time` | string (date-time) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "<name>"
}'
```

## Example response (200)

```json
{
  "knowledge_base_id": "<knowledge_base_id>",
  "name": "<name>",
  "resource_id": "<resource_id>",
  "region": "<region>",
  "is_shared_with_workspace": false,
  "folder_id": "<folder_id>",
  "created_time": "2027-01-15T09:00:00Z",
  "last_modified_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge bases](https://docs.stacksync.com/api-reference/knowledge-bases/list_knowledge_bases)
- [Get a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/get_knowledge_base)
- [Create a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/create_knowledge_base)
- [Delete a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/delete_knowledge_base)

# Delete a knowledge base

> Deletes a knowledge base and its documents. Their files stay in the workspace's files.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/delete_knowledge_base

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}`

- Operation: `delete_knowledge_base`
- Resource: Knowledge bases
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `deleted_knowledge_base_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "deleted_knowledge_base_id": "<deleted_knowledge_base_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge bases](https://docs.stacksync.com/api-reference/knowledge-bases/list_knowledge_bases)
- [Get a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/get_knowledge_base)
- [Create a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/create_knowledge_base)
- [Update a knowledge base](https://docs.stacksync.com/api-reference/knowledge-bases/update_knowledge_base)

# List knowledge base documents

> The documents of a knowledge base, newest first, with their processing status.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/documents/list_knowledge_base_documents

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents`

- Operation: `list_knowledge_base_documents`
- Resource: Knowledge base documents
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer, 1 to 200, default 50 | No | Maximum number of items returned, at most 200 |
| `offset` | integer, at least 0, default 0 | No | Number of items skipped before the first one returned |
| `region` | string (besg \| usnv) | Yes | Region of the knowledge base: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (KnowledgeBaseDocument) | Yes |  |
| `data[].document_id` | string | Yes |  |
| `data[].knowledge_base_id` | string | Yes |  |
| `data[].title` | string | Yes |  |
| `data[].mime_type` | string | Yes |  |
| `data[].file_id` | string | Yes |  |
| `data[].processing_status` | string \| null | Yes |  |
| `data[].processing_error` | string \| null | Yes |  |
| `data[].chunk_count` | integer \| null | Yes |  |
| `data[].created_time` | string (date-time) | Yes |  |
| `has_more` | boolean | Yes | Whether more items follow this page: request the next one with offset + limit |
| `limit` | integer | Yes |  |
| `offset` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "document_id": "<document_id>",
      "knowledge_base_id": "<knowledge_base_id>",
      "title": "<title>",
      "mime_type": "<mime_type>",
      "file_id": "<file_id>",
      "processing_status": "<processing_status>",
      "processing_error": "<processing_error>",
      "chunk_count": 0,
      "created_time": "2027-01-15T09:00:00Z"
    }
  ],
  "has_more": false,
  "limit": 0,
  "offset": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/get_knowledge_base_document)
- [Add a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/add_knowledge_base_document)
- [Remove a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/remove_knowledge_base_document)

# Add a knowledge base document

> Adds a file of the workspace (uploaded with the files API) to a knowledge base as a document, and processes it. The file must be a document Stacksync can read (PDF, Word, Excel, CSV, JSON, Markdown or plain text) and not already a document of the knowledge base. With validate_only, the checks run and 204 answers, nothing is added.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/documents/add_knowledge_base_document

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents`

- Operation: `add_knowledge_base_document`
- Resource: Knowledge base documents
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `file_id` | string (uuid) | Yes | Id of a file of the workspace (GET /files), added as the document |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `document_id` | string | Yes |  |
| `knowledge_base_id` | string | Yes |  |
| `title` | string | Yes |  |
| `mime_type` | string | Yes |  |
| `file_id` | string | Yes |  |
| `processing_status` | string \| null | Yes |  |
| `processing_error` | string \| null | Yes |  |
| `chunk_count` | integer \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "file_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
}'
```

## Example response (201)

```json
{
  "document_id": "<document_id>",
  "knowledge_base_id": "<knowledge_base_id>",
  "title": "<title>",
  "mime_type": "<mime_type>",
  "file_id": "<file_id>",
  "processing_status": "<processing_status>",
  "processing_error": "<processing_error>",
  "chunk_count": 0,
  "created_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge base documents](https://docs.stacksync.com/api-reference/knowledge-bases/documents/list_knowledge_base_documents)
- [Get a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/get_knowledge_base_document)
- [Remove a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/remove_knowledge_base_document)

# Get a knowledge base document

> A document of a knowledge base, with its processing status.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/documents/get_knowledge_base_document

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents/{knowledge_base_document_id}`

- Operation: `get_knowledge_base_document`
- Resource: Knowledge base documents
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |
| `knowledge_base_document_id` | string (uuid) | Yes | The document of the knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `document_id` | string | Yes |  |
| `knowledge_base_id` | string | Yes |  |
| `title` | string | Yes |  |
| `mime_type` | string | Yes |  |
| `file_id` | string | Yes |  |
| `processing_status` | string \| null | Yes |  |
| `processing_error` | string \| null | Yes |  |
| `chunk_count` | integer \| null | Yes |  |
| `created_time` | string (date-time) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents/{knowledge_base_document_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "document_id": "<document_id>",
  "knowledge_base_id": "<knowledge_base_id>",
  "title": "<title>",
  "mime_type": "<mime_type>",
  "file_id": "<file_id>",
  "processing_status": "<processing_status>",
  "processing_error": "<processing_error>",
  "chunk_count": 0,
  "created_time": "2027-01-15T09:00:00Z"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge base documents](https://docs.stacksync.com/api-reference/knowledge-bases/documents/list_knowledge_base_documents)
- [Add a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/add_knowledge_base_document)
- [Remove a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/remove_knowledge_base_document)

# Remove a knowledge base document

> Removes a document from a knowledge base. Its file stays in the workspace's files.

Source: https://docs.stacksync.com/api-reference/knowledge-bases/documents/remove_knowledge_base_document

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents/{knowledge_base_document_id}`

- Operation: `remove_knowledge_base_document`
- Resource: Knowledge base documents
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `knowledge_base_id` | string (uuid) | Yes | The knowledge base. |
| `knowledge_base_document_id` | string (uuid) | Yes | The document of the knowledge base. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `knowledge_base_id` | string | Yes |  |
| `removed_document_id` | string | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}/documents/{knowledge_base_document_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "knowledge_base_id": "<knowledge_base_id>",
  "removed_document_id": "<removed_document_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List knowledge base documents](https://docs.stacksync.com/api-reference/knowledge-bases/documents/list_knowledge_base_documents)
- [Get a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/get_knowledge_base_document)
- [Add a knowledge base document](https://docs.stacksync.com/api-reference/knowledge-bases/documents/add_knowledge_base_document)

# List files

> The files of the workspace in a region, newest first.

Source: https://docs.stacksync.com/api-reference/files/list_files

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/files`

- Operation: `list_files`
- Resource: Files
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region whose files are listed: besg (Europe) or usnv (United States) |
| `search` | string \| null, 1 to 255 characters | No | Only files whose name contains this text |
| `limit` | integer, 1 to 100, default 50 | No | Maximum number of files returned, at most 100 |
| `cursor` | string \| null, 1 to 1000 characters | No | next_cursor of the previous page; absent for the first page |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (WorkspaceFile) | Yes |  |
| `data[].file_id` | string | Yes |  |
| `data[].name` | string | Yes |  |
| `data[].mime_type` | string \| null | Yes |  |
| `data[].size_bytes` | integer \| null | Yes |  |
| `data[].tags` | array of string | Yes |  |
| `data[].source` | string \| null | Yes |  |
| `data[].source_ref` | string \| null | Yes | Id of the resource the file belongs to, null when it belongs to none |
| `data[].created_at` | string \| null | Yes |  |
| `data[].region` | string | Yes |  |
| `has_more` | boolean | Yes | Whether more files may follow this page: request the next one with cursor = next_cursor |
| `next_cursor` | string \| null | Yes | Pass as cursor to get the next page; null on the last page |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/files?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "file_id": "<file_id>",
      "name": "<name>",
      "mime_type": "<mime_type>",
      "size_bytes": 0,
      "tags": [
        "<tags>"
      ],
      "source": "<source>",
      "source_ref": "<source_ref>",
      "created_at": "<created_at>",
      "region": "<region>"
    }
  ],
  "has_more": false,
  "next_cursor": "<next_cursor>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a file](https://docs.stacksync.com/api-reference/files/get_file)

# Get a file

> A file's details. Its content is downloaded through the file proxy.

Source: https://docs.stacksync.com/api-reference/files/get_file

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/files/{file_id}`

- Operation: `get_file`
- Resource: Files
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `file_id` | string (uuid) | Yes | The file. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the file: besg (Europe) or usnv (United States) |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `file_id` | string | Yes |  |
| `name` | string | Yes |  |
| `mime_type` | string \| null | Yes |  |
| `size_bytes` | integer \| null | Yes |  |
| `tags` | array of string | Yes |  |
| `source` | string \| null | Yes |  |
| `source_ref` | string \| null | Yes | Id of the resource the file belongs to, null when it belongs to none |
| `created_at` | string \| null | Yes |  |
| `region` | string | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/files/{file_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "file_id": "<file_id>",
  "name": "<name>",
  "mime_type": "<mime_type>",
  "size_bytes": 0,
  "tags": [
    "<tags>"
  ],
  "source": "<source>",
  "source_ref": "<source_ref>",
  "created_at": "<created_at>",
  "region": "<region>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List files](https://docs.stacksync.com/api-reference/files/list_files)

# Get sync metrics

> The record, issue and pending change counts of a sync, per app and table: what the sync page's Statistics tab shows.

Source: https://docs.stacksync.com/api-reference/syncs/get_sync_metrics

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/metrics`

- Operation: `get_sync_metrics`
- Resource: Syncs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_id` | string | Yes |  |
| `apps` | array of object (BaseAppMetrics) | Yes |  |
| `apps[].app_id` | string | Yes |  |
| `apps[].processing_records` | integer \| null | No |  |
| `apps[].tables` | array of object (BaseTableMetrics) | Yes |  |
| `apps[].tables[].table_mapping_id` | string | Yes |  |
| `apps[].tables[].table_name` | string | Yes |  |
| `apps[].tables[].records` | integer \| null | No |  |
| `apps[].tables[].delete_protected_records` | integer \| null | No |  |
| `apps[].tables[].issues` | integer \| null | No |  |
| `apps[].tables[].issues_created` | integer \| null | No |  |
| `apps[].tables[].issues_updated` | integer \| null | No |  |
| `apps[].tables[].issues_deleted` | integer \| null | No |  |
| `apps[].tables[].changes` | integer \| null | No |  |
| `apps[].tables[].changes_created` | integer \| null | No |  |
| `apps[].tables[].changes_updated` | integer \| null | No |  |
| `apps[].tables[].changes_deleted` | integer \| null | No |  |
| `apps[].tables[].issues_ignored` | integer \| null | No |  |
| `apps[].tables[].issues_ignored_created` | integer \| null | No |  |
| `apps[].tables[].issues_ignored_updated` | integer \| null | No |  |
| `apps[].tables[].issues_ignored_deleted` | integer \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/metrics?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "base_id": "<base_id>",
  "apps": [
    {
      "app_id": "<app_id>",
      "processing_records": 0,
      "tables": [
        {
          "table_mapping_id": "<table_mapping_id>",
          "table_name": "<table_name>",
          "records": 0,
          "delete_protected_records": 0,
          "issues": 0,
          "issues_created": 0,
          "issues_updated": 0,
          "issues_deleted": 0,
          "changes": 0,
          "changes_created": 0,
          "changes_updated": 0,
          "changes_deleted": 0,
          "issues_ignored": 0,
          "issues_ignored_created": 0,
          "issues_ignored_updated": 0,
          "issues_ignored_deleted": 0
        }
      ]
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Get sync diagnostics

> The work queued, in flight, locked and waiting for a rescrape per app and table of a sync, and how much of it is stuck.

Source: https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/diagnostics`

- Operation: `get_sync_diagnostics`
- Resource: Syncs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |
| `stuck_threshold_in_seconds` | integer, at least 1, default 3600 | No | Work older than this is counted as stuck, in seconds |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_id` | string | Yes |  |
| `stuck_threshold_in_seconds` | integer | Yes |  |
| `apps` | array of object (BaseAppDiagnostics) | Yes |  |
| `apps[].app_id` | string | Yes |  |
| `apps[].tables` | array of object (BaseTableDiagnostics) | Yes |  |
| `apps[].tables[].table_mapping_id` | string | Yes |  |
| `apps[].tables[].table_name` | string | Yes |  |
| `apps[].tables[].change_queue_count` | integer \| null | No |  |
| `apps[].tables[].change_queue_future_count` | integer \| null | No |  |
| `apps[].tables[].change_queue_stuck_count` | integer \| null | No |  |
| `apps[].tables[].ongoing_write_count` | integer \| null | No |  |
| `apps[].tables[].ongoing_write_stuck_count` | integer \| null | No |  |
| `apps[].tables[].record_locks_count` | integer \| null | No |  |
| `apps[].tables[].record_locks_stuck_count` | integer \| null | No |  |
| `apps[].tables[].rescrape_count` | integer \| null | No |  |
| `apps[].tables[].rescrape_stuck_count` | integer \| null | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/diagnostics?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "base_id": "<base_id>",
  "stuck_threshold_in_seconds": 0,
  "apps": [
    {
      "app_id": "<app_id>",
      "tables": [
        {
          "table_mapping_id": "<table_mapping_id>",
          "table_name": "<table_name>",
          "change_queue_count": 0,
          "change_queue_future_count": 0,
          "change_queue_stuck_count": 0,
          "ongoing_write_count": 0,
          "ongoing_write_stuck_count": 0,
          "record_locks_count": 0,
          "record_locks_stuck_count": 0,
          "rescrape_count": 0,
          "rescrape_stuck_count": 0
        }
      ]
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Update sync settings

> Sets the sync frequency, as the sync page's Data sync frequency: how often the sync runs at least (0 for real time). Special Conditions: - 0 removes the stored delay (real time), so a sync set to 0 answers 0, as a sync never set does.

Source: https://docs.stacksync.com/api-reference/syncs/update_sync_settings

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/settings`

- Operation: `update_sync_settings`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `max_records_sync_delay_in_seconds` | integer, at least 0 | Yes | How often the sync runs at least, in seconds, as the sync page's Data sync frequency: 0 (real time), 60, 300, 900, 3600, 21600 or 86400 (at least once every 24 hours). Other values are accepted; an odd value is rounded down to an even one |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_id` | string | Yes |  |
| `settings` | object (PublicBaseSettings) | Yes |  |
| `settings.max_records_sync_delay_in_seconds` | integer \| null | No | How often the sync runs at least, in seconds, as the sync page's Data sync frequency: 0 (real time), 60, 300, 900, 3600, 21600 or 86400 (at least once every 24 hours). Other values are accepted; an odd value is rounded down to an even one |

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/settings?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "max_records_sync_delay_in_seconds": 0
}'
```

## Example response (200)

```json
{
  "base_id": "<base_id>",
  "settings": {
    "max_records_sync_delay_in_seconds": 0
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Set Salesforce Bulk API access

> Switches the Salesforce Bulk API on or off for one app of a sync.

Source: https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/bulk-api-access`

- Operation: `set_sync_app_bulk_api_access`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |
| `app_id` | string | Yes | One of the sync's two apps, as listed in the sync's apps. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | string (ON \| OFF) | Yes | ON to read and write the Salesforce app through its Bulk API, OFF for its REST API |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_id` | string | Yes |  |
| `bulk_api_access` | boolean | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/bulk-api-access?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "ON"
}'
```

## Example response (200)

```json
{
  "app_id": "<app_id>",
  "bulk_api_access": false
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Set the change capture method

> Sets how changes are captured from one Postgres app of a sync: triggers, or logical replication.

Source: https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/cdc-method`

- Operation: `set_sync_app_cdc_method`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |
| `app_id` | string | Yes | One of the sync's two apps, as listed in the sync's apps. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cdc_method` | string (triggers \| logical_replication) | Yes | triggers, or logical_replication when the database allows it |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_id` | string | Yes |  |
| `cdc_method` | string (triggers \| logical_replication) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/cdc-method?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "cdc_method": "triggers"
}'
```

## Example response (200)

```json
{
  "app_id": "<app_id>",
  "cdc_method": "triggers"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Set the Salesforce full table scan frequency

> Sets how often every record of Salesforce tables with formula fields is read again: Salesforce changes a formula field without changing the record's modified date, so only a full read catches it. Tables left out keep their frequency.

Source: https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/full-table-scan-frequency`

- Operation: `set_sync_app_full_table_scan_frequency`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |
| `app_id` | string | Yes | One of the sync's two apps, as listed in the sync's apps. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tables` | array of object (FullTableScanFrequencyOfTable), at least 1 item | Yes | The tables to set; the app's other tables keep their frequency |
| `tables[].table_mapping_id` | string | Yes | A table of this app with formula fields, as listed in the sync's tables |
| `tables[].full_table_scan_frequency_in_seconds` | integer (3600 \| 14400 \| 21600 \| 43200 \| 86400) \| null | Yes | How often every record of this table is read again to catch formula field changes, in seconds; null never reads them again |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_id` | string | Yes |  |
| `tables` | array of object (StoredFullTableScanFrequencyOfTable) | Yes |  |
| `tables[].table_mapping_id` | string | Yes |  |
| `tables[].table_name` | string | Yes |  |
| `tables[].full_table_scan_frequency_in_seconds` | integer \| null | Yes | How often every record of this table is read again to catch formula field changes, in seconds; null never reads them again |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/full-table-scan-frequency?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "table_mapping_id": "<table_mapping_id>",
      "full_table_scan_frequency_in_seconds": 3600
    }
  ]
}'
```

## Example response (200)

```json
{
  "app_id": "<app_id>",
  "tables": [
    {
      "table_mapping_id": "<table_mapping_id>",
      "table_name": "<table_name>",
      "full_table_scan_frequency_in_seconds": 0
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)

# Get association change capture status

> Whether each HubSpot association table of a sync captures its changes from HubSpot rollup properties, and the rollup properties still to create in HubSpot. Reads HubSpot live, so it can take a few seconds.

Source: https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/association-cdc-status`

- Operation: `get_sync_association_cdc_status`
- Resource: Syncs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `base_id` | string (uuid) | Yes | The sync. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | The region of the sync |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_id` | string | Yes |  |
| `app_id` | string | Yes | The HubSpot app of the sync |
| `tables` | array of object (AssociationCdcTableStatus) | Yes |  |
| `tables[].table_mapping_id` | string | Yes |  |
| `tables[].table_name` | string | Yes |  |
| `tables[].status` | string (enabled \| ready \| partial \| missing) \| string | Yes | enabled: association changes are read from the rollup properties; ready: every rollup property exists, change capture starts when the sync is next switched on; partial: the unlabeled rollup property exists but labeled ones are missing; missing: the unlabeled rollup property is missing |
| `tables[].rollup_host_friendly_name` | string | Yes | The HubSpot object the rollup properties are created on |
| `tables[].expected_property_labels` | array of string | Yes | The rollup properties association change capture reads |
| `tables[].missing_property_labels` | array of string | Yes | The rollup properties to create in HubSpot |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/association-cdc-status?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "base_id": "<base_id>",
  "app_id": "<app_id>",
  "tables": [
    {
      "table_mapping_id": "<table_mapping_id>",
      "table_name": "<table_name>",
      "status": "enabled",
      "rollup_host_friendly_name": "<rollup_host_friendly_name>",
      "expected_property_labels": [
        "<expected_property_labels>"
      ],
      "missing_property_labels": [
        "<missing_property_labels>"
      ]
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# List syncs

> List the syncs of the workspace in every region, newest first, with their apps, tables, columns and settings. Deleted syncs are not listed. No `region` parameter: both regions are read.

Source: https://docs.stacksync.com/api-reference/syncs/list_syncs

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases`

- Operation: `list_syncs`
- Resource: Syncs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string, 3 to 63 characters, pattern `^[A-Za-z0-9_\- ]+$` | No | Only the sync with exactly this name. 3 to 63 characters: unaccented letters (A-Z, a-z), numbers, underscores, dashes and spaces only; unique in the workspace |

## Returns

### 200 The syncs of the workspace

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (Sync) | Yes | The syncs, across both regions |
| `data[].base_id` | string (uuid) | Yes | The sync |
| `data[].base_name` | string | Yes | The name of the sync |
| `data[].base_status` | string | Yes | The state of the sync: `running` (switched on), `paused` (switched off), `processing` (a switch is in progress) or an error state set by the platform |
| `data[].base_region` | string (besg \| usnv) | Yes | The data region the sync runs in |
| `data[].base_resource_id` | string \| null | No | The sync's resource id, unique in its workspace and region |
| `data[].folder_id` | string \| null | No | The folder the sync is filed in, null at the root of the workspace |
| `data[].settings` | object (SyncSettings) | Yes | The settings of the sync |
| `data[].settings.max_records_sync_delay_in_seconds` | integer | No | How often the sync runs at least, in seconds, as the sync page's Data sync frequency: 0 (real time), 60, 300, 900, 3600, 21600 or 86400 (at least once every 24 hours). Other values are accepted; an odd value is rounded down to an even one |
| `data[].apps` | array of object (SyncApp), exactly 2 items | Yes | The two apps of the sync |
| `data[].apps[].app_id` | string | Yes | The id of the app inside the sync, used by the app routes (delete protection, rate limit) and by triggers |
| `data[].apps[].app_type` | string | Yes | The app, as shown in Stacksync |
| `data[].apps[].connection_id` | string (uuid) | No | The connection the app uses |
| `data[].apps[].connection_name` | string | No | The name of that connection |
| `data[].apps[].rate_limit` | object (SyncRateLimit) \| null | No | The rate limit of the app, null when Stacksync's default applies |
| `data[].apps[].rate_limit.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `data[].apps[].rate_limit.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |
| `data[].apps[].delete_protection` | boolean | Yes | Whether deletes are kept from reaching this app |
| `data[].apps[].bulk_api_access` | boolean | Yes | Whether the Salesforce Bulk API is used for this app |
| `data[].apps[].cdc_method` | string \| null | No | How changes are captured from this app (for example `triggers`, `logical_replication`, `webhook`); null when not applicable |
| `data[].apps[].app_options` | object (SyncAppOptions) | No | The schema propagation settings of the app that are set; send them back unchanged with an edit to keep them |
| `data[].apps[].app_options.enable_detect_schema_changes` | boolean | No | True to detect tables and columns created or deleted in this app; detection starts when the sync is switched on |
| `data[].apps[].app_options.detect_schema_changes_frequency_in_seconds` | integer, at least 1 | No | How often schema changes are detected, in seconds (an hour when left out) |
| `data[].apps[].app_options.propagate_table_creations_to_target_app` | boolean | No | True to add a table created in this app to the other app and sync it |
| `data[].apps[].app_options.excluded_external_table_names` | array of string | No | Table names never added by `propagate_table_creations_to_target_app` |
| `data[].apps[].app_options.excluded_external_table_names_regexes` | array of string | No | Regular expressions of table names never added by `propagate_table_creations_to_target_app` |
| `data[].apps[].app_options.auto_unsync_deleted_tables` | boolean | No | True to stop syncing a table deleted from this app instead of pausing the sync |
| `data[].apps[].app_options.default_table_options_for_new_tables` | object | No | The column settings a table added by `propagate_table_creations_to_target_app` starts with |
| `data[].apps[].app_options.default_table_options_for_new_tables.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data[].apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data[].apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data[].apps[].app_options.default_table_options_for_new_tables.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `data[].apps[].tables` | array of object (SyncTable) | Yes | The synced tables of the app |
| `data[].apps[].tables[].table_name` | string | Yes | The name of the table in the app |
| `data[].apps[].tables[].table_mapping_id` | string | Yes | The id shared by the two tables of a pair |
| `data[].apps[].tables[].sync_direction` | string (bidirectional \| incoming \| outgoing) | No | `bidirectional` (read and written), `incoming` (only written into) or `outgoing` (only read from) |
| `data[].apps[].tables[].table_options` | object (SyncTableOptions) | No | The associations and schema propagation settings of the table that are set; send them back unchanged with an edit to keep them |
| `data[].apps[].tables[].table_options.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data[].apps[].tables[].table_options.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data[].apps[].tables[].table_options.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data[].apps[].tables[].table_options.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `data[].apps[].tables[].table_options.associations` | array of object (SyncAssociation) | No |  |
| `data[].apps[].tables[].table_options.associations[].child_external_column_read_id_holding_parent_association_key` | string | Yes | The column of this table, by its read id, holding the key of the referenced record |
| `data[].apps[].tables[].table_options.associations[].child_internal_column_id_holding_parent_native_record_id` | string | Yes | The `column_mapping_id` of this table's synced column the referenced record's id is written into |
| `data[].apps[].tables[].table_options.associations[].parent_internal_table_id` | string | Yes | The `table_mapping_id` of the referenced table |
| `data[].apps[].tables[].table_options.associations[].parent_internal_column_id_holding_native_record_id` | string | Yes | The `column_mapping_id` of the referenced table's column holding its record id |
| `data[].apps[].tables[].table_options.associations[].parent_internal_column_id_holding_association_key` | string | Yes | The `column_mapping_id` of the referenced table's column holding the key this table refers to |
| `data[].apps[].tables[].columns` | array of object (SyncColumn) | Yes | The synced columns of the table |
| `data[].apps[].tables[].columns[].column_name` | string | Yes | The name of the column in the app |
| `data[].apps[].tables[].columns[].column_mapping_id` | string | Yes | The id shared by the two columns of a pair |
| `data[].apps[].tables[].columns[].column_sync_direction` | string (bidirectional \| incoming \| outgoing \| null) | No | The direction of this column when it differs from the table's: `bidirectional`, `incoming` or `outgoing`; null for the table's |
| `data[].apps[].tables[].columns[].external_column_type` | string \| null | No | The column's type in its app (for example postgres_text), read only |
| `data[].apps[].tables[].columns[].external_column_read_id` | string \| integer \| null | No | The column's id in its app, read only: an association names it in child_external_column_read_id_holding_parent_association_key |
| `data[].apps[].tables[].full_table_scan_frequency_in_seconds` | integer \| null | No | Tables with formula fields only (Salesforce). How often every record of this table is read again to catch formula field changes, in seconds; null never reads them again; set by the full table scan frequency route, not the edit |
| `data[].apps[].tables[].is_association_cdc_enabled` | boolean | No | HubSpot association tables only. Whether association changes are captured from HubSpot rollup properties, decided when the sync is switched on |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "base_name": "Salesforce accounts to Postgres",
      "base_status": "running",
      "base_region": "usnv",
      "base_resource_id": "salesforce_accounts_to_postgres",
      "folder_id": null,
      "settings": {
        "max_records_sync_delay_in_seconds": 0
      },
      "apps": [
        {
          "app_id": "3f9a1c2e",
          "app_type": "salesforce",
          "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
          "connection_name": "Salesforce production",
          "rate_limit": {
            "rate": 50,
            "frequency": 1
          },
          "delete_protection": false,
          "bulk_api_access": false,
          "cdc_method": null,
          "tables": [
            {
              "table_name": "Account",
              "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
              "sync_direction": "bidirectional",
              "columns": [
                {
                  "column_name": "Name",
                  "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
                },
                {
                  "column_name": "Website",
                  "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
                }
              ]
            }
          ]
        },
        {
          "app_id": "b71d04e5",
          "app_type": "postgres",
          "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
          "connection_name": "Production Postgres",
          "rate_limit": null,
          "delete_protection": true,
          "bulk_api_access": false,
          "cdc_method": "triggers",
          "tables": [
            {
              "table_name": "accounts",
              "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
              "sync_direction": "bidirectional",
              "columns": [
                {
                  "column_name": "name",
                  "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
                },
                {
                  "column_name": "website",
                  "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | `name` is not a string of 3 to 63 allowed characters (`Invalid Request Body`); the syncs could not be read (`Error retrieving bases`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Create a sync

> Create a sync between two apps from the tables and columns you pair with mapping ids. Stacksync reads both apps, checks every table and column, creates the tables marked `create_new_table` and stores the sync switched off: switch it on with the switch route. Send `validate_only: true` to run every check and get the sync as it would be stored without creating it.

Source: https://docs.stacksync.com/api-reference/syncs/create_sync

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases`

- Operation: `create_sync`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Request body

`application/json`. The sync to create

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_name` | string | Yes | The name of the sync. 3 to 63 characters: unaccented letters (A-Z, a-z), numbers, underscores, dashes and spaces only; unique in the workspace |
| `base_region` | string (besg \| usnv) | Yes | The data region the sync runs in; the connections must be in it |
| `apps` | array of object (SyncAppInput), exactly 2 items | Yes | Exactly two apps |
| `apps[].connection_id` | string (uuid) | Yes | The connection of the app; the user of the API key must have created it or it must be shared with the workspace |
| `apps[].tables` | array of object (SyncTableInput), at least 1 item | Yes | The tables to sync, one per table pair; both apps list the same number of tables and the same `table_mapping_id`s |
| `apps[].tables[].table_name` | string | Yes | The name of the table in the app (its id is accepted too, BigQuery: `project.dataset.table`). For a table being created: the name of the new table. A name holds only ASCII letters, digits and the characters _ - . $ (no spaces), and in postgres, postgres_heroku, mysql, mongodb, motherduck it takes at most 63 characters. |
| `apps[].tables[].table_mapping_id` | string (uuid) | Yes | A UUID you choose, the same for the two tables of a pair and different from every other mapping id |
| `apps[].tables[].sync_direction` | string (bidirectional \| incoming \| outgoing) | Yes | `bidirectional` (paired with `bidirectional`), `incoming` (only written into, paired with `outgoing`) or `outgoing` (only read from, paired with `incoming`) |
| `apps[].tables[].table_options` | object (SyncTableOptionsInput) | Yes | The options of a table in the sync; unknown fields are refused |
| `apps[].tables[].table_options.create_new_table` | boolean | Yes | True to have Stacksync create this table in the app from the other app's table; the table must then not exist yet and the app must support it (`can_create_tables` of the app schema). At most one table of a pair is created |
| `apps[].tables[].table_options.primary_key` | object (SyncPrimaryKeyInput) | No | The primary key column of a table being created, instead of the default `stacksync_record_id_` of type uuid (Postgres apps only) |
| `apps[].tables[].table_options.primary_key.column_name` | string | Yes | The name of the primary key column, not a synced column's name. A name holds only ASCII letters, digits and the characters _ - . $ (no spaces), and in postgres, postgres_heroku, mysql, mongodb, motherduck it takes at most 63 characters. |
| `apps[].tables[].table_options.primary_key.data_type` | string (uuid \| text \| varchar), default "uuid" | No | The type of the column |
| `apps[].tables[].table_options.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `apps[].tables[].table_options.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `apps[].tables[].table_options.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `apps[].tables[].table_options.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `apps[].tables[].table_options.associations` | array of object (SyncAssociation) | No | The associations of this table; an edit only (the ids exist once the sync does). Left out: kept as stored; `[]` removes them |
| `apps[].tables[].table_options.associations[].child_external_column_read_id_holding_parent_association_key` | string | Yes | The column of this table, by its read id, holding the key of the referenced record |
| `apps[].tables[].table_options.associations[].child_internal_column_id_holding_parent_native_record_id` | string | Yes | The `column_mapping_id` of this table's synced column the referenced record's id is written into |
| `apps[].tables[].table_options.associations[].parent_internal_table_id` | string | Yes | The `table_mapping_id` of the referenced table |
| `apps[].tables[].table_options.associations[].parent_internal_column_id_holding_native_record_id` | string | Yes | The `column_mapping_id` of the referenced table's column holding its record id |
| `apps[].tables[].table_options.associations[].parent_internal_column_id_holding_association_key` | string | Yes | The `column_mapping_id` of the referenced table's column holding the key this table refers to |
| `apps[].tables[].columns` | array of object (SyncColumnInput) | No | The columns to sync. Left out on both tables of a pair: every column of the table is synced (and created, for a new table). When sent on both tables they must hold the same `column_mapping_id`s |
| `apps[].tables[].columns[].column_name` | string | No | The name of the column in the app (its read id is accepted too); for a column Stacksync creates, the name of the new column. Required, except on a column Stacksync creates (a column of a table being created, or one with `create_new_column`): left out, it is named from its paired column as the sync page names it, with `_1`, `_2`… when the name is taken. A name holds only ASCII letters, digits and the characters _ - . $ (no spaces), and in postgres, postgres_heroku, mysql, mongodb, motherduck it takes at most 63 characters. |
| `apps[].tables[].columns[].column_mapping_id` | string (uuid) | Yes | A UUID you choose, the same for the two columns of a pair and different from every other mapping id |
| `apps[].tables[].columns[].column_sync_direction` | string (bidirectional \| incoming \| outgoing) | No | The direction of this column in this app, inside a two-way table: `bidirectional`, `incoming` (only written into) or `outgoing` (only read from). Sent on both columns of a pair (`outgoing` with `incoming`, or both `bidirectional`); in a one-way table it can only be the table's direction, and a column the app does not let Stacksync write can only be `outgoing`. Left out on an edit: the column keeps its direction, unless the table's `sync_direction` changes, then the column follows it; left out on a create or for a new column: the table's direction |
| `apps[].tables[].columns[].create_new_column` | boolean | No | Create this column in the existing table. Only for a table whose app lets Stacksync create columns (`can_create_columns` in the app schema read); the paired column must exist. |
| `apps[].tables[].columns[].external_column_type` | string | No | The type of a column Stacksync creates (a column of a table being created, or one with `create_new_column`), one of the app's types (for example `postgres_text`); left out: the app's default type for the paired column's type, an array becoming json. |
| `apps[].rate_limit` | object (SyncRateLimit) | No | The most requests Stacksync makes to the app in a period |
| `apps[].rate_limit.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `apps[].rate_limit.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |
| `apps[].app_options` | object (SyncAppOptionsInput) | No | The options of an app in the sync; unknown fields are refused, on an edit a field left out keeps its stored value |
| `apps[].app_options.delete_protection` | boolean, default false | No | True to keep deletes from reaching this app (set on every table of the app) |
| `apps[].app_options.enable_detect_schema_changes` | boolean | No | True to detect tables and columns created or deleted in this app; detection starts when the sync is switched on |
| `apps[].app_options.detect_schema_changes_frequency_in_seconds` | integer (1800 \| 3600 \| 21600 \| 43200 \| 86400) | No | How often schema changes are detected, in seconds: 30 minutes, 1, 6, 12 or 24 hours (an hour when left out). A value the sync already stores is kept when sent back unchanged |
| `apps[].app_options.propagate_table_creations_to_target_app` | boolean | No | True to add a table created in this app to the other app and sync it |
| `apps[].app_options.excluded_external_table_names` | array of string | No | Table names never added by `propagate_table_creations_to_target_app` |
| `apps[].app_options.excluded_external_table_names_regexes` | array of string | No | Regular expressions of table names never added by `propagate_table_creations_to_target_app` |
| `apps[].app_options.auto_unsync_deleted_tables` | boolean | No | True to stop syncing a table deleted from this app instead of pausing the sync |
| `apps[].app_options.default_table_options_for_new_tables` | object | No | The column settings a table added by `propagate_table_creations_to_target_app` starts with |
| `apps[].app_options.default_table_options_for_new_tables.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `apps[].app_options.default_table_options_for_new_tables.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `base_resource_id` | string, pattern `^[A-Za-z0-9_]{1,60}$` | No | A stable id of your choosing, 1 to 60 letters, digits or underscores, unique in the workspace; derived from the name when left out |
| `base_status` | string | No | Accepted and stored as given; leave it out so Stacksync sets the state of the new sync itself |
| `folder_id` | string (uuid) | No | The folder of the workspace, in `base_region`, to file the sync under; the root when left out |
| `validate_only` | boolean, default false | No | Run every check of the create, including reading the apps, and answer the sync as it would be stored (its column names after renames, no `base_id`) without creating it |

## Returns

### 200 The sync created (with `validate_only`, the sync as it would be stored, without `base_id`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (SyncSchema) | Yes | A sync as a create or an edit answers it (the mapping, not the settings: read the sync for those) |
| `data.base_id` | string (uuid) | No | The sync; absent from a `validate_only` create, which creates none |
| `data.base_name` | string | Yes | The name of the sync |
| `data.base_region` | string (besg \| usnv) | Yes | The data region of the sync |
| `data.base_resource_id` | string | No | The stable id of the sync |
| `data.base_status` | string | No | The state of the sync when it was sent |
| `data.apps` | array of object (SyncSchemaApp), exactly 2 items | Yes | The two apps |
| `data.apps[].app_id` | string | Yes | The id of the app inside the sync |
| `data.apps[].connection_id` | string (uuid) | Yes | The connection of the app |
| `data.apps[].rate_limit` | object (SyncRateLimit) | No | The most requests Stacksync makes to the app in a period |
| `data.apps[].rate_limit.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `data.apps[].rate_limit.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |
| `data.apps[].tables` | array of object (SyncSchemaTable) | Yes | The synced tables |
| `data.apps[].tables[].table_name` | string | Yes | The name of the table in the app |
| `data.apps[].tables[].table_mapping_id` | string | Yes | The id shared by the two tables of a pair |
| `data.apps[].tables[].sync_direction` | string (bidirectional \| incoming \| outgoing) | Yes | The direction of the table |
| `data.apps[].tables[].columns` | array of object (SyncSchemaColumn) | Yes | The synced columns |
| `data.apps[].tables[].columns[].column_name` | string | Yes | The name of the column in the app, after renames |
| `data.apps[].tables[].columns[].column_mapping_id` | string | Yes | The id shared by the two columns of a pair |
| `data.apps[].tables[].columns[].column_sync_direction` | string (bidirectional \| incoming \| outgoing) | No | The direction of this column in this app |
| `data.apps[].tables[].columns[].external_column_type` | string | No | The app's type of the column (for example `postgres_text`) |
| `data.apps[].tables[].table_options` | object (SyncTableOptions) | No | The associations and schema propagation settings of the table that are set; send them back unchanged with an edit to keep them |
| `data.apps[].tables[].table_options.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data.apps[].tables[].table_options.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].tables[].table_options.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].tables[].table_options.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `data.apps[].tables[].table_options.associations` | array of object (SyncAssociation) | No |  |
| `data.apps[].tables[].table_options.associations[].child_external_column_read_id_holding_parent_association_key` | string | Yes | The column of this table, by its read id, holding the key of the referenced record |
| `data.apps[].tables[].table_options.associations[].child_internal_column_id_holding_parent_native_record_id` | string | Yes | The `column_mapping_id` of this table's synced column the referenced record's id is written into |
| `data.apps[].tables[].table_options.associations[].parent_internal_table_id` | string | Yes | The `table_mapping_id` of the referenced table |
| `data.apps[].tables[].table_options.associations[].parent_internal_column_id_holding_native_record_id` | string | Yes | The `column_mapping_id` of the referenced table's column holding its record id |
| `data.apps[].tables[].table_options.associations[].parent_internal_column_id_holding_association_key` | string | Yes | The `column_mapping_id` of the referenced table's column holding the key this table refers to |
| `data.apps[].tables[].full_table_scan_frequency_in_seconds` | integer \| null | No | Only on a table with formula fields (Salesforce): how often, in seconds, every record is read again to catch formula changes; null for never. Read only here: set it with POST /bases/{base_id}/apps/{app_id}/full-table-scan-frequency |
| `data.apps[].app_options` | object (SyncAppOptions) | No | The schema propagation settings of the app that are set; send them back unchanged with an edit to keep them |
| `data.apps[].app_options.enable_detect_schema_changes` | boolean | No | True to detect tables and columns created or deleted in this app; detection starts when the sync is switched on |
| `data.apps[].app_options.detect_schema_changes_frequency_in_seconds` | integer, at least 1 | No | How often schema changes are detected, in seconds (an hour when left out) |
| `data.apps[].app_options.propagate_table_creations_to_target_app` | boolean | No | True to add a table created in this app to the other app and sync it |
| `data.apps[].app_options.excluded_external_table_names` | array of string | No | Table names never added by `propagate_table_creations_to_target_app` |
| `data.apps[].app_options.excluded_external_table_names_regexes` | array of string | No | Regular expressions of table names never added by `propagate_table_creations_to_target_app` |
| `data.apps[].app_options.auto_unsync_deleted_tables` | boolean | No | True to stop syncing a table deleted from this app instead of pausing the sync |
| `data.apps[].app_options.default_table_options_for_new_tables` | object | No | The column settings a table added by `propagate_table_creations_to_target_app` starts with |
| `data.apps[].app_options.default_table_options_for_new_tables.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data.apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].app_options.default_table_options_for_new_tables.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "base_name": "Salesforce accounts to Postgres",
  "base_region": "usnv",
  "base_resource_id": "salesforce_accounts_to_postgres",
  "folder_id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
  "apps": [
    {
      "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
      "tables": [
        {
          "table_name": "Account",
          "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
          "sync_direction": "bidirectional",
          "table_options": {
            "create_new_table": false
          },
          "columns": [
            {
              "column_name": "Name",
              "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
            },
            {
              "column_name": "Website",
              "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
            }
          ]
        }
      ],
      "rate_limit": {
        "rate": 50,
        "frequency": 1
      }
    },
    {
      "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
      "tables": [
        {
          "table_name": "accounts",
          "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
          "sync_direction": "bidirectional",
          "table_options": {
            "create_new_table": true,
            "primary_key": {
              "column_name": "account_id",
              "data_type": "text"
            }
          },
          "columns": [
            {
              "column_name": "name",
              "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
            },
            {
              "column_name": "website",
              "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
            }
          ]
        }
      ],
      "app_options": {
        "delete_protection": true
      }
    }
  ]
}'
```

## Example response (200)

```json
{
  "data": {
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
    "base_name": "Salesforce accounts to Postgres",
    "base_region": "usnv",
    "base_resource_id": "salesforce_accounts_to_postgres",
    "apps": [
      {
        "app_id": "3f9a1c2e",
        "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
        "rate_limit": {
          "rate": 50,
          "frequency": 1
        },
        "tables": [
          {
            "table_name": "Account",
            "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
            "sync_direction": "bidirectional",
            "columns": [
              {
                "column_name": "Name",
                "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d",
                "external_column_type": "salesforce_string"
              },
              {
                "column_name": "Website",
                "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
                "external_column_type": "salesforce_url"
              }
            ]
          }
        ]
      },
      {
        "app_id": "b71d04e5",
        "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
        "tables": [
          {
            "table_name": "accounts",
            "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
            "sync_direction": "bidirectional",
            "columns": [
              {
                "column_name": "name",
                "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d",
                "external_column_type": "postgres_text"
              },
              {
                "column_name": "website",
                "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
                "external_column_type": "postgres_text"
              }
            ]
          }
        ]
      }
    ]
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The body is not valid JSON; a required field is missing, of the wrong type or not allowed (`Invalid Request Body`, `Invalid Input`): `base_name`, `base_region`, `apps` with `connection_id` and `tables` of `table_name`, `table_mapping_id`, `sync_direction`, `table_options.create_new_table`; the name breaks the name rule; `base_resource_id` breaks its pattern; `folder_id` is not a folder of the workspace in the sync's region; the name or resource id is already taken (`Validation Error`); the apps are not two, the tables or columns do not pair (counts, mapping ids, directions, duplicates); a table or column does not exist in its app, a table to create already exists or its app cannot create tables, a rate limit or primary key is invalid; the app refused the credentials or could not be reached; the sync could not be created (`Error creating base`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Get a sync

> Read one sync with its apps, tables, columns and settings. A deleted sync is answered as not existing.

Source: https://docs.stacksync.com/api-reference/syncs/get_sync

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}`

- Operation: `get_sync`
- Resource: Syncs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The sync

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (Sync) | Yes | A sync between two apps, as the read routes answer it |
| `data.base_id` | string (uuid) | Yes | The sync |
| `data.base_name` | string | Yes | The name of the sync |
| `data.base_status` | string | Yes | The state of the sync: `running` (switched on), `paused` (switched off), `processing` (a switch is in progress) or an error state set by the platform |
| `data.base_region` | string (besg \| usnv) | Yes | The data region the sync runs in |
| `data.base_resource_id` | string \| null | No | The sync's resource id, unique in its workspace and region |
| `data.folder_id` | string \| null | No | The folder the sync is filed in, null at the root of the workspace |
| `data.settings` | object (SyncSettings) | Yes | The settings of the sync |
| `data.settings.max_records_sync_delay_in_seconds` | integer | No | How often the sync runs at least, in seconds, as the sync page's Data sync frequency: 0 (real time), 60, 300, 900, 3600, 21600 or 86400 (at least once every 24 hours). Other values are accepted; an odd value is rounded down to an even one |
| `data.apps` | array of object (SyncApp), exactly 2 items | Yes | The two apps of the sync |
| `data.apps[].app_id` | string | Yes | The id of the app inside the sync, used by the app routes (delete protection, rate limit) and by triggers |
| `data.apps[].app_type` | string | Yes | The app, as shown in Stacksync |
| `data.apps[].connection_id` | string (uuid) | No | The connection the app uses |
| `data.apps[].connection_name` | string | No | The name of that connection |
| `data.apps[].rate_limit` | object (SyncRateLimit) \| null | No | The rate limit of the app, null when Stacksync's default applies |
| `data.apps[].rate_limit.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `data.apps[].rate_limit.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |
| `data.apps[].delete_protection` | boolean | Yes | Whether deletes are kept from reaching this app |
| `data.apps[].bulk_api_access` | boolean | Yes | Whether the Salesforce Bulk API is used for this app |
| `data.apps[].cdc_method` | string \| null | No | How changes are captured from this app (for example `triggers`, `logical_replication`, `webhook`); null when not applicable |
| `data.apps[].app_options` | object (SyncAppOptions) | No | The schema propagation settings of the app that are set; send them back unchanged with an edit to keep them |
| `data.apps[].app_options.enable_detect_schema_changes` | boolean | No | True to detect tables and columns created or deleted in this app; detection starts when the sync is switched on |
| `data.apps[].app_options.detect_schema_changes_frequency_in_seconds` | integer, at least 1 | No | How often schema changes are detected, in seconds (an hour when left out) |
| `data.apps[].app_options.propagate_table_creations_to_target_app` | boolean | No | True to add a table created in this app to the other app and sync it |
| `data.apps[].app_options.excluded_external_table_names` | array of string | No | Table names never added by `propagate_table_creations_to_target_app` |
| `data.apps[].app_options.excluded_external_table_names_regexes` | array of string | No | Regular expressions of table names never added by `propagate_table_creations_to_target_app` |
| `data.apps[].app_options.auto_unsync_deleted_tables` | boolean | No | True to stop syncing a table deleted from this app instead of pausing the sync |
| `data.apps[].app_options.default_table_options_for_new_tables` | object | No | The column settings a table added by `propagate_table_creations_to_target_app` starts with |
| `data.apps[].app_options.default_table_options_for_new_tables.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data.apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].app_options.default_table_options_for_new_tables.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `data.apps[].tables` | array of object (SyncTable) | Yes | The synced tables of the app |
| `data.apps[].tables[].table_name` | string | Yes | The name of the table in the app |
| `data.apps[].tables[].table_mapping_id` | string | Yes | The id shared by the two tables of a pair |
| `data.apps[].tables[].sync_direction` | string (bidirectional \| incoming \| outgoing) | No | `bidirectional` (read and written), `incoming` (only written into) or `outgoing` (only read from) |
| `data.apps[].tables[].table_options` | object (SyncTableOptions) | No | The associations and schema propagation settings of the table that are set; send them back unchanged with an edit to keep them |
| `data.apps[].tables[].table_options.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data.apps[].tables[].table_options.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].tables[].table_options.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].tables[].table_options.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `data.apps[].tables[].table_options.associations` | array of object (SyncAssociation) | No |  |
| `data.apps[].tables[].table_options.associations[].child_external_column_read_id_holding_parent_association_key` | string | Yes | The column of this table, by its read id, holding the key of the referenced record |
| `data.apps[].tables[].table_options.associations[].child_internal_column_id_holding_parent_native_record_id` | string | Yes | The `column_mapping_id` of this table's synced column the referenced record's id is written into |
| `data.apps[].tables[].table_options.associations[].parent_internal_table_id` | string | Yes | The `table_mapping_id` of the referenced table |
| `data.apps[].tables[].table_options.associations[].parent_internal_column_id_holding_native_record_id` | string | Yes | The `column_mapping_id` of the referenced table's column holding its record id |
| `data.apps[].tables[].table_options.associations[].parent_internal_column_id_holding_association_key` | string | Yes | The `column_mapping_id` of the referenced table's column holding the key this table refers to |
| `data.apps[].tables[].columns` | array of object (SyncColumn) | Yes | The synced columns of the table |
| `data.apps[].tables[].columns[].column_name` | string | Yes | The name of the column in the app |
| `data.apps[].tables[].columns[].column_mapping_id` | string | Yes | The id shared by the two columns of a pair |
| `data.apps[].tables[].columns[].column_sync_direction` | string (bidirectional \| incoming \| outgoing \| null) | No | The direction of this column when it differs from the table's: `bidirectional`, `incoming` or `outgoing`; null for the table's |
| `data.apps[].tables[].columns[].external_column_type` | string \| null | No | The column's type in its app (for example postgres_text), read only |
| `data.apps[].tables[].columns[].external_column_read_id` | string \| integer \| null | No | The column's id in its app, read only: an association names it in child_external_column_read_id_holding_parent_association_key |
| `data.apps[].tables[].full_table_scan_frequency_in_seconds` | integer \| null | No | Tables with formula fields only (Salesforce). How often every record of this table is read again to catch formula field changes, in seconds; null never reads them again; set by the full table scan frequency route, not the edit |
| `data.apps[].tables[].is_association_cdc_enabled` | boolean | No | HubSpot association tables only. Whether association changes are captured from HubSpot rollup properties, decided when the sync is switched on |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": {
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
    "base_name": "Salesforce accounts to Postgres",
    "base_status": "running",
    "base_region": "usnv",
    "base_resource_id": "salesforce_accounts_to_postgres",
    "folder_id": null,
    "settings": {
      "max_records_sync_delay_in_seconds": 0
    },
    "apps": [
      {
        "app_id": "3f9a1c2e",
        "app_type": "salesforce",
        "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
        "connection_name": "Salesforce production",
        "rate_limit": {
          "rate": 50,
          "frequency": 1
        },
        "delete_protection": false,
        "bulk_api_access": false,
        "cdc_method": null,
        "tables": [
          {
            "table_name": "Account",
            "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
            "sync_direction": "bidirectional",
            "columns": [
              {
                "column_name": "Name",
                "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
              },
              {
                "column_name": "Website",
                "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
              }
            ]
          }
        ]
      },
      {
        "app_id": "b71d04e5",
        "app_type": "postgres",
        "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
        "connection_name": "Production Postgres",
        "rate_limit": null,
        "delete_protection": true,
        "bulk_api_access": false,
        "cdc_method": "triggers",
        "tables": [
          {
            "table_name": "accounts",
            "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
            "sync_direction": "bidirectional",
            "columns": [
              {
                "column_name": "name",
                "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
              },
              {
                "column_name": "website",
                "column_mapping_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
              }
            ]
          }
        ]
      }
    ]
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; no sync with this id exists in the workspace or it was deleted (`Error retrieving base`, answered with 400, not 404) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Delete a sync

> Switch the sync off and delete it. Its data in both apps is kept; the sync's own storage is cleaned up in the background. The sync can no longer be read or listed.

Source: https://docs.stacksync.com/api-reference/syncs/delete_sync

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}`

- Operation: `delete_sync`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The sync deleted

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (DeletedSync) | Yes | The deleted sync |
| `data.base_id` | string (uuid) | Yes | The sync |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": {
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the sync could not be marked deleted (`Error setting base status to removed`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace (`Base not found`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Edit a sync

> Replace the mapping of a sync with the whole sync you send: read it, change tables, columns, directions, rate limits or delete protection, and send it back. A table left out of both apps is removed, a new pair is added. The sync is paused while the edit applies and restarted after it. Send `validate_only: true` to run every check without changing the sync.

Source: https://docs.stacksync.com/api-reference/syncs/edit_sync

`PUT https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}`

- Operation: `edit_sync`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Request body

`application/json`. The whole sync after the edit

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_id` | string (uuid) | Yes | The sync; must equal the `base_id` of the path |
| `base_name` | string | Yes | The name of the sync |
| `base_region` | string (besg \| usnv) | Yes | The data region of the sync |
| `apps` | array of object (SyncAppEditInput), exactly 2 items | Yes | Exactly two apps, with their `app_id` |
| `apps[].app_id` | string | Yes | The app's id in the sync (read it from the sync); an id the sync does not hold is refused |
| `apps[].connection_id` | string (uuid) | Yes | The connection of the app; the user of the API key must have created it or it must be shared with the workspace |
| `apps[].tables` | array of object (SyncTableEditInput), at least 1 item | Yes | The tables to sync after the edit: a table left out of both apps is removed, a new pair is added, a changed `sync_direction` or column list is applied |
| `apps[].tables[].table_name` | string | Yes | The name of the table in the app (its id is accepted too, BigQuery: `project.dataset.table`). For a table being created: the name of the new table. A name holds only ASCII letters, digits and the characters _ - . $ (no spaces), and in postgres, postgres_heroku, mysql, mongodb, motherduck it takes at most 63 characters. |
| `apps[].tables[].table_mapping_id` | string (uuid) | Yes | A UUID you choose, the same for the two tables of a pair and different from every other mapping id |
| `apps[].tables[].sync_direction` | string (bidirectional \| incoming \| outgoing) | Yes | `bidirectional` (paired with `bidirectional`), `incoming` (only written into, paired with `outgoing`) or `outgoing` (only read from, paired with `incoming`) |
| `apps[].tables[].table_options` | object (SyncTableEditOptionsInput) | No | The options of a table in the sync to edit; unknown fields are refused, a field left out keeps its stored value |
| `apps[].tables[].table_options.create_new_table` | boolean | No | True to have Stacksync create this table in the app from the other app's table; the table must then not exist yet and the app must support it (`can_create_tables` of the app schema). At most one table of a pair is created |
| `apps[].tables[].table_options.primary_key` | object (SyncPrimaryKeyInput) | No | The primary key column of a table being created, instead of the default `stacksync_record_id_` of type uuid (Postgres apps only) |
| `apps[].tables[].table_options.primary_key.column_name` | string | Yes | The name of the primary key column, not a synced column's name. A name holds only ASCII letters, digits and the characters _ - . $ (no spaces), and in postgres, postgres_heroku, mysql, mongodb, motherduck it takes at most 63 characters. |
| `apps[].tables[].table_options.primary_key.data_type` | string (uuid \| text \| varchar), default "uuid" | No | The type of the column |
| `apps[].tables[].table_options.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `apps[].tables[].table_options.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `apps[].tables[].table_options.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `apps[].tables[].table_options.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `apps[].tables[].table_options.associations` | array of object (SyncAssociation) | No | The associations of this table; an edit only (the ids exist once the sync does). Left out: kept as stored; `[]` removes them |
| `apps[].tables[].table_options.associations[].child_external_column_read_id_holding_parent_association_key` | string | Yes | The column of this table, by its read id, holding the key of the referenced record |
| `apps[].tables[].table_options.associations[].child_internal_column_id_holding_parent_native_record_id` | string | Yes | The `column_mapping_id` of this table's synced column the referenced record's id is written into |
| `apps[].tables[].table_options.associations[].parent_internal_table_id` | string | Yes | The `table_mapping_id` of the referenced table |
| `apps[].tables[].table_options.associations[].parent_internal_column_id_holding_native_record_id` | string | Yes | The `column_mapping_id` of the referenced table's column holding its record id |
| `apps[].tables[].table_options.associations[].parent_internal_column_id_holding_association_key` | string | Yes | The `column_mapping_id` of the referenced table's column holding the key this table refers to |
| `apps[].tables[].columns` | array of object (SyncColumnInput) | No | The columns to sync. Left out on both tables of a pair: every column of the table is synced (and created, for a new table). When sent on both tables they must hold the same `column_mapping_id`s |
| `apps[].tables[].columns[].column_name` | string | No | The name of the column in the app (its read id is accepted too); for a column Stacksync creates, the name of the new column. Required, except on a column Stacksync creates (a column of a table being created, or one with `create_new_column`): left out, it is named from its paired column as the sync page names it, with `_1`, `_2`… when the name is taken. A name holds only ASCII letters, digits and the characters _ - . $ (no spaces), and in postgres, postgres_heroku, mysql, mongodb, motherduck it takes at most 63 characters. |
| `apps[].tables[].columns[].column_mapping_id` | string (uuid) | Yes | A UUID you choose, the same for the two columns of a pair and different from every other mapping id |
| `apps[].tables[].columns[].column_sync_direction` | string (bidirectional \| incoming \| outgoing) | No | The direction of this column in this app, inside a two-way table: `bidirectional`, `incoming` (only written into) or `outgoing` (only read from). Sent on both columns of a pair (`outgoing` with `incoming`, or both `bidirectional`); in a one-way table it can only be the table's direction, and a column the app does not let Stacksync write can only be `outgoing`. Left out on an edit: the column keeps its direction, unless the table's `sync_direction` changes, then the column follows it; left out on a create or for a new column: the table's direction |
| `apps[].tables[].columns[].create_new_column` | boolean | No | Create this column in the existing table. Only for a table whose app lets Stacksync create columns (`can_create_columns` in the app schema read); the paired column must exist. |
| `apps[].tables[].columns[].external_column_type` | string | No | The type of a column Stacksync creates (a column of a table being created, or one with `create_new_column`), one of the app's types (for example `postgres_text`); left out: the app's default type for the paired column's type, an array becoming json. |
| `apps[].rate_limit` | object (SyncRateLimit) | No | The most requests Stacksync makes to the app in a period |
| `apps[].rate_limit.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `apps[].rate_limit.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |
| `apps[].app_options` | object (SyncAppOptionsInput) | No | The options of an app in the sync; unknown fields are refused, on an edit a field left out keeps its stored value |
| `apps[].app_options.delete_protection` | boolean, default false | No | True to keep deletes from reaching this app (set on every table of the app) |
| `apps[].app_options.enable_detect_schema_changes` | boolean | No | True to detect tables and columns created or deleted in this app; detection starts when the sync is switched on |
| `apps[].app_options.detect_schema_changes_frequency_in_seconds` | integer (1800 \| 3600 \| 21600 \| 43200 \| 86400) | No | How often schema changes are detected, in seconds: 30 minutes, 1, 6, 12 or 24 hours (an hour when left out). A value the sync already stores is kept when sent back unchanged |
| `apps[].app_options.propagate_table_creations_to_target_app` | boolean | No | True to add a table created in this app to the other app and sync it |
| `apps[].app_options.excluded_external_table_names` | array of string | No | Table names never added by `propagate_table_creations_to_target_app` |
| `apps[].app_options.excluded_external_table_names_regexes` | array of string | No | Regular expressions of table names never added by `propagate_table_creations_to_target_app` |
| `apps[].app_options.auto_unsync_deleted_tables` | boolean | No | True to stop syncing a table deleted from this app instead of pausing the sync |
| `apps[].app_options.default_table_options_for_new_tables` | object | No | The column settings a table added by `propagate_table_creations_to_target_app` starts with |
| `apps[].app_options.default_table_options_for_new_tables.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `apps[].app_options.default_table_options_for_new_tables.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `base_resource_id` | string, pattern `^[A-Za-z0-9_]{1,60}$` | No | The stable id of the sync |
| `base_status` | string | No | Accepted and stored as given; leave it out |
| `validate_only` | boolean, default false | No | Run every check of the edit, including reading the apps, and answer the sync as it would be stored without changing it |

## Returns

### 200 The sync after the edit (with `validate_only`, as it would be stored)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (SyncSchema) | Yes | A sync as a create or an edit answers it (the mapping, not the settings: read the sync for those) |
| `data.base_id` | string (uuid) | No | The sync; absent from a `validate_only` create, which creates none |
| `data.base_name` | string | Yes | The name of the sync |
| `data.base_region` | string (besg \| usnv) | Yes | The data region of the sync |
| `data.base_resource_id` | string | No | The stable id of the sync |
| `data.base_status` | string | No | The state of the sync when it was sent |
| `data.apps` | array of object (SyncSchemaApp), exactly 2 items | Yes | The two apps |
| `data.apps[].app_id` | string | Yes | The id of the app inside the sync |
| `data.apps[].connection_id` | string (uuid) | Yes | The connection of the app |
| `data.apps[].rate_limit` | object (SyncRateLimit) | No | The most requests Stacksync makes to the app in a period |
| `data.apps[].rate_limit.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `data.apps[].rate_limit.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |
| `data.apps[].tables` | array of object (SyncSchemaTable) | Yes | The synced tables |
| `data.apps[].tables[].table_name` | string | Yes | The name of the table in the app |
| `data.apps[].tables[].table_mapping_id` | string | Yes | The id shared by the two tables of a pair |
| `data.apps[].tables[].sync_direction` | string (bidirectional \| incoming \| outgoing) | Yes | The direction of the table |
| `data.apps[].tables[].columns` | array of object (SyncSchemaColumn) | Yes | The synced columns |
| `data.apps[].tables[].columns[].column_name` | string | Yes | The name of the column in the app, after renames |
| `data.apps[].tables[].columns[].column_mapping_id` | string | Yes | The id shared by the two columns of a pair |
| `data.apps[].tables[].columns[].column_sync_direction` | string (bidirectional \| incoming \| outgoing) | No | The direction of this column in this app |
| `data.apps[].tables[].columns[].external_column_type` | string | No | The app's type of the column (for example `postgres_text`) |
| `data.apps[].tables[].table_options` | object (SyncTableOptions) | No | The associations and schema propagation settings of the table that are set; send them back unchanged with an edit to keep them |
| `data.apps[].tables[].table_options.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data.apps[].tables[].table_options.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].tables[].table_options.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].tables[].table_options.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |
| `data.apps[].tables[].table_options.associations` | array of object (SyncAssociation) | No |  |
| `data.apps[].tables[].table_options.associations[].child_external_column_read_id_holding_parent_association_key` | string | Yes | The column of this table, by its read id, holding the key of the referenced record |
| `data.apps[].tables[].table_options.associations[].child_internal_column_id_holding_parent_native_record_id` | string | Yes | The `column_mapping_id` of this table's synced column the referenced record's id is written into |
| `data.apps[].tables[].table_options.associations[].parent_internal_table_id` | string | Yes | The `table_mapping_id` of the referenced table |
| `data.apps[].tables[].table_options.associations[].parent_internal_column_id_holding_native_record_id` | string | Yes | The `column_mapping_id` of the referenced table's column holding its record id |
| `data.apps[].tables[].table_options.associations[].parent_internal_column_id_holding_association_key` | string | Yes | The `column_mapping_id` of the referenced table's column holding the key this table refers to |
| `data.apps[].tables[].full_table_scan_frequency_in_seconds` | integer \| null | No | Only on a table with formula fields (Salesforce): how often, in seconds, every record is read again to catch formula changes; null for never. Read only here: set it with POST /bases/{base_id}/apps/{app_id}/full-table-scan-frequency |
| `data.apps[].app_options` | object (SyncAppOptions) | No | The schema propagation settings of the app that are set; send them back unchanged with an edit to keep them |
| `data.apps[].app_options.enable_detect_schema_changes` | boolean | No | True to detect tables and columns created or deleted in this app; detection starts when the sync is switched on |
| `data.apps[].app_options.detect_schema_changes_frequency_in_seconds` | integer, at least 1 | No | How often schema changes are detected, in seconds (an hour when left out) |
| `data.apps[].app_options.propagate_table_creations_to_target_app` | boolean | No | True to add a table created in this app to the other app and sync it |
| `data.apps[].app_options.excluded_external_table_names` | array of string | No | Table names never added by `propagate_table_creations_to_target_app` |
| `data.apps[].app_options.excluded_external_table_names_regexes` | array of string | No | Regular expressions of table names never added by `propagate_table_creations_to_target_app` |
| `data.apps[].app_options.auto_unsync_deleted_tables` | boolean | No | True to stop syncing a table deleted from this app instead of pausing the sync |
| `data.apps[].app_options.default_table_options_for_new_tables` | object | No | The column settings a table added by `propagate_table_creations_to_target_app` starts with |
| `data.apps[].app_options.default_table_options_for_new_tables.propagate_column_creations_to_target_app` | boolean | No | True to add a column created in this table to the paired table and sync it |
| `data.apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names` | array of string | No | Column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].app_options.default_table_options_for_new_tables.excluded_external_column_names_regexes` | array of string | No | Regular expressions of column names never added by `propagate_column_creations_to_target_app` |
| `data.apps[].app_options.default_table_options_for_new_tables.auto_unsync_deleted_columns` | boolean | No | True to stop syncing a column deleted from this table instead of pausing the sync |

## Example request

```bash
curl -X PUT "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
  "base_name": "Salesforce accounts to Postgres",
  "base_region": "usnv",
  "apps": [
    {
      "app_id": "3f9a1c2e",
      "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
      "tables": [
        {
          "table_name": "Account",
          "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
          "sync_direction": "outgoing",
          "columns": [
            {
              "column_name": "Name",
              "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
            }
          ]
        }
      ]
    },
    {
      "app_id": "b71d04e5",
      "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
      "tables": [
        {
          "table_name": "accounts",
          "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
          "sync_direction": "incoming",
          "columns": [
            {
              "column_name": "name",
              "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d"
            }
          ]
        }
      ]
    }
  ]
}'
```

## Example response (200)

```json
{
  "data": {
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
    "base_name": "Salesforce accounts to Postgres",
    "base_region": "usnv",
    "base_resource_id": "salesforce_accounts_to_postgres",
    "apps": [
      {
        "app_id": "3f9a1c2e",
        "connection_id": "c7d8e9f0-2a3b-4c5d-9e6f-7a8b9c0d1e2f",
        "tables": [
          {
            "table_name": "Account",
            "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
            "sync_direction": "outgoing",
            "columns": [
              {
                "column_name": "Name",
                "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d",
                "external_column_type": "salesforce_string"
              }
            ]
          }
        ]
      },
      {
        "app_id": "b71d04e5",
        "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
        "tables": [
          {
            "table_name": "accounts",
            "table_mapping_id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
            "sync_direction": "incoming",
            "columns": [
              {
                "column_name": "name",
                "column_mapping_id": "1a2b3c4d-5e6f-4a7b-9c8d-0e1f2a3b4c5d",
                "external_column_type": "postgres_text"
              }
            ]
          }
        ]
      }
    ]
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The body is not valid JSON or not an object; `base_id` in the body differs from the path (`Invalid Request`); a required field is missing, of the wrong type or not allowed (`Invalid Input`): `base_id`, `base_name`, `base_region`, two `apps` each with `app_id`, `connection_id` and `tables`; an `app_id` the sync does not hold; the apps, tables or columns do not pair; a table or column does not exist in its app; a rate limit or primary key is invalid; the sync does not exist (`Error editing base`: `Base not found`); the app refused the credentials or could not be reached; the edit failed (`Error editing base`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Rename a sync

> Change the name of a sync. The name must follow the name rule and be free in the workspace. Send `validate_only: true` to check the name without renaming.

Source: https://docs.stacksync.com/api-reference/syncs/rename_sync

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/update`

- Operation: `rename_sync`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The new name

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `base_name` | string | Yes | The new name. 3 to 63 characters: unaccented letters (A-Z, a-z), numbers, underscores, dashes and spaces only; unique in the workspace |
| `validate_only` | boolean, default false | No | Run every check of the write and answer without writing: a refused write answers the error it would answer |

## Returns

### 200 The sync renamed

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string | Yes | `Base name updated successfully` |
| `base_id` | string (uuid) | Yes | The sync |

### 204 Every check passed and nothing was written (`validate_only: true`)

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/update?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "base_name": "Salesforce accounts to Postgres - production"
}'
```

## Example response (200)

```json
{
  "message": "Base name updated successfully",
  "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_name` is missing, not a string, not 3 to 63 characters or holds a character outside letters, numbers, underscores, dashes and spaces (`Invalid Request Body`); `validate_only` is not a boolean; another sync of the workspace has this name (`Validation Error`); no sync with this id exists in the workspace (`Error updating base`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Get the status of a sync

> Read the state of a sync and whether an initial full read (backfill) is still running.

Source: https://docs.stacksync.com/api-reference/syncs/get_sync_status

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/status`

- Operation: `get_sync_status`
- Resource: Syncs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The state of the sync

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (SyncStatus) | Yes | The state of a sync |
| `data.base_id` | string (uuid) | Yes | The sync |
| `data.base_status` | string | Yes | The state of the sync: `running`, `paused`, `processing` or an error state set by the platform |
| `data.backfill_in_progress` | boolean | Yes | Whether an initial full read (backfill) of a table is still running |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/status?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": {
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
    "base_status": "running",
    "backfill_in_progress": false
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the state could not be read (`Error retrieving base status`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace or it was deleted (`Base not found`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Switch a sync on or off

> Start or pause a sync. The sync answers in state `processing` while it starts or stops; read its status to follow. A sync switched off can be switched on again only after a short wait, which the error names in seconds.

Source: https://docs.stacksync.com/api-reference/syncs/switch_sync

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/switch`

- Operation: `switch_sync`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync (its presence is checked; the value is used as given) |

## Request body

`application/json`. The switch to apply

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `switch_mode` | string (ON \| OFF) | Yes | `ON` to start syncing, `OFF` to pause |

## Returns

### 200 The sync after the switch

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (SwitchedSync) | Yes | The sync after the switch |
| `data.base_id` | string (uuid) | Yes | The sync |
| `data.switch_mode` | string (ON \| OFF) | Yes | The switch applied |
| `data.base_status` | string | Yes | The state of the sync right after the switch (`processing` while it starts or stops) |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/switch?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "switch_mode": "ON"
}'
```

## Example response (200)

```json
{
  "data": {
    "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
    "switch_mode": "ON",
    "base_status": "processing"
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing; the body is not valid JSON; `switch_mode` is missing or not `ON` or `OFF` (`Invalid Request Body`); the sync was switched off too recently to switch on (`Minimum switch on time has not passed`, the message names the seconds left); the switch failed (`Error setting base status to processing`, or the platform's error) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace (`Base not found`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Set delete protection of an app

> Turn delete protection on or off for one app of the sync. With it on, a record deleted in the other app is kept in this app. Turning it off releases the deletes held back so far.

Source: https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/delete-protection`

- Operation: `set_sync_app_delete_protection`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `app_id` | string | Yes | One of the two apps of the sync, by its app_id (read it from the sync) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The setting to apply

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | string (ON \| OFF) | Yes | `ON` keeps deletes from reaching the app, `OFF` lets them through again |

## Returns

### 200 Delete protection set

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | `Successfully Toggled Delete Protection for app` |
| `app_id` | string | Yes | The app |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/delete-protection?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "ON"
}'
```

## Example response (200)

```json
{
  "msg": "Successfully Toggled Delete Protection for app",
  "app_id": "b71d04e5"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `action` is not `ON` or `OFF` (`Invalid action`); `base_id` is not a UUID; `app_id` is not an app of the sync (`Invalid app_id`); the held-back deletes could not be released when turning it off (`Error notifying schedulers of delete protection being disabled`, protection stays on) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set the rate limit of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# Set the rate limit of an app

> Set the most requests Stacksync makes to one app of the sync per period. The sync may stay on. Leave rate limits at Stacksync's default unless the app asks for less.

Source: https://docs.stacksync.com/api-reference/syncs/set_sync_app_rate_limit

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/rate-limit`

- Operation: `set_sync_app_rate_limit`
- Resource: Syncs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `app_id` | string | Yes | One of the two apps of the sync, by its app_id (read it from the sync) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The rate limit

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `frequency` | integer (1 \| 60 \| 3600 \| 86400), default 1 | No | The period of the rate in seconds: 1 (per second), 60, 3600 or 86400; per second when left out |

## Returns

### 200 The rate limit stored

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (SyncRateLimit) | Yes | The most requests Stacksync makes to the app in a period |
| `data.rate` | integer, 1 to 2147483647 | Yes | The number of requests allowed per period, 1 to 2147483647 |
| `data.frequency` | integer (1 \| 60 \| 3600 \| 86400) | Yes | The period of the rate in seconds: 1 (per second), 60 (per minute), 3600 (per hour) or 86400 (per day) |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/apps/{app_id}/rate-limit?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "rate": 20,
  "frequency": 1
}'
```

## Example response (200)

```json
{
  "data": {
    "rate": 20,
    "frequency": 1
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `rate` is missing or not an integer (`Invalid Request Body`); `rate` is below 1 or above 2147483647, or `frequency` is not 1, 60, 3600 or 86400 (`Error validating rate limit`); the sync does not exist in the workspace (`Error retrieving base schema`); `app_id` is not an app of the sync (`Error retrieving app schema`); the rate limit could not be stored (`Error updating the app rate limit`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List syncs](https://docs.stacksync.com/api-reference/syncs/list_syncs)
- [Get a sync](https://docs.stacksync.com/api-reference/syncs/get_sync)
- [Get the status of a sync](https://docs.stacksync.com/api-reference/syncs/get_sync_status)
- [Get sync metrics](https://docs.stacksync.com/api-reference/syncs/get_sync_metrics)
- [Get sync diagnostics](https://docs.stacksync.com/api-reference/syncs/get_sync_diagnostics)
- [Get association change capture status](https://docs.stacksync.com/api-reference/syncs/get_sync_association_cdc_status)
- [Create a sync](https://docs.stacksync.com/api-reference/syncs/create_sync)
- [Update sync settings](https://docs.stacksync.com/api-reference/syncs/update_sync_settings)
- [Edit a sync](https://docs.stacksync.com/api-reference/syncs/edit_sync)
- [Delete a sync](https://docs.stacksync.com/api-reference/syncs/delete_sync)
- [Rename a sync](https://docs.stacksync.com/api-reference/syncs/rename_sync)
- [Switch a sync on or off](https://docs.stacksync.com/api-reference/syncs/switch_sync)
- [Set the change capture method](https://docs.stacksync.com/api-reference/syncs/set_sync_app_cdc_method)
- [Set Salesforce Bulk API access](https://docs.stacksync.com/api-reference/syncs/set_sync_app_bulk_api_access)
- [Set delete protection of an app](https://docs.stacksync.com/api-reference/syncs/set_sync_app_delete_protection)
- [Set the Salesforce full table scan frequency](https://docs.stacksync.com/api-reference/syncs/set_sync_app_full_table_scan_frequency)

# List workflows

> The workflows of the workspace the caller sees on the web app's Resources page (their own and those shared with the workspace), newest first, one page per region (or of the region asked for). Optionally only the workflows directly in a folder, or those whose name or id contains a text.

Source: https://docs.stacksync.com/api-reference/workflows/list_workflows

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/`

- Operation: `list_workflows`
- Resource: Workflows
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) \| null | No | Region to filter workflows by. If not provided, all regions will be included. |
| `offset` | integer \| null, default 0 | No | Offset for pagination. Used to skip a number of workflows. |
| `limit` | integer, 1 to 200, default 20 | No | Maximum number of workflows of each region, at most 200 |
| `folder_id` | string \| null, at least 1 characters | No | Only the workflows directly in this folder |
| `search` | string \| null, 1 to 200 characters | No | Only the workflows whose name, id or resource id contains this text |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflows` | array of object (WorkflowListItem) | Yes |  |
| `workflows[].workflow_id` | string | Yes |  |
| `workflows[].workflow_name` | string | Yes |  |
| `workflows[].workflow_resource_id` | string | Yes |  |
| `workflows[].workflow_status` | string (running \| paused \| deleted) | Yes |  |
| `workflows[].workspace_id` | integer | Yes |  |
| `workflows[].is_shared_with_workspace` | boolean \| null | No |  |
| `workflows[].module_app_type_display_list` | array of string \| null | No |  |
| `workflows[].parent_folders` | array of object (ParentFolderModel) \| null | No |  |
| `workflows[].parent_folders[].parent_folder_id` | string (uuid) | Yes |  |
| `workflows[].parent_folders[].type` | string (primary \| shortcut) | Yes |  |
| `workflows[].created_by` | integer | Yes |  |
| `workflows[].created_time` | string | Yes |  |
| `workflows[].last_modified_by` | integer | Yes |  |
| `workflows[].last_modified_time` | string | Yes |  |
| `workflows[].region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "workflows": [
    {
      "workflow_id": "<workflow_id>",
      "workflow_name": "<workflow_name>",
      "workflow_resource_id": "<workflow_resource_id>",
      "workflow_status": "running",
      "workspace_id": 0,
      "is_shared_with_workspace": false,
      "module_app_type_display_list": [
        "<module_app_type_display_list>"
      ],
      "parent_folders": [
        {
          "parent_folder_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
          "type": "primary"
        }
      ],
      "created_by": 0,
      "created_time": "<created_time>",
      "last_modified_by": 0,
      "last_modified_time": "<last_modified_time>",
      "region": "besg"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Get workflow

> A version of a workflow (the latest when no version is given) with its document, the workflow's region, and the URLs that run its webhook trigger steps.

Source: https://docs.stacksync.com/api-reference/workflows/get_workflow

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/`

- Operation: `get_workflow`
- Resource: Workflows
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) \| null | No | Region to get the workflow from. If not provided, multiple regions will be searched. To increase performance, it is recommended to provide a region. |
| `version` | string \| null | No | Version of the workflow to get. If not provided, the latest version will be returned. |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow` | object (WorkflowVersion) | Yes | A version of a workflow, as the documented "Get workflow" answers it; workflow_schema is the workflow document |
| `workflow.workflow_id` | string | Yes |  |
| `workflow.workflow_version` | string | Yes |  |
| `workflow.workflow_status` | string | Yes |  |
| `workflow.is_draft` | boolean | Yes |  |
| `workflow.is_deployed` | boolean | Yes |  |
| `workflow.workflow_schema` | object (WorkflowSchemaModel) \| null | No |  |
| `workflow.workflow_schema.workflow_execution_timeout` | integer \| null, default 300 | No |  |
| `workflow.workflow_schema.workflow_module_execution_timeout` | integer \| null, default 300 | No |  |
| `workflow.workflow_schema.return_workflow_module_instance_ids` | array of string \| null | No |  |
| `workflow.workflow_schema.modules` | array of object (WorkflowSchemaModuleModel) | Yes |  |
| `workflow.workflow_schema.modules[].name` | string | Yes |  |
| `workflow.workflow_schema.modules[].workflow_module_instance_id` | string | Yes |  |
| `workflow.workflow_schema.modules[].module_id` | string | Yes |  |
| `workflow.workflow_schema.modules[].description` | string \| null | No |  |
| `workflow.workflow_schema.modules[].properties` | object | Yes |  |
| `workflow.workflow_schema.modules[].connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `workflow.workflow_schema.modules[].module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `workflow.workflow_schema.modules[].module_options.patches` | object \| null | No |  |
| `workflow.workflow_schema.modules[].module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `workflow.workflow_schema.modules[].module_options.layout.group_module_instance_id` | string \| null | No |  |
| `workflow.workflow_schema.modules[].module_options.enable_error_handling` | boolean \| null | No |  |
| `workflow.workflow_schema.modules[].module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `workflow.workflow_schema.modules[].error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `workflow.workflow_schema.modules[].error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `workflow.workflow_schema.modules[].error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `workflow.workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `workflow.workflow_schema.modules[].error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `workflow.workflow_schema.modules[].error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `workflow.workflow_schema.modules[].error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `workflow.workflow_schema.edges` | array of object (WorkflowSchemaEdgeModel) | Yes |  |
| `workflow.workflow_schema.edges[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `workflow.workflow_schema.edges[].source.handle_id` | string \| null | No |  |
| `workflow.workflow_schema.edges[].source.workflow_module_instance_id` | string | Yes |  |
| `workflow.workflow_schema.edges[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `workflow.workflow_schema.edges[].target.handle_id` | string \| null | No |  |
| `workflow.workflow_schema.edges[].target.workflow_module_instance_id` | string | Yes |  |
| `workflow.workflow_schema.edges[].edge_id` | string | Yes |  |
| `workflow.options` | object \| null | No |  |
| `workflow.created_by` | integer | Yes |  |
| `workflow.created_time` | string | Yes |  |
| `workflow.last_modified_by` | integer | Yes |  |
| `workflow.last_modified_time` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `webhook_triggers` | array of object (WebhookTrigger) | No | The webhook trigger steps of the version and the URLs that run them |
| `webhook_triggers[].step_id` | string | Yes |  |
| `webhook_triggers[].draft` | object (WebhookTriggerRequest) \| null | Yes | Runs the latest draft; null when the latest version is not a draft holding the step |
| `webhook_triggers[].draft.url` | string | Yes | Queues a run of this version and answers its id |
| `webhook_triggers[].draft.method` | string | Yes | The HTTP method the step takes: GET or POST |
| `webhook_triggers[].draft.wait_for_result_url` | string \| null | Yes | When the step waits for the result: the URL answering the run's result instead of its id; null otherwise |
| `webhook_triggers[].draft.requires_api_key` | boolean | Yes | Send one of the step's API keys as `Authorization: Bearer <key>`; a key is shown once, when it is generated on the step in the web app |
| `webhook_triggers[].draft.query_parameter_names` | array of string | Yes | The query parameters the step reads |
| `webhook_triggers[].draft.header_names` | array of string | Yes | The headers the step reads |
| `webhook_triggers[].deployed` | object (WebhookTriggerRequest) \| null | Yes | Runs the deployed version; null when no deployed version holds the step |
| `webhook_triggers[].deployed.url` | string | Yes | Queues a run of this version and answers its id |
| `webhook_triggers[].deployed.method` | string | Yes | The HTTP method the step takes: GET or POST |
| `webhook_triggers[].deployed.wait_for_result_url` | string \| null | Yes | When the step waits for the result: the URL answering the run's result instead of its id; null otherwise |
| `webhook_triggers[].deployed.requires_api_key` | boolean | Yes | Send one of the step's API keys as `Authorization: Bearer <key>`; a key is shown once, when it is generated on the step in the web app |
| `webhook_triggers[].deployed.query_parameter_names` | array of string | Yes | The query parameters the step reads |
| `webhook_triggers[].deployed.header_names` | array of string | Yes | The headers the step reads |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "workflow": {
    "workflow_id": "<workflow_id>",
    "workflow_version": "<workflow_version>",
    "workflow_status": "<workflow_status>",
    "is_draft": false,
    "is_deployed": false,
    "workflow_schema": {
      "workflow_execution_timeout": 300,
      "workflow_module_execution_timeout": 300,
      "return_workflow_module_instance_ids": [
        "<return_workflow_module_instance_ids>"
      ],
      "modules": [
        {
          "name": "<name>",
          "workflow_module_instance_id": "<workflow_module_instance_id>",
          "module_id": "<module_id>",
          "description": "<description>",
          "properties": {},
          "connections": [],
          "module_options": {
            "patches": {},
            "layout": {
              "group_module_instance_id": "<group_module_instance_id>"
            },
            "enable_error_handling": false,
            "workflow_module_execution_timeout": 0
          },
          "error_handling_strategy": {
            "conditions": [],
            "else_condition": {
              "retry_count": 0,
              "retry_interval": 0
            }
          }
        }
      ],
      "edges": [
        {
          "source": {
            "handle_id": "<handle_id>",
            "workflow_module_instance_id": "<workflow_module_instance_id>"
          },
          "target": {
            "handle_id": "<handle_id>",
            "workflow_module_instance_id": "<workflow_module_instance_id>"
          },
          "edge_id": "<edge_id>"
        }
      ]
    },
    "options": {},
    "created_by": 0,
    "created_time": "<created_time>",
    "last_modified_by": 0,
    "last_modified_time": "<last_modified_time>"
  },
  "region": "besg",
  "webhook_triggers": [
    {
      "step_id": "<step_id>",
      "draft": {
        "url": "<url>",
        "method": "<method>",
        "wait_for_result_url": "<wait_for_result_url>",
        "requires_api_key": false,
        "query_parameter_names": [
          "<query_parameter_names>"
        ],
        "header_names": [
          "<header_names>"
        ]
      },
      "deployed": {
        "url": "<url>",
        "method": "<method>",
        "wait_for_result_url": "<wait_for_result_url>",
        "requires_api_key": false,
        "query_parameter_names": [
          "<query_parameter_names>"
        ],
        "header_names": [
          "<header_names>"
        ]
      }
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# List workflow versions

> Every version of a workflow, newest first, as a JSON array; minimized=true leaves each version's document and options out.

Source: https://docs.stacksync.com/api-reference/workflows/list_workflow_versions

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/versions`

- Operation: `list_workflow_versions`
- Resource: Workflows
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Data region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them. |
| `minimized` | string \| null | No | true to leave each version's document and options out |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_version` | string | Yes |  |
| `workflow_status` | string | Yes |  |
| `is_draft` | boolean | Yes |  |
| `is_deployed` | boolean | Yes |  |
| `workflow_schema` | object (WorkflowSchemaModel) \| null | No |  |
| `workflow_schema.workflow_execution_timeout` | integer \| null, default 300 | No |  |
| `workflow_schema.workflow_module_execution_timeout` | integer \| null, default 300 | No |  |
| `workflow_schema.return_workflow_module_instance_ids` | array of string \| null | No |  |
| `workflow_schema.modules` | array of object (WorkflowSchemaModuleModel) | Yes |  |
| `workflow_schema.modules[].name` | string | Yes |  |
| `workflow_schema.modules[].workflow_module_instance_id` | string | Yes |  |
| `workflow_schema.modules[].module_id` | string | Yes |  |
| `workflow_schema.modules[].description` | string \| null | No |  |
| `workflow_schema.modules[].properties` | object | Yes |  |
| `workflow_schema.modules[].connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `workflow_schema.modules[].module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `workflow_schema.modules[].module_options.patches` | object \| null | No |  |
| `workflow_schema.modules[].module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `workflow_schema.modules[].module_options.layout.group_module_instance_id` | string \| null | No |  |
| `workflow_schema.modules[].module_options.enable_error_handling` | boolean \| null | No |  |
| `workflow_schema.modules[].module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `workflow_schema.modules[].error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `workflow_schema.modules[].error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy.retry_count` | integer, default 0 | No |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy.retry_interval` | integer, default 0 | No |  |
| `workflow_schema.modules[].error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `workflow_schema.modules[].error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `workflow_schema.modules[].error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `workflow_schema.edges` | array of object (WorkflowSchemaEdgeModel) | Yes |  |
| `workflow_schema.edges[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `workflow_schema.edges[].source.handle_id` | string \| null | No |  |
| `workflow_schema.edges[].source.workflow_module_instance_id` | string | Yes |  |
| `workflow_schema.edges[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `workflow_schema.edges[].target.handle_id` | string \| null | No |  |
| `workflow_schema.edges[].target.workflow_module_instance_id` | string | Yes |  |
| `workflow_schema.edges[].edge_id` | string | Yes |  |
| `options` | object \| null | No |  |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes |  |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/versions" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
[
  {
    "workflow_id": "<workflow_id>",
    "workflow_version": "<workflow_version>",
    "workflow_status": "<workflow_status>",
    "is_draft": false,
    "is_deployed": false,
    "workflow_schema": {
      "workflow_execution_timeout": 300,
      "workflow_module_execution_timeout": 300,
      "return_workflow_module_instance_ids": [
        "<return_workflow_module_instance_ids>"
      ],
      "modules": [
        {
          "name": "<name>",
          "workflow_module_instance_id": "<workflow_module_instance_id>",
          "module_id": "<module_id>",
          "description": "<description>",
          "properties": {},
          "connections": [],
          "module_options": {
            "patches": {},
            "layout": {
              "group_module_instance_id": "<group_module_instance_id>"
            },
            "enable_error_handling": false,
            "workflow_module_execution_timeout": 0
          },
          "error_handling_strategy": {
            "conditions": [],
            "else_condition": {
              "retry_count": 0,
              "retry_interval": 0
            }
          }
        }
      ],
      "edges": [
        {
          "source": {
            "handle_id": "<handle_id>",
            "workflow_module_instance_id": "<workflow_module_instance_id>"
          },
          "target": {
            "handle_id": "<handle_id>",
            "workflow_module_instance_id": "<workflow_module_instance_id>"
          },
          "edge_id": "<edge_id>"
        }
      ]
    },
    "options": {},
    "created_by": 0,
    "created_time": "<created_time>",
    "last_modified_by": 0,
    "last_modified_time": "<last_modified_time>"
  }
]
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Get workflow info

> The workflow itself: name, status (running or paused), sharing, folders, apps.

Source: https://docs.stacksync.com/api-reference/workflows/get_workflow_info

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/info`

- Operation: `get_workflow_info`
- Resource: Workflows
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_name` | string | Yes |  |
| `workflow_resource_id` | string | Yes |  |
| `workflow_status` | string (running \| paused \| deleted) | Yes |  |
| `workspace_id` | integer | Yes |  |
| `is_shared_with_workspace` | boolean | Yes |  |
| `module_app_type_display_list` | array of string \| null | No |  |
| `parent_folders` | array of object (ParentFolderModel) \| null | No |  |
| `parent_folders[].parent_folder_id` | string (uuid) | Yes |  |
| `parent_folders[].type` | string (primary \| shortcut) | Yes |  |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes |  |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/info?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "workflow_name": "<workflow_name>",
  "workflow_resource_id": "<workflow_resource_id>",
  "workflow_status": "running",
  "workspace_id": 0,
  "is_shared_with_workspace": false,
  "module_app_type_display_list": [
    "<module_app_type_display_list>"
  ],
  "parent_folders": [
    {
      "parent_folder_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "type": "primary"
    }
  ],
  "created_by": 0,
  "created_time": "<created_time>",
  "last_modified_by": 0,
  "last_modified_time": "<last_modified_time>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Create workflow

> Create a workflow with only its Input step, as the builder's New workflow does: its other steps are saved in its draft once it exists (PATCH /draft), which sets up their triggers. A document refused leaves no workflow behind.

Source: https://docs.stacksync.com/api-reference/workflows/create_workflow

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows`

- Operation: `create_workflow`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_name` | string, 1 to 200 characters | Yes |  |
| `workflow_resource_id` | string \| null, pattern `^[a-z0-9_]{1,60}$` | No | A human-readable id, unique in the workspace (lowercase letters, digits and _, at most 60); derived from the name when absent |
| `folder_id` | string \| null | No | The folder to create it in; the root when absent |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `document` | object (WorkflowSchemaModel) \| null | No | The first draft's document, holding only the Input step; an empty draft when absent |
| `document.workflow_execution_timeout` | integer \| null, default 300 | No |  |
| `document.workflow_module_execution_timeout` | integer \| null, default 300 | No |  |
| `document.return_workflow_module_instance_ids` | array of string \| null | No |  |
| `document.modules` | array of object (WorkflowSchemaModuleModel) | Yes |  |
| `document.modules[].name` | string | Yes |  |
| `document.modules[].workflow_module_instance_id` | string | Yes |  |
| `document.modules[].module_id` | string | Yes |  |
| `document.modules[].description` | string \| null | No |  |
| `document.modules[].properties` | object | Yes |  |
| `document.modules[].connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `document.modules[].module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `document.modules[].module_options.patches` | object \| null | No |  |
| `document.modules[].module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `document.modules[].module_options.layout.group_module_instance_id` | string \| null | No |  |
| `document.modules[].module_options.enable_error_handling` | boolean \| null | No |  |
| `document.modules[].module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `document.modules[].error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `document.modules[].error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `document.modules[].error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `document.modules[].error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `document.modules[].error_handling_strategy.conditions[].retry_policy.retry_count` | integer, default 0 | No |  |
| `document.modules[].error_handling_strategy.conditions[].retry_policy.retry_interval` | integer, default 0 | No |  |
| `document.modules[].error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `document.modules[].error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `document.modules[].error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `document.edges` | array of object (WorkflowSchemaEdgeModel) | Yes |  |
| `document.edges[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `document.edges[].source.handle_id` | string \| null | No |  |
| `document.edges[].source.workflow_module_instance_id` | string | Yes |  |
| `document.edges[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `document.edges[].target.handle_id` | string \| null | No |  |
| `document.edges[].target.workflow_module_instance_id` | string | Yes |  |
| `document.edges[].edge_id` | string | Yes |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_name` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "workflow_name": "<workflow_name>"
}'
```

## Example response (201)

```json
{
  "workflow_id": "<workflow_id>",
  "workflow_name": "<workflow_name>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Update workflow

> Rename a workflow, switch it on (running) or off (paused) with its schedules and sync triggers, or share it with the workspace.

Source: https://docs.stacksync.com/api-reference/workflows/update_workflow

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}`

- Operation: `update_workflow`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_name` | string \| null, 1 to 200 characters | No |  |
| `workflow_status` | string (running \| paused \| deleted) \| null | No | running switches the workflow on, paused off |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_name` | string | Yes |  |
| `workflow_resource_id` | string | Yes |  |
| `workflow_status` | string (running \| paused \| deleted) | Yes |  |
| `workspace_id` | integer | Yes |  |
| `is_shared_with_workspace` | boolean | Yes |  |
| `module_app_type_display_list` | array of string \| null | No |  |
| `parent_folders` | array of object (ParentFolderModel) \| null | No |  |
| `parent_folders[].parent_folder_id` | string (uuid) | Yes |  |
| `parent_folders[].type` | string (primary \| shortcut) | Yes |  |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes |  |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "workflow_name": "<workflow_name>"
}'
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "workflow_name": "<workflow_name>",
  "workflow_resource_id": "<workflow_resource_id>",
  "workflow_status": "running",
  "workspace_id": 0,
  "is_shared_with_workspace": false,
  "module_app_type_display_list": [
    "<module_app_type_display_list>"
  ],
  "parent_folders": [
    {
      "parent_folder_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "type": "primary"
    }
  ],
  "created_by": 0,
  "created_time": "<created_time>",
  "last_modified_by": 0,
  "last_modified_time": "<last_modified_time>",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Delete workflow

> Delete a workflow; its schedules and sync triggers stop.

Source: https://docs.stacksync.com/api-reference/workflows/delete_workflow

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}`

- Operation: `delete_workflow`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_name` | string | Yes |  |
| `workflow_resource_id` | string | Yes |  |
| `workflow_status` | string (running \| paused \| deleted) | Yes |  |
| `workspace_id` | integer | Yes |  |
| `is_shared_with_workspace` | boolean | Yes |  |
| `module_app_type_display_list` | array of string \| null | No |  |
| `parent_folders` | array of object (ParentFolderModel) \| null | No |  |
| `parent_folders[].parent_folder_id` | string (uuid) | Yes |  |
| `parent_folders[].type` | string (primary \| shortcut) | Yes |  |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes |  |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "workflow_name": "<workflow_name>",
  "workflow_resource_id": "<workflow_resource_id>",
  "workflow_status": "running",
  "workspace_id": 0,
  "is_shared_with_workspace": false,
  "module_app_type_display_list": [
    "<module_app_type_display_list>"
  ],
  "parent_folders": [
    {
      "parent_folder_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "type": "primary"
    }
  ],
  "created_by": 0,
  "created_time": "<created_time>",
  "last_modified_by": 0,
  "last_modified_time": "<last_modified_time>",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Duplicate workflow

> Copy a version of a workflow into a new workflow (its first draft), in the same or another region, with its schedules.

Source: https://docs.stacksync.com/api-reference/workflows/duplicate_workflow

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/duplicate`

- Operation: `duplicate_workflow`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_name` | string, 1 to 200 characters | Yes |  |
| `is_shared_with_workspace` | boolean \| null | No |  |
| `version` | string \| null | No | The version copied; the latest when absent |
| `copy_region` | string (besg \| usnv) \| null | No | The region of the copy; the workflow's region when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_name` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/duplicate?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "workflow_name": "<workflow_name>"
}'
```

## Example response (201)

```json
{
  "workflow_id": "<workflow_id>",
  "workflow_name": "<workflow_name>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Save workflow draft

> Save a whole document over the latest draft, as the builder's Save does: the triggers of the new and changed steps (schedules, email, Gmail, queue consumers, sync triggers) are set up first, then the document is saved. A deployed latest version needs a new draft first (POST /workflows/<workflow_id>/drafts).

Source: https://docs.stacksync.com/api-reference/workflows/save_workflow_draft

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/draft`

- Operation: `save_workflow_draft`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `document` | object (WorkflowSchemaModel) | Yes |  |
| `document.workflow_execution_timeout` | integer \| null, default 300 | No |  |
| `document.workflow_module_execution_timeout` | integer \| null, default 300 | No |  |
| `document.return_workflow_module_instance_ids` | array of string \| null | No |  |
| `document.modules` | array of object (WorkflowSchemaModuleModel) | Yes |  |
| `document.modules[].name` | string | Yes |  |
| `document.modules[].workflow_module_instance_id` | string | Yes |  |
| `document.modules[].module_id` | string | Yes |  |
| `document.modules[].description` | string \| null | No |  |
| `document.modules[].properties` | object | Yes |  |
| `document.modules[].connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `document.modules[].module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `document.modules[].module_options.patches` | object \| null | No |  |
| `document.modules[].module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `document.modules[].module_options.layout.group_module_instance_id` | string \| null | No |  |
| `document.modules[].module_options.enable_error_handling` | boolean \| null | No |  |
| `document.modules[].module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `document.modules[].error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `document.modules[].error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `document.modules[].error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `document.modules[].error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `document.modules[].error_handling_strategy.conditions[].retry_policy.retry_count` | integer, default 0 | No |  |
| `document.modules[].error_handling_strategy.conditions[].retry_policy.retry_interval` | integer, default 0 | No |  |
| `document.modules[].error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `document.modules[].error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `document.modules[].error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `document.edges` | array of object (WorkflowSchemaEdgeModel) | Yes |  |
| `document.edges[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `document.edges[].source.handle_id` | string \| null | No |  |
| `document.edges[].source.workflow_module_instance_id` | string | Yes |  |
| `document.edges[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `document.edges[].target.handle_id` | string \| null | No |  |
| `document.edges[].target.workflow_module_instance_id` | string | Yes |  |
| `document.edges[].edge_id` | string | Yes |  |
| `expected_version` | string \| null | No | The draft version you read; refused with 409 when the draft is another one |
| `expected_last_modified_time` | string (date-time) \| null | No | The last_modified_time of the draft you read; refused with 409 when it changed |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/draft?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "document": {
    "edges": [
      {
        "edge_id": "input-wait_5_seconds",
        "source": {
          "workflow_module_instance_id": "input"
        },
        "target": {
          "workflow_module_instance_id": "wait_5_seconds"
        }
      }
    ],
    "modules": [
      {
        "module_id": "system-input-1",
        "name": "Input",
        "properties": {},
        "workflow_module_instance_id": "input"
      },
      {
        "module_id": "system-wait-1",
        "name": "Wait 5 seconds",
        "properties": {
          "wait_for": 5
        },
        "workflow_module_instance_id": "wait_5_seconds"
      }
    ]
  }
}'
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Delete workflow draft step

> Remove one step from the latest draft with every edge touching it; a loop or try/catch step goes with the steps it holds. A trigger step is disconnected as the builder does, then the draft is saved; a draft saved since you read it is refused with 409.

Source: https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/draft/steps/{step_id}`

- Operation: `delete_workflow_draft_step`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |
| `step_id` | string | Yes | The step, its workflow_module_instance_id in the workflow document. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |
| `expected_last_modified_time` | string (date-time) \| null | No | The last_modified_time of the draft you read; refused with 409 when it changed |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |
| `deleted_step_ids` | array of string | Yes | The step deleted and, for a loop or try/catch step, the steps it held |

### 204 No Content

No body.

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/draft/steps/{step_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ],
  "deleted_step_ids": [
    "<deleted_step_ids>"
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Save workflow draft step

> Add one step to the latest draft or replace it, with the edges to add and remove, as the builder's node Save does: the step's trigger is set up, then the draft is saved. A draft saved since you read it is refused with 409, never overwritten.

Source: https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step

`PUT https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/draft/steps/{step_id}`

- Operation: `save_workflow_draft_step`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |
| `step_id` | string | Yes | The step, its workflow_module_instance_id in the workflow document. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `step` | object (WorkflowSchemaModuleModel) | Yes | The step as the document holds it, added or replacing the stored one; its workflow_module_instance_id is the path's step_id |
| `step.name` | string | Yes |  |
| `step.workflow_module_instance_id` | string | Yes |  |
| `step.module_id` | string | Yes |  |
| `step.description` | string \| null | No |  |
| `step.properties` | object | Yes |  |
| `step.connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `step.module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `step.module_options.patches` | object \| null | No |  |
| `step.module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `step.module_options.layout.group_module_instance_id` | string \| null | No |  |
| `step.module_options.enable_error_handling` | boolean \| null | No |  |
| `step.module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `step.error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `step.error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `step.error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `step.error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `step.error_handling_strategy.conditions[].retry_policy.retry_count` | integer, default 0 | No |  |
| `step.error_handling_strategy.conditions[].retry_policy.retry_interval` | integer, default 0 | No |  |
| `step.error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `step.error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `step.error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `edges_to_add` | array of object (WorkflowSchemaEdgeModel) | No | Edges added to the draft; both ends are steps of the draft once this step is saved |
| `edges_to_add[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `edges_to_add[].source.handle_id` | string \| null | No |  |
| `edges_to_add[].source.workflow_module_instance_id` | string | Yes |  |
| `edges_to_add[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `edges_to_add[].target.handle_id` | string \| null | No |  |
| `edges_to_add[].target.workflow_module_instance_id` | string | Yes |  |
| `edges_to_add[].edge_id` | string | Yes |  |
| `edges_to_remove` | array of string | No | The edge_id of each edge removed from the draft |
| `expected_last_modified_time` | string (date-time) \| null | No | The last_modified_time of the draft you read; refused with 409 when it changed |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |
| `step` | object (WorkflowSchemaModuleModel) | Yes |  |
| `step.name` | string | Yes |  |
| `step.workflow_module_instance_id` | string | Yes |  |
| `step.module_id` | string | Yes |  |
| `step.description` | string \| null | No |  |
| `step.properties` | object | Yes |  |
| `step.connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `step.module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `step.module_options.patches` | object \| null | No |  |
| `step.module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `step.module_options.layout.group_module_instance_id` | string \| null | No |  |
| `step.module_options.enable_error_handling` | boolean \| null | No |  |
| `step.module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `step.error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `step.error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `step.error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `step.error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `step.error_handling_strategy.conditions[].retry_policy.retry_count` | integer, default 0 | No |  |
| `step.error_handling_strategy.conditions[].retry_policy.retry_interval` | integer, default 0 | No |  |
| `step.error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `step.error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `step.error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `edges` | array of object (WorkflowSchemaEdgeModel) | Yes |  |
| `edges[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `edges[].source.handle_id` | string \| null | No |  |
| `edges[].source.workflow_module_instance_id` | string | Yes |  |
| `edges[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `edges[].target.handle_id` | string \| null | No |  |
| `edges[].target.workflow_module_instance_id` | string | Yes |  |
| `edges[].edge_id` | string | Yes |  |
| `webhook_trigger` | object (WebhookTrigger) \| null | No | For a webhook trigger step: the URLs that run it |
| `webhook_trigger.step_id` | string | Yes |  |
| `webhook_trigger.draft` | object (WebhookTriggerRequest) \| null | Yes | Runs the latest draft; null when the latest version is not a draft holding the step |
| `webhook_trigger.draft.url` | string | Yes | Queues a run of this version and answers its id |
| `webhook_trigger.draft.method` | string | Yes | The HTTP method the step takes: GET or POST |
| `webhook_trigger.draft.wait_for_result_url` | string \| null | Yes | When the step waits for the result: the URL answering the run's result instead of its id; null otherwise |
| `webhook_trigger.draft.requires_api_key` | boolean | Yes | Send one of the step's API keys as `Authorization: Bearer <key>`; a key is shown once, when it is generated on the step in the web app |
| `webhook_trigger.draft.query_parameter_names` | array of string | Yes | The query parameters the step reads |
| `webhook_trigger.draft.header_names` | array of string | Yes | The headers the step reads |
| `webhook_trigger.deployed` | object (WebhookTriggerRequest) \| null | Yes | Runs the deployed version; null when no deployed version holds the step |
| `webhook_trigger.deployed.url` | string | Yes | Queues a run of this version and answers its id |
| `webhook_trigger.deployed.method` | string | Yes | The HTTP method the step takes: GET or POST |
| `webhook_trigger.deployed.wait_for_result_url` | string \| null | Yes | When the step waits for the result: the URL answering the run's result instead of its id; null otherwise |
| `webhook_trigger.deployed.requires_api_key` | boolean | Yes | Send one of the step's API keys as `Authorization: Bearer <key>`; a key is shown once, when it is generated on the step in the web app |
| `webhook_trigger.deployed.query_parameter_names` | array of string | Yes | The query parameters the step reads |
| `webhook_trigger.deployed.header_names` | array of string | Yes | The headers the step reads |

### 204 No Content

No body.

## Example request

```bash
curl -X PUT "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/draft/steps/{step_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "edges_to_add": [
    {
      "edge_id": "input-wait_5_seconds",
      "source": {
        "workflow_module_instance_id": "input"
      },
      "target": {
        "workflow_module_instance_id": "wait_5_seconds"
      }
    }
  ],
  "step": {
    "module_id": "system-wait-1",
    "name": "Wait 5 seconds",
    "properties": {
      "wait_for": 5
    },
    "workflow_module_instance_id": "wait_5_seconds"
  }
}'
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ],
  "step": {
    "name": "<name>",
    "workflow_module_instance_id": "<workflow_module_instance_id>",
    "module_id": "<module_id>",
    "description": "<description>",
    "properties": {},
    "connections": [],
    "module_options": {
      "patches": {},
      "layout": {
        "group_module_instance_id": "<group_module_instance_id>"
      },
      "enable_error_handling": false,
      "workflow_module_execution_timeout": 0
    },
    "error_handling_strategy": {
      "conditions": [],
      "else_condition": {
        "retry_count": 0,
        "retry_interval": 0
      }
    }
  },
  "edges": [
    {
      "source": {
        "handle_id": "<handle_id>",
        "workflow_module_instance_id": "<workflow_module_instance_id>"
      },
      "target": {
        "handle_id": "<handle_id>",
        "workflow_module_instance_id": "<workflow_module_instance_id>"
      },
      "edge_id": "<edge_id>"
    }
  ],
  "webhook_trigger": {
    "step_id": "<step_id>",
    "draft": {
      "url": "<url>",
      "method": "<method>",
      "wait_for_result_url": "<wait_for_result_url>",
      "requires_api_key": false,
      "query_parameter_names": [
        "<query_parameter_names>"
      ],
      "header_names": [
        "<header_names>"
      ]
    },
    "deployed": {
      "url": "<url>",
      "method": "<method>",
      "wait_for_result_url": "<wait_for_result_url>",
      "requires_api_key": false,
      "query_parameter_names": [
        "<query_parameter_names>"
      ],
      "header_names": [
        "<header_names>"
      ]
    }
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)

# Create workflow draft

> Open a new editable draft as a copy of a version (the latest when none is given), as the web app's "New draft" does: each step's triggers are then updated for the new draft.

Source: https://docs.stacksync.com/api-reference/workflows/create_workflow_draft

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/drafts`

- Operation: `create_workflow_draft`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `from_version` | string \| null | No | The version copied into the new draft; the latest when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/drafts?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "from_version": "<from_version>"
}'
```

## Example response (201)

```json
{
  "workflow_id": "<workflow_id>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Deploy workflow

> Make a version live (the latest when none is given) and set up its triggers for it in the same request: webhooks, schedules, email, Gmail, queue consumers and sync triggers start using this version.

Source: https://docs.stacksync.com/api-reference/workflows/deploy_workflow

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/deployments`

- Operation: `deploy_workflow`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `version` | string \| null | No | The version deployed; the latest when absent |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |
| `version` | object (WorkflowVersionSummary) | Yes | A version without its document; step_ids lists its steps (workflow_module_instance_id) |
| `version.workflow_version` | string | Yes |  |
| `version.is_draft` | boolean | Yes |  |
| `version.is_deployed` | boolean | Yes |  |
| `version.last_modified_time` | string | Yes |  |
| `version.step_ids` | array of string | Yes |  |
| `triggers` | array of object (StepTrigger) | Yes |  |
| `triggers[].step_id` | string | Yes |  |
| `triggers[].status` | string (succeeded \| failed) | Yes | Whether what a step runs alongside the workflow (schedule, email route, Gmail watch, queue consumer...) is set up |
| `triggers[].msg` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/deployments?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "version": "<version>"
}'
```

## Example response (201)

```json
{
  "workflow_id": "<workflow_id>",
  "region": "besg",
  "version": {
    "workflow_version": "<workflow_version>",
    "is_draft": false,
    "is_deployed": false,
    "last_modified_time": "<last_modified_time>",
    "step_ids": [
      "<step_ids>"
    ]
  },
  "triggers": [
    {
      "step_id": "<step_id>",
      "status": "succeeded",
      "msg": "<msg>"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Update workflow options

> Merge options (the builder's canvas settings) into a version; a deployed version gets a new draft. Answers the latest version without its document.

Source: https://docs.stacksync.com/api-reference/workflows/update_workflow_options

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/options`

- Operation: `update_workflow_options`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `version` | string | Yes | The version whose options change; a deployed version gets a new draft |
| `options` | object | Yes | The builder's canvas settings, merged over the stored ones |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_id` | string | Yes |  |
| `workflow_version` | string | Yes |  |
| `workflow_status` | string | Yes |  |
| `is_draft` | boolean | Yes |  |
| `is_deployed` | boolean | Yes |  |
| `workflow_schema` | object (WorkflowSchemaModel) \| null | No |  |
| `workflow_schema.workflow_execution_timeout` | integer \| null, default 300 | No |  |
| `workflow_schema.workflow_module_execution_timeout` | integer \| null, default 300 | No |  |
| `workflow_schema.return_workflow_module_instance_ids` | array of string \| null | No |  |
| `workflow_schema.modules` | array of object (WorkflowSchemaModuleModel) | Yes |  |
| `workflow_schema.modules[].name` | string | Yes |  |
| `workflow_schema.modules[].workflow_module_instance_id` | string | Yes |  |
| `workflow_schema.modules[].module_id` | string | Yes |  |
| `workflow_schema.modules[].description` | string \| null | No |  |
| `workflow_schema.modules[].properties` | object | Yes |  |
| `workflow_schema.modules[].connections` | array of object (WorkflowModuleConnectionManagedModelByResourceId) \| object (WorkflowModuleConnectionManagedModelByName) \| object (WorkflowModuleConnectionUserDataModel), default [] | No |  |
| `workflow_schema.modules[].module_options` | object (WorkflowSchemaModuleOptionsModel) \| null | No |  |
| `workflow_schema.modules[].module_options.patches` | object \| null | No |  |
| `workflow_schema.modules[].module_options.layout` | object (WorkflowSchemaModuleOptionsLayoutModel) \| null | No |  |
| `workflow_schema.modules[].module_options.layout.group_module_instance_id` | string \| null | No |  |
| `workflow_schema.modules[].module_options.enable_error_handling` | boolean \| null | No |  |
| `workflow_schema.modules[].module_options.workflow_module_execution_timeout` | integer \| null | No |  |
| `workflow_schema.modules[].error_handling_strategy` | object (WorkflowModuleErrorStrategyModel) \| null | No |  |
| `workflow_schema.modules[].error_handling_strategy.conditions` | array of object (WorkflowModuleErrorStrategyConditionModel), default [] | No |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].condition` | object (WorkflowModuleConditionGroupModel) \| object (WorkflowModuleConditionValueModel) \| object (WorkflowModuleConditionComparatorModel) | Yes |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy` | object (WorkflowModuleErrorStrategyConditionActionModel) | Yes |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy.retry_count` | integer, default 0 | No |  |
| `workflow_schema.modules[].error_handling_strategy.conditions[].retry_policy.retry_interval` | integer, default 0 | No |  |
| `workflow_schema.modules[].error_handling_strategy.else_condition` | object (WorkflowModuleErrorStrategyConditionActionModel) \| null | No |  |
| `workflow_schema.modules[].error_handling_strategy.else_condition.retry_count` | integer, default 0 | No |  |
| `workflow_schema.modules[].error_handling_strategy.else_condition.retry_interval` | integer, default 0 | No |  |
| `workflow_schema.edges` | array of object (WorkflowSchemaEdgeModel) | Yes |  |
| `workflow_schema.edges[].source` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `workflow_schema.edges[].source.handle_id` | string \| null | No |  |
| `workflow_schema.edges[].source.workflow_module_instance_id` | string | Yes |  |
| `workflow_schema.edges[].target` | object (WorkflowSchemaEdgeHandleModel) | Yes |  |
| `workflow_schema.edges[].target.handle_id` | string \| null | No |  |
| `workflow_schema.edges[].target.workflow_module_instance_id` | string | Yes |  |
| `workflow_schema.edges[].edge_id` | string | Yes |  |
| `options` | object \| null | No |  |
| `created_by` | integer | Yes |  |
| `created_time` | string | Yes |  |
| `last_modified_by` | integer | Yes |  |
| `last_modified_time` | string | Yes |  |

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/options?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "version": "<version>",
  "options": {}
}'
```

## Example response (200)

```json
{
  "workflow_id": "<workflow_id>",
  "workflow_version": "<workflow_version>",
  "workflow_status": "<workflow_status>",
  "is_draft": false,
  "is_deployed": false,
  "workflow_schema": {
    "workflow_execution_timeout": 300,
    "workflow_module_execution_timeout": 300,
    "return_workflow_module_instance_ids": [
      "<return_workflow_module_instance_ids>"
    ],
    "modules": [
      {
        "name": "<name>",
        "workflow_module_instance_id": "<workflow_module_instance_id>",
        "module_id": "<module_id>",
        "description": "<description>",
        "properties": {},
        "connections": [],
        "module_options": {
          "patches": {},
          "layout": {
            "group_module_instance_id": "<group_module_instance_id>"
          },
          "enable_error_handling": false,
          "workflow_module_execution_timeout": 0
        },
        "error_handling_strategy": {
          "conditions": [],
          "else_condition": {
            "retry_count": 0,
            "retry_interval": 0
          }
        }
      }
    ],
    "edges": [
      {
        "source": {
          "handle_id": "<handle_id>",
          "workflow_module_instance_id": "<workflow_module_instance_id>"
        },
        "target": {
          "handle_id": "<handle_id>",
          "workflow_module_instance_id": "<workflow_module_instance_id>"
        },
        "edge_id": "<edge_id>"
      }
    ]
  },
  "options": {},
  "created_by": 0,
  "created_time": "<created_time>",
  "last_modified_by": 0,
  "last_modified_time": "<last_modified_time>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Run workflow](https://docs.stacksync.com/api-reference/workflows/run_workflow)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# Run workflow

> Run a workflow now from its input step's test data, replay a finished run (all steps, failed steps, failed steps and the steps after them, up to a step, from a step), or run one step. Follow the run with list-logs.

Source: https://docs.stacksync.com/api-reference/workflows/run_workflow

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/runs`

- Operation: `run_workflow`
- Resource: Workflows
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `mode` | string (run \| replay_all \| replay_failed \| replay_failed_and_dependents \| until_step \| step_only \| from_step), default "run" | No | run: a new run from the input step's test data; the replay modes need from_run_id |
| `version` | string \| null | No | The version run; the latest when absent |
| `from_run_id` | string \| null | No | The finished run whose data is replayed |
| `step_id` | string \| null | No | The step of the until_step, step_only and from_step modes |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `run_id` | string | Yes |  |
| `workflow_id` | string | Yes |  |
| `workflow_version` | string \| null | No |  |
| `created_time` | string \| null | No |  |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/{workflow_id}/runs?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "run"
}'
```

## Example response (201)

```json
{
  "run_id": "<run_id>",
  "workflow_id": "<workflow_id>",
  "workflow_version": "<workflow_version>",
  "created_time": "<created_time>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflows](https://docs.stacksync.com/api-reference/workflows/list_workflows)
- [List workflow versions](https://docs.stacksync.com/api-reference/workflows/list_workflow_versions)
- [Get workflow](https://docs.stacksync.com/api-reference/workflows/get_workflow)
- [Get workflow info](https://docs.stacksync.com/api-reference/workflows/get_workflow_info)
- [Create workflow](https://docs.stacksync.com/api-reference/workflows/create_workflow)
- [Create workflow draft](https://docs.stacksync.com/api-reference/workflows/create_workflow_draft)
- [Update workflow](https://docs.stacksync.com/api-reference/workflows/update_workflow)
- [Update workflow options](https://docs.stacksync.com/api-reference/workflows/update_workflow_options)
- [Delete workflow](https://docs.stacksync.com/api-reference/workflows/delete_workflow)
- [Delete workflow draft step](https://docs.stacksync.com/api-reference/workflows/delete_workflow_draft_step)
- [Deploy workflow](https://docs.stacksync.com/api-reference/workflows/deploy_workflow)
- [Duplicate workflow](https://docs.stacksync.com/api-reference/workflows/duplicate_workflow)
- [Save workflow draft](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft)
- [Save workflow draft step](https://docs.stacksync.com/api-reference/workflows/save_workflow_draft_step)

# List execution logs

> The runs of a workflow (or of several, options.workflows) matching the log explorer's query and time range, with the sections asked for (rows, count and chart, payload keys) and the cursors of the listing mode.

Source: https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/list-logs`

- Operation: `list_workflow_runs`
- Resource: Workflow runs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | any | No |  |
| `extra_columns` | any | No |  |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object \| null | No |  |
| `meta` | object \| null | No |  |
| `keys` | array of any \| null | No |  |
| `total_executions` | integer \| null | No |  |
| `next_cursor` | any | No |  |
| `prev_cursor` | any | No |  |
| `newest_cursor` | any | No |  |
| `oldest_cursor` | any | No |  |
| `has_more` | boolean \| null | No |  |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/list-logs?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "options": {
    "limit": 50,
    "query": "workflow.execution_status = '\''ERROR'\''",
    "sort": "desc",
    "time_range": [
      "2026-10-01T00:00:00Z",
      "2026-10-02T00:00:00Z"
    ]
  }
}'
```

## Example response (200)

```json
{
  "data": [
    {}
  ],
  "meta": {},
  "keys": [
    "<keys>"
  ],
  "total_executions": 0,
  "next_cursor": "<next_cursor>",
  "prev_cursor": "<prev_cursor>",
  "newest_cursor": "<newest_cursor>",
  "oldest_cursor": "<oldest_cursor>",
  "has_more": false
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 409 | Conflict | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List workflow run step logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs)
- [Get export capabilities](https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities)
- [Replay executions](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs)
- [Replay executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter)
- [Resolve executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter)

# List workflow run step logs

> Every log of the given runs, from each run's start to its end (one entry per step with its input and output), as a JSON array ordered by created_time.

Source: https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/logs/between`

- Operation: `list_workflow_run_logs`
- Resource: Workflow runs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required: without it the route answers 404 |
| `include_execution_ids` | string \| null | No | The runs, comma-separated UUIDs |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string \| null | No |  |
| `created_time` | any | No |  |
| `workflow_execution_id` | string \| null | No |  |
| `workflow_module_instance_id` | string \| null | No |  |
| `workflow_version` | string \| null | No |  |
| `log_type` | string \| null | No |  |
| `execution_status` | string \| null | No |  |
| `execution_duration` | integer \| null | No |  |
| `metadata` | any | No |  |
| `data` | any | No |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/logs/between?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
[
  {
    "id": "<id>",
    "created_time": "<created_time>",
    "workflow_execution_id": "<workflow_execution_id>",
    "workflow_module_instance_id": "<workflow_module_instance_id>",
    "workflow_version": "<workflow_version>",
    "log_type": "<log_type>",
    "execution_status": "<execution_status>",
    "execution_duration": 0,
    "metadata": "<metadata>",
    "data": "<data>"
  }
]
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List execution logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs)
- [Get export capabilities](https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities)
- [Replay executions](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs)
- [Replay executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter)
- [Resolve executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter)

# Get export capabilities

> Whether the workspace stores plaintext logs (an export then always includes the step logs) and the export limits.

Source: https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/export-capabilities`

- Operation: `get_workflow_run_export_capabilities`
- Resource: Workflow runs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `plaintext_logs_enabled` | boolean | Yes |  |
| `max_rows` | integer | Yes |  |
| `max_executions_with_logs` | integer | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/export-capabilities?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "plaintext_logs_enabled": false,
  "max_rows": 0,
  "max_executions_with_logs": 0
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List execution logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs)
- [List workflow run step logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs)
- [Replay executions](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs)
- [Replay executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter)
- [Resolve executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter)

# Replay executions

> Replay chosen runs (workflow_execution_ids, or a query) with a replay mode (metadata.run_mode_details.run_mode), each with its own version or the version given.

Source: https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/batch-create`

- Operation: `replay_workflow_runs`
- Resource: Workflow runs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workflow_execution_ids` | any | No |  |
| `query` | any | No |  |
| `query_string` | any | No |  |
| `search_options` | any | No |  |
| `metadata` | any | No |  |
| `workflow_version` | any | No |  |
| `workflow_trigger_module_id` | any | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `total_requested` | integer | Yes |  |
| `total_succeeded` | integer | Yes |  |
| `total_failed` | integer | Yes |  |
| `errors` | array of object (ReplayError) | Yes |  |
| `errors[].error` | string \| null | No |  |
| `errors[].message` | string \| null | No |  |
| `run_ids` | array of string, default [] | No |  |
| `resolved_count` | integer \| null | No |  |
| `replay_batch_id` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/batch-create?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "workflow_execution_ids": [
    "8d4f2a6c-1e3b-4c7a-9f05-6b2d8e1a3c47"
  ]
}'
```

## Example response (200)

```json
{
  "total_requested": 0,
  "total_succeeded": 0,
  "total_failed": 0,
  "errors": [
    {
      "error": "<error>",
      "message": "<message>"
    }
  ],
  "run_ids": [],
  "resolved_count": 0,
  "replay_batch_id": "<replay_batch_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 409 | Conflict | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List execution logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs)
- [List workflow run step logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs)
- [Get export capabilities](https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities)
- [Replay executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter)
- [Resolve executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter)

# Replay executions by filter

> Replay every failed run matching the log explorer's query and time range (refused above the cap).

Source: https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/batch-create-by-filter`

- Operation: `replay_workflow_runs_by_filter`
- Resource: Workflow runs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | any | No |  |
| `metadata` | any | No |  |
| `workflow_version` | any | No |  |
| `workflow_trigger_module_id` | any | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `total_requested` | integer | Yes |  |
| `total_succeeded` | integer | Yes |  |
| `total_failed` | integer | Yes |  |
| `errors` | array of object (ReplayError) | Yes |  |
| `errors[].error` | string \| null | No |  |
| `errors[].message` | string \| null | No |  |
| `run_ids` | array of string, default [] | No |  |
| `resolved_count` | integer \| null | No |  |
| `replay_batch_id` | string \| null | No |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/batch-create-by-filter?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "options": {
    "query": "workflow.execution_status = '\''ERROR'\''",
    "time_range": [
      "2026-10-01T00:00:00Z",
      "2026-10-02T00:00:00Z"
    ]
  }
}'
```

## Example response (200)

```json
{
  "total_requested": 0,
  "total_succeeded": 0,
  "total_failed": 0,
  "errors": [
    {
      "error": "<error>",
      "message": "<message>"
    }
  ],
  "run_ids": [],
  "resolved_count": 0,
  "replay_batch_id": "<replay_batch_id>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 409 | Conflict | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List execution logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs)
- [List workflow run step logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs)
- [Get export capabilities](https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities)
- [Replay executions](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs)
- [Resolve executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter)

# Resolve executions by filter

> Mark every failed run matching the log explorer's query and time range as resolved, with every replay of each.

Source: https://docs.stacksync.com/api-reference/workflows/runs/resolve_workflow_runs_by_filter

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/batch-resolve-by-filter`

- Operation: `resolve_workflow_runs_by_filter`
- Resource: Workflow runs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `workflow_id` | string (uuid) | Yes | The workflow. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string \| null | No | Region of the workflow: besg or usnv. Required, except when List workflow runs reads several workflows through options.workflows |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | any | No |  |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `resolved_count` | integer | Yes |  |
| `total_matched` | integer | Yes |  |
| `updated_execution_count` | integer \| null | No |  |
| `query_used` | string | Yes |  |
| `region` | string | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/workflows/id/{workflow_id}/executions/batch-resolve-by-filter?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "options": {
    "query": "workflow.execution_status = '\''ERROR'\''",
    "time_range": [
      "2026-10-01T00:00:00Z",
      "2026-10-02T00:00:00Z"
    ]
  }
}'
```

## Example response (200)

```json
{
  "resolved_count": 0,
  "total_matched": 0,
  "updated_execution_count": 0,
  "query_used": "<query_used>",
  "region": "<region>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string }` |
| 403 | Forbidden | `{ "error": string }` |
| 404 | Not Found | `{ "error": string }` |
| 409 | Conflict | `{ "error": string }` |
| 422 | Unprocessable Content | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List execution logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_runs)
- [List workflow run step logs](https://docs.stacksync.com/api-reference/workflows/runs/list_workflow_run_logs)
- [Get export capabilities](https://docs.stacksync.com/api-reference/workflows/runs/get_workflow_run_export_capabilities)
- [Replay executions](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs)
- [Replay executions by filter](https://docs.stacksync.com/api-reference/workflows/runs/replay_workflow_runs_by_filter)

# Get an app trigger

> The workflow step or genie it runs, the connection it watches, its tables with their record changes and filters, and whether it is on.

Source: https://docs.stacksync.com/api-reference/app-triggers/get_app_trigger

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}`

- Operation: `get_app_trigger`
- Resource: App triggers
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `app_trigger_id` | string (uuid) | Yes | The app trigger. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_trigger_id` | string | Yes |  |
| `target` | object (AppTriggerTarget) | Yes | What runs on each change |
| `target.type` | string (workflow \| genie) | Yes |  |
| `target.id` | string | Yes | The workflow or the genie |
| `target.step_id` | string \| null | No | For a workflow: the sync trigger step that runs on each change (its workflow_module_instance_id) |
| `target.interface_id` | string \| null | No | For a genie: its Trigger interface (type app_trigger) |
| `connection_id` | string | Yes | The connection whose app is watched |
| `tables` | array of object (AppTriggerTable) | Yes | One entry per trigger: the table, its record changes, filters |
| `tables[].table_name` | string, at least 1 characters | Yes | A table of the connection's app, as the app's tables are listed for that connection (GET app schema; MCP: connections_tables) |
| `tables[].operations` | array of string (created \| updated \| deleted), at least 1 item | Yes | The record changes that run the target |
| `tables[].filters` | object (TriggerFilterGroup) | No | The conditions a changed record must meet, on the table's column names, as on a sync trigger. An empty `and` group matches every change |
| `tables[].filters.type` | string, default "group" | No | `group` |
| `tables[].filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `tables[].filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `status` | string (on \| paused) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "app_trigger_id": "<app_trigger_id>",
  "target": {
    "type": "workflow",
    "id": "<id>",
    "step_id": "<step_id>",
    "interface_id": "<interface_id>"
  },
  "connection_id": "<connection_id>",
  "tables": [
    {
      "table_name": "<table_name>",
      "operations": [
        "created"
      ],
      "filters": {
        "type": "group",
        "operator": "and"
      }
    }
  ],
  "status": "on",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Create an app trigger](https://docs.stacksync.com/api-reference/app-triggers/create_app_trigger)
- [Update an app trigger](https://docs.stacksync.com/api-reference/app-triggers/update_app_trigger)
- [Delete an app trigger](https://docs.stacksync.com/api-reference/app-triggers/delete_app_trigger)

# Update an app trigger

> Replace its tables (each with its record changes and filters), or switch it on or pause it. The target and the connection stay. Only the fields sent change.

Source: https://docs.stacksync.com/api-reference/app-triggers/update_app_trigger

`PATCH https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}`

- Operation: `update_app_trigger`
- Resource: App triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `app_trigger_id` | string (uuid) | Yes | The app trigger. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tables` | array of object (AppTriggerTable) \| null | No | Replaces every table |
| `tables[].table_name` | string, at least 1 characters | Yes | A table of the connection's app, as the app's tables are listed for that connection (GET app schema; MCP: connections_tables) |
| `tables[].operations` | array of string (created \| updated \| deleted), at least 1 item | Yes | The record changes that run the target |
| `tables[].filters` | object (TriggerFilterGroup) | No | The conditions a changed record must meet, on the table's column names, as on a sync trigger. An empty `and` group matches every change |
| `tables[].filters.type` | string, default "group" | No | `group` |
| `tables[].filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `tables[].filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `status` | string (on \| paused) \| null | No | on runs the target on changes, paused stops it |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_trigger_id` | string | Yes |  |
| `target` | object (AppTriggerTarget) | Yes | What runs on each change |
| `target.type` | string (workflow \| genie) | Yes |  |
| `target.id` | string | Yes | The workflow or the genie |
| `target.step_id` | string \| null | No | For a workflow: the sync trigger step that runs on each change (its workflow_module_instance_id) |
| `target.interface_id` | string \| null | No | For a genie: its Trigger interface (type app_trigger) |
| `connection_id` | string | Yes | The connection whose app is watched |
| `tables` | array of object (AppTriggerTable) | Yes | One entry per trigger: the table, its record changes, filters |
| `tables[].table_name` | string, at least 1 characters | Yes | A table of the connection's app, as the app's tables are listed for that connection (GET app schema; MCP: connections_tables) |
| `tables[].operations` | array of string (created \| updated \| deleted), at least 1 item | Yes | The record changes that run the target |
| `tables[].filters` | object (TriggerFilterGroup) | No | The conditions a changed record must meet, on the table's column names, as on a sync trigger. An empty `and` group matches every change |
| `tables[].filters.type` | string, default "group" | No | `group` |
| `tables[].filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `tables[].filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `status` | string (on \| paused) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X PATCH "https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "on"
}'
```

## Example response (200)

```json
{
  "app_trigger_id": "<app_trigger_id>",
  "target": {
    "type": "workflow",
    "id": "<id>",
    "step_id": "<step_id>",
    "interface_id": "<interface_id>"
  },
  "connection_id": "<connection_id>",
  "tables": [
    {
      "table_name": "<table_name>",
      "operations": [
        "created"
      ],
      "filters": {
        "type": "group",
        "operator": "and"
      }
    }
  ],
  "status": "on",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get an app trigger](https://docs.stacksync.com/api-reference/app-triggers/get_app_trigger)
- [Create an app trigger](https://docs.stacksync.com/api-reference/app-triggers/create_app_trigger)
- [Delete an app trigger](https://docs.stacksync.com/api-reference/app-triggers/delete_app_trigger)

# Delete an app trigger

> Removes the trigger from where it is attached, in one call: the workflow's trigger step with its edges (a deployed latest version needs a new draft first, 409), or the genie's Trigger interface, and the watch of the app.

Source: https://docs.stacksync.com/api-reference/app-triggers/delete_app_trigger

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}`

- Operation: `delete_app_trigger`
- Resource: App triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `app_trigger_id` | string (uuid) | Yes | The app trigger. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_trigger_id` | string | Yes |  |
| `is_target_unlinked` | boolean | Yes | The workflow step or genie interface it was attached to is removed |
| `target_unlink_message` | string \| null | No | Why the step or interface is still attached, when it could not be removed |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers/{app_trigger_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "app_trigger_id": "<app_trigger_id>",
  "is_target_unlinked": false,
  "target_unlink_message": "<target_unlink_message>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get an app trigger](https://docs.stacksync.com/api-reference/app-triggers/get_app_trigger)
- [Create an app trigger](https://docs.stacksync.com/api-reference/app-triggers/create_app_trigger)
- [Update an app trigger](https://docs.stacksync.com/api-reference/app-triggers/update_app_trigger)

# Create an app trigger

> Watch tables of a connection and run a workflow's sync trigger step or a genie's Trigger interface on each matching change, from now on (past records are not replayed). The trigger is switched on and saved on the workflow's draft step or the genie's interface; a draft saved meanwhile is refused with 409 and nothing is created. Send an Idempotency-Key to retry safely.

Source: https://docs.stacksync.com/api-reference/app-triggers/create_app_trigger

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers`

- Operation: `create_app_trigger`
- Resource: App triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string \| null | No | 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. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `target` | object (AppTriggerTargetToCreate) | Yes |  |
| `target.type` | string (workflow \| genie) | Yes |  |
| `target.id` | string | Yes | The workflow or the genie |
| `target.step_id` | string \| null | No | For a workflow: the sync trigger step that runs on each change (its workflow_module_instance_id) |
| `target.interface_id` | string \| null | No | For a genie: its Trigger interface (type app_trigger) |
| `connection_id` | string | Yes | A connection of the app the workflow step or the genie watches |
| `tables` | array of object (AppTriggerTable), at least 1 item, at most 100 items | Yes |  |
| `tables[].table_name` | string, at least 1 characters | Yes | A table of the connection's app, as the app's tables are listed for that connection (GET app schema; MCP: connections_tables) |
| `tables[].operations` | array of string (created \| updated \| deleted), at least 1 item | Yes | The record changes that run the target |
| `tables[].filters` | object (TriggerFilterGroup) | No | The conditions a changed record must meet, on the table's column names, as on a sync trigger. An empty `and` group matches every change |
| `tables[].filters.type` | string, default "group" | No | `group` |
| `tables[].filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `tables[].filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `validate_only` | boolean, default false | No | Run every check of the write and answer 204 without writing: a refused write answers the error the write would |

## Returns

### 201 Created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_trigger_id` | string | Yes |  |
| `target` | object (AppTriggerTarget) | Yes | What runs on each change |
| `target.type` | string (workflow \| genie) | Yes |  |
| `target.id` | string | Yes | The workflow or the genie |
| `target.step_id` | string \| null | No | For a workflow: the sync trigger step that runs on each change (its workflow_module_instance_id) |
| `target.interface_id` | string \| null | No | For a genie: its Trigger interface (type app_trigger) |
| `connection_id` | string | Yes | The connection whose app is watched |
| `tables` | array of object (AppTriggerTable) | Yes | One entry per trigger: the table, its record changes, filters |
| `tables[].table_name` | string, at least 1 characters | Yes | A table of the connection's app, as the app's tables are listed for that connection (GET app schema; MCP: connections_tables) |
| `tables[].operations` | array of string (created \| updated \| deleted), at least 1 item | Yes | The record changes that run the target |
| `tables[].filters` | object (TriggerFilterGroup) | No | The conditions a changed record must meet, on the table's column names, as on a sync trigger. An empty `and` group matches every change |
| `tables[].filters.type` | string, default "group" | No | `group` |
| `tables[].filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `tables[].filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `status` | string (on \| paused) | Yes |  |
| `region` | string (besg \| usnv) | Yes |  |

### 204 No Content

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/app-triggers?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "target": {
    "type": "workflow",
    "id": "<id>"
  },
  "connection_id": "<connection_id>",
  "tables": [
    {
      "table_name": "<table_name>",
      "operations": [
        "created"
      ]
    }
  ]
}'
```

## Example response (201)

```json
{
  "app_trigger_id": "<app_trigger_id>",
  "target": {
    "type": "workflow",
    "id": "<id>",
    "step_id": "<step_id>",
    "interface_id": "<interface_id>"
  },
  "connection_id": "<connection_id>",
  "tables": [
    {
      "table_name": "<table_name>",
      "operations": [
        "created"
      ],
      "filters": {
        "type": "group",
        "operator": "and"
      }
    }
  ],
  "status": "on",
  "region": "besg"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 409 | Conflict | `{ "error": string, "msg": string, "field": string \| null }` |
| 422 | Unprocessable Content | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get an app trigger](https://docs.stacksync.com/api-reference/app-triggers/get_app_trigger)
- [Update an app trigger](https://docs.stacksync.com/api-reference/app-triggers/update_app_trigger)
- [Delete an app trigger](https://docs.stacksync.com/api-reference/app-triggers/delete_app_trigger)

# Check an email alias

> Whether <alias>@stacksync.email is free for a Genie's email channel or a workflow's email trigger step, checked in every region with that user's own rules. The Genies of one workspace may share an address; a step's own alias counts as free for that step. A read: any member of the workspace may check.

Source: https://docs.stacksync.com/api-reference/email-aliases/check_email_alias_availability

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/email-aliases/{alias}/availability`

- Operation: `check_email_alias_availability`
- Resource: Email aliases
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace. List the ones your key can reach with GET /v1/workspaces. |
| `alias` | string | Yes | The email alias to check, the part before @stacksync.email. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `used_by` | string (genie \| workflow_email_trigger) | Yes | genie for a Genie's email channel, workflow_email_trigger for a workflow's email trigger step |
| `region` | string (besg \| usnv) \| null | No | workflow_email_trigger only, required: the region of the workflow (besg or usnv) |
| `workflow_id` | string (uuid) \| null | No | workflow_email_trigger only, required: the workflow of the email trigger step |
| `step_id` | string \| null, at least 1 characters | No | workflow_email_trigger only: the email trigger step; the alias it already has counts as free |

## Returns

### 200 OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `alias` | string | Yes | The alias checked, trimmed and in lower case as it is stored |
| `email_address` | string | Yes | The address the alias gives, <alias>@stacksync.email |
| `is_available` | boolean | Yes |  |
| `reason` | string \| null | No | Why the alias cannot be used, or with whom it is shared; null when it is free |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/email-aliases/{alias}/availability?used_by=genie" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "alias": "<alias>",
  "email_address": "<email_address>",
  "is_available": false,
  "reason": "<reason>"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | Bad Request | `{ "error": string, "msg": string, "field": string \| null }` |
| 403 | Forbidden | `{ "error": string, "msg": string, "field": string \| null }` |
| 404 | Not Found | `{ "error": string, "msg": string, "field": string \| null }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json

# Get an app schema

> List the tables Stacksync can sync through a connection, with the primary key of each. Columns are not read by this route: use the generate app schema route with `table_names` to read them.

Source: https://docs.stacksync.com/api-reference/syncs/app-schema/get_app_schema

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/helpers/app-schema`

- Operation: `get_app_schema`
- Resource: App schema
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the connection |
| `connection_id` | string (uuid) | Yes | The connection to read the schema through; the user of the API key must have created it or it must be shared with the workspace |

## Returns

### 200 The tables of the app

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_type` | string | Yes | The app of the connection, as shown in Stacksync |
| `can_create_tables` | boolean | Yes | Whether a sync may create a new table in this app (`table_options.create_new_table: true`) |
| `tables` | array of object (AppSchemaTable) | Yes | Every table of the app |
| `tables[].table_name` | string | Yes | The name of the table in the app: the value to send as `table_name` when creating a sync (its id is accepted too) |
| `tables[].table_id` | string | Yes | The id of the table in the app, when the app has one apart from the name (BigQuery: `project.dataset.table`) |
| `tables[].table_options` | object (AppSchemaTableOptions) | Yes | The options of a table of the app |
| `tables[].table_options.primary_key` | object (AppSchemaPrimaryKey) | No | The primary key of a table |
| `tables[].table_options.primary_key.column_name` | string | No | The name of the primary key column |
| `tables[].table_options.primary_key.column_type` | string | No | The Stacksync type of the column (for example `string`, `int`, `uuid`, `datetime`) |
| `tables[].can_create_columns` | boolean | Yes | Whether a create or an edit may set `create_new_column` on a column of this table |
| `tables[].columns` | array of object (AppSchemaColumn) | Yes | The columns of the table; only filled for the tables named in `table_names`, empty for the others |
| `tables[].columns[].column_name` | string | Yes | The name of the column in the app: the value to send as `column_name` when creating a sync |
| `tables[].columns[].column_type` | string | Yes | The Stacksync type of the column (for example `string`, `int`, `number`, `boolean`, `datetime`, `uuid`, `json`) |
| `tables[].columns[].external_column_type` | string | No | The app's own type of the column (for example `postgres_text`), as `external_column_type` of a column to create takes it; absent when the app gives none |
| `tables[].columns[].writable` | boolean | No | Whether a sync can write to the column; absent when the app does not say |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/helpers/app-schema?region=besg&connection_id=3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "app_type": "postgres",
  "can_create_tables": true,
  "tables": [
    {
      "table_name": "accounts",
      "table_id": "accounts",
      "table_options": {
        "primary_key": {
          "column_name": "id",
          "column_type": "uuid"
        }
      },
      "can_create_columns": true,
      "columns": []
    },
    {
      "table_name": "contacts",
      "table_id": "contacts",
      "table_options": {},
      "can_create_columns": true,
      "columns": []
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `connection_id` is missing or not a UUID; the app does not support syncs (`App Not Supported`); the app refused the credentials (`Connection Authorization Error`); Stacksync could not connect to the app (`Connection Error`); the schema could not be read (`Error generating app schema`, `Error retrieving app schema`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | The connection does not exist in the workspace and region, or is not visible to the user of the API key (`Error retrieving connection`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Generate an app schema](https://docs.stacksync.com/api-reference/syncs/app-schema/generate_app_schema)

# Generate an app schema

> Read the tables of a connection and the columns of the tables named, so a sync can be built from exact table and column names. The credentials are read from the connection, never sent. Readable with a read-only key.

Source: https://docs.stacksync.com/api-reference/syncs/app-schema/generate_app_schema

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/helpers/generate-app-schema`

- Operation: `generate_app_schema`
- Resource: App schema
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the connection |

## Request body

`application/json`. The connection and the tables to read the columns of

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string (uuid) | Yes | The connection to read the schema through |
| `table_names` | array of string, default [] | No | The tables to read the columns of, by `table_name` or `table_id` exactly as the schema lists them; the answer lists every table but fills `columns` for these only |

## Returns

### 200 The tables of the app, with the columns of the tables named

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_type` | string | Yes | The app of the connection, as shown in Stacksync |
| `can_create_tables` | boolean | Yes | Whether a sync may create a new table in this app (`table_options.create_new_table: true`) |
| `tables` | array of object (AppSchemaTable) | Yes | Every table of the app |
| `tables[].table_name` | string | Yes | The name of the table in the app: the value to send as `table_name` when creating a sync (its id is accepted too) |
| `tables[].table_id` | string | Yes | The id of the table in the app, when the app has one apart from the name (BigQuery: `project.dataset.table`) |
| `tables[].table_options` | object (AppSchemaTableOptions) | Yes | The options of a table of the app |
| `tables[].table_options.primary_key` | object (AppSchemaPrimaryKey) | No | The primary key of a table |
| `tables[].table_options.primary_key.column_name` | string | No | The name of the primary key column |
| `tables[].table_options.primary_key.column_type` | string | No | The Stacksync type of the column (for example `string`, `int`, `uuid`, `datetime`) |
| `tables[].can_create_columns` | boolean | Yes | Whether a create or an edit may set `create_new_column` on a column of this table |
| `tables[].columns` | array of object (AppSchemaColumn) | Yes | The columns of the table; only filled for the tables named in `table_names`, empty for the others |
| `tables[].columns[].column_name` | string | Yes | The name of the column in the app: the value to send as `column_name` when creating a sync |
| `tables[].columns[].column_type` | string | Yes | The Stacksync type of the column (for example `string`, `int`, `number`, `boolean`, `datetime`, `uuid`, `json`) |
| `tables[].columns[].external_column_type` | string | No | The app's own type of the column (for example `postgres_text`), as `external_column_type` of a column to create takes it; absent when the app gives none |
| `tables[].columns[].writable` | boolean | No | Whether a sync can write to the column; absent when the app does not say |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/helpers/generate-app-schema?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "connection_id": "9b2e4f60-1c3d-4a5e-8f70-2d4c6e8a0b12",
  "table_names": [
    "accounts"
  ]
}'
```

## Example response (200)

```json
{
  "app_type": "postgres",
  "can_create_tables": true,
  "tables": [
    {
      "table_name": "accounts",
      "table_id": "accounts",
      "table_options": {
        "primary_key": {
          "column_name": "id",
          "column_type": "uuid"
        }
      },
      "can_create_columns": true,
      "columns": [
        {
          "column_name": "id",
          "column_type": "uuid",
          "external_column_type": "postgres_uuid",
          "writable": false
        },
        {
          "column_name": "name",
          "column_type": "string",
          "external_column_type": "postgres_text",
          "writable": true
        },
        {
          "column_name": "website",
          "column_type": "string",
          "external_column_type": "postgres_text",
          "writable": true
        }
      ]
    },
    {
      "table_name": "contacts",
      "table_id": "contacts",
      "table_options": {},
      "can_create_columns": true,
      "columns": []
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not a JSON object; `connection_id` is missing or not a UUID; `table_names` is not an array of strings; the app does not support syncs (`App Not Supported`); the app refused the credentials (`Connection Authorization Error`); Stacksync could not connect to the app (`Connection Error`); the schema could not be read (`Error generating app schema`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | The connection does not exist in the workspace and region, or is not visible to the user of the API key (`Error retrieving connection`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get an app schema](https://docs.stacksync.com/api-reference/syncs/app-schema/get_app_schema)

# List sync webhooks

> List the webhooks of a sync: the URLs Stacksync posts its notifications to. Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks).

Source: https://docs.stacksync.com/api-reference/syncs/webhooks/list_sync_webhooks

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks`

- Operation: `list_sync_webhooks`
- Resource: Sync webhooks
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The webhooks of the sync

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | `Successfully retrieved webhooks` |
| `webhooks` | array of object (SyncWebhook) | Yes | The webhooks, in creation order |
| `webhooks[].webhook_id` | string (uuid) | Yes | The webhook |
| `webhooks[].url` | string (uri) | Yes | The https URL Stacksync posts the notification to: a public internet host that answers an OPTIONS request within 2 seconds, with none of the characters space < > # % { } \| \ ^ ~ [ ] ` |
| `webhooks[].notification_type` | string (base_activity \| real_time_issue_notification \| backfill) | Yes | `base_activity` (an error or invalid credentials forced the sync to stop), `real_time_issue_notification` (a batch of records failed to sync) or `backfill` (a full read finished). Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks) |
| `webhooks[].api_key` | string | Yes | Sent as `Authorization: Bearer <api_key>` with every notification, so your endpoint can check the caller |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "msg": "Successfully retrieved webhooks",
  "webhooks": [
    {
      "webhook_id": "6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "url": "https://hooks.example.com/stacksync",
      "notification_type": "real_time_issue_notification",
      "api_key": "whsec_7f3a9c2e4b1d"
    }
  ]
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the webhooks could not be read (`Error retrieving webhooks`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace (`Error retrieving webhooks`: `Sync does not exist.`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/get_sync_webhook)
- [Create a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/create_sync_webhook)
- [Update a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/update_sync_webhook)
- [Delete a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/delete_sync_webhook)

# Create a sync webhook

> Add a webhook to a sync. When an event of the `notification_type` happens, Stacksync posts it as JSON to the URL with `Authorization: Bearer <api_key>`, once and without retrying a failed call. An issue notification covers a batch of records and carries no issue id. Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks). The URL is checked to be reachable before the webhook is stored. Send `validate_only: true` to run the checks without storing.

Source: https://docs.stacksync.com/api-reference/syncs/webhooks/create_sync_webhook

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks`

- Operation: `create_sync_webhook`
- Resource: Sync webhooks
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The webhook to add. The example's host hooks.example.com is a placeholder: replace it with your own HTTPS endpoint; it must resolve publicly.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string (uri) | Yes | The https URL Stacksync posts the notification to: a public internet host that answers an OPTIONS request within 2 seconds, with none of the characters space < > # % { } \| \ ^ ~ [ ] ` |
| `notification_type` | string (base_activity \| real_time_issue_notification \| backfill) | Yes | `base_activity` (an error or invalid credentials forced the sync to stop), `real_time_issue_notification` (a batch of records failed to sync) or `backfill` (a full read finished). Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks) |
| `api_key` | string | Yes | Sent as `Authorization: Bearer <api_key>` with every notification, so your endpoint can check the caller |
| `validate_only` | boolean, default false | No | Run every check of the write and answer without writing: a refused write answers the error it would answer |

## Returns

### 200 The webhook created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | What was done |
| `webhook` | object (SyncWebhook) | Yes | A webhook of the sync |
| `webhook.webhook_id` | string (uuid) | Yes | The webhook |
| `webhook.url` | string (uri) | Yes | The https URL Stacksync posts the notification to: a public internet host that answers an OPTIONS request within 2 seconds, with none of the characters space < > # % { } \| \ ^ ~ [ ] ` |
| `webhook.notification_type` | string (base_activity \| real_time_issue_notification \| backfill) | Yes | `base_activity` (an error or invalid credentials forced the sync to stop), `real_time_issue_notification` (a batch of records failed to sync) or `backfill` (a full read finished). Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks) |
| `webhook.api_key` | string | Yes | Sent as `Authorization: Bearer <api_key>` with every notification, so your endpoint can check the caller |

### 204 Every check passed and nothing was written (`validate_only: true`)

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://hooks.example.com/stacksync",
  "notification_type": "real_time_issue_notification",
  "api_key": "whsec_7f3a9c2e4b1d"
}'
```

`hooks.example.com` is a placeholder: replace it with your own host, which the API checks before saving (the example as written is refused).

## Example response (200)

```json
{
  "msg": "Successfully created webhook",
  "webhook": {
    "webhook_id": "6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "url": "https://hooks.example.com/stacksync",
    "notification_type": "real_time_issue_notification",
    "api_key": "whsec_7f3a9c2e4b1d"
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `base_id` is not a UUID; `url` is not an https URL on a public internet host, holds an unsafe character or did not answer within 2 seconds, `notification_type` is not one of the three types, `api_key` is empty (`Error validating webhook`); the sync already has a webhook of this type to this URL (`Duplicate webhook`); the webhook could not be stored (`Error creating webhook`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace (`Error creating webhook`: `Sync does not exist.`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync webhooks](https://docs.stacksync.com/api-reference/syncs/webhooks/list_sync_webhooks)
- [Get a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/get_sync_webhook)
- [Update a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/update_sync_webhook)
- [Delete a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/delete_sync_webhook)

# Get a sync webhook

> Read the settings of one webhook of a sync: its URL, notification type and API key. It does not list events. Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks).

Source: https://docs.stacksync.com/api-reference/syncs/webhooks/get_sync_webhook

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks/{webhook_id}`

- Operation: `get_sync_webhook`
- Resource: Sync webhooks
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `webhook_id` | string | Yes | The webhook |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The webhook

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | What was done |
| `webhook` | object (SyncWebhook) | Yes | A webhook of the sync |
| `webhook.webhook_id` | string (uuid) | Yes | The webhook |
| `webhook.url` | string (uri) | Yes | The https URL Stacksync posts the notification to: a public internet host that answers an OPTIONS request within 2 seconds, with none of the characters space < > # % { } \| \ ^ ~ [ ] ` |
| `webhook.notification_type` | string (base_activity \| real_time_issue_notification \| backfill) | Yes | `base_activity` (an error or invalid credentials forced the sync to stop), `real_time_issue_notification` (a batch of records failed to sync) or `backfill` (a full read finished). Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks) |
| `webhook.api_key` | string | Yes | Sent as `Authorization: Bearer <api_key>` with every notification, so your endpoint can check the caller |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks/{webhook_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "msg": "Successfully retrieved webhook",
  "webhook": {
    "webhook_id": "6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "url": "https://hooks.example.com/stacksync",
    "notification_type": "real_time_issue_notification",
    "api_key": "whsec_7f3a9c2e4b1d"
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the webhook could not be read (`Error retrieving webhook`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace, or no webhook of the sync has this id (`Sync or webhook does not exist.`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync webhooks](https://docs.stacksync.com/api-reference/syncs/webhooks/list_sync_webhooks)
- [Create a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/create_sync_webhook)
- [Update a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/update_sync_webhook)
- [Delete a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/delete_sync_webhook)

# Update a sync webhook

> Replace the URL, notification type and API key of a webhook. The URL is checked to be reachable before the change is stored. Send `validate_only: true` to run the checks without storing.

Source: https://docs.stacksync.com/api-reference/syncs/webhooks/update_sync_webhook

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks/{webhook_id}`

- Operation: `update_sync_webhook`
- Resource: Sync webhooks
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `webhook_id` | string | Yes | The webhook to update |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The whole webhook after the change. The example's host hooks.example.com is a placeholder: replace it with your own HTTPS endpoint; it must resolve publicly.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string (uri) | Yes | The https URL Stacksync posts the notification to: a public internet host that answers an OPTIONS request within 2 seconds, with none of the characters space < > # % { } \| \ ^ ~ [ ] ` |
| `notification_type` | string (base_activity \| real_time_issue_notification \| backfill) | Yes | `base_activity` (an error or invalid credentials forced the sync to stop), `real_time_issue_notification` (a batch of records failed to sync) or `backfill` (a full read finished). Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks) |
| `api_key` | string | Yes | Sent as `Authorization: Bearer <api_key>` with every notification, so your endpoint can check the caller |
| `validate_only` | boolean, default false | No | Run every check of the write and answer without writing: a refused write answers the error it would answer |

## Returns

### 200 The webhook updated

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | What was done |
| `webhook` | object (SyncWebhook) | Yes | A webhook of the sync |
| `webhook.webhook_id` | string (uuid) | Yes | The webhook |
| `webhook.url` | string (uri) | Yes | The https URL Stacksync posts the notification to: a public internet host that answers an OPTIONS request within 2 seconds, with none of the characters space < > # % { } \| \ ^ ~ [ ] ` |
| `webhook.notification_type` | string (base_activity \| real_time_issue_notification \| backfill) | Yes | `base_activity` (an error or invalid credentials forced the sync to stop), `real_time_issue_notification` (a batch of records failed to sync) or `backfill` (a full read finished). Events, payloads and delivery: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks) |
| `webhook.api_key` | string | Yes | Sent as `Authorization: Bearer <api_key>` with every notification, so your endpoint can check the caller |

### 204 Every check passed and nothing was written (`validate_only: true`)

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks/{webhook_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://hooks.example.com/stacksync",
  "notification_type": "base_activity",
  "api_key": "whsec_7f3a9c2e4b1d"
}'
```

`hooks.example.com` is a placeholder: replace it with your own host, which the API checks before saving (the example as written is refused).

## Example response (200)

```json
{
  "msg": "Successfully updated webhook",
  "webhook": {
    "webhook_id": "6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "url": "https://hooks.example.com/stacksync",
    "notification_type": "base_activity",
    "api_key": "whsec_7f3a9c2e4b1d"
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `base_id` is not a UUID; `url` is not an https URL on a public internet host, holds an unsafe character or did not answer within 2 seconds, `notification_type` is not one of the three types, `api_key` is empty (`Error validating webhook`); the sync already has a webhook of this type to this URL (`Duplicate webhook`); the webhook could not be stored (`Error updating webhook`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace, or no webhook of the sync has this id (`Sync or webhook does not exist.`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync webhooks](https://docs.stacksync.com/api-reference/syncs/webhooks/list_sync_webhooks)
- [Get a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/get_sync_webhook)
- [Create a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/create_sync_webhook)
- [Delete a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/delete_sync_webhook)

# Delete a sync webhook

> Remove a webhook from a sync. Notifications of its type stop being posted to its URL.

Source: https://docs.stacksync.com/api-reference/syncs/webhooks/delete_sync_webhook

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks/{webhook_id}`

- Operation: `delete_sync_webhook`
- Resource: Sync webhooks
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `webhook_id` | string | Yes | The webhook to delete |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The webhook deleted

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | `Successfully deleted webhook` |
| `webhook_id` | string (uuid) | Yes | The webhook |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/webhooks/{webhook_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "msg": "Successfully deleted webhook",
  "webhook_id": "6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the webhook could not be deleted (`Error deleting webhook`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No sync with this id exists in the workspace, or no webhook of the sync has this id (`Sync or webhook does not exist.`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync webhooks](https://docs.stacksync.com/api-reference/syncs/webhooks/list_sync_webhooks)
- [Get a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/get_sync_webhook)
- [Create a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/create_sync_webhook)
- [Update a sync webhook](https://docs.stacksync.com/api-reference/syncs/webhooks/update_sync_webhook)

# List sync triggers

> List the triggers of a sync with their stored actions. A trigger whose stored action no longer exists is left out.

Source: https://docs.stacksync.com/api-reference/syncs/triggers/list_sync_triggers

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers`

- Operation: `list_sync_triggers`
- Resource: Sync triggers
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The triggers of the sync

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `triggers` | array of object (SyncTrigger) | Yes | The triggers whose action still exists |
| `triggers[].id` | string (uuid) | Yes | The trigger |
| `triggers[].name` | string | Yes | The name of the trigger |
| `triggers[].trigger_type` | string (webhook \| db_query \| queue) | Yes | `webhook` calls a URL, `db_query` runs SQL on a database connection, `queue` adds a message to a queue |
| `triggers[].table` | string | Yes | The table whose changes fire the trigger, by its name in the `column_names_from_app` app (its id is accepted) |
| `triggers[].column_names_from_app` | string | Yes | The app whose column names the trigger uses: its app type as shown in Stacksync, or its `app_id` when both apps have the same type |
| `triggers[].operations` | array of string | Yes | The changes that fire the trigger, each once: `created`, `updated`, `deleted` |
| `triggers[].source` | array of string, at least 1 item, at most 2 items | Yes | The app or apps whose changes fire the trigger, by app type (or `app_id` when both apps have the same type); the sync must read changes from that app's table |
| `triggers[].columns_to_ignore` | array of string | Yes | Columns of the table left out of the record data the action receives (case sensitive, must exist in the table) |
| `triggers[].filters` | object (TriggerFilterGroup) | Yes | Conditions combined with `and` or `or`; a group may hold other groups. An empty `and` group matches every change |
| `triggers[].filters.type` | string, default "group" | No | `group` |
| `triggers[].filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `triggers[].filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `triggers[].is_paused` | boolean | Yes | Whether the trigger is paused (a paused trigger never runs) |
| `triggers[].action` | object (TriggerStoredAction) | Yes | The stored action of a trigger, as the platform runs it |
| `triggers[].action.body` | string | Yes | `webhook`: the cURL parsed as JSON text (`url`, `method`, `headers`, `data`); `db_query`: the SQL; `queue`: the message |
| `triggers[].action.task_type` | string (http_request \| db_query \| queue) | Yes | `http_request` (webhook), `db_query` or `queue` |
| `triggers[].action.options` | object | No | The stored options of the action: `base_id`, `trigger_id`, and for `db_query` the connection and `app_type`, for `queue` the `workflow_app_queue_id` |
| `triggers[].action.created_time` | string | No | When the action was stored |
| `triggers[].action.task_name` | string \| null | No | The stored name of the action, when set |
| `triggers[].action.workspace_id` | integer \| null | No | The workspace, when stored |
| `triggers[].action.base_name` | string | No | The name of the sync |
| `triggers[].action.connection` | object (TriggerStoredConnection) | No | The connection a `db_query` trigger runs on |
| `triggers[].action.connection.connection_id` | string (uuid) | Yes | The connection |
| `triggers[].action.connection.connection_name` | string | Yes | Its name |
| `triggers[].action.connection.app_type` | string | Yes | Its app, as shown in Stacksync |
| `triggers[].action.queue_id` | string | No | `queue` triggers: the queue, when the stored action carries it |
| `triggers[].action.task_metadata_id` | string (uuid) | No | The id of the stored action; answered by the single read only |
| `msg` | string | Yes | `Triggers retrieved successfully` |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "triggers": [
    {
      "id": "0d1e2f3a-4b5c-4d6e-9f70-1a2b3c4d5e6f",
      "name": "Notify on new customer accounts",
      "trigger_type": "webhook",
      "table": "Account",
      "column_names_from_app": "salesforce",
      "operations": [
        "created",
        "updated"
      ],
      "source": [
        "salesforce"
      ],
      "columns_to_ignore": [
        "Website"
      ],
      "filters": {
        "type": "group",
        "operator": "and",
        "conditions": [
          {
            "type": "condition",
            "column": "Type",
            "operator": "eq",
            "value": "Customer"
          },
          {
            "type": "group",
            "operator": "or",
            "conditions": [
              {
                "type": "condition",
                "column": "Rating",
                "operator": "eq",
                "value": "Hot"
              },
              {
                "type": "condition",
                "column": "Website",
                "operator": "has_ch",
                "value": ""
              }
            ]
          }
        ]
      },
      "is_paused": false,
      "action": {
        "body": "{\"url\": \"https://hooks.example.com/accounts\", \"method\": \"POST\", \"headers\": [\"Content-Type: application/json\"], \"data\": {\"record\": \"<<data>>\", \"changes\": \"<<changes>>\"}}",
        "task_type": "http_request",
        "options": {
          "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
          "trigger_id": "0d1e2f3a-4b5c-4d6e-9f70-1a2b3c4d5e6f"
        },
        "created_time": "Thu, 01 Oct 2026 09:12:44 GMT",
        "task_name": null,
        "workspace_id": 2790,
        "base_name": "Salesforce accounts to Postgres"
      }
    }
  ],
  "msg": "Triggers retrieved successfully"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; no sync with this id exists in the workspace (`Base not found`, answered with 400) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Get a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/get_sync_trigger)
- [Create a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/create_sync_trigger)
- [Update a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger)
- [Pause or resume a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger_status)
- [Delete a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/delete_sync_trigger)

# Create a sync trigger

> Add a trigger to a sync: when a record of the chosen table is created, updated or deleted in a source app and passes the filters, the action runs with the record (`<<data>>`) and its changes (`<<changes>>`). Send `validate_only: true` to run every check without storing.

Source: https://docs.stacksync.com/api-reference/syncs/triggers/create_sync_trigger

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers`

- Operation: `create_sync_trigger`
- Resource: Sync triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The trigger to add. The example's host hooks.example.com is a placeholder: replace it with your own HTTPS endpoint; it must resolve publicly.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name of the trigger |
| `trigger_type` | string (webhook \| db_query \| queue) | Yes | `webhook` calls a URL, `db_query` runs SQL on a database connection, `queue` adds a message to a queue |
| `table` | string | Yes | The table whose changes fire the trigger, by its name in the `column_names_from_app` app (its id is accepted) |
| `column_names_from_app` | string | Yes | The app whose column names the trigger uses: its app type as shown in Stacksync, or its `app_id` when both apps have the same type |
| `operations` | array of string | Yes | The changes that fire the trigger, each once: `created`, `updated`, `deleted` |
| `source` | array of string, at least 1 item, at most 2 items | Yes | The app or apps whose changes fire the trigger, by app type (or `app_id` when both apps have the same type); the sync must read changes from that app's table |
| `columns_to_ignore` | array of string | Yes | Columns of the table left out of the record data the action receives (case sensitive, must exist in the table) |
| `filters` | object (TriggerFilterGroup) | Yes | Conditions combined with `and` or `or`; a group may hold other groups. An empty `and` group matches every change |
| `filters.type` | string, default "group" | No | `group` |
| `filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `action` | string \| object (TriggerDbQueryAction) \| object (TriggerQueueAction) | Yes | What runs: a cURL command (`webhook`), a query (`db_query`) or a queue message (`queue`) |
| `is_paused` | boolean, default false | No | True stores the trigger paused; false (the default) runs it |
| `validate_only` | boolean, default false | No | Run every check of the write and answer without writing: a refused write answers the error it would answer |

## Returns

### 200 The trigger created

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | Yes | The new trigger |
| `msg` | string | Yes | `Trigger created successfully` |

### 204 Every check passed and nothing was written (`validate_only: true`)

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Notify on new customer accounts",
  "trigger_type": "webhook",
  "table": "Account",
  "column_names_from_app": "salesforce",
  "operations": [
    "created",
    "updated"
  ],
  "source": [
    "salesforce"
  ],
  "columns_to_ignore": [
    "Website"
  ],
  "filters": {
    "type": "group",
    "operator": "and",
    "conditions": [
      {
        "type": "condition",
        "column": "Type",
        "operator": "eq",
        "value": "Customer"
      },
      {
        "type": "group",
        "operator": "or",
        "conditions": [
          {
            "type": "condition",
            "column": "Rating",
            "operator": "eq",
            "value": "Hot"
          },
          {
            "type": "condition",
            "column": "Website",
            "operator": "has_ch",
            "value": ""
          }
        ]
      }
    ]
  },
  "action": "curl -X POST https://hooks.example.com/accounts -H '\''Content-Type: application/json'\'' -d '\''{\"record\": <<data>>, \"changes\": <<changes>>}'\''"
}'
```

`hooks.example.com` is a placeholder: replace it with your own host, which the API checks before saving (the example as written is refused).

## Example response (200)

```json
{
  "id": "0d1e2f3a-4b5c-4d6e-9f70-1a2b3c4d5e6f",
  "msg": "Trigger created successfully"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `base_id` is not a UUID; a field is missing or of the wrong type (`Invalid Request Body`, the message names the field); `trigger_type` is not webhook, db_query or queue; a webhook `action` is not one cURL command with one http(s) URL on a public host, or a word of it would not be sent; a `db_query` query is blank; `column_names_from_app`, `table`, a column of `columns_to_ignore` or of a condition is not in the sync; `source` names an app the sync does not read changes from on this table; both apps have the same type and an app type instead of an `app_id` was sent; a filter has a wrong structure, an unknown operator, a regular expression that does not compile or a non-number on a numeric column (the message is the error); the trigger could not be stored (`Error creating trigger`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json`; a `db_query` `connection_id` is not a connection of the workspace in the sync's region (`Invalid connection_id`), or a `queue` `queue_id` is not a queue of the workspace (`Invalid queue_id`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync triggers](https://docs.stacksync.com/api-reference/syncs/triggers/list_sync_triggers)
- [Get a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/get_sync_trigger)
- [Update a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger)
- [Pause or resume a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger_status)
- [Delete a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/delete_sync_trigger)

# Get a sync trigger

> Read one trigger of a sync with its stored action.

Source: https://docs.stacksync.com/api-reference/syncs/triggers/get_sync_trigger

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}`

- Operation: `get_sync_trigger`
- Resource: Sync triggers
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `trigger_id` | string | Yes | The trigger |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The trigger

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `trigger` | object (SyncTrigger) | Yes | A trigger of the sync as the read routes answer it |
| `trigger.id` | string (uuid) | Yes | The trigger |
| `trigger.name` | string | Yes | The name of the trigger |
| `trigger.trigger_type` | string (webhook \| db_query \| queue) | Yes | `webhook` calls a URL, `db_query` runs SQL on a database connection, `queue` adds a message to a queue |
| `trigger.table` | string | Yes | The table whose changes fire the trigger, by its name in the `column_names_from_app` app (its id is accepted) |
| `trigger.column_names_from_app` | string | Yes | The app whose column names the trigger uses: its app type as shown in Stacksync, or its `app_id` when both apps have the same type |
| `trigger.operations` | array of string | Yes | The changes that fire the trigger, each once: `created`, `updated`, `deleted` |
| `trigger.source` | array of string, at least 1 item, at most 2 items | Yes | The app or apps whose changes fire the trigger, by app type (or `app_id` when both apps have the same type); the sync must read changes from that app's table |
| `trigger.columns_to_ignore` | array of string | Yes | Columns of the table left out of the record data the action receives (case sensitive, must exist in the table) |
| `trigger.filters` | object (TriggerFilterGroup) | Yes | Conditions combined with `and` or `or`; a group may hold other groups. An empty `and` group matches every change |
| `trigger.filters.type` | string, default "group" | No | `group` |
| `trigger.filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `trigger.filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `trigger.is_paused` | boolean | Yes | Whether the trigger is paused (a paused trigger never runs) |
| `trigger.action` | object (TriggerStoredAction) | Yes | The stored action of a trigger, as the platform runs it |
| `trigger.action.body` | string | Yes | `webhook`: the cURL parsed as JSON text (`url`, `method`, `headers`, `data`); `db_query`: the SQL; `queue`: the message |
| `trigger.action.task_type` | string (http_request \| db_query \| queue) | Yes | `http_request` (webhook), `db_query` or `queue` |
| `trigger.action.options` | object | No | The stored options of the action: `base_id`, `trigger_id`, and for `db_query` the connection and `app_type`, for `queue` the `workflow_app_queue_id` |
| `trigger.action.created_time` | string | No | When the action was stored |
| `trigger.action.task_name` | string \| null | No | The stored name of the action, when set |
| `trigger.action.workspace_id` | integer \| null | No | The workspace, when stored |
| `trigger.action.base_name` | string | No | The name of the sync |
| `trigger.action.connection` | object (TriggerStoredConnection) | No | The connection a `db_query` trigger runs on |
| `trigger.action.connection.connection_id` | string (uuid) | Yes | The connection |
| `trigger.action.connection.connection_name` | string | Yes | Its name |
| `trigger.action.connection.app_type` | string | Yes | Its app, as shown in Stacksync |
| `trigger.action.queue_id` | string | No | `queue` triggers: the queue, when the stored action carries it |
| `trigger.action.task_metadata_id` | string (uuid) | No | The id of the stored action; answered by the single read only |
| `msg` | string | Yes | `Trigger retrieved successfully` |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "trigger": {
    "id": "0d1e2f3a-4b5c-4d6e-9f70-1a2b3c4d5e6f",
    "name": "Notify on new customer accounts",
    "trigger_type": "webhook",
    "table": "Account",
    "column_names_from_app": "salesforce",
    "operations": [
      "created",
      "updated"
    ],
    "source": [
      "salesforce"
    ],
    "columns_to_ignore": [
      "Website"
    ],
    "filters": {
      "type": "group",
      "operator": "and",
      "conditions": [
        {
          "type": "condition",
          "column": "Type",
          "operator": "eq",
          "value": "Customer"
        },
        {
          "type": "group",
          "operator": "or",
          "conditions": [
            {
              "type": "condition",
              "column": "Rating",
              "operator": "eq",
              "value": "Hot"
            },
            {
              "type": "condition",
              "column": "Website",
              "operator": "has_ch",
              "value": ""
            }
          ]
        }
      ]
    },
    "is_paused": false,
    "action": {
      "body": "{\"url\": \"https://hooks.example.com/accounts\", \"method\": \"POST\", \"headers\": [\"Content-Type: application/json\"], \"data\": {\"record\": \"<<data>>\", \"changes\": \"<<changes>>\"}}",
      "task_type": "http_request",
      "options": {
        "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
        "trigger_id": "0d1e2f3a-4b5c-4d6e-9f70-1a2b3c4d5e6f"
      },
      "created_time": "Thu, 01 Oct 2026 09:12:44 GMT",
      "task_name": null,
      "workspace_id": 2790,
      "base_name": "Salesforce accounts to Postgres",
      "task_metadata_id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
    }
  },
  "msg": "Trigger retrieved successfully"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the stored action could not be read (`Error getting query details`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No trigger of the sync has this id | `{ "msg": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync triggers](https://docs.stacksync.com/api-reference/syncs/triggers/list_sync_triggers)
- [Create a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/create_sync_trigger)
- [Update a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger)
- [Pause or resume a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger_status)
- [Delete a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/delete_sync_trigger)

# Update a sync trigger

> Replace a trigger of a sync with the whole trigger you send; the trigger keeps its id. Send `validate_only: true` to run every check without storing.

Source: https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}`

- Operation: `update_sync_trigger`
- Resource: Sync triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `trigger_id` | string | Yes | The trigger to update |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. The whole trigger after the change. The example's host hooks.example.com is a placeholder: replace it with your own HTTPS endpoint; it must resolve publicly.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name of the trigger |
| `trigger_type` | string (webhook \| db_query \| queue) | Yes | `webhook` calls a URL, `db_query` runs SQL on a database connection, `queue` adds a message to a queue |
| `table` | string | Yes | The table whose changes fire the trigger, by its name in the `column_names_from_app` app (its id is accepted) |
| `column_names_from_app` | string | Yes | The app whose column names the trigger uses: its app type as shown in Stacksync, or its `app_id` when both apps have the same type |
| `operations` | array of string | Yes | The changes that fire the trigger, each once: `created`, `updated`, `deleted` |
| `source` | array of string, at least 1 item, at most 2 items | Yes | The app or apps whose changes fire the trigger, by app type (or `app_id` when both apps have the same type); the sync must read changes from that app's table |
| `columns_to_ignore` | array of string | Yes | Columns of the table left out of the record data the action receives (case sensitive, must exist in the table) |
| `filters` | object (TriggerFilterGroup) | Yes | Conditions combined with `and` or `or`; a group may hold other groups. An empty `and` group matches every change |
| `filters.type` | string, default "group" | No | `group` |
| `filters.operator` | string (and \| or) | Yes | How the conditions combine |
| `filters.conditions` | array of object (TriggerFilterGroup) \| object (TriggerFilterCondition) | No | A list (never a single object): each entry is a condition or a nested group |
| `action` | string \| object (TriggerDbQueryAction) \| object (TriggerQueueAction) | Yes | What runs: a cURL command (`webhook`), a query (`db_query`) or a queue message (`queue`) |
| `is_paused` | boolean, default false | No | True stores the trigger paused; false (the default) runs it |
| `validate_only` | boolean, default false | No | Run every check of the write and answer without writing: a refused write answers the error it would answer |

## Returns

### 200 The trigger updated

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | What was done |

### 204 Every check passed and nothing was written (`validate_only: true`)

No body.

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Notify on new customer accounts",
  "trigger_type": "webhook",
  "table": "Account",
  "column_names_from_app": "salesforce",
  "operations": [
    "created"
  ],
  "source": [
    "salesforce"
  ],
  "columns_to_ignore": [
    "Website"
  ],
  "filters": {
    "type": "group",
    "operator": "and",
    "conditions": [
      {
        "type": "condition",
        "column": "Type",
        "operator": "eq",
        "value": "Customer"
      },
      {
        "type": "group",
        "operator": "or",
        "conditions": [
          {
            "type": "condition",
            "column": "Rating",
            "operator": "eq",
            "value": "Hot"
          },
          {
            "type": "condition",
            "column": "Website",
            "operator": "has_ch",
            "value": ""
          }
        ]
      }
    ]
  },
  "action": "curl -X POST https://hooks.example.com/accounts -H '\''Content-Type: application/json'\'' -d '\''{\"record\": <<data>>, \"changes\": <<changes>>}'\''"
}'
```

`hooks.example.com` is a placeholder: replace it with your own host, which the API checks before saving (the example as written is refused).

## Example response (200)

```json
{
  "msg": "Trigger updated successfully"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `base_id` is not a UUID; a field is missing or of the wrong type (`Invalid Request Body`, the message names the field); `trigger_type` is not webhook, db_query or queue; a webhook `action` is not one cURL command with one http(s) URL on a public host, or a word of it would not be sent; a `db_query` query is blank; `column_names_from_app`, `table`, a column of `columns_to_ignore` or of a condition is not in the sync; `source` names an app the sync does not read changes from on this table; both apps have the same type and an app type instead of an `app_id` was sent; a filter has a wrong structure, an unknown operator, a regular expression that does not compile or a non-number on a numeric column (the message is the error); the trigger could not be stored (`Error updating trigger`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json`; a `db_query` `connection_id` is not a connection of the workspace in the sync's region (`Invalid connection_id`), or a `queue` `queue_id` is not a queue of the workspace (`Invalid queue_id`) | `{ "error": string }` |
| 404 | No trigger of the sync has this id | `{ "msg": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync triggers](https://docs.stacksync.com/api-reference/syncs/triggers/list_sync_triggers)
- [Get a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/get_sync_trigger)
- [Create a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/create_sync_trigger)
- [Pause or resume a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger_status)
- [Delete a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/delete_sync_trigger)

# Delete a sync trigger

> Remove a trigger from a sync, with its stored action.

Source: https://docs.stacksync.com/api-reference/syncs/triggers/delete_sync_trigger

`DELETE https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}`

- Operation: `delete_sync_trigger`
- Resource: Sync triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `trigger_id` | string | Yes | The trigger to delete |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Returns

### 200 The trigger deleted

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | What was done |

## Example request

```bash
curl -X DELETE "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "msg": "Trigger deleted successfully"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the trigger could not be deleted (`Error deleting trigger`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No trigger of the sync has this id | `{ "msg": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync triggers](https://docs.stacksync.com/api-reference/syncs/triggers/list_sync_triggers)
- [Get a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/get_sync_trigger)
- [Create a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/create_sync_trigger)
- [Update a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger)
- [Pause or resume a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger_status)

# Pause or resume a sync trigger

> Pause a trigger so it stops running, or resume it. A paused trigger keeps its definition.

Source: https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger_status

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}/update-status`

- Operation: `update_sync_trigger_status`
- Resource: Sync triggers
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |
| `base_id` | string (uuid) | Yes | The sync (a sync is called a base in these paths) |
| `trigger_id` | string | Yes | The trigger |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the sync |

## Request body

`application/json`. Pause or resume

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `action` | string (pause \| unpause) | Yes | `pause` stops the trigger from running, `unpause` resumes it |

## Returns

### 200 The trigger paused or resumed

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `msg` | string | Yes | What was done |

## Example request

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/bases/{base_id}/triggers/{trigger_id}/update-status?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "pause"
}'
```

## Example response (200)

```json
{
  "msg": "Trigger status updated successfully"
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The body is not valid JSON; `action` is missing or not `pause` or `unpause` (`Invalid action`); The `region` is missing or not one of besg, usnv; `base_id` is not a UUID; the trigger could not be read or changed (`An error occurred while fetching the trigger`, `Error pausing trigger`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | No trigger of the sync has this id | `{ "msg": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync triggers](https://docs.stacksync.com/api-reference/syncs/triggers/list_sync_triggers)
- [Get a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/get_sync_trigger)
- [Create a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/create_sync_trigger)
- [Update a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/update_sync_trigger)
- [Delete a sync trigger](https://docs.stacksync.com/api-reference/syncs/triggers/delete_sync_trigger)

# List sync issues

> List the record changes the syncs of the workspace could not write, newest first, one page at a time. Filter by sync, destination app, table or one issue id. To be told when issues appear, create a webhook of type `real_time_issue_notification`: [Sync webhooks](https://docs.stacksync.com/two-way-sync/features/sync-webhooks).

Source: https://docs.stacksync.com/api-reference/syncs/issues/list_sync_issues

`GET https://api.stacksync.com/v1/workspaces/{workspace_id}/issues`

- Operation: `list_sync_issues`
- Resource: Sync issues
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the syncs |
| `base_id` | string (uuid) | No | Only the issues of this sync |
| `sync_id` | string (uuid) | No | Same as `base_id`; `base_id` wins when both are sent |
| `app_id` | string | No | Only the issues whose destination is this app of the sync (filtered on the page read, so a page can come back shorter) |
| `table_id` | string | No | Only the issues of this table pair (its `table_mapping_id`) |
| `issue_id` | string (uuid) | No | Only this issue |
| `ordering_property` | string (created_time \| last_modified_time), default "last_modified_time" | No | The time the issues are ordered by |
| `ordering_direction` | string (ASC \| DESC), default "DESC" | No | The order |
| `page_number` | integer, at least 0, default 0 | No | The page to read, counted from 0 |
| `page_size` | integer, 1 to 1000, default 100 | No | Issues per page, 1 to 1000 |

## Returns

### 200 A page of issues

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object (SyncIssue) | Yes | The issues of the page |
| `data[].issue_id` | string (uuid) | Yes | The issue |
| `data[].base_id` | string (uuid) | Yes | The sync |
| `data[].destination_app_id` | string | Yes | The app the change could not be written to |
| `data[].destination_app_type` | string | Yes | That app, as shown in Stacksync |
| `data[].destination_table_id` | string | No | The id of the table in that app |
| `data[].destination_table_name` | string | No | The name of the table in that app |
| `data[].action` | string | Yes | What the sync tried: `insert`, `update` or `delete` |
| `data[].issue_message` | string | Yes | Why the write failed, as the app answered |
| `data[].changed_columns` | object | No | The columns that changed, by name, with the value that could not be written |
| `data[].source_record_id` | string \| null | No | The id of the record in the app the change came from |
| `data[].destination_record_id` | string \| null | No | The id of the record in the destination app, null for a record not created yet |
| `data[].created_time` | string | Yes | When the issue first happened, ISO 8601 UTC |
| `data[].last_modified_time` | string | Yes | When the issue last happened, ISO 8601 UTC |
| `pagination` | object (SyncIssuePagination) | Yes | The page answered |
| `pagination.current_page` | integer | Yes | The page answered, counted from 0 |
| `pagination.next_page` | integer | No | The next page, absent on the last page |
| `pagination.total_pages` | integer | No | The number of full pages (total issues divided by page size, rounded down); absent when the page is empty |
| `total_number_of_issues` | integer | Yes | The number of issues matching the filters |

## Example request

```bash
curl -X GET "https://api.stacksync.com/v1/workspaces/{workspace_id}/issues?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "data": [
    {
      "issue_id": "4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f",
      "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
      "destination_app_id": "b71d04e5",
      "destination_app_type": "postgres",
      "destination_table_id": "accounts",
      "destination_table_name": "accounts",
      "action": "update",
      "issue_message": "value too long for type character varying(80)",
      "changed_columns": {
        "website": "https://www.example.com/a-very-long-path-that-does-not-fit-the-column"
      },
      "source_record_id": "001Hs00001ZXkQ9IAL",
      "destination_record_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "created_time": "2026-10-01T09:12:44",
      "last_modified_time": "2026-10-01T09:12:44"
    }
  ],
  "pagination": {
    "current_page": 0,
    "total_pages": 0
  },
  "total_number_of_issues": 1
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; `issue_id` or `base_id` is not a UUID, `page_number` is not an integer of 0 or more, `page_size` is not an integer of 1 to 1000, `ordering_property` or `ordering_direction` is not one of its values (`Invalid Request Params`); the issues could not be read (`Failed to get issues`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [Resolve sync issues](https://docs.stacksync.com/api-reference/syncs/issues/resolve_sync_issues)

# Resolve sync issues

> Retry, revert or ignore issues: the ones listed by id, or with `all_issues: true` every issue of a sync or of one of its tables. Retrying writes the change again; reverting restores the record from the destination app; ignoring closes the issue.

Source: https://docs.stacksync.com/api-reference/syncs/issues/resolve_sync_issues

`POST https://api.stacksync.com/v1/workspaces/{workspace_id}/issues/action`

- Operation: `resolve_sync_issues`
- Resource: Sync issues
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST, PUT and PATCH requests must send Content-Type: application/json. Every authentication failure answers 403.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace the resources belong to |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | Yes | Data region of the syncs |

## Request body

`application/json`. The issues and the action

One of: object (ResolveListedSyncIssuesBody). Act on the issues listed by id

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | array of string (uuid), at least 1 item | Yes | The issues, every id must exist in the workspace |
| `action` | string (retry \| ignore \| revert) | Yes | `retry` writes the change again, `revert` restores the record from the destination app, `ignore` closes the issue |

Or: object (ResolveAllSyncIssuesBody). Act on every issue of a sync, or of one of its tables (`ids` must not be sent)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `all_issues` | boolean (true) | Yes | True |
| `base_id` | string (uuid) | Yes | The sync, in the region of the request |
| `table_id` | string | No | Only the issues of this table pair (its `table_mapping_id`); every table when left out |
| `action` | string (retry \| ignore \| revert) | Yes | `retry` writes the change again, `revert` restores the record from the destination app, `ignore` closes the issue |

## Returns

### 200 What the action did

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object (ResolvedSyncIssues) | Yes | What the action did |
| `data.ids` | array of string (uuid) | Yes | The issues acted on; empty for `all_issues` |
| `data.success_issue_count` | integer | Yes | Issues resolved |
| `data.failed_issue_count` | integer | Yes | Issues that could not be resolved |
| `data.error_list` | array of object | Yes | Why each failed issue failed |

## Example request

One of: Act on the issues listed by id

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/issues/action?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f"
  ],
  "action": "retry"
}'
```

Or: Act on every issue of a sync (ids must not be sent)

```bash
curl -X POST "https://api.stacksync.com/v1/workspaces/{workspace_id}/issues/action?region=besg" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "all_issues": true,
  "base_id": "3f6c1d2e-8a4b-4c7d-9e21-5b6f7a8c9d01",
  "action": "retry"
}'
```

## Example response (200)

```json
{
  "data": {
    "ids": [
      "4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f"
    ],
    "success_issue_count": 1,
    "failed_issue_count": 0,
    "error_list": []
  }
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The `region` is missing or not one of besg, usnv; the body is not valid JSON; `ids` is missing, empty or holds a non-UUID, `action` is not retry, ignore or revert, `all_issues` is sent with `ids` or without a UUID `base_id` (`Invalid Request Body`); an id names no issue of the workspace (`Invalid error ids.`, the message lists them); the issues of the sync could not be read (`Error retrieving issues`) | `{ "error": string }` |
| 403 | Forbidden: invalid API key, API key of another workspace, insufficient scope, workspace unavailable, or a non-GET request without `Content-Type: application/json` | `{ "error": string }` |
| 404 | The workspace has no sync with issues to act on (`issues not found`), or `base_id` of `all_issues` is not a sync of the workspace in this region (`Base not found`) | `{ "error": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi.json
- [List sync issues](https://docs.stacksync.com/api-reference/syncs/issues/list_sync_issues)

# Run a Genie

> Starts a Genie run in the background and answers at once with the conversation to poll. Send the Genie's reply back with Get a Genie run, passing the region this answer carries. Omit genie_id to let the workspace's Genie dispatcher pick the Genie that fits the message; pass conversation_id to continue an earlier conversation. A message sent while the conversation is still processing is handed to the running Genie as steering instead of starting a new run.

Source: https://docs.stacksync.com/api-reference/genies/runs/run_genie

`POST https://genies.stacksync.com/v1/workspaces/{workspace_id}/genies/run`

- Operation: `run_genie`
- Resource: Genie runs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST requests must send Content-Type: application/json. Every authentication failure answers 403. Running a Genie needs the editor role in the workspace.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace whose Genie runs. A workspace API key works only on its own workspace; a user API key on any workspace the user belongs to. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `genie_id` | string | No | The Genie to run (its id from the Genies list). Omitted, the workspace's Genie dispatcher selects the Genie that best fits the message; a follow-up without genie_id goes through the dispatcher again and may reach another Genie. A named Genie must exist in the region and be active. |
| `region` | string (besg \| usnv) | No | Data region of the resources: the region of the Genie, where the conversation is stored. Allowed values: besg, usnv. Defaults to the region of the server that answers, so always pass the Genie's region. A value in the request body wins over the query parameter. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `input` | string \| object | Yes | The message handed to the Genie. A string is used as is; a JSON object is encoded as text so nothing is lost. |
| `conversation_id` | string (uuid) | No | The conversation to continue, from an earlier run answer: the earlier messages are the Genie's context, and a failed conversation reopens. Omitted, a new conversation starts. |
| `region` | string (besg \| usnv) | No | Data region of the Genie, where the conversation is stored. Allowed values: besg, usnv. Same meaning as the region query parameter; this value wins. |
| `options` | object (RunGenieOptions) | No | Options of the run. |
| `options.dispatch_external_message` | object (ApprovalDispatch) | No | Where an approval request is delivered when the Genie pauses on an action that needs one. Both interface_type and interface_id are needed; the destination inside that interface (a channel, an address) is taken from the Genie's master prompt. Without it the approval is only returned in options.approval of the reply. |
| `options.dispatch_external_message.interface_type` | string (slack \| teams \| email) | Yes | The type of the Genie's configured interface that delivers the approval request. Allowed values: slack, teams, email. |
| `options.dispatch_external_message.interface_id` | string | Yes | The id of that configured interface of the Genie. |
| `options.dispatch_external_message.attachement_file_ids` | array of string | No | Ids of stored files to deliver with the approval request. The files must belong to this request or conversation. |
| `source` | string | No | A label of your own for where the message came from, stored on it. Omitted or blank, api. The values slack, email, teams and public_api are reserved and refused. |
| `validate_only` | boolean, default false | No | true runs only the checks of the run (the Genie exists and is active) and answers 204 without asking the Genie or storing anything. |

## Returns

### 202 The run was accepted. Poll Get a Genie run with conversation_id and region until status leaves processing.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string (processing) | Yes | Always processing: the Genie has not answered yet. |
| `conversation_id` | string (uuid) | Yes | The conversation of the run: poll it with Get a Genie run, and send it back to continue the conversation. |
| `region` | string (besg \| usnv) | Yes | Data region the conversation is stored in. Pass it as region when polling. |
| `message_id` | null | Yes | Always null: no reply yet. |

### 204 validate_only was true and every check of the run passed (the Genie, the conversation). Nothing was asked and nothing was stored.

No body.

## Example request

```bash
curl -X POST "https://genies.stacksync.com/v1/workspaces/{workspace_id}/genies/run" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": "Who are you?",
  "region": "usnv"
}'
```

## Example response (202)

```json
{
  "status": "processing",
  "conversation_id": "14d0a0ba-9352-44d6-a7f7-8fd2c3ce0388",
  "region": "usnv",
  "message_id": null
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The request could not be read: the body is not a JSON object, input is missing, source is a reserved value, validate_only is not true or false, or workspace_id is not a number. | `{ "error": string, "msg": string, "field": string }` |
| 403 | The caller is not allowed: Authorization Error (header missing or not Bearer), Invalid API Key (unknown key, key of another workspace, or a user who is not a member of the workspace), Content-Type Error (POST without application/json), Insufficient Scope (a read-only sign-in on a request that changes data) or Authentication Error (your role in the workspace is below editor). | `{ "error": string, "msg": string, "field": string }` |
| 404 | genie_id names no Genie in this region. | `{ "error": string (genie_not_found \| genie_inactive), "message": string }` |
| 409 | genie_id names a Genie that is switched off. Switch it on before asking it. | `{ "error": string (genie_not_found \| genie_inactive), "message": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi-genies.json
- [Get a Genie run](https://docs.stacksync.com/api-reference/genies/runs/get_genie_run)
- [Run a Genie and wait for the result](https://docs.stacksync.com/api-reference/genies/runs/run_genie_and_wait)

# Run a Genie and wait for the result

> Sends a message to a Genie and answers once the Genie has finished with it, so the reply is in the same response. A Genie that calls several tools can take minutes; keep the connection open or use Run a Genie and poll instead. Omit genie_id to let the workspace's Genie dispatcher pick the Genie; pass conversation_id to continue an earlier conversation. The answer has the same shape as Get a Genie run.

Source: https://docs.stacksync.com/api-reference/genies/runs/run_genie_and_wait

`POST https://genies.stacksync.com/v1/workspaces/{workspace_id}/genies/run_wait_result`

- Operation: `run_genie_and_wait`
- Resource: Genie runs
- Access: writes data

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST requests must send Content-Type: application/json. Every authentication failure answers 403. Running a Genie needs the editor role in the workspace.
- `Content-Type: application/json` on every request with a body.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace whose Genie runs. A workspace API key works only on its own workspace; a user API key on any workspace the user belongs to. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `genie_id` | string | No | The Genie to run (its id from the Genies list). Omitted, the workspace's Genie dispatcher selects the Genie that best fits the message; a follow-up without genie_id goes through the dispatcher again and may reach another Genie. A named Genie must exist in the region and be active. |
| `region` | string (besg \| usnv) | No | Data region of the resources: the region of the Genie, where the conversation is stored. Allowed values: besg, usnv. Defaults to the region of the server that answers, so always pass the Genie's region. A value in the request body wins over the query parameter. |

## Request body

`application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `input` | string \| object | Yes | The message handed to the Genie. A string is used as is; a JSON object is encoded as text so nothing is lost. |
| `conversation_id` | string (uuid) | No | The conversation to continue, from an earlier run answer: the earlier messages are the Genie's context, and a failed conversation reopens. Omitted, a new conversation starts. |
| `region` | string (besg \| usnv) | No | Data region of the Genie, where the conversation is stored. Allowed values: besg, usnv. Same meaning as the region query parameter; this value wins. |
| `options` | object (RunGenieOptions) | No | Options of the run. |
| `options.dispatch_external_message` | object (ApprovalDispatch) | No | Where an approval request is delivered when the Genie pauses on an action that needs one. Both interface_type and interface_id are needed; the destination inside that interface (a channel, an address) is taken from the Genie's master prompt. Without it the approval is only returned in options.approval of the reply. |
| `options.dispatch_external_message.interface_type` | string (slack \| teams \| email) | Yes | The type of the Genie's configured interface that delivers the approval request. Allowed values: slack, teams, email. |
| `options.dispatch_external_message.interface_id` | string | Yes | The id of that configured interface of the Genie. |
| `options.dispatch_external_message.attachement_file_ids` | array of string | No | Ids of stored files to deliver with the approval request. The files must belong to this request or conversation. |
| `source` | string | No | A label of your own for where the message came from, stored on it. Omitted or blank, api. The values slack, email, teams and public_api are reserved and refused. |
| `validate_only` | boolean, default false | No | true runs only the checks of the run (the Genie exists and is active) and answers 204 without asking the Genie or storing anything. |

## Returns

### 200 The run finished, or could not: status says which. completed carries the reply in result; failed carries the reason in error when the run stopped before the Genie answered; processing means the message steered a run that is still going, so poll Get a Genie run.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string (processing \| completed \| failed) | Yes | processing: the Genie is still working (or the message steered a run in progress). completed: the Genie answered; result holds the reply. failed: the run could not finish. |
| `conversation_id` | string (uuid) \| null | Yes | The conversation of the run. Send it back to continue the conversation. |
| `region` | string (besg \| usnv \| null) | Yes | Data region the conversation is stored in. Null only on a failure answered before the region was resolved. |
| `message_id` | string (uuid) \| null | Yes | Id of the Genie's latest reply in the conversation; null while there is none. |
| `result` | string | No | The text of the Genie's latest reply. Present once the conversation holds a reply. |
| `widget` | object | No | The structured action the reply proposes, when the Genie attached one to its reply. |
| `options` | object (GenieReplyOptions) | No | Details attached to the reply. Carries approval when the Genie paused on an action that needs an approval; decide it with the approval decision operation using the same API key. |
| `options.approval` | object (GenieApproval) | No | An action the Genie is waiting to have approved before it runs it. |
| `options.approval.approval_id` | string (uuid) | Yes | Id of the approval, used to decide it. |
| `options.approval.type` | string (execute_module) | Yes | What kind of action waits: execute_module, a connector action. |
| `options.approval.region` | string (besg \| usnv) | Yes | Data region the approval is stored in. Allowed values: besg, usnv. |
| `options.approval.instructions` | string | Yes | What the Genie intends to do with the action. |
| `options.approval.status` | string (awaiting_approval \| rejected \| approved_once \| approved_always \| unknown_outcome) | Yes | State of the approval. awaiting_approval until it is decided. |
| `options.approval.decision_at` | string (date-time) \| null | Yes | When the approval was decided, ISO 8601 UTC without offset; null while it waits. |
| `options.approval.module_id` | string | No | Id of the connector action waiting for approval. |
| `options.approval.module_name` | string | No | Name of the connector action waiting for approval. |
| `options.approval.connection_id` | string \| null | No | Id of the connection the action would use. |
| `options.approval.connection_name` | string \| null | No | Name of the connection the action would use. |
| `options.approval_delivery` | object | No | Where the approval request was delivered when the run asked for an external delivery. |
| `attachments` | array of object (GenieReplyAttachment) | No | The files the reply produced, as stored file references. Present once the conversation holds a reply; empty when the reply has no file. |
| `attachments[].file_id` | string | Yes | Id of the stored file. |
| `attachments[].filename` | string | Yes | Name of the file. |
| `attachments[].content_type` | string | Yes | Media type of the file, such as application/pdf. |
| `error` | string | No | Why the run failed, when it stopped before the Genie answered or the region is unknown. |

### 204 validate_only was true and every check of the run passed (the Genie, the conversation). Nothing was asked and nothing was stored.

No body.

## Example request

```bash
curl -X POST "https://genies.stacksync.com/v1/workspaces/{workspace_id}/genies/run_wait_result" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": "Repeat the first thing I said to you.",
  "conversation_id": "d10c810f-1187-4a6e-9df9-ac2e87d02f2d",
  "region": "usnv"
}'
```

## Example response (200)

```json
{
  "status": "completed",
  "conversation_id": "d10c810f-1187-4a6e-9df9-ac2e87d02f2d",
  "region": "usnv",
  "message_id": "aef1f941-d148-4833-9118-86f59c358d5a",
  "result": "Hello, world! I am the Hello World API Demo genie.",
  "attachments": [],
  "options": {}
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The request could not be read: the body is not a JSON object, input is missing, source is a reserved value, validate_only is not true or false, or workspace_id is not a number. | `{ "error": string, "msg": string, "field": string }` |
| 403 | The caller is not allowed: Authorization Error (header missing or not Bearer), Invalid API Key (unknown key, key of another workspace, or a user who is not a member of the workspace), Content-Type Error (POST without application/json), Insufficient Scope (a read-only sign-in on a request that changes data) or Authentication Error (your role in the workspace is below editor). | `{ "error": string, "msg": string, "field": string }` |
| 404 | genie_id names no Genie in this region. | `{ "error": string (genie_not_found \| genie_inactive), "message": string }` |
| 409 | genie_id names a Genie that is switched off. Switch it on before asking it. | `{ "error": string (genie_not_found \| genie_inactive), "message": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi-genies.json
- [Get a Genie run](https://docs.stacksync.com/api-reference/genies/runs/get_genie_run)
- [Run a Genie](https://docs.stacksync.com/api-reference/genies/runs/run_genie)

# Get a Genie run

> Returns the state of a run started with Run a Genie and, once the Genie has answered, its latest reply. Pass the region the run answer carried: the conversation is read from that data region. While the Genie works, status is processing and there is no result; completed carries the reply in result and its id in message_id; failed means the run could not finish.

Source: https://docs.stacksync.com/api-reference/genies/runs/get_genie_run

`GET https://genies.stacksync.com/v1/workspaces/{workspace_id}/genies/run/{conversation_id}`

- Operation: `get_genie_run`
- Resource: Genie runs
- Access: read-only

## Authentication

- `Authorization: Bearer <key>`: A workspace API key (workspace_…, created by a workspace owner under Workspace settings > Stacksync API) acts with editor rights on that workspace only; a user API key (user_…, created under Profile > Stacksync API) acts as that user in every workspace they belong to. POST requests must send Content-Type: application/json. Every authentication failure answers 403. Running a Genie needs the editor role in the workspace.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | integer | Yes | The workspace whose Genie runs. A workspace API key works only on its own workspace; a user API key on any workspace the user belongs to. |
| `conversation_id` | string (uuid) | Yes | The conversation_id the run answer carried. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `region` | string (besg \| usnv) | No | Data region of the resources: the region the run answer carried. Allowed values: besg, usnv. Defaults to the region of the server that answers, so always pass it. |

## Returns

### 200 The run's current state. A conversation not yet stored answers processing.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | string (processing \| completed \| failed) | Yes | processing: the Genie is still working (or the message steered a run in progress). completed: the Genie answered; result holds the reply. failed: the run could not finish. |
| `conversation_id` | string (uuid) \| null | Yes | The conversation of the run. Send it back to continue the conversation. |
| `region` | string (besg \| usnv \| null) | Yes | Data region the conversation is stored in. Null only on a failure answered before the region was resolved. |
| `message_id` | string (uuid) \| null | Yes | Id of the Genie's latest reply in the conversation; null while there is none. |
| `result` | string | No | The text of the Genie's latest reply. Present once the conversation holds a reply. |
| `widget` | object | No | The structured action the reply proposes, when the Genie attached one to its reply. |
| `options` | object (GenieReplyOptions) | No | Details attached to the reply. Carries approval when the Genie paused on an action that needs an approval; decide it with the approval decision operation using the same API key. |
| `options.approval` | object (GenieApproval) | No | An action the Genie is waiting to have approved before it runs it. |
| `options.approval.approval_id` | string (uuid) | Yes | Id of the approval, used to decide it. |
| `options.approval.type` | string (execute_module) | Yes | What kind of action waits: execute_module, a connector action. |
| `options.approval.region` | string (besg \| usnv) | Yes | Data region the approval is stored in. Allowed values: besg, usnv. |
| `options.approval.instructions` | string | Yes | What the Genie intends to do with the action. |
| `options.approval.status` | string (awaiting_approval \| rejected \| approved_once \| approved_always \| unknown_outcome) | Yes | State of the approval. awaiting_approval until it is decided. |
| `options.approval.decision_at` | string (date-time) \| null | Yes | When the approval was decided, ISO 8601 UTC without offset; null while it waits. |
| `options.approval.module_id` | string | No | Id of the connector action waiting for approval. |
| `options.approval.module_name` | string | No | Name of the connector action waiting for approval. |
| `options.approval.connection_id` | string \| null | No | Id of the connection the action would use. |
| `options.approval.connection_name` | string \| null | No | Name of the connection the action would use. |
| `options.approval_delivery` | object | No | Where the approval request was delivered when the run asked for an external delivery. |
| `attachments` | array of object (GenieReplyAttachment) | No | The files the reply produced, as stored file references. Present once the conversation holds a reply; empty when the reply has no file. |
| `attachments[].file_id` | string | Yes | Id of the stored file. |
| `attachments[].filename` | string | Yes | Name of the file. |
| `attachments[].content_type` | string | Yes | Media type of the file, such as application/pdf. |
| `error` | string | No | Why the run failed, when it stopped before the Genie answered or the region is unknown. |

## Example request

```bash
curl -X GET "https://genies.stacksync.com/v1/workspaces/{workspace_id}/genies/run/{conversation_id}?region=usnv" \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"
```

## Example response (200)

```json
{
  "status": "completed",
  "conversation_id": "14d0a0ba-9352-44d6-a7f7-8fd2c3ce0388",
  "region": "usnv",
  "message_id": "346f36a0-1902-4871-87d1-11f2d5433d9b",
  "result": "Hello, world! I am the Hello World API Demo genie.",
  "attachments": [],
  "options": {}
}
```

## Errors

| Status | Meaning | Body |
| --- | --- | --- |
| 400 | The region is not a Stacksync data region. The body is a failed run envelope whose error names the region. | `{ "status": string (processing \| completed \| failed), "conversation_id": string (uuid) \| null, "region": string (besg \| usnv \| null), "message_id": string (uuid) \| null, "result": string, "widget": object, "options": object (GenieReplyOptions), "attachments": array of object (GenieReplyAttachment), "error": string }` |
| 403 | The caller is not allowed: Authorization Error (header missing or not Bearer), Invalid API Key (unknown key, key of another workspace, or a user who is not a member of the workspace), Content-Type Error (POST without application/json), Insufficient Scope (a read-only sign-in on a request that changes data) or Authentication Error (your role in the workspace is below editor). | `{ "error": string, "msg": string, "field": string }` |

## Related

- [API Reference overview](https://docs.stacksync.com/api-reference): base URLs, regions, pagination, idempotency and errors
- [Authentication](https://docs.stacksync.com/api-reference/authentication): API keys and the 403 answers
- OpenAPI document: https://docs.stacksync.com/openapi-genies.json
- [Run a Genie](https://docs.stacksync.com/api-reference/genies/runs/run_genie)
- [Run a Genie and wait for the result](https://docs.stacksync.com/api-reference/genies/runs/run_genie_and_wait)