Sweeppea API
A REST API for managing sweepstakes, participants, winners and promotional campaigns. 108 endpoints, one API key, JSON in and out.
Base URL
Every endpoint is served over HTTPS from a single host:
https://api-v3.sweeppea.com
Authentication
All requests must include your API key in the Authorization header as a Bearer token. The key identifies your account, so keep it on your server and never ship it to a browser or a mobile app.
Authorization: Bearer YOUR_API_KEY
PascalCase (e.g. SweepstakesToken). For backward compatibility, camelCase equivalents are also accepted.
Quickstart
Check that your key works with the Health Check endpoint:
curl -X POST "https://api-v3.sweeppea.com/account/health-check" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
const response = await fetch('https://api-v3.sweeppea.com/account/health-check', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
console.log(await response.json());
import requests
response = requests.post(
"https://api-v3.sweeppea.com/account/health-check",
headers={"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"}
)
print(response.json())
Every response uses the same envelope. Response tells you whether the call succeeded, Message explains the outcome, and successful calls report your monthly usage in Telemetry:
{
"Response": true,
"Message": "API is healthy",
"Telemetry": {
"DataConsumed": 0,
"APICalls": 142,
"MaxAPICalls": 500000
}
}
Calls are limited per minute and per month by your plan. Read Concurrency & Rate Limiting before running anything in bulk.
API Reference
Browse by resource, or press Ctrl K to jump straight to any endpoint.
Check connectivity and read the account, business and plan behind your API key.
Entry PageRead the registration form of a sweepstakes and update its entry page settings.
SweepstakesCreate, clone, update, pause and delete promotions.
ParticipantsAdd, search, count and remove entries, manage groups and bonus entries.
WinnersDraw winners at random, schedule drawings and read the results.
Codes & CouponsCreate, generate, assign, redeem and send coupon codes, and configure how a sweepstakes hands them out.
SurveysBuild question sets, collect responses and read aggregated reports.
RulesCreate official rules from HTML or with the guided wizard.
FilesUpload files, list them, get secure links and send them by email.
InvoicesIssue, update and track invoices.
MessagingRead email and SMS campaigns and reports, manage suppressions and message a participant.
NotesEncrypted notes for your account.
CalendarCreate and manage calendar events.
BillingBilling transactions, consumptions and data transfer.
WalletYour wallet movements.
To-Do'sA simple task list for your team.
SupportOpen, follow and resolve support tickets.
Help & SupportSearch the Sweeppea help documentation.
ToolsReference data: timezones, US states, zip codes, area codes and countries.
The Sweeppea Developer Ecosystem
Three clients, one platform, one API key. All of them talk to this same REST API v3 — pick whichever fits how you work.
Direct HTTP integration, with a full OpenAPI 3.1 specification.
71 tools for AI assistants — Claude, Cursor, Windsurf, Gemini CLI and more.
CLIA native binary for your shell and CI — npx @sweeppea/cli, JSON output everywhere.
MCP Server
Sweeppea Renaissance includes a full Model Context Protocol (MCP) Server implementation, allowing you to integrate the entire platform with any LLM or AI-powered application.
Connect your AI assistants, chatbots, autonomous agents, or any device that communicates with an LLM to manage sweepstakes, participants, winners, and more — all through natural language.
With the MCP Server, your AI can access every Sweeppea tool programmatically, making it possible to operate the platform from any device or robot connected to a language model.
Get up and running with the MCP Server in minutes.
ToolsExplore all available MCP tools and their capabilities.
ExamplesReal-world usage examples and integration patterns.
PlatformsSupported platforms and compatibility information.
ProtocolTechnical details about the MCP protocol specification.
ShowcaseSee what others are building with the Sweeppea MCP Server.
Command Line Interface (CLI)
The official Sweeppea CLI puts the same API in your terminal. It is a single native binary (written in Rust) distributed on npm — no runtime to install, instant startup.
Use it interactively or in CI: every command supports --json for machine-readable output, and destructive actions confirm first and honor --yes.
npx @sweeppea/cli auth login