Documentation
Tracing and exports
View .mdOpenAPI

Get the content logging switches

GEThttps://weights.fyi/run/v1/trace-preferencesscope: read
text
GET https://weights.fyi/run/v1/trace-preferences
Authorization: Bearer <token>                    scope: read
Available since
2026-10-10 implementation review: included in this build; see What is live for deployment status.
Answer time
synchronous: one row is read.

Says whether your account keeps copies of the inputs and outputs of new jobs, and the limits those copies live under. Both switches are off until you turn them on, and an account that never touched them reads false for both. The answer is cheap and has no side effect, so a program that is about to send sensitive pages can read it first and refuse to go on while input logging is on.

The switches are read when a job is made: a job keeps copies only for what was switched on at that moment, and stops as soon as you switch it off. The limits in the answer are fixed by the service, not settings of your own: copies are kept retention_days days, each at most max_payload_bytes (a larger one is kept as a marked, shortened preview), and at most max_account_bytes for your whole account, after which nothing more is kept until older copies expire or you delete them.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token, with the read scope.

Return value

200 OK:

FieldMeaning
log_inputstrue when new jobs keep a copy of each page you send.
log_outputstrue when new jobs keep a copy of each result the model gives.
retention_daysHow many days a copy is kept, 7.
max_payload_bytesThe largest copy kept whole, 16,384 bytes (16 KiB).
max_account_bytesThe most your account keeps in all, 16,777,216 bytes (16 MiB).

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403scope_requiredThe token lacks read.Use a token with read.

Examples

sh
curl -s https://weights.fyi/run/v1/trace-preferences -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{"log_inputs": false, "log_outputs": false, "retention_days": 7, "max_payload_bytes": 16384, "max_account_bytes": 16777216}

History

  • 2026-10-10 implementation review: added.

See also