Skip to main content
POST
Create a reward

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

X-App-Id
string
header
required
X-App-Token
string
header
required

Body

application/json

Payload for creating a reward.

name
string
required

Reward display name.

Required string length: 1 - 200
type
enum<string>
required

Reward type. Determines which sub-configuration is required.

Available options:
MATERIAL,
DIGITAL
status
enum<string>

Initial status. Defaults to DRAFT when omitted.

Available options:
DRAFT,
ACTIVE
material
object | null

Required when type is MATERIAL. Must be null/absent when type is DIGITAL.

digital
object | null

Required when type is DIGITAL. Must be null/absent when type is MATERIAL.

metadata
object | null

Optional key-value metadata.

Response

Created reward.

Reward resource representation.

id
string
required

Unique reward identifier.

name
string
required

Reward display name.

type
enum<string>
required

Reward type.

Available options:
MATERIAL,
DIGITAL
status
enum<string>
required

Current lifecycle status.

Available options:
ACTIVE,
DRAFT,
INACTIVE,
DELETED
metadata
object
required

Key-value metadata.

created_at
string<date-time>
required

ISO 8601 creation timestamp.

updated_at
string<date-time> | null
required

ISO 8601 last-update timestamp. Null if never updated.

object
string
required
Allowed value: "reward"
material
object

Material configuration. Present only when type is MATERIAL.

digital
object

Digital configuration. Present only when type is DIGITAL.

Last modified on May 19, 2026