> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sixtyfour.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Live agent event stream

> Server-Sent Events: the agents' turn summaries as they are written.

Frames:
- `sessions`: every agent session; sent first and on each change.
- `event`: one turn summary; its `id:` is the resume cursor.
- `status`: the investigation's status, on open and on each change.
- `end`: the run finished and every event was sent. The `sessions` frame before it carries the run's cost,
  `null` until the charge is recorded.
- `access_lost`: you can no longer see the investigation.

The stream closes after about five minutes; reconnect with `Last-Event-ID` or `after` to resume. Comment lines
keep the connection open.



## OpenAPI

````yaml /openapi.json get /v1/atlas/investigations/{investigation_id}/events/stream
openapi: 3.1.0
info:
  title: Sixtyfour API
  description: >-
    Intelligence API for people and companies: research agents that investigate,
    resolve identities, map relationships and surface risk signals.
  contact:
    name: Sixtyfour
    url: https://sixtyfour.ai/
    email: support@sixtyfour.ai
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.sixtyfour.ai
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Enrichment
    description: Find and enrich emails, phones, and LinkedIn for people and companies.
  - name: Search
    description: Run deep and filter searches over Sixtyfour's data.
  - name: Workflow
    description: Create, run, and manage enrichment workflows.
  - name: Workflow Schedules
    description: Create and manage recurring schedules for workflows.
  - name: Account
    description: Manage and inspect your account and credit balance.
  - name: Feedback
    description: >-
      Tell us a result was wrong, missing or outdated, and report problems with
      the API, the docs or a tool.
  - name: Intelligence
    description: Verify identity attributes such as age using high-tier OSINT research.
  - name: Atlas
    description: >-
      Start, continue and read Atlas investigations: attribution graph,
      workspace files, reports and exports.
paths:
  /v1/atlas/investigations/{investigation_id}/events/stream:
    get:
      tags:
        - Atlas
      summary: Live agent event stream
      description: >-
        Server-Sent Events: the agents' turn summaries as they are written.


        Frames:

        - `sessions`: every agent session; sent first and on each change.

        - `event`: one turn summary; its `id:` is the resume cursor.

        - `status`: the investigation's status, on open and on each change.

        - `end`: the run finished and every event was sent. The `sessions` frame
        before it carries the run's cost,
          `null` until the charge is recorded.
        - `access_lost`: you can no longer see the investigation.


        The stream closes after about five minutes; reconnect with
        `Last-Event-ID` or `after` to resume. Comment lines

        keep the connection open.
      operationId: >-
        stream_events_v1_atlas_investigations__investigation_id__events_stream_get
      parameters:
        - name: investigation_id
          in: path
          required: true
          schema:
            type: string
            description: Investigation id, as returned by list or by an xhigh enrichment.
            title: Investigation Id
          description: Investigation id, as returned by list or by an xhigh enrichment.
        - name: after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 2048
              - type: 'null'
            description: >-
              Resume after this event cursor (an `id:` from this stream, or
              `next_cursor` from `GET …/events`). Omit to replay from the start.
              Reconnecting SSE clients send `Last-Event-ID`, which is used when
              this is absent.
            title: After
          description: >-
            Resume after this event cursor (an `id:` from this stream, or
            `next_cursor` from `GET …/events`). Omit to replay from the start.
            Reconnecting SSE clients send `Last-Event-ID`, which is used when
            this is absent.
      responses:
        '200':
          description: Server-Sent Events.
          content:
            text/event-stream:
              schema:
                type: string
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Invalid request body
                code: bad_request
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Invalid API key
                code: unauthenticated
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
        '403':
          description: Organization access is locked.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: >-
                  This organization no longer has access to Sixtyfour. Contact
                  your representative at Sixtyfour.
                code: forbidden
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
        '404':
          description: No such investigation, or not one you may see.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Not found
                code: not_found
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
        '422':
          description: Request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: >-
            More than 120 requests per minute per organization. Retry after the
            delay in Retry-After.
          headers:
            Retry-After:
              description: Seconds before retrying
              schema:
                type: string
                example: '1'
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: >-
                  Rate limit exceeded: 120 requests per minute. Retry after 1
                  second.
                code: rate_limited
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
          x-rate-limit:
            requests: 120
            period_seconds: 60
            scope: organization
        '500':
          description: Unexpected server error. Retry with backoff.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Internal server error
                code: internal_error
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
        '503':
          description: >-
            Temporarily unavailable. Nothing was charged; retry after the
            `Retry-After` header.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  feedback:
                    type: string
                    description: How to report a problem with this response.
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Could not verify the API key right now. Retry shortly.
                code: unavailable
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                feedback: >-
                  Problem with this response? POST /feedback with comment and
                  operation; include correlation_id in your comment.
components:
  schemas:
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
        feedback:
          type: string
          description: How to report a problem with this response.
        code:
          type: string
          description: Stable error code, for programs.
        correlation_id:
          type: string
          description: This request's ID, also in `X-Correlation-ID`. Quote it to support.
      example:
        detail:
          - loc:
              - body
              - target_company
              - domain
            msg: Field required
            type: missing
            input: null
            ctx: {}
        code: invalid_request
        correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
        feedback: >-
          Problem with this response? POST /feedback with comment and operation;
          include correlation_id in your comment.
    ValidationError:
      title: ValidationError
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            oneOf:
              - type: string
              - type: integer
          description: Path to the field that failed validation.
          example:
            - body
            - target_company
            - domain
        msg:
          type: string
          description: Human-readable error message.
          example: Field required
        type:
          type: string
          description: Error code (e.g. 'missing', 'value_error').
          example: missing
        input:
          description: The offending input value (any type, may be null).
          nullable: true
          example: null
        ctx:
          type: object
          description: Optional error context.
          additionalProperties: true
          example: {}
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Sixtyfour API key.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        An OAuth access token from `POST /oauth/token`, sent as `Authorization:
        Bearer <token>`. An API key sent as a bearer token is refused with 401.
        When both headers are sent, the bearer token is used.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.