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

# GET /containers/fetch

`GET /containers/fetch`

Gets a container by id.

## Query parameters

- `id` string, required
- `withResultObject` string
- `withOutput` string
- `withRuntimeEvents` string
- `withNewerAndOlderContainerId` string

## Headers

- `X-Phantombuster-Org` string

## Response `200`

OK

- object
  - `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
  - `launchedAt` number, nullable
  - `exitCode` number, nullable
  - `retryNumber` number, required
  - `output` string, nullable
  - `resultObject` string, nullable
  - `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
  - `newerContainerId` string
  - `olderContainerId` string
  - `internalMetadata` object, nullable
  - `userCustomMetadata` object, nullable

## Other responses

- `404` — No container exists with the provided id.

---

[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)
