---
title: "GET /containers/fetch-all"
method: GET
path: "/containers/fetch-all"
tags: ["containers"]
---

# GET /containers/fetch-all

`GET /containers/fetch-all`

Gets all containers associated to a specified agent.

## Query parameters

- `agentId` string, required
- `beforeEndedAt` string
- `limit` string
- `mode` 'all' | 'finalized'
- `withRuntimeEvents` string

## Headers

- `X-Phantombuster-Org` string

## Response `200`

OK

- object
  - `maxLimitReached` boolean, required
  - `containers` object[], required
    - `id` string, required
    - `status` 'starting' | 'running' | 'finished' | 'unknown' | 'launch error', required
    - `createdAt` number, required
    - `launchType` 'manual' | 'user api call' | 'scheduled once' | 'scheduled repeatedly' | 'scheduled after agent' | 'retry' | 'scheduled before' | 'browser extension api call', required
    - `endType` 'finished' | 'killed' | 'global timeout' | 'org timeout' | 'agent timeout' | 'unknown' | 'no log timeout'
    - `endedAt` number
    - `exitCode` number, nullable
    - `retryNumber` number, required
    - `runtimeEvents` object[]
      - `timestamp` number
      - `slug` string, required
      - `icon` string
      - `type` string
      - `category` string
      - `title` string
      - `text` string
      - `primaryValue` union
        - number
        - string
        - boolean
      - `secondaryValue` union
        - number
        - string
        - boolean
      - `props` object
      - `setupLink` string
      - `redirectPage` string
    - `internalMetadata` object, nullable
    - `userCustomMetadata` object, nullable

---

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