Playground
Build a request
Mock mode shapes responses from the documented schema and never touches the network. Live mode posts straight from your browser to your tenant host.
Stored in this browser only, and sent nowhere except the tenant host you type. Use a sandbox keyset.
MockLive
setAddOns
POST /ticket/setAddOnsParameters
No network call. Responses are shaped from the documented schema.
curl (keys redacted)
curl -X POST 'https://{subdomain}.pestroutes.com/api/ticket/setAddOns' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
--data-urlencode 'authenticationKey=<your-key>' \
--data-urlencode 'authenticationToken=<your-token>'javascript
const response = await fetch("https://{subdomain}.pestroutes.com/api/ticket/setAddOns", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
"authenticationKey": "<your-key>",
"authenticationToken": "<your-token>",
}),
});
const data = await response.json();