ClickFunnels Sales::Opportunity API

> Sales Opportunities Sales Opportunities are initially created in a specific stage of a Pipeline and can be moved between different stages within that Pipeline. Each Sales Opportunity requires a name and a reference to a Primary Contact. If the Opportunity is associated with a new Contact, you must first create the Contact using the Contacts API. The `value` field, which is optional, represents the potential value of the Opportunity in the default currency of the Workspace. You can assign an Opportunity to a Team Member using the `assignee_id` field. To reassign the Opportunity to a different team member, simply update this value. To remove the assignee, set the `assignee_id` to `null`. The `assignee_id` corresponds to the `membership.id` in the relevant Team, which can be retrieved using the Teams API. When an Opportunity is moved to a stage with a `close_probability` value of 0 or 100, the `closed_at` timestamp is automatically set. If the Opportunity is later moved to a different stage, the `closed_at` timestamp remains unchanged. You can also manually set the `closed_at` timestamp using the API.

Operations 5

GET /workspaces/{workspace_id}/sales/opportunities List Opportunities #
POST /workspaces/{workspace_id}/sales/opportunities Create Opportunity #
GET /sales/opportunities/{id} Fetch Opportunity #
PUT /sales/opportunities/{id} Update Opportunity #
DELETE /sales/opportunities/{id} Remove Opportunity #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/clickfunnels-sales-opportunity-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

clickfunnels-sales-opportunity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ClickFunnels Sales::Opportunity API
  termsOfService: https://www.clickfunnels.com/terms-of-service
  contact:
    name: ClickFunnels API Team
    url: https://developers.myclickfunnels.com
  x-logo:
    url: https://statics.myclickfunnels.com/image/1126065/file/31edf05760fafe41a82f16a668ab251f.png
  description: 'The ClickFunnels REST API that powers webhooks, native integrations, and Zapier lets you manage your ClickFunnels data, automate your workflows, and recreate ClickFunnels functionality in your own apps.

    '
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 2.0.0
servers:
- url: https://{subdomain}.myclickfunnels.com/api/v2
  description: ClickFunnels API
  variables:
    subdomain:
      default: myworkspace
security:
- BearerAuth: []
tags:
- name: Sales::Opportunity
  description: '>  Sales Opportunities


    Sales Opportunities are initially created in a specific stage of a Pipeline and can be moved between different stages within that Pipeline.


    Each Sales Opportunity requires a name and a reference to a Primary Contact. If the Opportunity is associated with a new Contact, you must first create the Contact using the Contacts API.


    The `value` field, which is optional, represents the potential value of the Opportunity in the default currency of the Workspace.


    You can assign an Opportunity to a Team Member using the `assignee_id` field. To reassign the Opportunity to a different team member, simply update this value. To remove the assignee, set the `assignee_id` to `null`. The `assignee_id` corresponds to the `membership.id` in the relevant Team, which can be retrieved using the Teams API.


    When an Opportunity is moved to a stage with a `close_probability` value of 0 or 100, the `closed_at` timestamp is automatically set. If the Opportunity is later moved to a different stage, the `closed_at` timestamp remains unchanged. You can also manually set the `closed_at` timestamp using the API.

    '
