Skip to main content
POST
Create a participant
Creates a new participant identified by your external_id, optionally setting tags, attributes, profile fields, and initial status (ACTIVE by default). Counters and tiers cannot be set at creation; update counters with Update a participant, tiers with Set participant tier, or update both via rules during event processing. Pass program_id to enroll the participant in a program at creation time. Event ingestion also enrolls existing participants automatically, and programs with on_unknown_participant: "CREATE" auto-create new participants on their first event. If a participant with the same external_id already exists, this call acts as an upsert and updates that record instead of failing. On an existing CLOSED participant, sending tags, attributes, profile fields, or a new program_id returns 409 participant_inactive unless the same request sets status to ACTIVE or SUSPENDED.
For usage patterns and examples, see the Participants 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

Participant details

Registers a participant, identified by your external_id. For an existing CLOSED participant, send only external_id, status, and a program_id it is already enrolled in, unless status reactivates it in the same request.

external_id
string
required

Your application's identifier for this participant. If a participant already has it, the request updates that participant.

Required string length: 1 - 255
Example:

"user_123"

attributes
object

Key-value metadata. Rules read each key as participant.attribute.<key>, which is null if unset, or with get(participant.attributes, "key", "").

Example:
display_name
string

The name to show for the participant.

Maximum string length: 255
Example:

"Jane Doe"

email
string

Contact email

Maximum string length: 255
Example:

"jane@example.com"

first_name
string

The participant's first name.

Maximum string length: 255
Example:

"Jane"

last_name
string

The participant's last name.

Maximum string length: 255
Example:

"Doe"

phone
string

Contact phone

Maximum string length: 50
Example:

"+15551234567"

program_id
string<uuid>

Program to enroll this participant in on creation

Example:

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

status
enum<string>

Initial lifecycle state. Defaults to ACTIVE

Available options:
ACTIVE,
SUSPENDED,
CLOSED
Example:

"ACTIVE"

tags
string[]

Labels for segmentation. Rules read a tag as participant.tag.<name> (true or false) or 'name' in participant.tags.

Example:

Response

Participant updated (already existed)

A participant with their attributes, counters, tags, program memberships, tiers and balances.

attributes
object

Key-value metadata. Rules read each key as participant.attribute.<key>, which is null if unset, or with get(participant.attributes, "key", ""). An empty object when the participant has none.

Example:
balances
object[]

Current balances per asset, split by bucket

counter_settings
object

Auto-reset settings for the counters that have one, keyed by counter key. An empty object when no counter resets. Set them with reset_after on a counter in PATCH.

counters
object

Numeric accumulators, returned as strings for precision. An empty object when the participant has none.

Example:
created_at
string<date-time>

When the participant was created

Example:

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

display_name
string

The name to show for the participant.

Example:

"Jane Doe"

email
string

Contact email

Example:

"jane@example.com"

enrollments
object[]

The participant's programs with the time each enrollment began, oldest first, in the same order as program_ids. Returned with the programs section; absent when the participant has no enrollments.

external_id
string

Your application's identifier for this participant

Example:

"user_123"

first_name
string

The participant's first name.

Example:

"Jane"

id
string<uuid>

The id of the participant. Use it in participant_id fields and paths.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"

last_active_at
string<date-time> | null

When the participant was last active from a processed event or balance change (RFC 3339; null when never active).

Example:

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

last_name
string

The participant's last name.

Example:

"Doe"

phone
string

Contact phone

Example:

"+15551234567"

program_ids
string[]

Programs this participant is enrolled in

Example:
status
enum<string>

The participant's lifecycle state.

Available options:
ACTIVE,
SUSPENDED,
CLOSED
Example:

"ACTIVE"

tag_details
object[]

The participant's tags with how apps show them, in tag order. Returned with expand[]=tag_details; an empty list when the participant has no tags.

tags
string[]

Labels for segmentation. Rules read a tag as participant.tag.<name> (true or false) or 'name' in participant.tags. An empty list when the participant has none.

Example:
tiers
object

Current tier level per tier type

Example:
updated_at
string<date-time>

When the participant was last modified

Example:

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