OAuth Apps
Let other Zigpoll accounts connect to your app with OAuth, read-only, without sharing an API key
Use an OAuth app when you build a product that reads Zigpoll data for other brands: an agency tool, an analytics product or a testing platform. Each brand clicks your "Connect Zigpoll" button, signs in to Zigpoll, chooses which of their accounts to share and approves. You get a token for exactly those accounts. Nobody copies an API key.
If you only need your own data, use an API key instead.
What an app can do
OAuth apps get one scope, read:
Read surveys, questions and responses in the accounts the brand chose.
Nothing else. Apps cannot create, change or delete anything, and cannot send emails or SMS.
Brands can remove your app at any time under Integrations → Connected Apps. Access ends immediately. It also ends if the person who connected it leaves the account or stops being an admin.
🔑 Create an app
Go to Integrations → OAuth Apps and click New App.
Enter your app's name, website and one or more redirect URIs (your OAuth callback URLs).
Copy the client ID and client secret. The secret is shown only once. You can generate a new one at any time.
Creating an app requires an Owner, Admin or Billing Admin role, on any plan. Brands connecting your app can only choose accounts they administer that are on a plan with API access (Premium or higher).
New apps are unverified, and brands see a warning when they connect. Contact us to have your app reviewed.
Redirect URIs must use https:// (http:// is allowed for localhost while you develop). They are matched exactly, including the path and query string.
🔁 The flow
Zigpoll uses the OAuth 2.1 authorization code flow with PKCE.
Authorization URL
https://mcp.zigpoll.com/authorize
Token URL
https://mcp.zigpoll.com/token
Revocation URL
https://mcp.zigpoll.com/revoke
Scope
read
PKCE
Required, S256
Client authentication
client_secret_post (secret in the request body)
API base URL
https://v1.zigpoll.com
1. Send the brand to Zigpoll
The brand signs in, picks accounts and approves. Zigpoll then redirects to your redirect_uri with code and state. If they deny, you get error=access_denied instead.
2. Exchange the code
Send the same redirect_uri you used in step 1; it is required.
3. Call the API
4. Refresh
Access tokens last one hour. Exchange the refresh token for a new pair:
Every refresh returns a new refresh token and invalidates the old one, so always store the latest. If two refreshes race with the same token, only one succeeds. Presenting an old refresh token more than a minute after it was replaced is treated as theft and ends the connection. Connections unused for 90 days expire. An invalid_grant error means the brand removed your app, the connection expired, or the token was already used. Ask the brand to connect again.
📚 Endpoints you can call
All are GET requests to https://v1.zigpoll.com, documented in the API reference.
/me
The connecting user's id and the accounts they shared
/accounts
The shared accounts
/account?accountId=
One account
/surveys?accountId=
Surveys (omit accountId for every shared account)
/survey?pollId=
One survey
/questions?pollId=
A survey's questions
/question?slideId=
One question
/responses?pollId=
Responses, newest first. Also takes accountId or slideId, createdAfter, createdBefore, limit and startCursor
Responses are paginated. Pass the response's endCursor as startCursor until hasNextPage is false.
Apps see survey content and results, not configuration: account plan and team details, survey and question settings, action logic and reward codes are left out of these responses.
Any other endpoint, and any write, returns 403. An id outside the shared accounts returns 404. An expired or revoked access token returns 401 with WWW-Authenticate: Bearer error="invalid_token": refresh and retry once.
🔒 Good practice
Keep the client secret on your server. Never ship it in a browser or mobile app.
Check that
statematches what you sent before exchanging a code.Store tokens encrypted. Zigpoll stores only hashes of them.
To disconnect a brand from your side, call the revocation URL with either token (plus your client ID and secret). The whole grant ends.
Last updated
Was this helpful?

