How do I use the KingSumo API and access tokens?
Find your API secret, tokens and API documentation under Account → API. The REST API is part of the Lifetime Plan; the KingSumo MCP server works on every plan.
What's on the API tab?
- API Secret — "Use this key to authenticate your API requests. Keep it private." Click Copy to copy it. It also signs the purchase-tracking pixel of existing referral campaigns.
- OAuth & Access Tokens — create OAuth clients and personal access tokens for your integrations.
- Documentation — click View API Documentation for the full API reference, with every endpoint and example.
How to open the API tab
- Click Account in the left sidebar (on a phone, open the menu first).
- Open the API tab.
What can the API do?
Send a personal access token from the OAuth & Access Tokens card with each request. You can make up to 60 requests a minute. There are two versions:
- Version 1 reads your giveaways and their contestants, and adds contestants to a giveaway.
- Version 2 also manages giveaways: create a private draft, edit it, publish it, read its stats, list its contestants (including entrants flagged for review), draw winners after the giveaway ends, replace a winner, and download the contestants as a CSV. It also manages webhooks.
To export entrants without the API, see How can I obtain the emails of my giveaway's entrants?
How do KingSumo webhooks work?
A webhook tells your own app when something happens in your giveaways, so you don't have to keep asking the API. You set webhooks up through the API (version 2); there's no settings page for them.
- Events: a new contestant, a completed entry action, an unlocked reward, a giveaway that ended, and drawn winners. Each message carries the IDs you need to look up the details through the API.
- Your address must be a public HTTPS URL. You can have up to 10 webhooks.
- KingSumo shows the webhook's secret once, when you create it. Use it to check the
X-KingSumo-Signatureheader of each message. - A failed delivery is retried up to 5 times, so your app may get the same message twice. Webhooks only deliver while your account is on the Lifetime Plan.
How do I connect KingSumo to my AI assistant?
The KingSumo MCP server lets an AI assistant manage your giveaways for you. It works on every plan, Free included.
- In your assistant's connector settings, add a remote MCP server with the address https://kingsumo.com/api/mcp. The steps and a Claude Code command are on kingsumo.com/mcp.
- Log in to KingSumo when asked, and click Authorize.
You can connect Claude, ChatGPT, Cursor, or an assistant that runs on your own computer. The assistant can create a draft giveaway, edit it, publish it after you review it, show its stats, list contestants, draw winners after the giveaway ends, and give you a CSV download link that expires after 15 minutes. Options that need the Lifetime Plan in the editor still need it here. If the assistant says an option needs "Pro", it means the Lifetime Plan.
Troubleshooting
The API tab shows Upgrade to Unlock
The REST API is part of the Lifetime Plan. See how to buy the Lifetime Plan. You can still use the MCP server on the Free plan.
I shared my API secret by mistake
Email support@kingsumo.com. Never post your API secret publicly.
My AI assistant can't connect
Check that you added https://kingsumo.com/api/mcp as a remote MCP server and clicked Authorize in KingSumo. Only Claude, ChatGPT, Cursor and assistants running on your own computer can connect. To publish a giveaway, your KingSumo account must be verified.
Frequently Asked Questions
Can I use the API on the Free plan?
No. The REST API, including version 2 and webhooks, needs the Lifetime Plan. The MCP server for AI assistants works on the Free plan too.
Do contestants added through the API get entries?
No. They're added without entries, so they can't be drawn as winners unless they earn entries.
Can my AI assistant draw the winners?
Yes, once the giveaway has ended. It draws the same way as Draw Winners on the winners page.