Skip to main content
POST
Add a product
Needs products:create, and a role in the workspace that can create products: owners, managers, content managers and content creators can. See Permissions.
name must be unique in the workspace: a name it already has is refused with 422 and the message The product name already exists in this workspace. Send a description of 50 to 500 characters, a url, or both. Hooks are added with Update a product. Products are on paid plans. When the workspace owner is on Free, nothing is saved and the answer is 403 with error: plan_limit_reached and limit: products. The owner’s key gets upgrade_url and upgrade_plan; anyone else’s is told to ask the owner (owner_plan: true, no upgrade_url). The workspace is checked first, then your role, then the plan, then the body.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace. It must be one the key can reach.

name
string
required

Unique in the workspace.

Maximum string length: 255
description
string | null

What it is. Needed when there is no url.

Required string length: 50 - 500
url
string | null

Its page. Needed when there is no description.

Response

The product.

A product the workspace's posts can promote.

id
integer
required
name
string
required

Unique in its workspace.

description
string | null
required

What it is, 50 to 500 characters.

url
string | null
required

Its page.

hooks
string[] | null
required

Opening lines for posts about it.

workspace_id
integer
required