---
title: "GET /agent/{id}/containers"
method: GET
path: "/agent/{id}/containers"
tags: ["Agent"]
---

# GET /agent/{id}/containers

`GET /agent/{id}/containers`

Get a list of ended containers for an agent, ordered by date. Useful for listing the last available output logs from an agent.

## Path parameters

- `id` integer, required

## Response `200`

Success

- object
  - `status` string
  - `data` object[]
    - `id` number
    - `queueDate` number
    - `launchDate` number
    - `launchType` string
    - `launchNumber` number
    - `endDate` number
    - `lastEndMessage` string
    - `lastEndStatus` string
    - `exitCode` number

## Other responses

- `default` — Error

---

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