> ## Documentation Index
> Fetch the complete documentation index at: https://openphone-dev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create deal

> Create a deal in a sales pipeline. A deal is created with a single primary contact. Returns 202 Accepted when the deal is saved but not yet readable, in which case fetch it with GET /deals/{dealId}.



## OpenAPI

````yaml https://cdn.quo.com/public-api/openphone-public-api-2026-03-30-dev.json post /deals
openapi: 3.1.0
info:
  title: Quo Public API
  version: 1.0.0
  description: API for connecting with Quo.
  contact:
    name: Quo Support
    email: support@quo.com
    url: https://support.quo.com/
  termsOfService: https://www.quo.com/terms
servers:
  - description: Development server
    url: https://dev-public-api.openphone.dev
security:
  - apiKey: []
tags:
  - description: Operations related to the organization's A2P registration
    name: A2P Registration
  - description: Operations related to calls placed by an AI agent
    name: Agent Calls
  - description: Operations related to text conversations held by an AI agent
    name: Agent Conversations
  - description: Operations related to calls
    name: Calls
  - description: >-
      Operations related to call summaries, including AI-generated summaries and
      Sona voice assistant summaries
    name: Call Summaries
  - description: >-
      Operations related to call transcripts, including AI-generated transcripts
      and Sona voice assistant transcripts
    name: Call Transcripts
  - description: Operations related to contacts
    name: Contacts
  - description: Operations related to contact shares
    name: Contact Shares
  - description: Operations related to contact notes
    name: Contact Notes
  - description: Operations related to contact properties
    name: Contact Properties
  - description: Operations related to conversations
    name: Conversations
  - description: Operations related to workspace invitations
    name: Invites
  - description: Operations related to text messages
    name: Messages
  - description: Operations related to the organization
    name: Organization
  - description: Operations related to phone numbers
    name: Phone Numbers
  - description: Operations related to users
    name: Users
  - description: Operations related to webhooks
    name: Webhooks
  - description: >-
      Operations related to webhook events, including delivery history and test
      events
    name: Webhook Events
