Skip to main content

Logs API Reference

The Logs API provides access to call history for debugging and analysis.
Note: Response schemas shown are illustrative. Actual responses may vary.

Authentication

Requires API key authentication:

Endpoints


List Logs

Retrieve paginated call logs with filtering and sorting options.

Endpoint

Query Parameters

Example Request

Response


Logs Summary

Get aggregated statistics for your logs.

Endpoint

Query Parameters

Example Request

Response


Get Log by ID

Retrieve detailed information for a specific call.

Endpoint

Example Request

Response


Use Cases

Debugging Failed Calls

Cost Analysis

Quality Monitoring

Export for Analysis


Log Retention


Filtering Best Practices

1. Use Date Ranges for Performance

2. Paginate Large Results

3. Combine Filters Efficiently


Rate Limits


Privacy & Security

Data Handling

  • Prompt Storage: Full prompts stored for retention period
  • Output Storage: Full outputs stored for retention period
  • PII Detection: Automatic flagging (Enterprise)
  • Encryption: AES-256 at rest, TLS 1.3 in transit

GDPR Compliance

Delete user data on request:

Export User Data


Support