Skip to main content
← Back to API Integration Requires an API key — see Authentication.

Get giveaway flow

GET /api/v1/giveaways/flow Everything needed to render a giveaway yourself: the flow’s template, header copy, styling settings, and its offers. Pass a user and we record a view event for you.
string
required
The flow ID to retrieve.
string
Your user identifier. When provided, a view event is tracked.
Flow objectid/name identify the flow; template/headerTemplate are layout identifiers; header holds title, description and a steps array; settings carries CTA and colour overrides; offers are Offer objects with an added heroImage, plus expiry and schedule (ISO 8601 or null). See Errors for error shapes.

Claim a code

GET /api/v1/giveaways/claim Claims an available discount code for a giveaway offer and returns it.
string
required
The user identifier.
string
required
The offer ID to claim a code from.
Frequency logic: with no frequency set on the offer, a user can claim once, ever. With one set, they can claim once per window — 1week, 1month, 1year.
Three outcomes come back as 200 with success: false: already claimed, still inside the frequency window, or no codes left. Surface the message to the customer.
See Errors for error shapes.

Giveaway events

GET /api/v1/giveaways/events Views and claims for your giveaway flows. Paginated at 10,000 events per page, with a maximum seven-day window per request.
string
required
view or claim.
string
required
ISO 8601 — YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ.
string
required
Same format. Maximum seven days from start_date.
integer
default:"1"
Page number. Walk until current_page equals last_page.
See Errors for error shapes.
Last modified on August 26, 2026