PATCH
https://app.evoriqa.com/api/v1/workspace/agent-costSet the agent cost rate
Sets the hourly agent cost used in ROI analytics. Both fields are required; `agentHourlyCostCents: null` clears the override back to the platform default.
Requires scope workspace:write
Warning:
Access is gated — enable it before your first call
The API is off by default. A request succeeds only when all three switches are on: the platform master switch (off by default), your organisation’s API toggle, and your plan or client entitlement. Any one off returns 403 API access is not enabled for this workspace.
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| agentHourlyCostCents | integer 0–1000000, or null | Required | Hourly cost in cents; null clears the override. |
| agentCostCurrency | string one of USD · EUR · GBP · CAD · AUD · NZD · INR · AED · SGD · ZAR · JPY | Required | ISO 4217 currency code. |
Request
curl
curl -X PATCH "https://app.evoriqa.com/api/v1/workspace/agent-cost" \
-H "x-api-key: $EVORIQA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "agentHourlyCostCents": 3500, "agentCostCurrency": "USD" }'Node.js
const res = await fetch("https://app.evoriqa.com/api/v1/workspace/agent-cost", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.EVORIQA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"agentHourlyCostCents": 3500,
"agentCostCurrency": "USD"
}),
});
const responseBody = await res.json();Python
import os
import requests
res = requests.patch(
"https://app.evoriqa.com/api/v1/workspace/agent-cost",
headers={"Authorization": f"Bearer {os.environ['EVORIQA_API_KEY']}"},
json={
"agentHourlyCostCents": 3500,
"agentCostCurrency": "USD"
},
)
body = res.json()Response
200 OK
{
"success": true,
"data": {
"agentHourlyCostCents": 3500,
"agentCostCurrency": "USD"
}
}