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

# Get Task

> Returns a single task by ID.



## OpenAPI

````yaml GET /tasks/{taskId}
openapi: 3.1.0
info:
  title: Pingmee API
  description: A complete guide to Pingmee micro service architecture.
  version: 1.0.0
servers:
  - url: https://api.pingmee.co.il
security:
  - cookieAuth: []
    ApiKeyAuth: []
paths:
  /tasks/{taskId}:
    servers:
      - url: https://business.pingmee.co.il
        description: Business service
    get:
      summary: Get task
      description: Returns a single task by ID.
      parameters:
        - name: taskId
          in: path
          description: Task identifier returned when the task was created.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Task
          content:
            application/json:
              schema:
                type: object
                required:
                  - task
                properties:
                  task:
                    $ref: '#/components/schemas/Task'
                additionalProperties: false
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Task:
      type: object
      required:
        - taskId
        - title
        - body
        - associatedTo
        - statusCase
        - unreadCount
        - agentIdentification
        - createdAt
        - updatedAt
        - dueDate
      properties:
        taskId:
          type: string
          description: Unique task identifier.
        title:
          type: string
          description: Task title.
        body:
          type: string
          description: Task description / notes.
        associatedTo:
          type: string
          description: Business or account the task is associated with.
        statusCase:
          type: string
          description: >-
            Task status. Built-in values are `open`, `standby` (in progress),
            and `completed`. Custom task status IDs defined for the business are
            also accepted.
        unreadCount:
          type: integer
          description: >-
            Needs-attention counter. Starts at 1 on create and increments on
            every update.
        agentIdentification:
          $ref: '#/components/schemas/AgentIdentification'
        assignedAgentIds:
          type: array
          items:
            type: string
          description: Agent IDs assigned to this task.
        viewedByAgentIds:
          type: array
          items:
            type: string
          description: Agent IDs that have viewed this task.
        createdAt:
          type: number
          description: Unix timestamp (seconds) when the task was created.
        updatedAt:
          type: number
          description: Unix timestamp (seconds) when the task was last updated.
        dueDate:
          type: number
          description: Unix timestamp (seconds) for the due date. `0` when unset.
        phoneNumberId:
          type: string
          description: Business phone number identifier used to scope the task.
        participantsIdentifiers:
          type: string
          description: Conversation participants identifiers this task is linked to.
        customer:
          $ref: '#/components/schemas/Customer'
      additionalProperties: false
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    AgentIdentification:
      type: object
      description: Agent who sent or handled the message
      additionalProperties: false
    Customer:
      type: object
      required: []
      properties:
        profileImage:
          type:
            - string
            - 'null'
          description: Profile image URL if available
        customerName:
          type: string
          description: The name from WhatsApp or the originating platform
        customerNickname:
          type: string
          description: The name the business gave the customer
        description:
          type: string
          description: >-
            Free-text note / description controlled by the business (shown in
            the conversation sidebar)
        createdAt:
          type: number
          description: Unix timestamp (milliseconds) when the customer was created
        lastActiveAt:
          type: number
          description: Unix timestamp (milliseconds) when the customer was last active
        email:
          type: string
          format: email
          description: Customer email address
        platform:
          type: string
          enum:
            - whatsapp
            - instagram
            - facebookMessenger
          description: Messaging platform the customer is associated with
        phoneNumberId:
          type: string
          description: Platform-specific phone number identifier
        countryCode:
          type: string
          description: Country calling code
        associatedTo:
          type: string
          description: Business or account the customer is associated with
        parsedPhoneNumber:
          type: string
          description: Normalized phone number if available
      additionalProperties: false
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: header
      name: Cookie
      description: Personal access token from Pingmee Settings → Developer Tools
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Business API key from Pingmee Settings → Developer Tools

````