Skip to main content
POST
JavaScript

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-ACCOUNT-ID
string

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-ID
string

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Body

application/json

Create a product with a unique identifier, optional display name, description, and metadata.

id
string
required

The unique identifier for the entity

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$
displayName
string
required

Display name of the product

Maximum string length: 255
description
string | null

Description of the product

Maximum string length: 255
multipleSubscriptions
boolean
default:false

Indicates if multiple subscriptions to this product are allowed

metadata
object | null

Additional metadata for the product

Response

The newly created product object.

Response object

data
Product · object
required

Product configuration object