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.id/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.200 — not claimable (three possible outcomes)
200 — not claimable (three possible outcomes)
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.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.200 — view
200 — view
.jpg?fit=max&auto=format&n=2UnUVoyVk4q8q5qF&q=85&s=50361631079924a578b8e825d74cbb79)