> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revyops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Opportunity

> Create an opportunity, linked to at least one contact or company. Linking contacts also links their companies unless company_ids is given. Fields: name (required on create), amount, currency (USD), stage, status_type (active/won/lost), stage_normalized, pipeline, confidence (0-100), value_period, dealtype, note, close_date (YYYY-MM-DD), lost_reason and lost_reason_class (only with status_type lost), contact_ids, company_ids, custom_fields. null clears a field.



## OpenAPI

````yaml POST /public/v2/opportunities
openapi: 3.0.3
info:
  title: RevyOps API
  version: 1.0.0
servers:
  - url: https://app.revyops.com/api
security:
  - ApiKeyAuth: []
paths:
  /public/v2/opportunities:
    post:
      tags:
        - public
      description: >-
        Create an opportunity, linked to at least one contact or company.
        Linking contacts also links their companies unless company_ids is given.
        Fields: name (required on create), amount, currency (USD), stage,
        status_type (active/won/lost), stage_normalized, pipeline, confidence
        (0-100), value_period, dealtype, note, close_date (YYYY-MM-DD),
        lost_reason and lost_reason_class (only with status_type lost),
        contact_ids, company_ids, custom_fields. null clears a field.
      operationId: Create opportunity (v2)
      responses:
        '200':
          description: No response body
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.