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.
mcpOAuthis forPOST /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.sessionBeareris 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.
MCP host sign-in
Section titled “MCP host sign-in”- A host asks
/.well-known/oauth-protected-resource/api/mcpwhich issuer signs it in. - 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.
- 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.
Maker routes
Section titled “Maker routes”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.
What a token never does
Section titled “What a token never does”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.