Skip to main content
POST
Create a workspace token (shown once)

Authorizations

Authorization
string
header
required

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

Path Parameters

shopId
string
required

Shop ID (ObjectId)

Body

application/json
name
string
required

Token name

Required string length: 1 - 100
Example:

"Claude Code — laptop"

scopes
enum<string>[]
required
Minimum array length: 1
Available options:
site:read,
site:write,
catalog:read,
catalog:write,
orders:read,
discounts:write,
stats:read
Example:
expiresAt
string

Expiry (ISO 8601)

Response

OK

success
boolean
Example:

true

data
object
message
string