HalalAdzDevelopers বাংলা · EN Go to dashboard
Docs menu

More

Limits and error codes

Request limits

KeyPer minute (per key)Per hour (per key)
Live120 requests a minuteat most 1,000 requests an hour
Test60 requests a minuteat most 1,000 requests an hour

Both limits count every call: a key may burst up to its minute limit, but never more than 1,000 in one hour. HalalAdz may change the minute limit (between 10 and 1,000 a minute); your current limits are in GET /me rateLimitPerMinute and rateLimitPerHour. Calls are counted before the IP allowlist and account checks, so refused calls count too.

HeaderMeaning
X-RateLimit-LimitRequests allowed in this minute
X-RateLimit-RemainingRequests left in this minute
X-RateLimit-ResetSeconds until the minute window starts again
X-RateLimit-Hour-LimitRequests allowed in this hour
X-RateLimit-Hour-RemainingRequests left in this hour
X-RateLimit-Hour-ResetSeconds until the hour window starts again

Over either limit you get 429 rate_limited with Retry-After: <seconds> — wait that long, then retry.

Other limitsValue
Days per report requestup to 92 (more → 400 range_too_long)
IP allowlist per keyup to 20 addresses or ranges
Call log kept90 days
Active keys per accountup to 20
Webhook addresses per accountup to 10
Items per list pageup to 200
Idempotency-KeyRequired on every POST / PATCH / DELETE; a repeat with the same key gets the first answer for 24 hours
Live key spend per dayThe limit HalalAdz sets (0 at first)
Open test campaignsup to 1,000,000 BDT of test money

Error codes

Every error has the same shape:

JSON
{ "error": "validation_error", "message": "from: Invalid date", "issues": [{ "path": "from", "message": "Invalid date" }] }
StatusWhenWhat to do
400 validation_errorThe query or body is wrongissues lists every problem
401 invalid_api_keyMissing, wrong or stopped keyCheck the key; make a new one if needed
401 key_owner_removedThe member who made the key left the teamHave a current member make a new key
403 insufficient_scopeThe key lacks this scopeMake a key with the right scope
403 ip_not_allowedCalled from an address not on the key's IP allowlistAdd the address to the list, or call from the right server
403 not_an_agencyAn agency report asked by a non-agency accountUse the agency account's key
400 range_too_longMore than 92 days in one requestSplit the range into several requests
400 idempotency_key_requiredA POST / PATCH / DELETE without an Idempotency-Key headerSend a new value per action (e.g. a UUID)
422 idempotency_key_reusedThe same Idempotency-Key with a different requestUse a new value for a new action
409 idempotency_in_progressThe first request with this key is still runningRetry a bit later with the same key
403 campaign_write_offHalalAdz has not turned campaign writes on for live keys (making such a key: 422)Use a test key; write to HalalAdz for live
403 spend_limit_reachedThis key's daily spend limit would be passeddetails shows what is left; retry tomorrow or ask for a higher limit
409 budget_lockedBudget or dates changed on a launched campaignCreate a new campaign
409 price_changedThe price changed before launchCheck details.totalMicros and send again
402 insufficient_fundsNot enough money in the walletAdd money
422 test_money_capToo much test money in open test campaignsEnd old test campaigns
409 launch_in_dashboardLaunching a dashboard copy (duplicate / relaunch) through the APILaunch it in the dashboard, or create a new campaign with the API
409 resume_in_dashboardResuming a pay-as-you-go campaign through the APIResume it in the dashboard
409 test_campaignOffering a test campaign to real creatorsUse a campaign paid from your wallet
410 review_by_halaladzTried to fake a review decision in the sandboxA HalalAdz person reviews it; wait for the webhook
403 live_key_owner_onlySomeone other than the owner tried to make a live key or change its IP listAsk the account owner
403 forbiddenWrong account kind (e.g. a publisher key on an advertiser report)Use a key of the right account
403 account_suspendedThe account is not activeWrite to support@halaladz.com
403 sandbox_onlyA test-only request sent with a live keyUse a test key
404 not_foundDoes not exist, belongs to another account, or is a campaign of the other key kind (test / live)Check the id and the key
429 rate_limitedOver the limitRetry after Retry-After seconds
5xxA problem on our sideRetry a bit later; check status