Products

Create product

Create a new product.

POST
/api/v1/products
AuthorizationBearer <token>

Your API key.

In: header

namestring

The name of the product.

description?string

The description of the product.

supportEmail?string

The support email for the product.

Response Body

application/json

curl -X POST "https://keyforge.dev/api/v1/products" \  -H "Content-Type: application/json" \  -d '{    "name": "My product"  }'
{
  "id": "p_123456",
  "userId": "05d27bfb-61c7-45f7-9d07-09a41defc88a",
  "name": "My product",
  "description": "This is my product.",
  "supportEmail": null,
  "createdAt": "2024-05-19T04:31:03.000Z",
  "portalShow": true,
  "portalAllowDeviceReset": true,
  "hasImage": false,
  "purchaseNote": null,
  "actionButtonText": null,
  "actionButtonUrl": null
}