> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Create Opportunity

- Component: `appmixer.gohighlevel.core.CreateOpportunity`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.gohighlevel 1.2.0](https://connectors.appmixer.com/connector/appmixer.gohighlevel/1.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.gohighlevel/1.2.0/component/appmixer.gohighlevel.core.CreateOpportunity>

Create a new opportunity (deal) in a GoHighLevel pipeline.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Pipeline (`pipelineId`) | text | Select the pipeline to create the opportunity in. |
| Opportunity Name (`name`) | text | Name/title of the opportunity. |
| Pipeline Stage ID (`pipelineStageId`) | text | The ID of the pipeline stage for the opportunity. |
| Status (`status`) | select | The status of the opportunity. |
| Contact ID (`contactId`) | text | The ID of the contact associated with this opportunity. |
| Monetary Value (`monetaryValue`) | number | The monetary value of the opportunity. |
| Assigned To (User ID) (`assignedTo`) | text | The ID of the user to assign this opportunity to. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Opportunity ID (`id`) | string | - |
| Name (`name`) | string | - |
| Status (`status`) | string | - |
| Pipeline ID (`pipelineId`) | string | - |
| Pipeline Stage ID (`pipelineStageId`) | string | - |
| Pipeline Stage Name (`pipelineStageName`) | string,null | - |
| Contact ID (`contactId`) | string | - |
| Monetary Value (`monetaryValue`) | number | - |
| Assigned To (`assignedTo`) | string | - |
| Location ID (`locationId`) | string | - |
| Date Added (`createdAt`) | string | - |
| Date Updated (`updatedAt`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.gohighlevel.core.CreateOpportunity",
  "label": "Create Opportunity",
  "description": "Create a new opportunity (deal) in a GoHighLevel pipeline.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:gohighlevel"
  },
  "quota": {
    "manager": "appmixer:gohighlevel",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "pipelineId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "pipelineStageId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "contactId": {
            "type": "string"
          },
          "monetaryValue": {
            "type": "number"
          },
          "assignedTo": {
            "type": "string"
          }
        },
        "required": [
          "pipelineId",
          "name",
          "pipelineStageId",
          "status",
          "contactId"
        ]
      },
      "inspector": {
        "inputs": {
          "pipelineId": {
            "type": "text",
            "label": "Pipeline",
            "index": 1,
            "tooltip": "Select the pipeline to create the opportunity in.",
            "source": {
              "url": "/component/appmixer/gohighlevel/core/ListPipelines?outPort=out",
              "data": {
                "transform": "./ListPipelines#toSelectArray"
              }
            }
          },
          "name": {
            "type": "text",
            "label": "Opportunity Name",
            "index": 3,
            "tooltip": "Name/title of the opportunity."
          },
          "pipelineStageId": {
            "type": "text",
            "label": "Pipeline Stage ID",
            "index": 4,
            "tooltip": "The ID of the pipeline stage for the opportunity."
          },
          "status": {
            "type": "select",
            "label": "Status",
            "index": 5,
            "tooltip": "The status of the opportunity.",
            "defaultValue": "open",
            "options": [
              {
                "label": "Open",
                "value": "open"
              },
              {
                "label": "Won",
                "value": "won"
              },
              {
                "label": "Lost",
                "value": "lost"
              },
              {
                "label": "Abandoned",
                "value": "abandoned"
              }
            ]
          },
          "contactId": {
            "type": "text",
            "label": "Contact ID",
            "index": 6,
            "tooltip": "The ID of the contact associated with this opportunity."
          },
          "monetaryValue": {
            "type": "number",
            "label": "Monetary Value",
            "index": 7,
            "tooltip": "The monetary value of the opportunity."
          },
          "assignedTo": {
            "type": "text",
            "label": "Assigned To (User ID)",
            "index": 8,
            "tooltip": "The ID of the user to assign this opportunity to."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Opportunity ID",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "yWQobCRIhRguQtD2llvk"
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "Acme Inc - website redesign"
          }
        },
        {
          "label": "Status",
          "value": "status",
          "schema": {
            "type": "string",
            "example": "open"
          }
        },
        {
          "label": "Pipeline ID",
          "value": "pipelineId",
          "schema": {
            "type": "string",
            "example": "VDm7RPYC2GLUvdpKmBfC"
          }
        },
        {
          "label": "Pipeline Stage ID",
          "value": "pipelineStageId",
          "schema": {
            "type": "string",
            "example": "e93ba61a-53b3-45e7-985a-c7732dbcdb69"
          }
        },
        {
          "label": "Pipeline Stage Name",
          "value": "pipelineStageName",
          "schema": {
            "type": [
              "string",
              "null"
            ],
            "example": null
          }
        },
        {
          "label": "Contact ID",
          "value": "contactId",
          "schema": {
            "type": "string",
            "example": "ocQHyuzHvysMo5N5VsXc"
          }
        },
        {
          "label": "Monetary Value",
          "value": "monetaryValue",
          "schema": {
            "type": "number",
            "example": 4500
          }
        },
        {
          "label": "Assigned To",
          "value": "assignedTo",
          "schema": {
            "type": "string",
            "example": "zT46WSCPbudrq4zhWMk6"
          }
        },
        {
          "label": "Location ID",
          "value": "locationId",
          "schema": {
            "type": "string",
            "example": "ve9EPM428h8vShlRW1KT"
          }
        },
        {
          "label": "Date Added",
          "value": "createdAt",
          "schema": {
            "type": "string",
            "example": "2026-09-10T09:15:00.000Z"
          }
        },
        {
          "label": "Date Updated",
          "value": "updatedAt",
          "schema": {
            "type": "string",
            "example": "2026-09-10T09:15:00.000Z"
          }
        }
      ],
      "example": {
        "id": "opp123abc456",
        "name": "New Business Opportunity",
        "status": "open",
        "pipelineId": "pipe123abc",
        "pipelineStageId": "stage-uuid-1234",
        "pipelineStageName": "New Lead",
        "contactId": "contact123abc",
        "monetaryValue": 5000,
        "assignedTo": "user123abc",
        "locationId": "loc123abc",
        "createdAt": "2026-01-15T10:30:00.000Z",
        "updatedAt": "2026-01-15T10:30:00.000Z"
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
