> ## 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 an opportunity

> Requires the `opportunities:read` permission.



## OpenAPI

````yaml /openapi.json get /opportunities/{id}
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:
  /opportunities/{id}:
    get:
      tags:
        - Opportunities
      summary: Get an opportunity
      description: Requires the `opportunities:read` permission.
      operationId: getOpportunity
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      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/Opportunity'
              examples:
                default:
                  value:
                    ok: true
                    data:
                      id: 4f5a6b7c-8d9e-4f0a-9b2c-3d4e5f6a7b8c
                      title: Annual plan — Acme
                      value: '1250000.00'
                      discount: null
                      currency: COP
                      pipeline:
                        id: 0b6c1e2d-3f4a-4b5c-8d6e-7f8091a2b3c4
                        name: Sales
                      stage:
                        id: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
                        name: Proposal
                        kind: open
                      contact:
                        id: c2b3c4d5-6e7f-4b8c-9d0e-1f2a3b4c5d6e
                        name: Ana Pérez
                        phone: '+573001234567'
                      client:
                        id: d3c4d5e6-7f8a-4c9d-8e1f-2a3b4c5d6e7f
                        name: Acme S.A.S.
                        taxId: '900123456'
                      externalId: ERP-1001
                      externalKeys:
                        - source: null
                          externalId: ERP-1001
                      customFields:
                        3e4f5a6b-7c8d-4e9f-8a1b-2c3d4e5f6a7b: 30
                      closedAt: null
                      createdAt: '2026-11-20T15:04:05.000Z'
                      updatedAt: '2026-12-01T10:00: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:
    Opportunity:
      type: object
      properties:
        id:
          type: string
          description: UUID
        title:
          type:
            - string
            - 'null'
        value:
          description: Exact decimal as stored ("1250000.50"), or null.
          type:
            - string
            - 'null'
        discount:
          description: Fixed discount of a lines opportunity (exact decimal), or null.
          type:
            - string
            - 'null'
        currency:
          type: string
        pipeline:
          type: object
          properties:
            id:
              type: string
              description: UUID
            name:
              type: string
          required:
            - id
            - name
          additionalProperties: false
        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'
        contact:
          anyOf:
            - type: object
              properties:
                id:
                  type: string
                  description: UUID
                name:
                  type:
                    - string
                    - 'null'
                phone:
                  type:
                    - string
                    - 'null'
              required:
                - id
                - name
                - phone
              additionalProperties: false
            - type: 'null'
        client:
          anyOf:
            - type: object
              properties:
                id:
                  type: string
                  description: UUID
                name:
                  type: string
                taxId:
                  type:
                    - string
                    - 'null'
              required:
                - id
                - name
                - taxId
              additionalProperties: false
            - type: '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.'
        customFields:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            Values of the organization's live opportunity custom fields, keyed
            by field id (see GET /custom-fields).
        closedAt:
          anyOf:
            - type: string
              description: ISO 8601 date-time (UTC)
            - type: 'null'
        createdAt:
          type: string
          description: ISO 8601 date-time (UTC)
        updatedAt:
          type: string
          description: ISO 8601 date-time (UTC)
      required:
        - id
        - title
        - value
        - discount
        - currency
        - pipeline
        - stage
        - contact
        - client
        - externalId
        - externalKeys
        - customFields
        - closedAt
        - 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.