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": "<string>",
  "config": {
    "fulfillmentType": "<string>",
    "validityPeriod": 123,
    "deliveryMethod": "<string>"
  },
  "metadata": {},
  "description": "<string>",
  "imageUrl": "<string>",
  "productType": "<string>",
  "isMcpPay": true
}
'
{
  "reference": "prd_1A2B3C4D",
  "name": "AI Writing Assistant",
  "status": "active",
  "balance": 0,
  "totalTransactions": 0,
  "isMcpPay": false,
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "description": "<string>",
  "imageUrl": "<string>",
  "productType": "<string>",
  "config": {
    "fulfillmentType": "digital",
    "validityPeriod": 30,
    "deliveryMethod": "api"
  },
  "metadata": {},
  "plans": [
    {
      "reference": "pln_1A2B3C4D",
      "price": 2999,
      "currency": "USD",
      "requiresPayment": true,
      "isActive": true,
      "status": "active",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "currencySymbol": "$",
      "setupFee": 500,
      "trialDays": 14,
      "billingCycle": "monthly",
      "billingModel": "pre-paid",
      "creditsPerUnit": 1,
      "measures": "requests",
      "meterRef": "mtr_1A2B3C4D",
      "limit": 10000,
      "rolloverUnusedUnits": false,
      "freeUnits": 1000,
      "limits": {},
      "features": {}
    }
  ],
  "mcp": {
    "mcpServerRef": "mcp_ABC123",
    "mcpSubdomain": "acme-docs",
    "mcpProxyUrl": "https://acme-docs.mcp.solvapay.com/mcp",
    "originUrl": "https://origin.example.com/mcp",
    "defaultPlanRef": "pln_FREE123"
  }
}

Body

application/json
name
string
required
Minimum string length: 1
config
object
required
metadata
object
required
description
string
imageUrl
string
productType
string
isMcpPay
boolean

Response

Product created successfully

reference
string
required

Product reference

Example:

"prd_1A2B3C4D"

name
string
required

Product name

Example:

"AI Writing Assistant"

status
string
required

Product status

Example:

"active"

balance
number
required

Product balance in cents

Example:

0

totalTransactions
number
required

Total number of transactions

Example:

0

isMcpPay
boolean
required

Whether this product uses MCP Pay proxy

Example:

false

createdAt
string
required

Creation timestamp

updatedAt
string
required

Last update timestamp

description
string

Product description

imageUrl
string

URL to the product image

productType
string

Free-form product type

config
object

Product-specific configuration

metadata
object

Arbitrary key-value metadata

plans
object[]

Plans associated with this product

mcp
object

MCP linkage details for MCP-enabled products

Example:
{
"mcpServerRef": "mcp_ABC123",
"mcpSubdomain": "acme-docs",
"mcpProxyUrl": "https://acme-docs.mcp.solvapay.com/mcp",
"originUrl": "https://origin.example.com/mcp",
"defaultPlanRef": "pln_FREE123"
}