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

# Create task

> Create a new task for a contact or company.

Responses include direct Enginy app URLs when available. Responses include an `appUrl` that opens the created task in Enginy. MCP agents should return those URLs to users whenever they are present in the response.

    > **Required scope:** `TASKS_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json post /v1/tasks
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/tasks:
    post:
      tags:
        - Tasks
      summary: Create task
      description: >-
        Create a new task for a contact or company.


        Responses include direct Enginy app URLs when available. Responses
        include an `appUrl` that opens the created task in Enginy. MCP agents
        should return those URLs to users whenever they are present in the
        response.

            > **Required scope:** `TASKS_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  minLength: 1
                subject:
                  type: string
                  minLength: 1
                description:
                  type: string
                notes:
                  type: string
                assignedId:
                  type: integer
                  exclusiveMinimum: 0
                ownerId:
                  type: string
                syncWithCRM:
                  type: boolean
                dueDate:
                  type: string
                leadId:
                  type: integer
                  exclusiveMinimum: 0
                companyId:
                  type: integer
                  exclusiveMinimum: 0
                priority:
                  type: string
                  enum:
                    - LOW
                    - MEDIUM
                    - HIGH
                parentTaskId:
                  type: integer
                  exclusiveMinimum: 0
              required:
                - type
                - subject
      responses:
        '201':
          description: Task created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      taskId:
                        type: number
                      appUrl:
                        type: string
                        format: uri
                    required:
                      - taskId
                      - appUrl
                required:
                  - status
                  - message
                  - data
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````