Skip to main content
POST
/
v1
/
programs
Create a program
curl --request POST \
  --url https://api.scrip.dev/v1/programs \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "Q1 Sales Bonus",
  "description": "Quarterly sales incentive program for the sales team",
  "on_unknown_participant": "CREATE"
}
'
{
  "created_at": "2024-01-15T10:30:00Z",
  "deleted_at": "2023-11-07T05:31:56Z",
  "description": "Quarterly sales incentive program",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Q1 Sales Bonus",
  "on_unknown_participant": "CREATE",
  "status": "ACTIVE",
  "updated_at": "2024-01-15T10:30:00Z"
}
Creates a new program in your organization. A program only requires a name. By default, on_unknown_participant is set to CREATE, which means participants are auto-created on their first event. Set it to REJECT if you need explicit registration before processing events. Programs start as ACTIVE. You can suspend or archive them later via Update a program.
For usage patterns and examples, see the Programs guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Body

application/json

Program details

name
string
required

Program name

Required string length: 1 - 255
Example:

"Q1 Sales Bonus"

description
string

Optional program description

Maximum string length: 1000
Example:

"Quarterly sales incentive program for the sales team"

on_unknown_participant
enum<string>

How to handle events for unregistered participants. Defaults to CREATE

Available options:
CREATE,
REJECT
Example:

"CREATE"

Response

Program created

created_at
string<date-time>

When the program was created

Example:

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

deleted_at
string<date-time>

Set when the program is archived

description
string

Optional program description

Example:

"Quarterly sales incentive program"

id
string<uuid>

Program ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

name
string

Program name

Example:

"Q1 Sales Bonus"

on_unknown_participant
string

How events for unregistered participants are handled

Example:

"CREATE"

status
string

Lifecycle state

Example:

"ACTIVE"

updated_at
string<date-time>

When the program was last modified

Example:

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