Skip to content

Zero data retention for runs on your own OpenRouter key (runs on our key always use it)

PUT
/v1/settings/data-retention
curl --request PUT \
--url https://api.supposing.app/v1/settings/data-retention \
--header 'Content-Type: application/json' \
--data '{ "zero_data_retention": true }'
Media typeapplication/json
DataRetentionIn
object
zero_data_retention
required
Zero Data Retention

For runs on your own OpenRouter key: route only to providers that keep no data. Runs on our key always do.

boolean

Example generated

{
"zero_data_retention": true
}

Successful Response

Media typeapplication/json
Settings
object
has_openrouter_key
required
Has Openrouter Key
boolean
platform_key_available
required
Platform Key Available
boolean
providers
required
Providers
Array<string>
webhook_url
required
Webhook Url

Where run.done, run.failed and run.canceled events are POSTed.

Any of:
string
zero_data_retention
required
Zero Data Retention

Own-key runs route only to providers that keep no data. Runs on our key always do.

boolean
default: true

Example

{
"zero_data_retention": true
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}