Skip to main content
Helios uses concurrency limiting to ensure fair usage and system stability. This guide explains how limits work and how to handle them.

How Concurrency Limits Work

Instead of traditional rate limits (requests per minute), Helios limits the number of concurrent requests your account can have processing at once.
Why concurrency limits? Health data analysis takes several minutes per request. Traditional rate limits don’t work well for long-running operations, so we limit concurrent requests instead.

Default Limits

Limits are tracked separately for each agent type. You can have 7 Light Agent requests, 7 Deep Agent requests, and 7 Lab Results Agent requests running simultaneously.
Need higher limits? Contact support@heliosinc.xyz to discuss custom limits for your account.

Response Headers

Every API response includes headers showing your current concurrency status:
These headers are included on every API response (200 OK, 429, etc.), not just rate limit errors. This allows you to monitor your concurrency usage proactively.

Example Response Headers (200 OK)

Handling Rate Limit Errors

When you exceed your concurrency limit, the API returns a 429 Too Many Requests response:

Response Headers on 429

The Retry-After header suggests how long to wait before retrying (in seconds).

Best Practices

Check the X-Concurrent-Remaining header on every response to know when you’re approaching your limit.
When you receive a 429, wait before retrying:
For high-volume use cases, implement a queue to control how many requests you submit:
Store the runId of submitted requests so you can track what’s in progress:

Slot Release

Concurrency slots are automatically released when:
  1. Processing completes - Successfully or with an error
  2. Webhook is delivered - After the final webhook is sent
  3. Timeout occurs - After ~14 minutes if processing hangs (safety mechanism)
If your webhook endpoint is slow to respond, slots may take slightly longer to release. Ensure your webhook returns 200 OK quickly.

Next Steps

Quickstart

Make your first API call.

Webhooks

Set up webhook handling for results.