Generate and manage your Public token
1
Go to Settings
Go to Settings → Public API.
2
Generate a token
If no token exists, select Generate token.

3
Copy the token
Copy the value shown under Public token and use it in your requests.
4
Revoke if needed
To immediately invalidate the token, select Revoke token. You can generate a new token at any time.

Authentication and request format
All Public API endpoints are GET requests. Provide the token and context using query parameters:pid— Campaign ID (string or number).account— A unique identifier for the user within your system (for example, user ID or email hash).platform— A short name representing your organization or platform.pub— Your Public token.
Base URL: use your assigned environment base (for example,
https://{base}/public/api/...). Paths below are shown without host for clarity.API methods
GET /public/api/user
Get basic user info and stats for an account in a campaign. Example request:pid: The campaign ID.account: The user’s ID.platform: The user’s platform.pub: Your Public token.
GET /public/api/user/refs
Get user info plus the user’s referrals. Example request:pid: The campaign ID.account: The user’s ID.platform: The user’s platform.pub: Your Public token.
GET /public/api/entries/count
Get the number of entries for the provided context. Example request:pid: The campaign ID.platform: The user’s platform.pub: Your Public token.
GET /public/api/campaign/stats
Get aggregated statistics for a campaign. Example request:pid: The campaign ID.platform: The user’s platform.pub: Your Public token.
Security notes
- The Public token is safe to use on the frontend for the endpoints listed here, but treat it as a secret for your organization. Rotate it by using Revoke token and Generate token if it is exposed.
- Do not use the Public API for any sensitive queries. Use the server-side API for those cases.
Troubleshooting
- 401/403: Verify
pubis present and correct. If you revoked the token, generate a new one and update your site. - 429: Reduce frequency of calls or cache responses on the client.
- CORS: Ensure you are calling the correct base domain for your environment.