Skip to main content

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:
Surveys list is not tied to a user, so it only needs app and token.

User requests: Bearer token

The qualification endpoints act for one user. Send the user hash uh from the Get surveys response as a Bearer token:
You can also send 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

The token 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 get 403:

Rate limits

Requests over the limit get HTTP 429. On Get surveys and the qualification endpoints the body has "message": "too_many_requests".
Cache Get surveys results for a short time per user instead of calling it on every page view.