Skip to main content
POST
/
v1
/
sdk
/
products
Create a product
curl --request POST \
  --url https://api.example.com/v1/sdk/products \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "AI Writing Assistant",
  "config": {},
  "description": "AI-powered writing tool",
  "imageUrl": "<string>",
  "isMcpPay": false,
  "metadata": {},
  "productType": "Coding Assistant"
}
'
{
  "balance": 0,
  "createdAt": "<string>",
  "id": "507f1f77bcf86cd799439011",
  "isMcpPay": false,
  "name": "AI Writing Assistant",
  "reference": "prd_1A2B3C4D",
  "status": "active",
  "totalTransactions": 0,
  "updatedAt": "<string>",
  "config": {},
  "description": "<string>",
  "imageUrl": "<string>",
  "metadata": {},
  "plans": [
    "<string>"
  ],
  "productType": "<string>"
}

Body

application/json
name
string
required

Product name

Example:

"AI Writing Assistant"

config
object

Product-specific configuration

description
string

Product description

Example:

"AI-powered writing tool"

imageUrl
string

URL to the product image

isMcpPay
boolean
default:false

Whether this product uses MCP Pay proxy

metadata
object

Arbitrary key-value metadata

productType
string

Free-form product type defined by the provider

Example:

"Coding Assistant"

Response

Product created successfully

balance
number
required

Product balance in cents

Example:

0

createdAt
string
required

Creation timestamp

id
string
required

Product ID

Example:

"507f1f77bcf86cd799439011"

isMcpPay
boolean
required

Whether this product uses MCP Pay proxy

Example:

false

name
string
required

Product name

Example:

"AI Writing Assistant"

reference
string
required

Product reference

Example:

"prd_1A2B3C4D"

status
string
required

Product status

Example:

"active"

totalTransactions
number
required

Total number of transactions

Example:

0

updatedAt
string
required

Last update timestamp

config
object

Product-specific configuration

description
string

Product description

imageUrl
string

URL to the product image

metadata
object

Arbitrary key-value metadata

plans
string[]

Plans associated with this product

productType
string

Free-form product type