Skip to main content
GET
OAuth redirect target that receives the authorization code

Query Parameters

state
string

The one-time state issued by POST /mcp-connections; identifies the authorization flow this callback belongs to. Optional only so that a malformed callback still redirects the browser to a page that can explain itself; in practice the authorization server always returns it.

code
string

The one-time authorization code issued by the external authorization server. Present on success, mutually exclusive with error.

error
string

An RFC 6749 §4.1.2.1 error code, sent instead of code when the user declines or the authorization server refuses.

Response

303

The browser is redirected to the Narrative app's callback page, which completes the connection. Every outcome is reported this way — success, the user declining, an expired state — with the details in the query parameters rather than in an error body.