Skip to Content
iAdvizeDocs

Install a connector

Installs a connector of a type on the site, with the rules of the dashboard's connector store: the connection is tested before anything is saved, the tools the server lists are kept, switched on or off by the type's default-tool rule, and a site holds one connector per native type (`custom` excepted). A failed test saves nothing and answers `422` with its `cause`; send the same request with `anyway: true` to install it untested. A `custom` connector installed with `authMode: "oauth"` is created without a test and not connected: a member signs in with the vendor from `connection.connectUrl`. Secrets may be left out and set later from the connector's `dashboardUrl`: `unsetSecrets` lists them. Records a `connector.added` audit entry, and a `site.updated` entry when `updateSitePlatform` changes the site's platform.

POST
/api/v1/sites/{siteId}/connectors

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).

Path Parameters

siteId*string

The site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.

Request Body

application/json
  1. body

The connector to install, by type. Secrets may be left out and set later from the dashboard.

type*string
shopDomain*string

The store domain (example.myshopify.com or the store's own domain); the MCP address is derived from it.

anyway?boolean

Install without testing the connection, after a failed test. The connector is created with no tools and a check that never answered.

Defaultfalse
updateSitePlatform?boolean

When the connector serves another site platform than the site declares, change the site's platform to it. Off by default: the site is left as it is and platform reports the difference.

Defaultfalse

Response Body

The installed connector, the secrets left to set and the platform difference.

application/json
  1. response
data*
Example Request
curl -X POST 'https://example.com/api/v1/sites/string/connectors' \  -H 'Content-Type: application/json' \  -d '{  "type": "commercetools",  "url": "https://mcp.example-store.com/mcp",  "headers": [    {      "name": "X-Project-Key",      "value": "example-store",      "secret": false    }  ]}'
Example Response
{  "data": {    "connector": {      "id": "conn_01kvnwmagvf27rc9cze5rm9e1r",      "siteId": "site_01kvnwmagvf27rc9cze5rm9e1s",      "type": "commercetools",      "name": "commercetools",      "url": "https://mcp.example-store.com/mcp",      "authMode": "token",      "connection": null,      "tokenSet": false,      "headers": [        {          "name": "X-Project-Key",          "secret": false,          "set": true,          "value": "example-store"        }      ],      "settings": null,      "tools": [        {          "name": "search_products",          "description": "Search the product catalog.",          "enabled": true        },        {          "name": "create_cart",          "description": null,          "enabled": false        }      ],      "disabledTools": [        "create_cart"      ],      "lastCheckedAt": "2026-11-19T10:00:00.000Z",      "lastAnsweredAt": "2026-11-19T10:00:00.000Z",      "dashboardUrl": "https://iadvize.ai/dashboard/sites/site_01kvnwmagvf27rc9cze5rm9e1s/connectors/conn_01kvnwmagvf27rc9cze5rm9e1r",      "createdAt": "2026-11-19T10:00:00.000Z",      "updatedAt": "2026-11-19T10:00:00.000Z"    },    "unsetSecrets": [      {        "kind": "token",        "name": null      }    ],    "platform": {      "connector": "commercetools",      "site": "custom",      "aligned": false    }  }}