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

# Download Call Logs

> Render the supplied call thread IDs into a CSV (Agent, Agent Number, User, Phone, Status, Duration, Direction, Timestamp, Cost, Score, Summary), upload it to S3, and return a public URL.



## OpenAPI

````yaml POST /agent/call-logs/download/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /agent/call-logs/download/:
    post:
      tags:
        - agent
      summary: Download Call Logs (Selected)
      description: >-
        Render the supplied call thread IDs into a CSV (Agent, Agent Number,
        User, Phone, Status, Duration, Direction, Timestamp, Cost, Score,
        Summary), upload it to S3, and return a public URL.
      operationId: agent_call_logs_download_create
      parameters:
        - in: header
          name: X-User-Timezone
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CallLogDownloadRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CallLogDownloadRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CallLogDownloadRequestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallLogDownloadResponse'
          description: CSV uploaded; URL returned.
      security:
        - jwtAuth: []
        - {}
components:
  schemas:
    CallLogDownloadRequestRequest:
      type: object
      properties:
        call_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Voice thread IDs to include in the export.
      required:
        - call_ids
    CallLogDownloadResponse:
      type: object
      properties:
        url:
          type: string
          format: uri
      required:
        - url
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````