Codag · Authentication Profile

Codag Authentication

Authentication

Codag secures its APIs with http, oauth2, and apiKey across 4 declared security schemes, as derived from its OpenAPI definitions. OAuth 2.0 is offered via the deviceCode flow(s).

CompanyDeveloper ToolsLoggingObservabilityLog CompressionAI AgentsMCPLLM ToolingDebuggingY Combinator
Methods: http, oauth2, apiKey Schemes: 4 OAuth flows: deviceCode API key in:

Security Schemes

BearerToken http
scheme: bearer
OAuthDeviceFlow oauth2
GoogleSignIn openIdConnect
AnonymousToken http
scheme: bearer

Source

Authentication Profile

Raw ↑
generated: '2026-07-18'
method: searched
source: https://codag.ai/docs/rest-api.html
docs: https://codag.ai/docs
notes: >-
  The published openapi.json declares no components.securitySchemes (FastAPI app
  applies auth via dependencies), so this profile is reconstructed from the REST
  API docs and the spec's OAuth/key operations. Two request-time credential
  models: an org-scoped Bearer API token for the compaction API, and an OAuth 2.0
  device-authorization flow used by the CLI. Console/web sessions use Google
  sign-in. The free compaction path is unauthenticated.
summary:
  types: [http, oauth2, apiKey]
  http_schemes: [bearer]
  oauth2_flows: [deviceCode]
schemes:
  - name: BearerToken
    type: http
    scheme: bearer
    location: header
    header: Authorization
    format: "Authorization: Bearer <api-token>"
    issued_via:
      - POST /api/orgs/{slug}/keys       # create_key (org-scoped API key)
      - POST /api/org/keys               # create_current_org_key
    used_by:
      - POST /v1/compact                 # inference compaction (Pro) / drain (Free)
      - GET  /v1/whoami
    docs: https://codag.ai/docs/rest-api.html
  - name: OAuthDeviceFlow
    type: oauth2
    flow: deviceCode
    device_authorization_endpoint: https://api.codag.ai/oauth/device/code
    token_endpoint: https://api.codag.ai/oauth/token
    used_by:
      - codag auth login (CLI)
    notes: RFC 8628 device authorization grant used by the codag CLI to obtain tokens.
  - name: GoogleSignIn
    type: openIdConnect
    provider: google
    used_by:
      - POST /api/auth/google            # google_login (console/web session)
      - POST /api/auth/console-session   # mint_console_session
  - name: AnonymousToken
    type: http
    scheme: bearer
    issued_via:
      - POST /v1/anonymous/token         # anonymous_token_endpoint
    notes: Short-lived anonymous token for trial / unauthenticated free usage.
unauthenticated:
  - POST /v1/free/compact                # deterministic drain compaction, no auth
  - GET  /health

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/codag-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.