/api/orgs/{org_id}/spend/analytics/{analysis_id}/comparisonCancel a pending comparison
Cancels the optional previous-period work only; the primary report stays readable. There is no endpoint that deletes the primary load. API keys need provisioning strength.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.analysis_idstringrequiredAnalytics load id returned by
POST /spend/analytics.
Responses
204Cancelled. No body.
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
403The key is not a provisioning key (inference keys are refused on every Spend route, reads included), or it is a customer-plan key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404Unknown handle, or the org is not the key's own organization.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
503Reporting is unavailable, initializing, or the bounded read timed out. Not empty data; retry or narrow the range.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl -X DELETE https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/spend/analytics/5a9e2b71-0c4d-4f6e-8a13-7d2b9c0e4f58/comparison \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"error": "Unauthorized"
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/spend/analytics/5a9e2b71-0c4d-4f6e-8a13-7d2b9c0e4f58/comparison