- Polling the result endpoints (default)
- Event notifications via Amazon SQS (optional add-on)
- Webhooks via Svix (optional add-on)
SQS event notifications and Svix webhooks are available subject to prior agreement and may involve an additional fee.
Option 1 — Polling (default)
By default, customers fetch results by polling the relevant result endpoints (e.g., fraud/quality/classification/decision) until processing completes. Recommended polling strategy- Implement exponential backoff
- Cap the polling interval at 45 seconds
- Stop polling after 15 minutes (hard analysis timeout)
- Most integrations
- Teams who want the simplest implementation with no additional infrastructure
Option 2 — Amazon SQS event notifications
Instead of polling, you can subscribe to events delivered to your Amazon SQS queue. This allows your application to react to results asynchronously and scale via event-driven processing. How it works (high level)- Events are delivered to your SQS queue.
- Resistant AI assumes a role in your AWS account using STS; the
tenant_idis used as theExternalId. - Each event includes a
result_urlyou can use to fetch full results via the API.
documents.analysis.fraud.finisheddocuments.analysis.quality.finisheddocuments.analysis.classification.finished
- One event destination per tenant.
- Publishing does not specify a KMS key in the API call; your SQS queue policy must support your encryption setup.
- AWS-native customers
- High-throughput integrations where polling load is undesirable
Option 3 — Webhooks via Svix
Webhooks are another alternative to polling. Resistant AI can send HTTPS webhook requests to your endpoint using Svix as the delivery provider. How it works (high level)- You provide a callback URL.
- Svix delivers events to your endpoint.
- Webhooks include signature headers for verification.
- On delivery failures, Svix retries using exponential backoff.
documents.analysis.fraud.finisheddocuments.adaptive_decision.finisheddocuments.quality.finisheddocuments.classification.finished
- Customers who prefer HTTP callbacks over AWS SQS
- Integrations that already operate webhook receivers
Choosing the right option
| Feature | Polling | SQS | Webhooks |
|---|---|---|---|
| Infrastructure needed | None | AWS account | HTTPS endpoint |
| Latency | Variable (depends on poll frequency) | Near real-time | Near real-time |
| Reliability | Depends on client | High (SQS durability) | High (Svix retries) |
| AWS-native | No | Yes | No |
| Setup complexity | Low | Medium | Low–Medium |