Skip to content

Authentication

Every signed-in route takes a bearer token in the Authorization header. The API never reads a cookie. There are two kinds of token, and the API reference marks each route with the one it takes.

  • mcpOAuth is for POST /api/mcp. The host obtains an OAuth 2.1 access token from the issuer in the discovery document, using authorization code with PKCE and the MCP resource in both exchanges.
  • sessionBearer is the access token from the Maker’s COGGS sign-in. Use it for runs, Patch, presets, Console, Rewards and invites.

Public routes (the feed, a play link, the Market, a Maker page, the starter Templates) need no token.

  1. A host asks /.well-known/oauth-protected-resource/api/mcp which issuer signs it in.
  2. It runs the authorization code flow with PKCE against that issuer, using a public client id registered for the host and a loopback callback port.
  3. It sends the access token to POST /api/mcp.
터미널 창
curl -s "$COGGS_URL/.well-known/oauth-protected-resource/api/mcp"

The operator has to switch host sign-in on first. While it is off the discovery document answers 404 and POST /api/mcp answers 503. Your client does steps 2 and 3 for you: see the Quickstart.

The Maker routes take the access token the COGGS sign-in gives a signed-in Maker. There are no public API keys yet; they come after early access, and until then the Maker routes are what the COGGS apps call. A request with no token or a bad one answers 401. A route that returns another account’s data answers 404 as if it did not exist.

A token proves who you are. It never carries a verdict, a maker class or an invite: the service reads those from its own records.