The OpenAPI document is at /openapi/v1.json and the interactive reference at /docs on the API host.
Keys and scopes
Keys belong to a project and to the team member who created them. Every request checks the owner’s plan, the key’s expiry and revocation, and the creator’s current role. A project can have up to five active keys. Available scopes: projects:read, projects:write, raffles:read, raffles:write, entries:read, winners:read, templates:read, templates:write.
Raffle lifecycle
Creating a raffle produces a draft. PUT replaces a draft; PATCH replaces only the fields you send (nested objects and arrays are replaced whole). Publish with POST …/publish; finalize early with POST …/finalize. Only drafts can be deleted. Creating from a template copies its saved configuration and accepts overrides for name, reward project, network, schedule and winner count.
Limits
60 requests/minute per project, at most 10 of them writes; Retry-After on 429.
JSON bodies up to 1 MiB; images up to 10 MiB.
Per raffle: up to 10,000 allowlist addresses, 20 NFT/token conditions, 10 Discord servers with 100 roles each, and 9 X conditions.
Pagination: page from 1, pageSize 1–100.
JSON writes accept an Idempotency-Key header, replayed for 24 hours.
Yes. Rafflex Pro includes a REST API under https://api.rafflex.xyz/api/v1 for projects, raffles, templates, entries and winners. Authenticate with a project API key in the X-Api-Key header.
Which plan includes API access?
The project owner needs active Host Pro access through a paid subscription, an active Pro trial, or verified holdings of 9+ Compact Games NFTs. Team members do not need their own Pro plan.
Does the API support webhooks?
No. Poll the raffle, entries, winners and winner-delivery endpoints instead.
What are the rate limits?
60 authenticated requests per minute per project, including at most 10 writes. Rate-limited responses include a Retry-After header.
Draft and publish raffles from ChatGPT, Claude or any MCP-compatible assistant.
Read more
YOUR NEXT DROP
Run it on Rafflex
Random draw or FCFS, verified entry actions, and a winner list that gets where it needs to go. Try every Pro feature free for 7 days — no card required.