Skip to main content
POST
Create a program
Creates an ACTIVE program in your organization. Only name is required; by default, on_unknown_participant is CREATE, automatically registering and enrolling participants on their first event.
  • Folders and uniqueness: Program name must be unique within its folder_id or among top-level programs (case-insensitive). external_id is unique across the organization (409 program_external_id_already_exists), and folder_id must reference an active folder.
  • Linking assets: Pass asset_ids to link existing assets atomically on creation. If any asset cannot be linked, no program is created.
You can suspend or archive a program later via Update a program.
For usage patterns and examples, see the Programs guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Body

application/json

Program details

Creates a rewards program.

name
string
required

Display name, unique within its folder or among top-level programs (case-insensitive).

Required string length: 1 - 255
Example:

"Acme Rewards"

asset_ids
string<uuid>[]

Assets to link to the new program (up to 1,000 active asset IDs).

Maximum array length: 1000
Example:
description
string

Optional program description

Maximum string length: 1000
Example:

"Quarterly sales incentive program for the sales team"

external_id
string

External identifier, unique per organization.

Maximum string length: 255
Example:

"store-101"

folder_id
string<uuid>

Active folder UUID to place the program in (omit for a top-level program).

Example:

"2c4e6a80-b1d3-4f57-8a92-c3e5a7b9d134"

fulfillment_max_face_value_minor
integer

Maximum face value of a single gift-card redemption in fiat minor units (omit for no limit).

Example:

10000

fulfillment_participant_max_amount_minor
integer

Maximum total gift-card face value per participant in the rolling period, in fiat minor units (omit for no limit).

Example:

25000

fulfillment_participant_max_count
integer

Maximum gift-card redemptions per participant in the rolling period (omit for no limit).

Example:

3

fulfillment_participant_window_seconds
integer

Rolling period, in seconds, used for each participant's gift-card limits. Required when either limit is set.

Example:

86400

metadata
object

Key-value string labels (up to 50 keys; keys max 64 characters, values max 256).

Example:
on_unknown_participant
enum<string>

How to handle events for unregistered participants. Defaults to CREATE when absent or null; an explicit "" or any non-enum value is rejected.

Available options:
CREATE,
REJECT
Example:

"CREATE"

pending_redemption_ttl
string | null

Optional program-specific bound between 60 seconds and one year, such as 90d or 720h. Without a request or program bound, pending redemptions default to 90 days.

Example:

"24h"

Response

Program created

A rewards program: the container for assets, rules and participants.

created_at
string<date-time>

When the program was created

Example:

"2027-01-15T10:30:00Z"

deleted_at
string<date-time>

Set when the program is archived

Example:

"2027-01-15T10:30:00Z"

description
string

Optional program description

Example:

"Quarterly sales incentive program"

external_id
string

External identifier, unique per organization (absent when unset).

Example:

"store-101"

folder_id
string<uuid>

Parent folder UUID (absent for top-level programs).

Example:

"2c4e6a80-b1d3-4f57-8a92-c3e5a7b9d134"

fulfillment_max_face_value_minor
integer

Maximum face value of a single gift-card redemption in fiat minor units. Absent when unlimited.

Example:

10000

fulfillment_participant_max_amount_minor
integer

Maximum total gift-card face value per participant in the rolling period, in fiat minor units. Absent when unlimited.

Example:

25000

fulfillment_participant_max_count
integer

Maximum gift-card redemptions per participant in the rolling period. Absent when unlimited.

Example:

3

fulfillment_participant_window_seconds
integer

Rolling period, in seconds, used for each participant's gift-card limits. Present only when at least one limit is set.

Example:

86400

id
string<uuid>

The id of the program. Use it in program_id fields and paths.

Example:

"8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01"

ledger_entity_id
string<uuid>

The id of the program's wallet. Send it as redemption_target_entity_id on a program to post redeemed value to this program's wallet. It is not the program's id.

Example:

"5e7a9c13-2d4f-4b68-9a0c-e1b3d5f7a920"

metadata
object

Key-value string labels attached to this program (empty object when none).

Example:
name
string

The name of the rewards program.

Example:

"Acme Rewards"

on_unknown_participant
string

How events for unregistered participants are handled

Example:

"CREATE"

pending_redemption_ttl
string

Optional program-specific bound between 60 seconds and one year. Without a request or program bound, pending redemptions default to 90 days.

Example:

"24h"

redemption_target_entity_id
string<uuid>

The ledger_entity_id of the group or program whose wallet receives redeemed value. Present only when redemption_target_type is LEDGER_ENTITY.

Example:

"5e7a9c13-2d4f-4b68-9a0c-e1b3d5f7a920"

redemption_target_type
enum<string>

Where redeemed value is posted.

Available options:
SYSTEM_REDEMPTION,
SYSTEM_BREAKAGE,
LEDGER_ENTITY
Example:

"SYSTEM_REDEMPTION"

status
enum<string>

The rewards program's lifecycle state.

Available options:
ACTIVE,
SUSPENDED,
ARCHIVED
Example:

"ACTIVE"

updated_at
string<date-time>

When the program was last modified

Example:

"2027-01-15T10:30:00Z"