---
title: "POST /BatchGetThreatModelJobTasks"
method: POST
path: "/BatchGetThreatModelJobTasks"
---

# POST /BatchGetThreatModelJobTasks

`POST /BatchGetThreatModelJobTasks`

Retrieves information about one or more tasks within a threat model job.

## Request body

- object
  - `agentSpaceId` string, required — The unique identifier of the agent space that contains the tasks.
  - `threatModelJobTaskIds` String[], required — The list of task identifiers to retrieve.

## Response `200`

Success

- BatchGetThreatModelJobTasksOutput — Output for the BatchGetThreatModelJobTasks operation.
  - `threatModelJobTasks` ThreatModelJobTask[] — The list of threat model job tasks that were found.
    - `taskId` string, required — The unique identifier of the task.
    - `threatModelId` string — The unique identifier of the threat model associated with the task.
    - `threatModelJobId` string — The unique identifier of the threat model job that contains the task.
    - `agentSpaceId` string — The unique identifier of the agent space.
    - `title` string — The title of the task.
    - `description` string — A description of the task.
    - `executionStatus` 'IN_PROGRESS' | 'ABORTED' | 'COMPLETED' | 'INTERNAL_ERROR' | 'FAILED' — The current execution status of the task.
    - `logsLocation` object — The location of the task execution logs.
      - `logType` 'CLOUDWATCH' — The type of log storage. Currently, only CLOUDWATCH is supported.
      - `cloudWatchLog` object — The CloudWatch Logs location for the task logs.
        - `logGroup` string — The name of the CloudWatch log group.
        - `logStream` string — The name of the CloudWatch log stream.
    - `createdAt` string, date-time — The date and time the task was created, in UTC format.
    - `updatedAt` string, date-time — The date and time the task was last updated, in UTC format.
  - `notFound` String[] — The list of task identifiers that were not found.

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
