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

# Create a task

> Work for your team or the assistant on this contact. It goes to the contact's owner.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/tasks/create
openapi: 3.0.3
info:
  title: RevenueBee public API
  version: 1.0.0
  description: >-
    Send contacts, events and external accounts from your own backend, vouch for
    who is using the chat widget, and start calls with a voice agent.
servers:
  - url: https://crm.example.com/public-api
security:
  - apiKey: []
paths:
  /v1/tasks/create:
    post:
      tags:
        - Tasks
      summary: Create a task
      description: >-
        Work for your team or the assistant on this contact. It goes to the
        contact's owner.
      operationId: createTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                partyId:
                  type: string
                  format: uuid
                type:
                  type: string
                  enum:
                    - call
                    - email
                    - sms
                    - whatsapp
                    - meeting
                    - todo
                priority:
                  type: string
                  enum:
                    - low
                    - normal
                    - high
                    - urgent
                title:
                  type: string
                  minLength: 1
                  maxLength: 200
                body:
                  type: string
                  nullable: true
                  maxLength: 20000
                data:
                  oneOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - call
                        whatToSay:
                          type: string
                          maxLength: 4000
                        questionsToAsk:
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 500
                          maxItems: 20
                      required:
                        - type
                        - whatToSay
                        - questionsToAsk
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - email
                        subject:
                          type: string
                          maxLength: 500
                        body:
                          type: string
                          maxLength: 50000
                      required:
                        - type
                        - subject
                        - body
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - sms
                        text:
                          type: string
                          maxLength: 1600
                      required:
                        - type
                        - text
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - whatsapp
                        text:
                          type: string
                          maxLength: 1600
                      required:
                        - type
                        - text
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - meeting
                        meetingLink:
                          type: string
                          nullable: true
                          maxLength: 2000
                          format: uri
                      required:
                        - type
                        - meetingLink
                    - type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - todo
                        items:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                nullable: true
                                minLength: 1
                              text:
                                type: string
                                minLength: 1
                                maxLength: 500
                              done:
                                type: boolean
                                default: false
                            required:
                              - text
                          maxItems: 50
                      required:
                        - type
                        - items
                    - nullable: true
                dueAt:
                  type: string
                  nullable: true
              required:
                - partyId
                - type
                - title
      responses:
        '200':
          description: The task
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
                description: Requests allowed in the window.
                example: '100'
              required: true
            X-RateLimit-Remaining:
              schema:
                type: string
                description: Requests left in the window.
                example: '97'
              required: true
            X-RateLimit-Reset:
              schema:
                type: string
                description: >-
                  Seconds until the window resets; on a 429, until the next
                  request fits.
                example: '42'
              required: true
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Task created
                  metaData:
                    type: object
                    properties:
                      warnings:
                        type: array
                        items:
                          type: string
                  data:
                    $ref: '#/components/schemas/Task'
                required:
                  - message
                  - metaData
                  - data
        '400':
          description: The input was rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: bad_request
                message: 'partyId: Invalid uuid'
        '401':
          description: The API key is missing, wrong or revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: unauthorized
                message: 'Send a valid API key as Authorization: Bearer gd_key_…'
        '404':
          description: Nothing has that id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: not_found
                message: contact not found
        '429':
          description: >-
            Rate limit reached: per workspace, 100 writes a minute and 2,000 an
            hour, 200 reads a minute and 4,000 an hour. Retry-After says when to
            try again.
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
                description: Requests allowed in the window.
                example: '100'
              required: true
            X-RateLimit-Remaining:
              schema:
                type: string
                description: Requests left in the window.
                example: '97'
              required: true
            X-RateLimit-Reset:
              schema:
                type: string
                description: >-
                  Seconds until the window resets; on a 429, until the next
                  request fits.
                example: '42'
              required: true
            Retry-After:
              schema:
                type: string
                description: Seconds to wait before retrying.
                example: '30'
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: rate_limited
                message: Rate limit reached. Retry in 30s.
components:
  schemas:
    Task:
      type: object
      properties:
        id:
          type: string
        partyId:
          type: string
        type:
          type: string
          example: todo
        status:
          type: string
          example: open
        priority:
          type: string
          example: normal
        title:
          type: string
        body:
          type: string
          nullable: true
        dueAt:
          type: string
          nullable: true
          example: '2026-11-20T09:00:00.000Z'
        completedAt:
          type: string
          nullable: true
          example: '2026-11-20T09:00:00.000Z'
        createdAt:
          type: string
          example: '2026-11-20T09:00:00.000Z'
      required:
        - id
        - partyId
        - type
        - status
        - priority
        - title
        - body
        - dueAt
        - completedAt
        - createdAt
    Error:
      type: object
      properties:
        type:
          type: string
          enum:
            - bad_request
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - limit_reached
            - rate_limited
            - server_error
        message:
          type: string
      required:
        - type
        - message
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A key from Settings → API keys. It starts with gd_key_.

````

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