> ## 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 a record by code or ID

> `ref` is the record's code (`FA-00012`) or its id.

Requires the `records:read` permission.



## OpenAPI

````yaml /openapi.json get /lists/{listId}/records/{ref}
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:
  /lists/{listId}/records/{ref}:
    get:
      tags:
        - Records
      summary: Get a record by code or ID
      description: |-
        `ref` is the record's code (`FA-00012`) or its id.

        Requires the `records:read` permission.
      operationId: getListRecord
      parameters:
        - name: listId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: ref
          in: path
          required: true
          schema:
            type: string
          description: The record's code or id.
      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/ListRecord'
              examples:
                default:
                  value:
                    ok: true
                    data:
                      id: 8d9e0f1a-2b3c-4d4e-9f6a-7b8c9d0e1f2a
                      listId: 5a6b7c8d-9e0f-4a1b-8c3d-4e5f6a7b8c9d
                      code: FA-00012
                      externalId: INV-77
                      externalKeys:
                        - source: null
                          externalId: INV-77
                      stage:
                        id: 7c8d9e0f-1a2b-4c3d-8e5f-6a7b8c9d0e1f
                        name: Due
                        kind: OPEN
                      closedAt: null
                      values:
                        6b7c8d9e-0f1a-4b2c-9d4e-5f6a7b8c9d0e: 480000
                      createdAt: '2026-11-25T08:00:00.000Z'
                      updatedAt: '2026-12-01T09:30:00.000Z'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '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:
    ListRecord:
      type: object
      properties:
        id:
          type: string
          description: UUID
        listId:
          type: string
          description: UUID
        code:
          description: The record's code (`FA-00012`).
          type:
            - string
            - 'null'
        externalId:
          type:
            - string
            - 'null'
        externalKeys:
          type: array
          items:
            type: object
            properties:
              source:
                type:
                  - string
                  - 'null'
              externalId:
                type: string
            required:
              - source
              - externalId
            additionalProperties: false
          description: 'Deprecated: the same ID as `externalId`, as a one-item list.'
        stage:
          anyOf:
            - type: object
              properties:
                id:
                  type: string
                  description: UUID
                name:
                  type: string
                kind:
                  type: string
                  enum:
                    - OPEN
                    - WON
                    - LOST
              required:
                - id
                - name
                - kind
              additionalProperties: false
            - type: 'null'
        closedAt:
          anyOf:
            - type: string
              description: ISO 8601 date-time (UTC)
            - type: 'null'
        values:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: array
                items:
                  type: string
              - type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: UUID
                    listId:
                      type: string
                      description: UUID
                    code:
                      type:
                        - string
                        - 'null'
                  required:
                    - id
                    - listId
                    - code
                  additionalProperties: false
          description: >-
            By column id; a column without a value is absent. A relation column
            holds its picked records.
        createdAt:
          type: string
          description: ISO 8601 date-time (UTC)
        updatedAt:
          type: string
          description: ISO 8601 date-time (UTC)
      required:
        - id
        - listId
        - code
        - externalId
        - externalKeys
        - stage
        - closedAt
        - values
        - createdAt
        - updatedAt
      additionalProperties: false
    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
    NotFound:
      description: Not found in the key's organization.
      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: NOT_FOUND
                  message: Opportunity not found
    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.