Skip to content

Authentication

All API and MCP requests require authentication via a Bearer token in the Authorization header.

Generate tokens in Settings → API Tokens at app.myhypedoc.com/settings.

Authorization: Bearer hdoc_xxxxxxxxxxxxxxxxxxxx

Tokens are hashed at rest — you can only see the full token once at creation time. If you lose a token, revoke it and create a new one.

Terminal window
curl https://app.myhypedoc.com/api/v1/wins \
-H "Authorization: Bearer hdoc_xxxxxxxxxxxxxxxxxxxx"

The MCP server uses OAuth 2.1 with PKCE for authentication. MCP clients like Claude Desktop and Cursor handle the OAuth flow automatically using the well-known discovery endpoints:

EndpointURL
Protected Resource Metadatahttps://app.myhypedoc.com/.well-known/oauth-protected-resource
Authorization Server Metadatahttps://app.myhypedoc.com/.well-known/oauth-authorization-server

See MCP OAuth 2.1 Flow for the full specification.

Requests without a valid token receive a 401 Unauthorized response:

{
"error": "Authentication required"
}

Unauthenticated API requests are rate-limited to 10 requests per minute per IP. See Rate Limits.