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

# Create a task

> Creates a task and automatically includes the authenticated user as a participant. Standard agents, account
administrators, and custom roles with `task_manage` can create tasks.

When available, the request may link an existing Kanban item or create one in a selected funnel and stage. Google
Calendar synchronization requires an active outbound calendar connection. Recurrence can end on a date or after up
to 100 occurrences.




## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/account_tasks
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/account_tasks:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Tasks
      summary: Create a task
      description: >
        Creates a task and automatically includes the authenticated user as a
        participant. Standard agents, account

        administrators, and custom roles with `task_manage` can create tasks.


        When available, the request may link an existing Kanban item or create
        one in a selected funnel and stage. Google

        Calendar synchronization requires an active outbound calendar
        connection. Recurrence can end on a date or after up

        to 100 occurrences.
      operationId: create-account-task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/account_task_create_update_payload'
            example:
              account_task:
                title: Follow up with customer
                starts_at: '2026-07-21T13:00:00Z'
                activity_type_id: 7
                description: Review the proposal and agree on next steps.
                outcome_summary: Customer accepted the proposal.
                ends_at: '2026-07-21T14:00:00Z'
                status: pending
                priority: low
                assignee_id: 15
                participant_ids:
                  - 15
                  - 19
                guest_emails:
                  - customer@example.com
                contact_id: 123
      responses:
        '201':
          description: Task created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/account_task'
              example:
                id: 42
                title: Follow up with customer
                starts_at: '2026-07-21T13:00:00Z'
                status: pending
                persisted_status: pending
                priority: normal
                recurrence:
                  type: weekly
                  interval: 1
                  days:
                    - 1
                    - 3
                    - 5
                  end_type: after_occurrences
                  end_date: '2026-05-20'
                  max_occurrences: 10
                  parent_id: 1
                  sequence: 0
                  recurring: true
                activity_type:
                  id: 7
                  name: Follow-up call
                  color: '12'
                  active: true
                participants:
                  - id: 15
                    name: John Agent
                    email: john@example.com
                guest_emails:
                  - customer@example.com
                google:
                  sync_enabled: true
                  calendar_id: primary
                  event_id: 321
                  external_html_link: https://calendar.google.com/calendar/event?eid=example
                  sync_status: synced
                  last_error: Sample text
                description: Review the proposal and confirm the next steps.
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '403':
          description: >-
            Tasks are disabled, the user lacks task management access, or a
            requested Kanban operation is not authorized.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Forbidden
        '404':
          description: A referenced account resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
        '422':
          description: >-
            Validation failed, the selected Kanban stage is invalid, or Google
            Calendar synchronization is unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    account_task_create_update_payload:
      type: object
      required:
        - account_task
      properties:
        account_task:
          type: object
          required:
            - title
            - starts_at
            - activity_type_id
          properties:
            title:
              type: string
              example: Follow up with customer
            description:
              type: string
              example: Review the proposal and agree on next steps.
            outcome_summary:
              type: string
              maxLength: 2000
              description: Required when status is completed or cancelled.
              example: Customer accepted the proposal.
            starts_at:
              type: string
              format: date-time
              example: '2026-07-21T13:00:00Z'
            ends_at:
              type: string
              format: date-time
              description: Optional deadline; it must not precede starts_at.
              example: '2026-07-21T14:00:00Z'
            status:
              type: string
              enum:
                - pending
                - in_progress
                - completed
                - cancelled
              default: pending
            priority:
              type: string
              enum:
                - low
                - normal
                - high
                - urgent
              default: normal
            activity_type_id:
              type: integer
              description: Task type from this account.
              example: 7
            assignee_id:
              type:
                - integer
                - 'null'
              description: User responsible for the task.
              example: 15
            participant_ids:
              type: array
              description: >-
                Additional account users. The current user is included
                automatically.
              items:
                type: integer
              example:
                - 15
                - 19
            guest_emails:
              type: array
              description: >-
                External guests to invite when Google Calendar synchronization
                is enabled.
              items:
                type: string
                format: email
              example:
                - customer@example.com
            contact_id:
              type:
                - integer
                - 'null'
              description: >-
                Contact to link. Selecting a conversation overrides this with
                that conversation's contact.
              example: 123
            conversation_display_id:
              type:
                - integer
                - 'null'
              description: Account-visible display ID of the conversation to link.
              example: 81
            kanban_item_id:
              type:
                - integer
                - 'null'
              description: >-
                Existing Kanban item to link when the Kanban feature is
                available.
              example: 12
            funnel_id:
              type:
                - integer
                - 'null'
              description: >-
                Funnel in which a managed Kanban item should be created. Ignored
                when kanban_item_id is present.
              example: 3
            funnel_stage:
              type:
                - string
                - 'null'
              description: Stage key belonging to funnel_id.
              example: qualified
            sync_enabled:
              type: boolean
              description: >-
                Synchronize with Google Calendar. A connected outbound calendar
                integration is required.
              default: false
            google_calendar_id:
              type:
                - string
                - 'null'
              description: Destination Google calendar identifier.
              example: primary
            recurrence_type:
              type: string
              enum:
                - none
                - daily
                - weekly
                - monthly
                - yearly
              default: none
            recurrence_interval:
              type: integer
              minimum: 1
              maximum: 99
              default: 1
            recurrence_days:
              type: array
              description: Required for weekly recurrence; 0 is Sunday and 6 is Saturday.
              items:
                type: integer
                minimum: 0
                maximum: 6
              example:
                - 1
                - 3
                - 5
            recurrence_end_type:
              type:
                - string
                - 'null'
              enum:
                - on_date
                - after_occurrences
                - null
              description: Required for recurring tasks.
            recurrence_end_date:
              type:
                - string
                - 'null'
              format: date
              description: Required when recurrence_end_type is on_date.
              example: '2026-12-31'
            recurrence_max_occurrences:
              type:
                - integer
                - 'null'
              minimum: 1
              maximum: 100
              description: Required when recurrence_end_type is after_occurrences.
              example: 10
    account_task:
      type: object
      required:
        - id
        - title
        - starts_at
        - status
        - persisted_status
        - priority
        - recurrence
        - activity_type
        - participants
        - guest_emails
        - google
      properties:
        id:
          type: integer
          description: Unique task identifier.
          example: 42
        title:
          type: string
          description: Short task title.
          example: Follow up with customer
        description:
          type:
            - string
            - 'null'
          description: Detailed task instructions or context.
          example: Review the proposal and confirm the next steps.
        outcome_summary:
          type:
            - string
            - 'null'
          maxLength: 2000
          description: Required result summary when the task is completed or cancelled.
          example: Customer approved the proposal and requested onboarding.
        starts_at:
          type: string
          format: date-time
          description: Task start in ISO 8601 format.
          example: '2026-07-21T13:00:00Z'
        ends_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Optional deadline in ISO 8601 format. It must not precede starts_at.
          example: '2026-07-21T14:00:00Z'
        status:
          type: string
          enum:
            - pending
            - in_progress
            - overdue
            - completed
            - cancelled
          description: >-
            Display status. Open tasks past their deadline are returned as
            overdue.
          example: pending
        persisted_status:
          type: string
          enum:
            - pending
            - in_progress
            - completed
            - cancelled
          description: >-
            Status stored for the task. Overdue is computed and is never
            persisted.
          example: pending
        priority:
          type: string
          enum:
            - low
            - normal
            - high
            - urgent
          example: normal
        flow_builder_flow_id:
          type:
            - integer
            - 'null'
          readOnly: true
          description: >-
            Flow Builder flow whose Create task block created the task, so an
            Update task block of a later run finds it. Null for tasks made
            anywhere else, or when that flow was deleted.
          example: null
        recurrence:
          type: object
          required:
            - type
            - interval
            - days
            - end_type
            - end_date
            - max_occurrences
            - parent_id
            - sequence
            - recurring
          properties:
            type:
              type: string
              enum:
                - none
                - daily
                - weekly
                - monthly
                - yearly
              example: weekly
            interval:
              type: integer
              minimum: 1
              maximum: 99
              example: 1
            days:
              type: array
              description: >-
                Weekdays for weekly recurrence, where 0 is Sunday and 6 is
                Saturday.
              items:
                type: integer
                minimum: 0
                maximum: 6
              example:
                - 1
                - 3
                - 5
            end_type:
              type:
                - string
                - 'null'
              enum:
                - on_date
                - after_occurrences
                - null
              example: after_occurrences
            end_date:
              type:
                - string
                - 'null'
              format: date
              example: null
            max_occurrences:
              type:
                - integer
                - 'null'
              minimum: 1
              maximum: 100
              example: 10
            parent_id:
              type:
                - integer
                - 'null'
              description: Parent task identifier for a generated recurrence occurrence.
              example: null
            sequence:
              type: integer
              description: Occurrence position within the recurrence series.
              example: 0
            recurring:
              type: boolean
              description: Whether this task is the parent of a recurring series.
              example: true
        activity_type:
          $ref: '#/components/schemas/activity_type'
        assignee:
          oneOf:
            - $ref: '#/components/schemas/account_task_user'
            - type: 'null'
        created_by:
          $ref: '#/components/schemas/account_task_user'
        participants:
          type: array
          description: >-
            Internal participants. The user creating or updating the task is
            included automatically.
          items:
            $ref: '#/components/schemas/account_task_user'
        guest_emails:
          type: array
          description: >-
            External guest email addresses used when synchronizing with Google
            Calendar.
          items:
            type: string
            format: email
          example:
            - customer@example.com
        contact:
          oneOf:
            - $ref: '#/components/schemas/account_task_contact'
            - type: 'null'
        conversation:
          oneOf:
            - $ref: '#/components/schemas/account_task_conversation'
            - type: 'null'
        kanban:
          oneOf:
            - $ref: '#/components/schemas/account_task_kanban'
            - type: 'null'
        google:
          $ref: '#/components/schemas/account_task_google'
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    activity_type:
      type: object
      required:
        - id
        - name
        - color
        - active
      properties:
        id:
          type: integer
          description: Unique task type identifier.
          example: 7
        name:
          type: string
          description: Display name of the task type.
          example: Follow-up call
        color:
          type: string
          enum:
            - '1'
            - '2'
            - '3'
            - '4'
            - '5'
            - '6'
            - '7'
            - '8'
            - '9'
            - '10'
            - '11'
            - '12'
            - '13'
            - '14'
            - '15'
            - '16'
            - '17'
            - '18'
            - '19'
            - '20'
            - '21'
            - '22'
          description: >-
            Google Calendar palette color identifier used to identify tasks of
            this type.
          example: '12'
        active:
          type: boolean
          description: Whether the task type is available when creating tasks.
          example: true
    account_task_user:
      type: object
      required:
        - id
        - name
        - email
      properties:
        id:
          type: integer
          example: 15
        name:
          type: string
          example: John Agent
        email:
          type: string
          format: email
          example: john@example.com
    account_task_contact:
      type: object
      required:
        - id
      properties:
        id:
          type: integer
          example: 123
        name:
          type:
            - string
            - 'null'
          example: María González
        email:
          type:
            - string
            - 'null'
          format: email
          example: maria@example.com
        phone_number:
          type:
            - string
            - 'null'
          example: '+595981234567'
    account_task_conversation:
      type: object
      required:
        - id
        - display_id
      properties:
        id:
          type: integer
          example: 567
        display_id:
          type: integer
          description: >-
            Account-visible conversation number used when creating or updating a
            task.
          example: 81
        contact:
          oneOf:
            - $ref: '#/components/schemas/account_task_contact'
            - type: 'null'
        inbox:
          oneOf:
            - $ref: '#/components/schemas/account_task_inbox'
            - type: 'null'
    account_task_kanban:
      type: object
      required:
        - id
        - funnel_id
        - funnel_name
        - stage
        - managed_by_activity
      properties:
        id:
          type: integer
          example: 12
        funnel_id:
          type: integer
          example: 3
        funnel_name:
          type:
            - string
            - 'null'
          example: Sales Pipeline
        stage:
          type: string
          example: qualified
        title:
          type:
            - string
            - 'null'
          example: Follow up with customer
        managed_by_activity:
          type: boolean
          description: >-
            True when the Kanban item was created and is maintained by this
            task.
          example: true
    account_task_google:
      type: object
      required:
        - sync_enabled
        - calendar_id
        - event_id
        - external_html_link
        - sync_status
        - last_error
      properties:
        sync_enabled:
          type: boolean
          example: true
        calendar_id:
          type:
            - string
            - 'null'
          example: primary
        event_id:
          type:
            - integer
            - 'null'
          description: Internal calendar event identifier.
          example: 321
        external_html_link:
          type:
            - string
            - 'null'
          format: uri
          example: https://calendar.google.com/calendar/event?eid=example
        sync_status:
          type:
            - string
            - 'null'
          description: Latest external calendar synchronization status.
          example: synced
        last_error:
          type:
            - string
            - 'null'
          description: Last Google Calendar synchronization error, if any.
          example: null
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
    account_task_inbox:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: integer
          example: 5
        name:
          type: string
          example: WhatsApp Support
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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