Skip to main content
POST
Create a tier
Creates a ranked progression track where each participant holds at most one level at a time. The tier key and each level’s key are immutable after creation, higher rank values represent higher levels, and tiers cannot be created in an ARCHIVED program.
  • Auto-qualification: Define counter-based qualification criteria (or a qualification_condition expression) on levels to upgrade qualifying participants automatically after an event’s rules run. On a PERIODIC tier, qualification evaluates how much was added to the counter during the tier’s periods.
  • Lifecycle: Omit lifecycle for a rules-only tier managed by SET_TIER actions or direct API calls, or configure lifecycle to govern period or activity retention and downgrades.
For examples, lifecycle walkthroughs, and tier state in CEL, see the Tiers 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

Path Parameters

program_id
string<uuid>
required

The program's id.

Body

application/json

Tier definition with at least one level

Creates a tier with its levels.

key
string
required

Unique identifier for this tier within the program (immutable after creation, lowercase alphanumeric + underscores)

Required string length: 1 - 100
Pattern: ^[a-z][a-z0-9_]*$
Example:

"status"

levels
object[]
required

Ordered set of levels within this tier (at least one required)

Minimum array length: 1
display_name
string

Human-readable name shown in dashboards and reports

Maximum string length: 255
Example:

"Loyalty Status"

lifecycle
object

Controls how tiers behave over time: retention mode, its period, and downgrade policy. Omit for rules-only mode.

Response

Tier created

A tier definition with its levels, lifecycle configuration, and metadata

archived_at
string<date-time>

When the tier was archived (RFC 3339); absent while the tier is ACTIVE

Example:

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

created_at
string<date-time>

When this tier was created (RFC 3339)

Example:

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

display_name
string

The name people see for the tier, such as Loyalty status.

Example:

"Loyalty Status"

id
string<uuid>

Unique identifier for this tier

Example:

"e0a4c6b2-8d13-4f57-9b6a-3c5e7a9d1b22"

key
string

Tier key used in API calls and rule actions

Example:

"status"

levels
object[]

Ordered list of levels within this tier

lifecycle
object

Lifecycle configuration (retention mode, its period, downgrade policy)

program_id
string<uuid>

Program this tier belongs to

Example:

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

status
enum<string>

The tier's lifecycle state.

Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

updated_at
string<date-time>

When this tier was last modified (RFC 3339)

Example:

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