Skip to navigation

Read how long Meadow keeps records

The server’s retention settings: how many days usage records of model calls and sandboxes are kept before only daily sums remain (MEADOW_USAGE_RETENTION_DAYS), and how many days audit log entries are kept (MEADOW_AUDIT_LOG_RETENTION_DAYS). null means kept with no limit. The settings are the same for every account.

Any key. People: any role.

curl -sS "$MEADOW_BASE_URL/v1/retention" -H "Authorization: Bearer $MEADOW_API_KEY"

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The retention settings.
objectenum
Allowed values:
usage_records_daysinteger or null

Days usage records are kept before only daily sums remain. null: kept with no limit.

audit_log_daysinteger or null

Days audit log entries are kept. null: kept with no limit.

Errors

401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error