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

# Create a task

> Create a task linked to a phone number, conversation, or conversation activity. Provide exactly one of `phoneNumberId`, `conversationId`, or `activityId`.



## OpenAPI

````yaml https://openphone-public-api-prod.s3.us-west-2.amazonaws.com/public/openphone-public-api-v1-prod.json post /v1/tasks
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: Production server
    url: https://api.quo.com
security:
  - apiKey: []
tags:
  - 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 conversations
    name: Conversations
  - description: Operations related to text messages
    name: Messages
  - description: Operations related to phone numbers
    name: Phone Numbers
  - description: Operations related to users
    name: Users
  - description: Operations related to webhooks
    name: Webhooks
paths:
  /v1/tasks:
    post:
      tags:
        - Tasks
      summary: Create a task
      description: >-
        Create a task linked to a phone number, conversation, or conversation
        activity. Provide exactly one of `phoneNumberId`, `conversationId`, or
        `activityId`.
      operationId: createTask_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              description: >-
                The task to create. Provide exactly one of `phoneNumberId`,
                `conversationId`, or `activityId` to link the task to that
                resource.
              anyOf:
                - additionalProperties: false
                  type: object
                  required:
                    - title
                    - description
                    - phoneNumberId
                  properties:
                    title:
                      description: The title of the task.
                      examples:
                        - Follow up with customer
                      type: string
                      example: Follow up with customer
                    description:
                      description: The description of the task.
                      examples:
                        - Discuss pricing and onboarding next steps.
                      type: string
                      example: Discuss pricing and onboarding next steps.
                    dueDate:
                      format: date-time
                      type: string
                    assignedTo:
                      pattern: ^US(.*)$
                      type: string
                    phoneNumberId:
                      pattern: ^PN(.*)$
                      type: string
                - additionalProperties: false
                  type: object
                  required:
                    - title
                    - description
                    - conversationId
                  properties:
                    title:
                      description: The title of the task.
                      examples:
                        - Follow up with customer
                      type: string
                      example: Follow up with customer
                    description:
                      description: The description of the task.
                      examples:
                        - Discuss pricing and onboarding next steps.
                      type: string
                      example: Discuss pricing and onboarding next steps.
                    dueDate:
                      format: date-time
                      type: string
                    assignedTo:
                      pattern: ^US(.*)$
                      type: string
                    conversationId:
                      pattern: ^CN(.*)$
                      type: string
                - additionalProperties: false
                  type: object
                  required:
                    - title
                    - description
                    - activityId
                  properties:
                    title:
                      description: The title of the task.
                      examples:
                        - Follow up with customer
                      type: string
                      example: Follow up with customer
                    description:
                      description: The description of the task.
                      examples:
                        - Discuss pricing and onboarding next steps.
                      type: string
                      example: Discuss pricing and onboarding next steps.
                    dueDate:
                      format: date-time
                      type: string
                    assignedTo:
                      pattern: ^US(.*)$
                      type: string
                    activityId:
                      pattern: ^AC(.*)$
                      type: string
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - taskId
                      - revision
                      - phoneNumberId
                    properties:
                      taskId:
                        pattern: ^TK(.*)$
                        type: string
                      revision:
                        type: string
                      phoneNumberId:
                        pattern: ^PN(.*)$
                        type: string
                      conversationId:
                        pattern: ^CN(.*)$
                        type: string
                      activityId:
                        pattern: ^AC(.*)$
                        type: string
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    const: '0600400'
                    type: string
                  status:
                    const: 400
                    type: number
                  docs:
                    const: https://quo.com/docs
                    type: string
                  title:
                    const: Bad Request
                    type: string
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    const: '0600401'
                    type: string
                  status:
                    const: 401
                    type: number
                  docs:
                    const: https://quo.com/docs
                    type: string
                  title:
                    const: Unauthorized
                    type: string
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    const: '0600403'
                    type: string
                  status:
                    const: 403
                    type: number
                  docs:
                    const: https://quo.com/docs
                    type: string
                  title:
                    const: Forbidden
                    type: string
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    const: '0600404'
                    type: string
                  status:
                    const: 404
                    type: number
                  docs:
                    const: https://quo.com/docs
                    type: string
                  title:
                    const: Not Found
                    type: string
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '500':
          description: Unknown error
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    const: '0601500'
                    type: string
                  status:
                    const: 500
                    type: number
                  docs:
                    const: https://quo.com/docs
                    type: string
                  title:
                    const: Unknown
                    type: string
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      in: header
      name: Authorization
      type: apiKey

````