POST
/
api
/
v0
/
products
Create a new product
curl --request POST \
  --url https://api.devdraft.ai/api/v0/products \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-client-secret: <api-key>' \
  --form 'name=Premium Software License' \
  --form 'description=Annual license for our premium software suite with advanced features, priority support, and regular updates.' \
  --form price=299.99 \
  --form currency=USD \
  --form type=DIGITAL \
  --form weight=123 \
  --form 'unit=<string>' \
  --form quantity=123 \
  --form stockCount=123 \
  --form status=ACTIVE \
  --form productType=PRODUCT \
  --form 'images=[
  "<string>"
]'

Authorizations

x-client-secret
string
header
required

Your secret API key. Keep this secure and never expose it in client-side code.

Body

multipart/form-data

Response

201

The product has been successfully created.