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

# List Agent Files

## List Agent Files

Retrieve all files associated with a specific agent.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.example.com/api/v1/agents/123/agent_files" \
    -H "X-API-Key: your-api-key-here"
  ```

  ```javascript JavaScript theme={null}
  const agentId = '123';
  const response = await fetch(`https://api.example.com/api/v1/agents/${agentId}/agent_files`, {
    method: 'GET',
    headers: {
      'X-API-Key': 'your-api-key-here'
    }
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  agent_id = '123'
  headers = {
      'X-API-Key': 'your-api-key-here'
  }

  response = requests.get(
      f'https://api.example.com/api/v1/agents/{agent_id}/agent_files',
      headers=headers
  )

  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "status": {
      "code": 200,
      "message": "Agent files retrieved successfully"
    },
    "data": [
      {
        "id": 1,
        "file_name": "product-catalog.pdf",
        "s3_key": "files/product-catalog.pdf",
        "s3_url": "https://s3.amazonaws.com/bucket/files/product-catalog.pdf",
        "file_size": 1024000,
        "content_type": "application/pdf",
        "elevenlabs_document_id": "doc_abc123",
        "agent_id": 123,
        "agent_name": "Customer Support Agent",
        "user_id": 1,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      }
    ]
  }
  ```
</ResponseExample>

<OpenApiExplorer />
