x-boxpressd-key and the api.ai entitlement. Send image URLs that the Boxpressd service can retrieve. A request can include one imageUrl or up to eight imageUrls, unless the endpoint says otherwise.
Choose a workflow
UsePOST /v1/matches or POST /v1/ai/cigars/identify for most applications. The two routes share the same request and response contract.
Use the staged endpoints when you need to inspect evidence, tune a scan flow, or reuse prior results.
“No paid inference” means the route does not spend paid model usage. These routes still require AI access to be enabled for the application.
Identify a cigar from a band image
Use a unique idempotency key for each logical paid operation. You can safely retry a request after a connection failure with the same key. Reusing a completed key returns409 ai_request_replayed instead of running and charging the operation again.
match and suggestions contain database-backed cigar IDs. pendingSuggestions can contain sourced research candidates that are not yet linked to a Boxpressd catalog record. Do not treat confidence values as calibrated probabilities.
Compose a staged match
A staged client commonly runs:similar,text/recognize, andfingerprintwith the same image.fingerprint/recognizewith the complete fingerprint response.band/analyzewhen two or more plausible candidates remain.identifywith the complete earlier responses understageResults.
stageResults; do not reduce them to IDs and scores. The service uses diagnostic fields when it reconciles evidence.
Research controls
researchMode controls how identification handles inconclusive evidence:
researchProfile accepts quick or thorough. Use quick for an interactive scan. Use thorough when a slower, broader search is acceptable.
Billing responses
Paid routes reserve a configured maximum before calling the matching service and settle the actual measured usage afterward. Failed downstream work releases the reservation. Successful paid responses includex-boxpressd-ai-credits-remaining. Handle these billing errors before prompting the user to retry:
See Credits and billing for balance and usage endpoints.