paths:
  /workspaces/{workspace_id}/sales/opportunities:
    get:
      tags:
      - Sales::Opportunity
      summary: List Opportunities
      description: List Opportunities
      operationId: listSalesOpportunities
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/after'
      - $ref: '#/components/parameters/sort_order'
      - name: sort_property
        in: query
        description: 'Sort property of a list response. The default is id and thus the created_at order.

          If you sort by other properties, we additionally sort by id implicitly as a secondary sort property, so that you can rely on the sort order to be deterministic even if the main sort property ends up with the same values.

          '
        required: false
        schema:
          type: string
          enum:
          - id
          - updated_at
          - sort_order
      - name: filter
        in: query
        description: 'Filter by available properties in query params, like this: `api/v2/resources?filter[id]=value&filter[another_property]=value1,value2`. Check our Filtering guide for examples and all about filtering [here](https://developers.myclickfunnels.com/docs/filtering).

          '
        required: false
        schema:
          type: object
          properties:
            id:
              type: string
              description: A comma-separated list of opportunity IDs to filter by.
              example: 1,42
            pipeline_id:
              type: string
              description: A comma-separated list of pipeline IDs to filter by.
              example: 1,42
            pipelines_stage_id:
              type: string
              description: A comma-separated list of pipelines stage IDs to filter by.
              example: 1,42
            primary_contact_id:
              type: string
              description: A comma-separated list of primary contact IDs to filter by.
              example: 1,42
            assignee_id:
              type: string
              description: A comma-separated list of assignee memberships IDs to filter by.
              example: 1,42
        style: deepObject
        explode: true
      responses:
        '200':
          description: OK
          headers:
            Pagination-Next:
              $ref: '#/components/headers/PaginationNext'
            Link:
              $ref: '#/components/headers/Link'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SalesOpportunityAttributes'
              example:
              - id: 121
                public_id: btWsEF
                name: Example Opportunity
                workspace_id: 42000
                pipeline_id: null
                pipelines_stage_id: 93
                primary_contact_id: 230
                value: '100.0'
                sort_order: 0
                closed_at: '2025-01-01T00:00:00.000Z'
                created_at: '2025-01-01T00:00:00.000Z'
                updated_at: '2025-01-01T00:00:00.000Z'
                pipeline:
                  id: 23
                  public_id: HitAmN
                  name: Example Pipeline
                pipelines_stage:
                  id: 93
                  public_id: hDwypl
                  name: Example Stage
                primary_contact:
                  id: 24359
                  public_id: vQxYMj
                  workspace_id: 4
                  anonymous: 0
                  email_address: jane.doe@example.com
                  first_name: Jane
                  last_name: Doe
                  phone_number: '+18005550199'
                  time_zone: Madrid
                  uuid: 80b7f903-76cd-4edf-94bf-fc34c13ee654
                  unsubscribed_at: null
                  last_notification_email_sent_at: null
                  email_suppression_reason: null
                  is_active: true
                  fb_url: null
                  twitter_url: null
                  instagram_url: null
                  linkedin_url: null
                  website_url: null
                  created_at: '2026-01-09T15:27:56.647Z'
                  updated_at: '2026-01-09T15:28:08.075Z'
                  tags: []
                  custom_attributes: {}
                  visits:
                    first_visit:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                    last_visit: null
                    last_visit_with_utm:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                assignee_id: null
                notes:
                - id: 242
                  public_id: yYtAjP
                  content: Example note
                  created_by_id: 270
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
                - id: 243
                  public_id: CvSOcu
                  content: Example note
                  created_by_id: 271
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
              - id: 128
                public_id: GbjyKd
                name: Example Opportunity
                workspace_id: 42000
                pipeline_id: null
                pipelines_stage_id: 96
                primary_contact_id: 237
                value: '100.0'
                sort_order: 1
                closed_at: '2025-01-01T00:00:00.000Z'
                created_at: '2025-01-01T00:00:00.000Z'
                updated_at: '2025-01-01T00:00:00.000Z'
                pipeline:
                  id: 24
                  public_id: mtrsfR
                  name: Example Pipeline
                pipelines_stage:
                  id: 96
                  public_id: tdzsUR
                  name: Example Stage
                primary_contact:
                  id: 24359
                  public_id: vQxYMj
                  workspace_id: 4
                  anonymous: 0
                  email_address: jane.doe@example.com
                  first_name: Jane
                  last_name: Doe
                  phone_number: '+18005550199'
                  time_zone: Madrid
                  uuid: 80b7f903-76cd-4edf-94bf-fc34c13ee654
                  unsubscribed_at: null
                  last_notification_email_sent_at: null
                  email_suppression_reason: null
                  is_active: true
                  fb_url: null
                  twitter_url: null
                  instagram_url: null
                  linkedin_url: null
                  website_url: null
                  created_at: '2026-01-09T15:27:56.647Z'
                  updated_at: '2026-01-09T15:28:08.075Z'
                  tags: []
                  custom_attributes: {}
                  visits:
                    first_visit:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                    last_visit: null
                    last_visit_with_utm:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                assignee_id: null
                notes:
                - id: 256
                  public_id: ljeBRN
                  content: Example note
                  created_by_id: 284
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
                - id: 257
                  public_id: KAeTQr
                  content: Example note
                  created_by_id: 285
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: API key missing or invalid
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Not found - This usually happens when you try to access a record that does not exist in your account. It can also happen when the provided parent record is missing, e.g. you have put in a non-existent Workspaces parent ID.
              example:
                error: 'Not found: Record missing'
    post:
      tags:
      - Sales::Opportunity
      summary: Create Opportunity
      description: Create Opportunity
      operationId: createSalesOpportunities
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        description: Information about a new Opportunity
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sales_opportunity:
                  type: object
                  $ref: '#/components/schemas/SalesOpportunityParameters'
            example:
              sales_opportunity:
                name: Example Opportunity
                pipelines_stage_id: 42
                primary_contact_id: 26
                value: '100.0'
                closed_at: '2025-01-01T00:00:00.000Z'
                assignee_id: 42
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOpportunityAttributes'
              example:
                id: 142
                public_id: ErgUxn
                name: Example Opportunity
                workspace_id: 42000
                pipeline_id: null
                pipelines_stage_id: 102
                primary_contact_id: 251
                value: '100.0'
                sort_order: 0
                closed_at: '2025-01-01T00:00:00.000Z'
                created_at: '2025-01-01T00:00:00.000Z'
                updated_at: '2025-01-01T00:00:00.000Z'
                pipeline:
                  id: 26
                  public_id: klSaQR
                  name: Example Pipeline
                pipelines_stage:
                  id: 102
                  public_id: ZeQGtn
                  name: Example Stage
                primary_contact:
                  id: 24359
                  public_id: vQxYMj
                  workspace_id: 4
                  anonymous: 0
                  email_address: jane.doe@example.com
                  first_name: Jane
                  last_name: Doe
                  phone_number: '+18005550199'
                  time_zone: Madrid
                  uuid: 80b7f903-76cd-4edf-94bf-fc34c13ee654
                  unsubscribed_at: null
                  last_notification_email_sent_at: null
                  email_suppression_reason: null
                  is_active: true
                  fb_url: null
                  twitter_url: null
                  instagram_url: null
                  linkedin_url: null
                  website_url: null
                  created_at: '2026-01-09T15:27:56.647Z'
                  updated_at: '2026-01-09T15:28:08.075Z'
                  tags: []
                  custom_attributes: {}
                  visits:
                    first_visit:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                    last_visit: null
                    last_visit_with_utm:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                assignee_id: null
                notes:
                - id: 284
                  public_id: weRPKo
                  content: Example note
                  created_by_id: 312
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
                - id: 285
                  public_id: WaGtCQ
                  content: Example note
                  created_by_id: 313
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Bad request: HTTP body must be valid JSON'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: API key missing or invalid
  /sales/opportunities/{id}:
    get:
      tags:
      - Sales::Opportunity
      summary: Fetch Opportunity
      description: Fetch Opportunity
      operationId: getSalesOpportunities
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOpportunityAttributes'
              example:
                id: 135
                public_id: wyMSmr
                name: Example Opportunity
                workspace_id: 42000
                pipeline_id: null
                pipelines_stage_id: 99
                primary_contact_id: 244
                value: '100.0'
                sort_order: 0
                closed_at: '2025-01-01T00:00:00.000Z'
                created_at: '2025-01-01T00:00:00.000Z'
                updated_at: '2025-01-01T00:00:00.000Z'
                pipeline:
                  id: 25
                  public_id: sWhAUF
                  name: Example Pipeline
                pipelines_stage:
                  id: 99
                  public_id: lBFCsR
                  name: Example Stage
                primary_contact:
                  id: 24359
                  public_id: vQxYMj
                  workspace_id: 4
                  anonymous: 0
                  email_address: jane.doe@example.com
                  first_name: Jane
                  last_name: Doe
                  phone_number: '+18005550199'
                  time_zone: Madrid
                  uuid: 80b7f903-76cd-4edf-94bf-fc34c13ee654
                  unsubscribed_at: null
                  last_notification_email_sent_at: null
                  email_suppression_reason: null
                  is_active: true
                  fb_url: null
                  twitter_url: null
                  instagram_url: null
                  linkedin_url: null
                  website_url: null
                  created_at: '2026-01-09T15:27:56.647Z'
                  updated_at: '2026-01-09T15:28:08.075Z'
                  tags: []
                  custom_attributes: {}
                  visits:
                    first_visit:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                    last_visit: null
                    last_visit_with_utm:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                assignee_id: null
                notes:
                - id: 270
                  public_id: okUbaV
                  content: Example note
                  created_by_id: 298
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
                - id: 271
                  public_id: rxOKWC
                  content: Example note
                  created_by_id: 299
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: API key missing or invalid
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Not found: Record missing'
    put:
      tags:
      - Sales::Opportunity
      summary: Update Opportunity
      description: Update Opportunity
      operationId: updateSalesOpportunities
      parameters:
      - $ref: '#/components/parameters/id'
      requestBody:
        description: Information about updated fields in Opportunity
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sales_opportunity:
                  type: object
                  $ref: '#/components/schemas/SalesOpportunityParametersUpdate'
            example:
              sales_opportunity:
                name: Example Opportunity
                pipelines_stage_id: 123
                primary_contact_id: 123
                value: '100.0'
                closed_at: '2025-01-01T00:00:00.000Z'
                assignee_id: 42
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOpportunityAttributes'
              example:
                id: 156
                public_id: eJQgIk
                name: Example Opportunity
                workspace_id: 42000
                pipeline_id: null
                pipelines_stage_id: 108
                primary_contact_id: 265
                value: '100.0'
                sort_order: 0
                closed_at: '2025-01-01T00:00:00.000Z'
                created_at: '2025-01-01T00:00:00.000Z'
                updated_at: '2025-01-01T00:00:00.000Z'
                pipeline:
                  id: 28
                  public_id: pkaWNV
                  name: Example Pipeline
                pipelines_stage:
                  id: 108
                  public_id: HBTcXq
                  name: Example Stage
                primary_contact:
                  id: 24359
                  public_id: vQxYMj
                  workspace_id: 4
                  anonymous: 0
                  email_address: jane.doe@example.com
                  first_name: Jane
                  last_name: Doe
                  phone_number: '+18005550199'
                  time_zone: Madrid
                  uuid: 80b7f903-76cd-4edf-94bf-fc34c13ee654
                  unsubscribed_at: null
                  last_notification_email_sent_at: null
                  email_suppression_reason: null
                  is_active: true
                  fb_url: null
                  twitter_url: null
                  instagram_url: null
                  linkedin_url: null
                  website_url: null
                  created_at: '2026-01-09T15:27:56.647Z'
                  updated_at: '2026-01-09T15:28:08.075Z'
                  tags: []
                  custom_attributes: {}
                  visits:
                    first_visit:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                    last_visit: null
                    last_visit_with_utm:
                      uuid: 9f2e8a22-1b65-4414-95f3-5caf0bbd11da
                      utm_source: google
                      utm_medium: cpc
                      utm_campaign: spring_sale
                      utm_term: running shoes
                      utm_content: ad_variant_a
                      ip: 192.168.1.1
                      user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
                      referrer: https://www.google.com/search?q=example
                      referring_domain: google.com
                      landing_page: https://example.com/products/shoes
                      browser: Chrome
                      os: Mac OS X
                      device_type: desktop
                      started_at: '2026-01-09T14:23:45.123Z'
                      created_at: '2026-01-09T14:23:45.123Z'
                      updated_at: '2026-01-09T14:23:45.123Z'
                assignee_id: null
                notes:
                - id: 312
                  public_id: MrjuLR
                  content: Example note
                  created_by_id: 340
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
                - id: 313
                  public_id: HlkFNB
                  content: Example note
                  created_by_id: 341
                  created_at: '2025-01-01T00:00:00.000Z'
                  updated_at: '2025-01-01T00:00:00.000Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Bad request: HTTP body must be valid JSON'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: API key missing or invalid
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Not found: Record missing'
    delete:
      tags:
      - Sales::Opportunity
      summary: Remove Opportunity
      description: Remove Opportunity
      operationId: removeSalesOpportunities
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: API key missing or invalid
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Not found: Record missing'
components:
  schemas:
    SalesOpportunityAttributes:
      type: object
      title: Opportu

# --- truncated at 32 KB (52 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/clickfunnels/refs/heads/main/openapi/clickfunnels-sales-opportunity-api-openapi.yml