paths:
  /deals:
    post:
      tags:
        - Deals
      summary: Create deal
      description: >-
        Create a deal in a sales pipeline. A deal is created with a single
        primary contact. Returns 202 Accepted when the deal is saved but not yet
        readable, in which case fetch it with GET /deals/{dealId}.
      operationId: deals.create
      parameters:
        - in: header
          name: Quo-Api-Version
          required: true
          schema:
            type: string
            enum:
              - '2026-03-30'
            description: 'API version header. Supported values: 2026-03-30'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - pipelineId
                - statusId
                - contactIds
              properties:
                pipelineId:
                  description: The sales pipeline to create the deal in.
                  examples:
                    - SPa1b2c3d4e5f6a1b2c3d4e5f6
                  example: SPa1b2c3d4e5f6a1b2c3d4e5f6
                  type: string
                  pattern: ^SP(.*)$
                statusId:
                  description: >-
                    The status to create the deal in. Must belong to the
                    pipeline. List the available statuses with GET
                    /sales-pipelines/{pipelineId}/statuses.
                  examples:
                    - DSa1b2c3d4e5f6a1b2c3d4e5f6
                  example: DSa1b2c3d4e5f6a1b2c3d4e5f6
                  type: string
                  pattern: ^DS(.*)$
                title:
                  anyOf:
                    - type: string
                      description: The title of the deal.
                      examples:
                        - Website redesign
                      maxLength: 240
                      example: Website redesign
                    - type: 'null'
                value:
                  anyOf:
                    - type: object
                      required:
                        - amount
                        - currency
                      properties:
                        amount:
                          type: integer
                          description: >-
                            The deal value in the minor units of the currency,
                            such as cents for USD.
                          examples:
                            - 500000
                          example: 500000
                        currency:
                          type: string
                          description: The ISO 4217 currency code of the deal value.
                          examples:
                            - USD
                          example: USD
                    - type: 'null'
                contactIds:
                  type: array
                  items:
                    type: string
                    pattern: ^(.*)$
                  description: >-
                    The primary contact to link to the deal. Exactly one contact
                    is required.
                  examples:
                    - - 6a145ff26212a192852c856e
                  example:
                    - 6a145ff26212a192852c856e
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - id
                      - pipelineId
                      - statusId
                      - stage
                      - contactIds
                      - ownerIds
                      - createdAt
                    properties:
                      id:
                        description: The ID of the deal.
                        examples:
                          - DLa1b2c3d4e5f6a1b2c3d4e5f6
                        example: DLa1b2c3d4e5f6a1b2c3d4e5f6
                        type: string
                        pattern: ^DL(.*)$
                      pipelineId:
                        description: The ID of the sales pipeline the deal belongs to.
                        examples:
                          - SPa1b2c3d4e5f6a1b2c3d4e5f6
                        example: SPa1b2c3d4e5f6a1b2c3d4e5f6
                        type: string
                        pattern: ^SP(.*)$
                      title:
                        anyOf:
                          - type: string
                            description: The title of the deal.
                            examples:
                              - Website redesign
                            example: Website redesign
                          - type: 'null'
                      statusId:
                        description: >-
                          The deal status id. List the available statuses and
                          their ids with GET
                          /sales-pipelines/{pipelineId}/statuses.
                        examples:
                          - DSa1b2c3d4e5f6a1b2c3d4e5f6
                        example: DSa1b2c3d4e5f6a1b2c3d4e5f6
                        type: string
                        pattern: ^DS(.*)$
                      stage:
                        description: The stage the deal status belongs to.
                        examples:
                          - active
                        example: active
                        anyOf:
                          - type: string
                            const: requests
                          - type: string
                            const: active
                          - type: string
                            const: won
                          - type: string
                            const: lost
                      value:
                        anyOf:
                          - type: object
                            required:
                              - amount
                              - currency
                            properties:
                              amount:
                                type: integer
                                description: >-
                                  The deal value in the minor units of the
                                  currency, such as cents for USD.
                                examples:
                                  - 500000
                                example: 500000
                              currency:
                                type: string
                                description: The ISO 4217 currency code of the deal value.
                                examples:
                                  - USD
                                example: USD
                          - type: 'null'
                      contactIds:
                        type: array
                        items:
                          type: string
                          pattern: ^(.*)$
                        description: The contacts linked to the deal.
                        examples:
                          - - 6a145ff26212a192852c856e
                        example:
                          - 6a145ff26212a192852c856e
                      ownerIds:
                        type: array
                        items:
                          type: string
                          pattern: ^US(.*)$
                        description: The users who own the deal.
                        examples:
                          - - US123abc
                        example:
                          - US123abc
                      archivedAt:
                        anyOf:
                          - description: >-
                              When the deal was archived, or null when the deal
                              is active.
                            examples:
                              - '2026-01-01T00:00:00Z'
                            example: '2026-01-01T00:00:00Z'
                            type: string
                            format: date-time
                          - type: 'null'
                      createdAt:
                        description: When the deal was created.
                        examples:
                          - '2026-01-01T00:00:00Z'
                        example: '2026-01-01T00:00:00Z'
                        type: string
                        format: date-time
        '202':
          description: >-
            The deal is saved but not yet readable. Fetch it with GET
            /deals/{dealId}.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - id
                      - pipelineId
                      - statusId
                      - stage
                      - contactIds
                      - ownerIds
                      - createdAt
                    properties:
                      id:
                        description: The ID of the deal.
                        examples:
                          - DLa1b2c3d4e5f6a1b2c3d4e5f6
                        example: DLa1b2c3d4e5f6a1b2c3d4e5f6
                        type: string
                        pattern: ^DL(.*)$
                      pipelineId:
                        description: The ID of the sales pipeline the deal belongs to.
                        examples:
                          - SPa1b2c3d4e5f6a1b2c3d4e5f6
                        example: SPa1b2c3d4e5f6a1b2c3d4e5f6
                        type: string
                        pattern: ^SP(.*)$
                      title:
                        anyOf:
                          - type: string
                            description: The title of the deal.
                            examples:
                              - Website redesign
                            example: Website redesign
                          - type: 'null'
                      statusId:
                        description: >-
                          The deal status id. List the available statuses and
                          their ids with GET
                          /sales-pipelines/{pipelineId}/statuses.
                        examples:
                          - DSa1b2c3d4e5f6a1b2c3d4e5f6
                        example: DSa1b2c3d4e5f6a1b2c3d4e5f6
                        type: string
                        pattern: ^DS(.*)$
                      stage:
                        description: The stage the deal status belongs to.
                        examples:
                          - active
                        example: active
                        anyOf:
                          - type: string
                            const: requests
                          - type: string
                            const: active
                          - type: string
                            const: won
                          - type: string
                            const: lost
                      value:
                        anyOf:
                          - type: object
                            required:
                              - amount
                              - currency
                            properties:
                              amount:
                                type: integer
                                description: >-
                                  The deal value in the minor units of the
                                  currency, such as cents for USD.
                                examples:
                                  - 500000
                                example: 500000
                              currency:
                                type: string
                                description: The ISO 4217 currency code of the deal value.
                                examples:
                                  - USD
                                example: USD
                          - type: 'null'
                      contactIds:
                        type: array
                        items:
                          type: string
                          pattern: ^(.*)$
                        description: The contacts linked to the deal.
                        examples:
                          - - 6a145ff26212a192852c856e
                        example:
                          - 6a145ff26212a192852c856e
                      ownerIds:
                        type: array
                        items:
                          type: string
                          pattern: ^US(.*)$
                        description: The users who own the deal.
                        examples:
                          - - US123abc
                        example:
                          - US123abc
                      archivedAt:
                        anyOf:
                          - description: >-
                              When the deal was archived, or null when the deal
                              is active.
                            examples:
                              - '2026-01-01T00:00:00Z'
                            example: '2026-01-01T00:00:00Z'
                            type: string
                            format: date-time
                          - type: 'null'
                      createdAt:
                        description: When the deal was created.
                        examples:
                          - '2026-01-01T00:00:00Z'
                        example: '2026-01-01T00:00:00Z'
                        type: string
                        format: date-time
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Bad Request
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          properties:
                            type:
                              type: string
                description: Bad Request
              example:
                message: The input was invalid
                docs: https://quo.com/docs
                title: Bad Request
                trace: '6897907457496870895'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Unauthorized
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          properties:
                            type:
                              type: string
                description: Unauthorized
              example:
                message: User is unauthorized to perform this action
                docs: https://quo.com/docs
                title: Unauthorized
                trace: '6897907457496870895'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Forbidden
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          properties:
                            type:
                              type: string
                description: Forbidden
              example:
                message: User is forbidden to perform this action
                docs: https://quo.com/docs
                title: Forbidden
                trace: '6897907457496870895'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Not Found
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          properties:
                            type:
                              type: string
                description: Not Found
              example:
                message: The deal was not found
                docs: https://quo.com/docs
                title: Not Found
                trace: '6897907457496870895'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Unprocessable Entity
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          properties:
                            type:
                              type: string
                description: Unprocessable Entity
              example:
                message: >-
                  You have specified too many contacts. A deal can only be
                  associated with a single primary contact.
                docs: https://quo.com/docs
                title: Unprocessable Entity
                trace: '6897907457496870895'
        '500':
          description: Unexpected Error | Unknown Error
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/UnexpectedError'
                  - $ref: '#/components/schemas/UnknownError'
              examples:
                UnexpectedError:
                  summary: Unexpected Error
                  value:
                    message: An unexpected error has occurred
                    docs: https://quo.com/docs
                    title: Unexpected Error
                    trace: '6897907457496870895'
                UnknownError:
                  summary: Unknown Error
                  value:
                    message: An unknown error has occurred
                    docs: https://quo.com/docs
                    title: Unknown Error
                    trace: '6897907457496870895'
      security:
        - apiKey: []
components:
  schemas:
    UnexpectedError:
      type: object
      required:
        - message
        - docs
        - title
      properties:
        message:
          type: string
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Unexpected
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                properties:
                  type:
                    type: string
      description: Unexpected Error
      title: Unexpected Error
    UnknownError:
      type: object
      required:
        - message
        - docs
        - title
      properties:
        message:
          type: string
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Unknown
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                properties:
                  type:
                    type: string
      description: Unknown Error
      title: Unknown Error
  securitySchemes:
    apiKey:
      in: header
      name: Authorization
      type: apiKey

````