Phantombuster Containers API

The containers API from Phantombuster — 5 operation(s) for containers.

GitHub OpenAPI

Operations 5

GET /containers/attach Get containers attach #
GET /containers/fetch Get containers fetch #
GET /containers/fetch-all Get containers fetch all #
GET /containers/fetch-output Get containers fetch output #
GET /containers/fetch-result-object Get containers fetch result object #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/phantombuster:phantombuster-containers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

phantombuster-containers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Phantombuster API v2. Swagger api specification is located at https://github.com/phantombuster/public-gists/blob/master/swagger-api-v2.json
  version: 2.0.0
  title: Phantombuster API v2 Containers API
  contact:
    email: contact@phantombuster.com
  license:
    name: ISC
    url: https://opensource.org/licenses/ISC
servers:
- description: Phantombuster api
  url: https://api.phantombuster.com/api/v2
- description: SwaggerHub API Auto Mocking
  url: https://virtserver.swaggerhub.com/Phantombuster/Phantombuster-v2/2.0.0
security:
- apiKeyAuth: []
tags:
- name: Containers
paths:
  /containers/attach:
    get:
      description: Attaches to a running container and streams its output in real-time.
      tags:
      - Containers
      responses:
        '200':
          description: OK - Returns a stream of container output
        '404':
          description: No container exists with the provided id.
      parameters:
      - in: header
        name: X-Phantombuster-Org
        description: ID of the org that is perfoming the operation (not necessary when using a third party key)
        schema:
          type: string
      - in: query
        required: true
        name: id
        description: Id of the container to attach to.
        schema:
          type: string
      summary: Get containers attach
      x-summary-source: derived
      operationId: getContainersAttach
      x-operation-id-source: derived
  /containers/fetch:
    get:
      description: Gets a container by id.
      tags:
      - Containers
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                    enum:
                    - starting
                    - running
                    - finished
                    - unknown
                    - launch error
                  createdAt:
                    type: number
                  launchType:
                    type: string
                    enum:
                    - manual
                    - user api call
                    - scheduled once
                    - scheduled repeatedly
                    - scheduled after agent
                    - retry
                    - scheduled before
                    - browser extension api call
                  endType:
                    type: string
                    enum:
                    - finished
                    - killed
                    - global timeout
                    - org timeout
                    - agent timeout
                    - unknown
                    - no log timeout
                  endedAt:
                    type: number
                  launchedAt:
                    type:
                    - number
                    - 'null'
                  exitCode:
                    type:
                    - number
                    - 'null'
                  retryNumber:
                    type: number
                  output:
                    type:
                    - string
                    - 'null'
                  resultObject:
                    type:
                    - string
                    - 'null'
                  runtimeEvents:
                    type: array
                    items:
                      type: object
                      additionalProperties: false
                      required:
                      - slug
                      properties:
                        timestamp:
                          type: number
                        slug:
                          type: string
                          maxLength: 100
                          pattern: ^[a-zA-Z0-9-_]+$
                        icon:
                          type: string
                          maxLength: 100
                        type:
                          type: string
                          maxLength: 100
                        category:
                          type: string
                          maxLength: 100
                        title:
                          type: string
                          maxLength: 500
                        text:
                          type: string
                          maxLength: 500
                        primaryValue:
                          anyOf:
                          - type: number
                          - type: string
                            maxLength: 100
                          - type: boolean
                        secondaryValue:
                          anyOf:
                          - type: number
                          - type: string
                            maxLength: 100
                          - type: boolean
                        props:
                          type: object
                        setupLink:
                          type: string
                          maxLength: 100
                          pattern: ^(phase|step|field|advancedSettings):([\w-])+$
                        redirectPage:
                          type: string
                          maxLength: 100
                          pattern: ^billing$
                  newerContainerId:
                    type: string
                  olderContainerId:
                    type: string
                  internalMetadata:
                    type:
                    - object
                    - 'null'
                    maxProperties: 100
                    additionalProperties: true
                    x-propertyNames:
                      type: string
                      maxLength: 250
                  userCustomMetadata:
                    type:
                    - object
                    - 'null'
                    maxProperties: 100
                    additionalProperties: true
                    x-propertyNames:
                      type: string
                      maxLength: 250
                additionalProperties: false
                required:
                - id
                - status
                - createdAt
                - launchType
                - retryNumber
        '404':
          description: No container exists with the provided id.
      parameters:
      - in: header
        name: X-Phantombuster-Org
        description: ID of the org that is perfoming the operation (not necessary when using a third party key)
        schema:
          type: string
      - in: query
        required: true
        name: id
        description: Id of the container to fetch.
        schema:
          type: string
      - in: query
        name: withResultObject
        description: If set, the container's result object will be returned in the response.
        schema:
          type: string
      - in: query
        name: withOutput
        description: If set, the output of the container will be returned in the response.
        schema:
          type: string
      - in: query
        name: withRuntimeEvents
        description: If set, the runtime events associated with the container will be returned in the response.
        schema:
          type: string
      - in: query
        name: withNewerAndOlderContainerId
        description: If set, the older container's id and the newer container's id will be returned in the response.
        schema:
          type: string
      summary: Get containers fetch
      x-summary-source: derived
      operationId: getContainersFetch
      x-operation-id-source: derived
  /containers/fetch-all:
    get:
      description: Gets all containers associated to a specified agent.
      tags:
      - Containers
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  maxLimitReached:
                    type: boolean
                  containers:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        status:
                          type: string
                          enum:
                          - starting
                          - running
                          - finished
                          - unknown
                          - launch error
                        createdAt:
                          type: number
                        launchType:
                          type: string
                          enum:
                          - manual
                          - user api call
                          - scheduled once
                          - scheduled repeatedly
                          - scheduled after agent
                          - retry
                          - scheduled before
                          - browser extension api call
                        endType:
                          type: string
                          enum:
                          - finished
                          - killed
                          - global timeout
                          - org timeout
                          - agent timeout
                          - unknown
                          - no log timeout
                        endedAt:
                          type: number
                        exitCode:
                          type:
                          - number
                          - 'null'
                        retryNumber:
                          type: number
                        runtimeEvents:
                          type: array
                          items:
                            type: object
                            additionalProperties: false
                            required:
                            - slug
                            properties:
                              timestamp:
                                type: number
                              slug:
                                type: string
                                maxLength: 100
                                pattern: ^[a-zA-Z0-9-_]+$
                              icon:
                                type: string
                                maxLength: 100
                              type:
                                type: string
                                maxLength: 100
                              category:
                                type: string
                                maxLength: 100
                              title:
                                type: string
                                maxLength: 500
                              text:
                                type: string
                                maxLength: 500
                              primaryValue:
                                anyOf:
                                - type: number
                                - type: string
                                  maxLength: 100
                                - type: boolean
                              secondaryValue:
                                anyOf:
                                - type: number
                                - type: string
                                  maxLength: 100
                                - type: boolean
                              props:
                                type: object
                              setupLink:
                                type: string
                                maxLength: 100
                                pattern: ^(phase|step|field|advancedSettings):([\w-])+$
                              redirectPage:
                                type: string
                                maxLength: 100
                                pattern: ^billing$
                        internalMetadata:
                          type:
                          - object
                          - 'null'
                          maxProperties: 100
                          additionalProperties: true
                          x-propertyNames:
                            type: string
                            maxLength: 250
                        userCustomMetadata:
                          type:
                          - object
                          - 'null'
                          maxProperties: 100
                          additionalProperties: true
                          x-propertyNames:
                            type: string
                            maxLength: 250
                      additionalProperties: false
                      required:
                      - id
                      - status
                      - createdAt
                      - launchType
                      - retryNumber
                additionalProperties: false
                required:
                - maxLimitReached
                - containers
      parameters:
      - in: header
        name: X-Phantombuster-Org
        description: ID of the org that is perfoming the operation (not necessary when using a third party key)
        schema:
          type: string
      - in: query
        required: true
        name: agentId
        description: Id of the agent to fetch containers from.
        schema:
          type: string
      - in: query
        name: beforeEndedAt
        description: If set, the endpoint will return containers which ended before the specified date.
        schema:
          type: string
      - in: query
        name: limit
        description: If set, the endpoint will only return the specified amount of containers.
        schema:
          type: string
      - in: query
        name: mode
        description: If set to "all", all containers will be returned. If set to "finalized", only finalized containers will be returned.
        schema:
          type: string
          enum:
          - all
          - finalized
      - in: query
        name: withRuntimeEvents
        description: If set, the endpoint will return the containers' runtime events in the response.
        schema:
          type: string
      summary: Get containers fetch all
      x-summary-source: derived
      operationId: getContainersFetchAll
      x-operation-id-source: derived
  /containers/fetch-output:
    get:
      description: Gets the output of a container.
      tags:
      - Containers
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  output:
                    type:
                    - string
                    - 'null'
        '204':
          description: Container output is empty.
        '404':
          description: No container exists with the provided id.
      parameters:
      - in: header
        name: X-Phantombuster-Org
        description: ID of the org that is perfoming the operation (not necessary when using a third party key)
        schema:
          type: string
      - in: query
        required: true
        name: id
        description: Id of the container to fetch output from.
        schema:
          type: string
      - in: query
        name: mode
        description: If set to "raw", the output will be returned as plain text. If omitted or set to "json", the output will be returned as json.
        schema:
          type: string
          enum:
          - json
          - raw
      summary: Get containers fetch output
      x-summary-source: derived
      operationId: getContainersFetchOutput
      x-operation-id-source: derived
  /containers/fetch-result-object:
    get:
      description: Gets the result object associated with a container.
      tags:
      - Containers
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  resultObject:
                    type:
                    - string
                    - 'null'
                additionalProperties: false
        '404':
          description: No container exists with the provided id.
      parameters:
      - in: header
        name: X-Phantombuster-Org
        description: ID of the org that is perfoming the operation (not necessary when using a third party key)
        schema:
          type: string
      - in: query
        required: true
        name: id
        description: Id of the container to fetch result object from.
        schema:
          type: string
      summary: Get containers fetch result object
      x-summary-source: derived
      operationId: getContainersFetchResultObject
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Phantombuster-Key
x-provenance:
  method: searched
  source: https://hub.phantombuster.com/reference
  harvested: '2026-11-15'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://hub.phantombuster.com/reference/get_agents-fetch-all.md
  - https://hub.phantombuster.com/reference/get_agents-fetch-deleted.md
  - https://hub.phantombuster.com/reference/get_agents-fetch-output.md
  - https://hub.phantombuster.com/reference/get_agents-fetch.md
  - https://hub.phantombuster.com/reference/get_branches-diff.md
  - https://hub.phantombuster.com/reference/get_branches-fetch-all.md
  - https://hub.phantombuster.com/reference/get_brightdata-serp.md
  - https://hub.phantombuster.com/reference/get_buyers-personas-fetch-all.md
  - https://hub.phantombuster.com/reference/get_containers-attach.md
  - https://hub.phantombuster.com/reference/get_containers-fetch-all.md
  - https://hub.phantombuster.com/reference/get_containers-fetch-output.md
  - https://hub.phantombuster.com/reference/get_containers-fetch-result-object.md
  - https://hub.phantombuster.com/reference/get_containers-fetch.md
  - https://hub.phantombuster.com/reference/get_icps-fetch-all.md
  - https://hub.phantombuster.com/reference/get_location-ip.md
  - https://hub.phantombuster.com/reference/get_org-storage-lists-fetch-all.md
  - https://hub.phantombuster.com/reference/get_org-storage-lists-fetch.md
  - https://hub.phantombuster.com/reference/get_orgs-export-agent-usage-1.md
  - https://hub.phantombuster.com/reference/get_orgs-export-container-usage-1.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-agent-groups.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-crm-access.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-crm-resources.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-resources.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-running-containers.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch.md
  - https://hub.phantombuster.com/reference/get_scoring-fetch-all.md
  - https://hub.phantombuster.com/reference/get_scoring-fetch-id.md
  - https://hub.phantombuster.com/reference/get_scripts-code.md
  - https://hub.phantombuster.com/reference/get_scripts-fetch-all.md
  - https://hub.phantombuster.com/reference/get_scripts-fetch.md
  - https://hub.phantombuster.com/reference/get_users-fetch-me.md
  - https://hub.phantombuster.com/reference/post_agents-delete.md
  - https://hub.phantombuster.com/reference/post_agents-launch-soon.md
  - https://hub.phantombuster.com/reference/post_agents-launch-sync.md
  - https://hub.phantombuster.com/reference/post_agents-launch.md
  - https://hub.phantombuster.com/reference/post_agents-save.md
  - https://hub.phantombuster.com/reference/post_agents-stop.md
  - https://hub.phantombuster.com/reference/post_agents-unschedule-all.md
  - https://hub.phantombuster.com/reference/post_ai-advice.md
  - https://hub.phantombuster.com/reference/post_ai-completions.md
  - https://hub.phantombuster.com/reference/post_branches-create.md
  - https://hub.phantombuster.com/reference/post_branches-delete.md
  - https://hub.phantombuster.com/reference/post_branches-release.md
  - https://hub.phantombuster.com/reference/post_hcaptcha.md
  - https://hub.phantombuster.com/reference/post_identities-events-save.md
  - https://hub.phantombuster.com/reference/post_identities-generate-token.md
  - https://hub.phantombuster.com/reference/post_identities-save-with-token.md
  - https://hub.phantombuster.com/reference/post_identities-save.md
  - https://hub.phantombuster.com/reference/post_identities-search.md
  - https://hub.phantombuster.com/reference/post_org-storage-companies-objects-save-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-companies-objects-save.md
  - https://hub.phantombuster.com/reference/post_org-storage-companies-objects-search.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-by-list-listid.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-delete-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-delete.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-save-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-save.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-search.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-save-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-save.md
  - https://hub.phantombuster.com/reference/post_org-storage-lists-delete.md
  - https://hub.phantombuster.com/reference/post_org-storage-lists-save.md
  - https://hub.phantombuster.com/reference/post_orgs-save-agent-groups.md
  - https://hub.phantombuster.com/reference/post_orgs-save-crm-contact.md
  - https://hub.phantombuster.com/reference/post_orgs-save.md
  - https://hub.phantombuster.com/reference/post_recaptcha.md
  - https://hub.phantombuster.com/reference/post_scripts-access-list.md
  - https://hub.phantombuster.com/reference/post_scripts-delete.md
  - https://hub.phantombuster.com/reference/post_scripts-save.md
  - https://hub.phantombuster.com/reference/post_scripts-visibility.md
  - https://hub.phantombuster.com/reference/post_users-update-me.md
  merge:
    pages: 71
    deduped: 70
    conflicts_kept_first: 0