List Request Logs
List request logs, newest first, filtered by time, key, model or status.
List request logs, newest first. The list leaves out the request and response payloads; retrieve a log to get them.
GET /v1/account/logsQuery parameters
starting_atstringoptionalOnly return requests made at or after this time (RFC 3339).
ending_atstringoptionalOnly return requests made before this time (RFC 3339).
api_key_idstringoptionalOnly return requests made with this API key.
modelstringoptionalOnly return requests to this model.
statusstringoptionalOnly return requests that ended with this status.
successerroraborttimeoutlimitintegeroptionalDefault 20Items per page, 1 to 1000.
after_idstringoptionalReturn the page after this log ID (older requests).
before_idstringoptionalReturn the page before this log ID (newer requests).
Response
dataLog[]optionalhas_morebooleanoptionaltrue when there are more logs beyond this page.
first_idstring | nulloptionalID of the first log on this page.
last_idstring | nulloptionalID of the last log on this page.
Exporting a day of logs
Set starting_at and ending_at to the day, limit=1000, and keep
passing the previous page's last_id as after_id while has_more is
true.
Errors
| Status | Reason |
|---|---|
400 | A filter value is invalid, limit is out of range, both after_id and before_id are set, or the cursor ID doesn't exist. |