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

# Get the organization and permissions of the calling key

> Any valid key may call it. Use it to check a key and its effective permissions before calling anything else. Returns no credential material.

Requires a valid key; no permission.



## OpenAPI

````yaml /openapi.json get /me
openapi: 3.1.0
info:
  title: Eloout API
  version: 1.1.1
  description: >-
    The Eloout public REST API. Authenticate with an organization API key
    (`Authorization: Bearer elo_…`) created in Settings → API keys.


    **Permissions.** Each operation needs one permission, listed in
    `x-eloout-required-scopes`; reading and writing are separate. A key without
    it gets 403 `FORBIDDEN` with `details.requiredScope`. `GET /me` reports a
    key's effective permissions. For the MCP server, create a key with exactly:
    `opportunities:read`, `pipelines:read`, `lists:read`, `records:read`.


    **Limits.** 120 requests per 60 s per key and 300 per 60 s per organization;
    20 failed authentications per 10 min per client IP. Bodies up to 1048576
    bytes.


    **Text limits.** Request strings are trimmed before they are checked: a
    length limit applies to the trimmed value, and the schemas express it as a
    `pattern` over that value. Lengths count Unicode characters (code points),
    as JSON Schema does.


    **Writes.** With `Idempotency-Key`, a retry of the same request with the
    same API key within 24 h gets the stored answer instead of running again;
    answers of 500 and above are not stored. `?dryRun=true` plans a write and
    changes nothing. Both only where listed.


    **Changelog.**

    - 1.1.1: descriptions corrected to match the server, no behaviour change.
    `X-RateLimit-Reset` is the number of seconds until the window resets, not a
    Unix time; the `X-RateLimit-*` headers come only on answers to an
    authenticated key; `Idempotency-Key` is 1–255 printable ASCII characters
    without spaces, and answers of 500 and above are not stored, so a retry
    after one runs the write again.

    - 1.1.0 (ELO-33): every operation requires a per-resource permission
    (`x-eloout-required-scopes`); `lists:write` is retired in favour of
    `records:write`; record endpoints need `records:read` / `records:write`
    instead of `lists:read` / `lists:write`; `GET /me` reports effective
    permissions and the `legacy` flag and no longer returns the key prefix. Keys
    created before this release were migrated to explicit permissions matching
    their previous access.

    - 1.0.0: first published contract of the existing `/api/v1` (opportunities,
    pipelines, custom fields, lists, records, webhooks).
servers:
  - url: https://app.eloout.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Account
  - name: Catalog
    description: Pipelines and opportunity custom fields (read only).
  - name: Opportunities
  - name: Lists
    description: List metadata (read only).
  - name: Records
    description: Records of a list.
  - name: Webhooks
    description: Outbound webhook subscriptions.
paths:
  /me:
    get:
      tags:
        - Account
      summary: Get the organization and permissions of the calling key
      description: >-
        Any valid key may call it. Use it to check a key and its effective
        permissions before calling anything else. Returns no credential
        material.


        Requires a valid key; no permission.
      operationId: getMe
      responses:
        '200':
          description: OK.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - data
                additionalProperties: false
                properties:
                  ok:
                    const: true
                  data:
                    $ref: '#/components/schemas/Me'
              examples:
                default:
                  value:
                    ok: true
                    data:
                      organization:
                        id: 6f1d2c3b-4a59-4e6f-8a7b-9c0d1e2f3a4b
                        name: Acme
                      apiKey:
                        id: f5e6f7a8-9b0c-4e1f-8a3b-4c5d6e7f8a9b
                        name: MCP read only
                        scopes:
                          - opportunities:read
                          - pipelines:read
                          - lists:read
                          - records:read
                        legacy: false
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  headers:
    X-RateLimit-Limit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Seconds until the current window resets (at least 1). Not a Unix time.
      schema:
        type: integer
    WWW-Authenticate:
      description: '`Bearer`.'
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  schemas:
    Me:
      type: object
      properties:
        organization:
          type: object
          properties:
            id:
              type: string
              description: UUID
            name:
              type: string
          required:
            - id
            - name
          additionalProperties: false
        apiKey:
          type: object
          properties:
            id:
              type: string
              description: UUID
            name:
              type: string
            scopes:
              type: array
              items:
                $ref: '#/components/schemas/Scope'
              description: The key's effective permissions.
            legacy:
              type: boolean
              description: >-
                True for a key issued before per-resource permissions (kept its
                broad access; review and replace it).
          required:
            - id
            - name
            - scopes
            - legacy
          additionalProperties: false
      required:
        - organization
        - apiKey
      additionalProperties: false
    Scope:
      type: string
      enum:
        - opportunities:read
        - opportunities:write
        - pipelines:read
        - custom-fields:read
        - lists:read
        - records:read
        - records:write
        - webhooks:read
        - webhooks:write
    Error:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
          additionalProperties: false
      required:
        - ok
        - error
      additionalProperties: false
  responses:
    Unauthenticated:
      description: Missing, malformed, unknown or revoked key.
      headers:
        WWW-Authenticate:
          $ref: '#/components/headers/WWW-Authenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            default:
              value:
                ok: false
                error:
                  code: UNAUTHENTICATED
                  message: Invalid or revoked API key
    Forbidden:
      description: >-
        `FORBIDDEN` when the key lacks the operation's permission
        (`details.requiredScope`); `PLAN_READ_ONLY` or `PLAN_LIMIT_REACHED` when
        the organization's plan refuses a write.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            default:
              value:
                ok: false
                error:
                  code: FORBIDDEN
                  message: This API key lacks the opportunities:write scope
                  details:
                    requiredScope: opportunities:write
    RateLimited:
      description: >-
        Too many requests for the key, its organization, or failed
        authentications from the client IP. Every 429 has `Retry-After`; the
        `X-RateLimit-*` headers come only when the key's or the organization's
        limit refused the request, not on the failed-authentication limit.
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            default:
              value:
                ok: false
                error:
                  code: RATE_LIMITED
                  message: Too many requests for this API key or its organization
    InternalError:
      description: >-
        Unexpected failure. The write may or may not have happened, and the
        answer is not stored for `Idempotency-Key`: a retry runs the write
        again, so check the resource first.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An organization API key: `elo_` followed by 43 characters.'

````

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