Complete OAuth connection
/titan/tools/connections/callbackExchange an OAuth code for a connected account. The browser GET callback also uses this handler.
Requires permission tool-gateway:auth:write.
Headers
Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).
Workspace scope used by permission checks, if applicable.
Optional environment scope.
Body parameters
Returns
201CreatedConnectedAccount
Attributes are non-secret connection attributes, only the names reserves for per-tenant hosts (site, subdomain, region, instance_url): values a token response maps (Salesforce instance_url) and the non-secret credential fields of those names. They are derived, never caller-supplied, never a token, and nothing routes on them yet.
DestinationBoundaries carries administrator-assigned destination scope in canonical "type:id" form (e.g. "github.organization:acme"). A Titan grant's required boundaries must all be present here for the connection to be eligible.
Permissions are normalized permissions derived from granted scopes at connect time (e.g. "repo"); a grant's required_permissions must be a subset.
PrincipalType is the destination-principal class this connection represents (e.g. "oauth_user", "mcp_credential"). It must be one of a grant's principal_types.
Tags are administrator-assigned labels; a grant's required_tags must be a subset.
Errors
- 400Bad Request
- 401Unauthenticated: token missing or rejected at the edge
- 403Forbidden: caller lacks the required permission