Change retention or email routing
curl --request PATCH \
--url https://api.parser-app.com/v1/tenant/settings \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"retention_days": 18250,
"email_routing": {
"model": "typesafe/jev-router",
"skip_confidence": 0.9,
"internal_domains": [
"<string>"
]
},
"max_active_jobs": 5000,
"max_cost_usd_per_job": 500,
"monthly_luna_budget_usd": 1,
"luna_failover": true
}
'import requests
url = "https://api.parser-app.com/v1/tenant/settings"
payload = {
"retention_days": 18250,
"email_routing": {
"model": "typesafe/jev-router",
"skip_confidence": 0.9,
"internal_domains": ["<string>"]
},
"max_active_jobs": 5000,
"max_cost_usd_per_job": 500,
"monthly_luna_budget_usd": 1,
"luna_failover": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
retention_days: 18250,
email_routing: {
model: 'typesafe/jev-router',
skip_confidence: 0.9,
internal_domains: ['<string>']
},
max_active_jobs: 5000,
max_cost_usd_per_job: 500,
monthly_luna_budget_usd: 1,
luna_failover: true
})
};
fetch('https://api.parser-app.com/v1/tenant/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.parser-app.com/v1/tenant/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'retention_days' => 18250,
'email_routing' => [
'model' => 'typesafe/jev-router',
'skip_confidence' => 0.9,
'internal_domains' => [
'<string>'
]
],
'max_active_jobs' => 5000,
'max_cost_usd_per_job' => 500,
'monthly_luna_budget_usd' => 1,
'luna_failover' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.parser-app.com/v1/tenant/settings"
payload := strings.NewReader("{\n \"retention_days\": 18250,\n \"email_routing\": {\n \"model\": \"typesafe/jev-router\",\n \"skip_confidence\": 0.9,\n \"internal_domains\": [\n \"<string>\"\n ]\n },\n \"max_active_jobs\": 5000,\n \"max_cost_usd_per_job\": 500,\n \"monthly_luna_budget_usd\": 1,\n \"luna_failover\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.parser-app.com/v1/tenant/settings")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"retention_days\": 18250,\n \"email_routing\": {\n \"model\": \"typesafe/jev-router\",\n \"skip_confidence\": 0.9,\n \"internal_domains\": [\n \"<string>\"\n ]\n },\n \"max_active_jobs\": 5000,\n \"max_cost_usd_per_job\": 500,\n \"monthly_luna_budget_usd\": 1,\n \"luna_failover\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parser-app.com/v1/tenant/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"retention_days\": 18250,\n \"email_routing\": {\n \"model\": \"typesafe/jev-router\",\n \"skip_confidence\": 0.9,\n \"internal_domains\": [\n \"<string>\"\n ]\n },\n \"max_active_jobs\": 5000,\n \"max_cost_usd_per_job\": 500,\n \"monthly_luna_budget_usd\": 1,\n \"luna_failover\": true\n}"
response = http.request(request)
puts response.read_body{
"retention_days": 123,
"max_active_jobs": 123,
"max_cost_usd_per_job": "<string>",
"monthly_luna_budget_usd": "<string>",
"luna_route": "openrouter",
"luna_route_scans": "openrouter",
"luna_failover": true,
"email_routing": {
"model": "typesafe/jev-router",
"skip_confidence": 0.9,
"internal_domains": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Account
Change retention or email routing
retention_days (null: keep everything) and email_routing. Job, spend and budget limits and the Luna route are set by the platform: sending them is refused (403).
PATCH
/
v1
/
tenant
/
settings
Change retention or email routing
curl --request PATCH \
--url https://api.parser-app.com/v1/tenant/settings \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"retention_days": 18250,
"email_routing": {
"model": "typesafe/jev-router",
"skip_confidence": 0.9,
"internal_domains": [
"<string>"
]
},
"max_active_jobs": 5000,
"max_cost_usd_per_job": 500,
"monthly_luna_budget_usd": 1,
"luna_failover": true
}
'import requests
url = "https://api.parser-app.com/v1/tenant/settings"
payload = {
"retention_days": 18250,
"email_routing": {
"model": "typesafe/jev-router",
"skip_confidence": 0.9,
"internal_domains": ["<string>"]
},
"max_active_jobs": 5000,
"max_cost_usd_per_job": 500,
"monthly_luna_budget_usd": 1,
"luna_failover": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
retention_days: 18250,
email_routing: {
model: 'typesafe/jev-router',
skip_confidence: 0.9,
internal_domains: ['<string>']
},
max_active_jobs: 5000,
max_cost_usd_per_job: 500,
monthly_luna_budget_usd: 1,
luna_failover: true
})
};
fetch('https://api.parser-app.com/v1/tenant/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.parser-app.com/v1/tenant/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'retention_days' => 18250,
'email_routing' => [
'model' => 'typesafe/jev-router',
'skip_confidence' => 0.9,
'internal_domains' => [
'<string>'
]
],
'max_active_jobs' => 5000,
'max_cost_usd_per_job' => 500,
'monthly_luna_budget_usd' => 1,
'luna_failover' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.parser-app.com/v1/tenant/settings"
payload := strings.NewReader("{\n \"retention_days\": 18250,\n \"email_routing\": {\n \"model\": \"typesafe/jev-router\",\n \"skip_confidence\": 0.9,\n \"internal_domains\": [\n \"<string>\"\n ]\n },\n \"max_active_jobs\": 5000,\n \"max_cost_usd_per_job\": 500,\n \"monthly_luna_budget_usd\": 1,\n \"luna_failover\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.parser-app.com/v1/tenant/settings")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"retention_days\": 18250,\n \"email_routing\": {\n \"model\": \"typesafe/jev-router\",\n \"skip_confidence\": 0.9,\n \"internal_domains\": [\n \"<string>\"\n ]\n },\n \"max_active_jobs\": 5000,\n \"max_cost_usd_per_job\": 500,\n \"monthly_luna_budget_usd\": 1,\n \"luna_failover\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parser-app.com/v1/tenant/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"retention_days\": 18250,\n \"email_routing\": {\n \"model\": \"typesafe/jev-router\",\n \"skip_confidence\": 0.9,\n \"internal_domains\": [\n \"<string>\"\n ]\n },\n \"max_active_jobs\": 5000,\n \"max_cost_usd_per_job\": 500,\n \"monthly_luna_budget_usd\": 1,\n \"luna_failover\": true\n}"
response = http.request(request)
puts response.read_body{
"retention_days": 123,
"max_active_jobs": 123,
"max_cost_usd_per_job": "<string>",
"monthly_luna_budget_usd": "<string>",
"luna_route": "openrouter",
"luna_route_scans": "openrouter",
"luna_failover": true,
"email_routing": {
"model": "typesafe/jev-router",
"skip_confidence": 0.9,
"internal_domains": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
APIKeyHeaderHTTPBearer
API key
Body
application/json
Fields left out are unchanged. The tenant may set retention and email routing; the rest is platform-only.
Required range:
1 <= x <= 36500How Jev routing treats this tenant's email; the email_routing module turns it on or off.
Show child attributes
Show child attributes
Required range:
1 <= x <= 10000Required range:
0 <= x <= 1000Required range:
x >= 0Available options:
openrouter, proxy Available options:
openrouter, proxy Response
Successful Response
Data older than this is deleted; null keeps everything
Available options:
openrouter, proxy Available options:
openrouter, proxy How Jev routing treats this tenant's email; the email_routing module turns it on or off.
Show child attributes
Show child attributes