Skip to main content
POST
/
products
Create a product
curl --request POST \
  --url https://api.pocketsflow.com/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "price": 123,
  "currency": "<string>",
  "description": "<string>",
  "type": "one-time",
  "billingInterval": "month",
  "active": true
}
'

Authorizations

Authorization
string
header
required

Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)

Body

application/json
name
string
required

Product name

price
number
required

Product price

currency
string
required

Currency code (e.g., USD)

description
string

Product description

type
enum<string>

Product type

Available options:
one-time,
subscription
billingInterval
enum<string>

Billing interval for subscriptions

Available options:
month,
year
active
boolean

Whether product is active

Response

Product created successfully