---
title: "Create a participant"
method: POST
path: "/v1/participants"
tags: ["Participants"]
---

# Create a participant

`POST /v1/participants`

## Request

- Base URL: `https://api.scrip.dev`
- URL: `https://api.scrip.dev/v1/participants`
- Auth: HTTP bearer

Create a participant and return 201, or update the participant that already has this `external_id` and return 200.

## Headers

- `Idempotency-Key` string

## Request body

- CreateParticipantRequest: Registers a participant, identified by your `external_id`.
  - `attributes` object: Key-value metadata. Rules read each key as `participant.attribute.<key>`, which is null if unset, or with `get(participant.attributes, "key", "")`.
  - `display_name` string: The name to show for the participant.
  - `email` string: Contact email
  - `external_id` string, required: Your application's identifier for this participant. If a participant already has it, the request updates that participant.
  - `first_name` string: The participant's first name.
  - `last_name` string: The participant's last name.
  - `phone` string: Contact phone
  - `program_id` string, uuid: Program to enroll this participant in on creation
  - `status` 'ACTIVE' | 'SUSPENDED' | 'CLOSED': Initial lifecycle state. Defaults to ACTIVE
  - `tags` string[]: Labels for segmentation. Rules read a tag as `participant.tag.<name>` (true or false) or `'name' in participant.tags`.

## Response `200`

Participant updated (already existed)

- ParticipantDetailResponse: 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.
  - `balances` Balance[]: Current balances per asset, split by bucket
    - `asset_id` string, uuid: Asset the balance is in.
    - `available` string: Amount in the available bucket. For a `LOT` asset, it can include value past its `expires_at` for a few minutes, until Scrip records the expiration.
    - `deferred` string: Amount that becomes available when its `matures_at` time passes.
    - `held` string: Amount set aside by a hold or waiting as pending rewards; it cannot be spent until it is released or settled.
  - `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.
  - `created_at` string, date-time: When the participant was created
  - `display_name` string: The name to show for the participant.
  - `email` string: Contact email
  - `external_id` string: Your application's identifier for this participant
  - `first_name` string: The participant's first name.
  - `id` string, uuid: The id of the participant. Use it in `participant_id` fields and paths.
  - `last_name` string: The participant's last name.
  - `phone` string: Contact phone
  - `program_ids` string[]: Programs this participant is enrolled in
  - `status` 'ACTIVE' | 'SUSPENDED' | 'CLOSED': The participant's lifecycle state.
  - `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.
  - `tiers` object: Current tier level per tier type
  - `updated_at` string, date-time: When the participant was last modified

## Other responses

- `201`: Participant created (new)
- `400`: Validation failed (code: validation_error | invalid_json)
- `401`: The API key is missing or not valid. See [Authentication](https://docs.scrip.dev/authentication).
- `403`: The caller is not allowed to do this.
- `404`: Program not found (code: program_not_found)
- `409`: Program archived (code: program_archived), or upsert of an existing participant would leave a group with no active ADMIN (code: last_admin_status_change_forbidden)
- `429`: Too many requests. Wait the number of seconds in the `Retry-After` header, then retry. See [Limits and durations](https://docs.scrip.dev/limits#rate-limits).
- `500`: Something failed on Scrip's side. Retry the request, and quote `request_id` if it keeps failing. [Errors](https://docs.scrip.dev/errors) lists every code, and the [API introduction](https://docs.scrip.dev/api-reference/introduction) describes the error format.

---

[API](https://skmtc.dev/scrip/apis/scrip-api.md) · [All operations](https://skmtc.dev/scrip/apis/scrip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrip/apis/scrip-api/revisions/c52d35da8d97?raw)
