API Reference
Mint a Saffron connect session (cardamom / catalog)
/api/connectors/{id}/connect-session
Cardamom / catalog connectors only. Uses the deploy's SAFFRON_API_TOKEN (sfk_…) against Saffron /v1. Ensures the installed integration exists, refreshes the environment redirect allow-list, and returns a connect_url. Returns 400 BYOA_REQUIRED when the catalog OAuth client.id is dummy and no customer OAuth app has been configured yet.
Operation IDcreateConnectorConnectSession
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Request body
Content typeapplication/json
requestobject5 properties
integration_slugstringCatalog slug to connect (falls back to connector config.integration)
tenant_idstringenvironment_idstringIgnored for /v1 (taken from the sfk_ token scope)
redirect_uristringreconnect_account_idstringSuccess response body
200Connect session minted
Connect session minted
Content typeapplication/json
responseobject2 properties
connect_sessionstringrequiredconnect_urlstring · urirequiredError responses
400Not a cardamom connector, BYOA required, or invalid body
Not a cardamom connector, BYOA required, or invalid body
No response content schema is documented.
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}500Connect session mint failed
Connect session mint failed
No response content schema is documented.