SDK reference
Connectors
GET/
Lists connectors. Credentials are never returned. Also limit, the plan's maxConnectors.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A connector with its cached tools and the names they have on the MCP server.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"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"
}'POST/
Connects to the server and caches its tool list. A failed check keeps the last good list and records the error.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}/test' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames, enables or disables a connector, or replaces its credential.
Parameters and answerscurl -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"
}'DELETE/
Deletes a connector.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
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 answerscurl -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"
}'POST/
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 answerscurl -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"
}'DELETE/
Signs out: the caller's own sign-in to a per-person connector, or the shared sign-in (connectors:write).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/connectors/{connectorId}/oauth/session' \
-H "Authorization: Bearer $CACTIVE_TOKEN"