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

# Read Log Bodies

> Your org's exported request and response bodies, newest first, at most 7 days back.
Every read is in your audit log before anything is fetched.



## OpenAPI

````yaml /api/openapi.json get /v1/logs/bodies
openapi: 3.1.0
info:
  title: MeshAPI
  description: One key, all AI models.
  version: 0.1.0
servers:
  - url: https://api.meshapi.ai
security:
  - BearerAuth: []
paths:
  /v1/logs/bodies:
    get:
      tags:
        - Logs
      summary: Read Log Bodies
      description: >-
        Your org's exported request and response bodies, newest first, at most 7
        days back.

        Every read is in your audit log before anything is fetched.
      operationId: logs_bodies
      parameters:
        - name: request_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^req_[0-9A-Z]{26}$
              - type: 'null'
            title: Request Id
        - name: key_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Key Id
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Since
        - name: until
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Until
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 50
            minimum: 1
            default: 20
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^[0-9]{1,20}$
              - type: 'null'
            title: Cursor
        - in: header
          name: X-Mesh-Version
          required: false
          schema:
            type: string
            enum:
              - 2026-08
              - 2026-09
              - 2026-11
              - '2026-11-12'
            default: 2026-08
          example: '2026-11-12'
          description: >-
            Dated version of the API contract to pin this request to. Omit it
            and the request is served under `2026-08` — the oldest supported
            version, so an existing integration is never moved by a release. A
            malformed or unsupported value is rejected with `400
            invalid_api_version` rather than falling back silently. The version
            actually served is echoed as `X-Mesh-Version` on every response,
            including errors.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogBodiesOut'
        '400':
          description: '`since` is not before `until`, or they are more than 7 days apart.'
        '401':
          description: No credential, not an admin key, or a revoked or expired one.
        '403':
          description: >-
            The key lacks `logs:read_bodies` or org scope, or zero data
            retention is on for the organization.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Over the per-organization limit; wait `Retry-After` seconds.
        '503':
          description: >-
            The log store, the audit store or the retention check is
            unavailable; nothing was read.
      security:
        - BearerAuth: []
components:
  schemas:
    LogBodiesOut:
      properties:
        data:
          items:
            $ref: '#/components/schemas/LogBodyRecord'
          type: array
          title: Data
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      required:
        - data
      title: LogBodiesOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LogBodyRecord:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        request_id:
          type: string
          title: Request Id
        key_id:
          type: string
          title: Key Id
        request:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Request
        response:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Response
      type: object
      required:
        - timestamp
        - request_id
        - key_id
      title: LogBodyRecord
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Enter your MeshAPI key (`rsk_...`) or, for the admin-keys endpoints, a
        dashboard session token — sent as `Authorization: Bearer <token>`.

````

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