API Reference
Compare policies across jurisdictions
Compare coverage policies across different MAC jurisdictions for the same procedure codes. Supports idempotency keys for safe retries.
Authorization
bearerAuth AuthorizationBearer <token>
API key in format: vrt_live_xxxxx or vrt_test_xxxxx
In: header
Header Parameters
X-Idempotency-Key?string
Unique key for idempotent requests (recommended for safe retries)
Request Body
application/json
procedure_codes*array<string>
CPT/HCPCS codes to compare coverage for
Items
1 <= items <= 10policy_type?string
Filter by policy type
Value in
"LCD" | "Article" | "NCD"jurisdictions?array<string>
Specific jurisdictions to compare (all if omitted)
Items
items <= 10Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://verity.backworkai.com/api/v1/policies/compare" \ -H "Content-Type: application/json" \ -d '{ "procedure_codes": [ "string" ] }'{
"success": true,
"data": {
"comparison": [
{
"jurisdiction": "string",
"mac": {
"name": "string",
"code": "string",
"jurisdiction_name": "string",
"states": [
"string"
]
},
"policies": [
{
"policy_id": "string",
"title": "string",
"policy_type": "string",
"effective_date": "2019-08-24",
"is_national": true,
"codes": [
{
"code": "string",
"code_system": "string",
"disposition": "string"
}
]
}
],
"coverage_summary": {
"covered": 0,
"not_covered": 0,
"requires_pa": 0,
"conditional": 0
}
}
],
"national_policies": [
{}
],
"summary": {
"total_jurisdictions": 0,
"jurisdictions_with_coverage": 0,
"national_policies_count": 0,
"has_variation": true,
"queried_codes": [
"string"
],
"policy_type_filter": "string"
}
},
"meta": {
"request_id": "string",
"timestamp": "2019-08-24T14:15:22Z",
"idempotency_key": "string",
"cached": true
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": {
"q": [
"Search query is required"
]
},
"docUrl": "https://docs.verity.io/errors#validation-error"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}{
"success": false,
"error": {
"code": "AUTH_KEY_NOT_FOUND",
"message": "API key not found",
"hint": "Check that your API key is correct",
"docUrl": "https://docs.verity.io/errors#auth-key-not-found"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"hint": "Upgrade to pay-as-you-go for higher limits",
"docUrl": "https://docs.verity.io/errors#rate-limit-exceeded"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}