Server requests: app and user parameters
Get surveys is called from your server. It identifies your app and user with query parameters:
If
app, external_user_id, ip or output=API is missing, the request is rejected with 401:
app and token.
User requests: Bearer token
The qualification endpoints act for one user. Send the user hashuh from the Get surveys response as a Bearer token:
Bearer {external_user_id}:{app}. If secure API mode is on for your app, also send token in the request body - recommended if you cannot provide IPs for the whitelisting.
A missing or unknown Bearer token returns 401:
App token
Thetoken must match your app API token. When secure API mode is off for your app, you can leave token out. A wrong token is always rejected. These checks return 400:
IP allowlist
If your app uses a strict IP allowlist, requests must come from one of your registered server IPs. Other requests get403:
Rate limits
Requests over the limit get HTTP
429. On Get surveys and the qualification endpoints the body has "message": "too_many_requests".