Skip to main content
POST
/
products
Create a product
curl --request POST \
  --url https://api.sellfern.com/products \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "sku": "<string>",
  "spu": "<string>",
  "title": "<string>",
  "description": "<string>",
  "price": 123,
  "design_link": "<string>",
  "tags": [
    "<string>"
  ],
  "images": [
    "<string>"
  ],
  "stores": [
    "<string>"
  ],
  "platforms": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "id": 1001,
    "sku": "TSHIRT-BLACK-M",
    "spu": "TSHIRT",
    "title": "Classic T-Shirt - Black / M",
    "description": "<string>",
    "price": 123,
    "design_link": "<string>",
    "tags": [
      "<string>"
    ],
    "images": [
      "<string>"
    ],
    "videos": [
      "<string>"
    ],
    "stores": [
      "<string>"
    ],
    "platforms": [
      "<string>"
    ],
    "labels": [
      "<string>"
    ],
    "sizes": [
      "<string>"
    ],
    "organization_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "request_id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sellfern.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Sellfern public API key scoped to the authenticated organization. Do not use user JWTs for public integrations.

Headers

Idempotency-Key
string
required

Required for public write retries. Reuse the same key for safe retry after network or 5xx uncertainty. Reusing a key with a different request returns 422 idempotency_conflict.

Required string length: 1 - 255

Body

application/json
sku
string
spu
string
title
string
description
string
price
number
tags
string[]
images
string[]
stores
string[]
platforms
string[]

Response

Mutation completed successfully.

success
boolean
required
Example:

true

data
object
required
meta
object