# Get a task

Retrieve details of a specific task.

Endpoint: GET /flows/api/tasks/{uuid}
Version: 2.0.0
Security: bearerAuth

## Path parameters:

  - `uuid` (string, required)
    Resource UUID.

## Response 200 fields (application/json):

  - `uuid` (string)

  - `parent_task_pipeline_uuid` (string)
    UUID of the parent task (for chained tasks).

  - `team_id` (integer)

  - `assigned_to` (integer)
    User ID the task is assigned to.

  - `user_id` (integer)

  - `lead_uuid` (string)

  - `company_uuid` (string)

  - `sender_profile_uuid` (string)

  - `mailbox_uuid` (string)

  - `flow_uuid` (string)

  - `flow_lead_uuid` (string)
    UUID of the flow-lead record linking this contact to the automation.

  - `flow_origin` (string)
    `automation` when created by a flow.
    Example: automation

  - `flow_node_id` (integer)
    Node index within the automation that generated this task.

  - `type` (string)
    Task type. Known values: `linkedin_send_message`, `linkedin_send_connection_request`, `email_send_message`.
    Example: linkedin_send_message

  - `automation` (string)
    Enum: "manual", "auto"

  - `automation_error_code` (string)

  - `status` (string)
    Enum: "in_progress", "closed", "canceled", "failed", "skipped"

  - `fork_result` (integer)

  - `payload` (object)
    Task-specific data. For message tasks includes `template`, `rendered_text`, `attachments`, `stop_on_reply_level`, `last_message_at`.

  - `payload.template` (string)
    Message template with variables.

  - `payload.rendered_text` (string)
    Final message text after variable substitution.

  - `payload.attachments` (array)

  - `payload.stop_on_reply_level` (string)
    When to stop the sequence on reply.
    Example: always

  - `payload.last_message_at` (string)

  - `attempts` (integer)
    Number of execution attempts.

  - `error_msg` (string)
    Error or skip reason.

  - `priority` (integer)
    Task priority (lower = higher priority).

  - `number_in_line` (integer)

  - `note` (string)

  - `timezone` (string)

  - `schedule_at` (string)

  - `executed_at` (string)

  - `taken_to_execute_at` (string)

  - `created_at` (string)

  - `updated_at` (string)

