> ## 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.

# List opportunity custom fields

> Requires the `custom-fields:read` permission.



## OpenAPI

````yaml /openapi.json get /custom-fields
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:
  /custom-fields:
    get:
      tags:
        - Catalog
      summary: List opportunity custom fields
      description: Requires the `custom-fields:read` permission.
      operationId: listCustomFields
      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/CustomFieldCollection'
              examples:
                default:
                  value:
                    ok: true
                    data:
                      customFields:
                        - id: 3e4f5a6b-7c8d-4e9f-8a1b-2c3d4e5f6a7b
                          name: Payment term (days)
                          type: number
                          entity: opportunity
                          required: false
                          options: []
        '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:
    CustomFieldCollection:
      type: object
      properties:
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/CustomField'
      required:
        - customFields
      additionalProperties: false
    CustomField:
      type: object
      properties:
        id:
          type: string
          description: UUID
        name:
          type: string
        type:
          type: string
          enum:
            - text
            - long_text
            - number
            - currency
            - date
            - datetime
            - boolean
            - single_select
            - multi_select
            - phone
            - email
            - url
            - relation
        entity:
          type: string
          const: opportunity
        required:
          type: boolean
        options:
          type: array
          items:
            type: string
          description: Allowed values of a select field; empty for other types.
      required:
        - id
        - name
        - type
        - entity
        - required
        - options
      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
    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.