Create a product
Creates a product the way the admin does: the same defaults, a unique page address, the plan’s product limit (409 plan_limit). Images are added in the admin. Requires products:write. Send an Idempotency-Key header to make a retry safe.
Authentication
An API key from the store's admin: חנות > API ומפתחות. Send it as Authorization: Bearer coi_sk_... (or X-Api-Key: coi_sk_...). Never in the URL - ?apikey= is refused with 400.
Headers
Any unique string. A retry with the same key within 24 hours gets the first answer again (header Idempotent-Replayed: true) instead of a second product.
Request
null = not counted.
Ids of this store's product categories (see categoryIds on any product). Replaces the product's categories.
The page address. Made from the name on create when not sent; kept unique among the store's pages.
HTML, up to 250,000 characters. Images must be links, not inlined data:.
