Skip to main content
POST
Create or Update User

Headers

x-api-key
string
required

The API key to authenticate with.

Body

application/json
app_user_id
string
required

The unique identifier of the referral user in your app.

Example:

"821fae4b5-1a2d-4c1e-9152-5297086a161c"

is_trial
boolean | null

Whether the user is a trial user.

Example:

false

is_premium
boolean | null

Whether the user is a premium user.

Example:

false

first_seen_at
string<date-time> | null

The date when the user was first seen at.

Example:

"2024-11-10T10:28:18.104Z"

last_seen_at
string<date-time> | null
deprecated

The date when the user was last seen at. Deprecated and will be removed in the future.

Example:

null

metadata
object | null

The metadata of the user.

Example:
stripe_customer_id
string | null

The unique identifier of the user in Stripe.

Example:

"cus_1234567890"

Response

The user has been successfully updated.

data
object
required