> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erdo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MeAPI returns the authenticated user, their currently-active org (the one


> resolved from the token + X-Organization-ID header), and how the caller reaches that org: directly as a member or through an eligible manager.




## OpenAPI

````yaml /api/openapi.json get /v1/me
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-21'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/me:
    get:
      summary: >
        MeAPI returns the authenticated user, their currently-active org (the
        one
      description: >
        resolved from the token + X-Organization-ID header), and how the caller
        reaches that org: directly as a member or through an eligible manager.
      operationId: GET:mcp.MeAPI
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  access:
                    $ref: '#/components/schemas/mcp.MeAccess'
                  credential_id:
                    description: >
                      The CLI matches it to replace only the saved login that a
                      rotation invalidated; absent when the request was not
                      authenticated by an API key.
                    title: |
                      CredentialID identifies the API key used for this request.
                    type: string
                  email:
                    type: string
                  organization_id:
                    type: string
                  organization_name:
                    type: string
                  organization_slug:
                    description: >
                      only part of an org's identity that is unique and short
                      enough to read. Two orgs can carry the same display name,
                      so a whoami that answers with a name alone can leave the
                      reader confident about the wrong tenant.
                    title: >
                      OrganizationSlug is what a person types back into `--org`,
                      and it is the
                    type: string
                  user_id:
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    mcp.MeAccess:
      properties:
        manager_organization_id:
          type: string
        manager_organization_slug:
          type: string
        via:
          $ref: '#/components/schemas/organization.AccessVia'
      type: object
    organization.AccessVia:
      title: |
        AccessVia describes how a caller reaches an active organization.
      type: string
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.