Compass Food Technologies
DocsPOST /v1/decision/restaurant-fit

Docs

POST /v1/decision/restaurant-fit

Return fit, not_fit, or unknown for one restaurant and one user profile.

Request

FieldTypeNotes
compass_idstringRequired. Restaurant ID from Search or Enrich.
user_profile.dietenumRequired. The diet to evaluate.
user_profile.exclude_cross_contaminationbooleanOptional. Use true for stricter handling.
user_profile.dietary_rulesarrayOptional free-form customer rules.
curl -X POST "https://api.compassfoodtechnologies.com/v1/decision/restaurant-fit" \
  -H "Content-Type: application/json" \
  -H "X-Compass-API-Key: cmp_live_your_key_here" \
  -H "X-Compass-Mode: rich" \
  -d '{
    "compass_id": "restaurant_123",
    "user_profile": {
      "diet": "strict_vegan",
      "exclude_cross_contamination": true
    }
  }'

Response

FieldTypeNotes
decisionfit | not_fit | unknownunknown is valid when evidence is insufficient, conflicting, or stale.
confidencehigh | medium | lowConfidence bucket for this decision.
reason_codes[]arrayCodes from the locked 30-code taxonomy.
evidence[]arrayEvidence pointers used by the decision.
verification_requiredbooleanTrue when restaurant confirmation is recommended.
{
  "compass_request_id": "req_abc123",
  "compass_id": "restaurant_123",
  "decision": "unknown",
  "confidence": "low",
  "reason_codes": [
    "CROSS_CONTAMINATION_UNKNOWN",
    "INSUFFICIENT_EVIDENCE"
  ],
  "risk_flags": ["cross_contamination_risk"],
  "verification_required": true,
  "recommended_user_text": "Verify details with the restaurant before visiting.",
  "ai_generated": true
}
Compass Food Technologies