Codag Whoami API

The Whoami API from Codag — 1 operation(s) for whoami.

Operations 1

GET /v1/whoami Whoami Endpoint #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/codag-whoami-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

codag-whoami-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: infra-logs templater Activate Whoami API
  description: Token compression for log streams. POST raw logs, get back templates or capsules.
  version: 0.1.0
servers:
- url: https://api.codag.ai
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Whoami
paths:
  /v1/whoami:
    get:
      summary: Whoami Endpoint
      description: 'Return the authenticated user and token-selected org, if any.


        Same JWT shape as /api/auth/me — accessible from the CLI via the

        Bearer access_token issued by /oauth/token. Used both as `codag

        whoami` and as the post-login validation step in `codag setup`.'
      operationId: whoami_endpoint_v1_whoami_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoamiResponse'
      tags:
      - Whoami
components:
  schemas:
    WhoamiResponse:
      properties:
        user_id:
          type: integer
          title: User Id
        email:
          type: string
          title: Email
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        org_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Id
        org_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Name
        org_slug:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Slug
        role:
          anyOf:
          - type: string
          - type: 'null'
          title: Role
      type: object
      required:
      - user_id
      - email
      title: WhoamiResponse