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

# Read the active transcript of an agent job session



## OpenAPI

````yaml https://platform.usecontextlayer.com/api/openapi.json get /slates/{target}/agents/{name}/jobs/{id}/sessions/{session}/messages
openapi: 3.1.0
info:
  title: ContextLayer Platform
  version: 0.1.0
servers:
  - url: https://platform.usecontextlayer.com/api
security: []
tags:
  - name: Slates
  - name: Slate routing
  - name: Slate resources
  - name: Accounts
  - name: Shared secrets
  - name: Agents
  - name: Agent jobs
paths:
  /slates/{target}/agents/{name}/jobs/{id}/sessions/{session}/messages:
    get:
      tags:
        - Agent jobs
      summary: Read the active transcript of an agent job session
      operationId: getAgentJobMessages
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: name
          in: path
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: string
          required: true
          name: target
          in: path
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
        - schema:
            type: string
          required: true
          name: session
          in: path
      responses:
        '200':
          description: Native active transcript entries for this job session
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    byTaskId:
                      type: number
                    conversationId:
                      type: number
                    data:
                      description: >-
                        Opaque native entry payload, including extension-defined
                        JSON.
                    edits:
                      type: array
                      items:
                        type: object
                        properties:
                          action:
                            type: string
                            enum:
                              - omit
                              - replace
                          messages:
                            type: array
                            items:
                              type: object
                              properties:
                                role:
                                  type: string
                                  enum:
                                    - system
                                    - user
                                    - assistant
                                    - toolResult
                                timestamp:
                                  type: number
                              required:
                                - role
                                - timestamp
                              additionalProperties: {}
                              description: >-
                                Native Pi model message. Content, usage, tools,
                                and provider fields pass through unchanged.
                          target:
                            type: number
                        required:
                          - action
                          - target
                        additionalProperties: {}
                    head:
                      type: number
                    id:
                      type: number
                    kind:
                      type: string
                    model:
                      type: array
                      items:
                        type: object
                        properties:
                          role:
                            type: string
                            enum:
                              - system
                              - user
                              - assistant
                              - toolResult
                          timestamp:
                            type: number
                        required:
                          - role
                          - timestamp
                        additionalProperties: {}
                        description: >-
                          Native Pi model message. Content, usage, tools, and
                          provider fields pass through unchanged.
                  required:
                    - conversationId
                    - id
                    - kind
                  additionalProperties: {}
                  description: >-
                    Native active EntryRecord; native payload fields are
                    preserved, not normalized into chat messages.
        '400':
          description: Invalid slate target, agent name, job ID, or session
        '401':
          description: A valid ContextLayer login is required
        '403':
          description: Only the Owner or owning organization members may inspect execution
        '404':
          description: Slate, agent job, or Pi session not found
      security:
        - bearerAuth: []
        - webCookie: []
        - localWebCookie: []
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    webCookie:
      in: cookie
      name: __Secure-better-auth.session_token
      type: apiKey
    localWebCookie:
      in: cookie
      name: better-auth.session_token
      type: apiKey

````

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