SDK reference

Connectors

Each route's function in the SDK, its call beside the same request in cURL.
orgConnectors

GET/v1/orgs/:orgId/connectors

Lists connectors. Credentials are never returned. Also limit, the plan's maxConnectors.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgConnectorsByConnectorId

GET/v1/orgs/:orgId/connectors/:connectorId

A connector with its cached tools and the names they have on the MCP server.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgConnectors

POST/v1/orgs/:orgId/connectors

Registers a remote MCP server.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "slug": "example",
    "url": "https://example.com"
  }'
postOrgConnectorsTest

POST/v1/orgs/:orgId/connectors/:connectorId/test

Connects to the server and caches its tool list. A failed check keeps the last good list and records the error.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}/test' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgConnectorsByConnectorId

PATCH/v1/orgs/:orgId/connectors/:connectorId

Renames, enables or disables a connector, or replaces its credential.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "enabled": true,
    "secret": "example"
  }'
deleteOrgConnectorsByConnectorId

DELETE/v1/orgs/:orgId/connectors/:connectorId

Deletes a connector.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgConnectorsOauthStart

POST/v1/orgs/:orgId/connectors/:connectorId/oauth/start

OAuth connectors: finds the server's sign-in (and registers a client when the server allows it), stores a one-time state with a PKCE verifier and returns the authorization URL to send the user to.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}/oauth/start' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "returnTo": "example"
  }'
postOrgConnectorsOauthCallback

POST/v1/orgs/:orgId/connectors/oauth/callback

Completes a connector sign-in: consumes the state (one use; same user and org), exchanges the code, stores the tokens encrypted and checks the connector's tools with them.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/oauth/callback' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "state": "example"
  }'
deleteOrgConnectorsOauthSession

DELETE/v1/orgs/:orgId/connectors/:connectorId/oauth/session

Signs out: the caller's own sign-in to a per-person connector, or the shared sign-in (connectors:write).

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}/oauth/session' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"