Create a brand from a store link
POST/brands
Creates a brand and starts reading the store link: its products land in the catalog and its tone is read, and, when the account has the Brand Brain, the Brain is read too. The 201 carries siteRead (started with its readId, which GET /brands/{brandId}/site-read reports on) and brainRead (started with its readId, or not-started with a reason); the brand exists either way. An account may start 50 site reads a UTC day: past that the brand is still created and siteRead is { status: 'refused', reason: 'daily-limit' }. With no storeUrl the brand starts empty, for a brand with no website: nothing is read and both reads are { status: 'not-started', reason: 'no-store-link' }. The account must be under its plan's brand limit. Idempotency-Key is required: a retry with the same key and body returns the same brand, never a second one.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 422
- 429
- 503
Created - or the replay of an earlier create with this key.
Bad Request. The Idempotency-Key header is missing (IDEMPOTENCY_KEY_REQUIRED) or malformed (INVALID_IDEMPOTENCY_KEY).
Unauthorized. Missing, malformed, unknown, revoked, or expired bearer token — or the token owner no longer holds the required entitlement (ENTITLEMENT_LOST). A uniform problem body is returned with a distinct code; no owner/condition detail (no-leak).
Forbidden. The key lacks the brands:write scope (API_TOKEN_SCOPE_DENIED), or the account is at its plan's brand limit (LIMIT_EXCEEDED, with limitKey, limit and current) - a plan limit is 403, never 429.
Conflict. The account already has a brand with this name (DUPLICATE_BRAND); a request under this key is still in progress (IDEMPOTENCY_IN_PROGRESS, retry after Retry-After); or the key was already used for a different request (IDEMPOTENCY_KEY_REUSED).
Unprocessable Content (VALIDATION_ERROR). The body is malformed: an unknown field, an empty name, or a storeUrl that is not an https:// address of a public website. Every offending field is listed in errors[].
Too Many Requests. The per-token sliding window of 60 requests/minute was exceeded. The body is express-rate-limit's DEFAULT plain-text message (NOT the JSON problem+json envelope).
Response Headers
IETF draft-7 rate-limit policy/state (limit, remaining, reset).
Seconds to wait before retrying.
Service Unavailable. Writes are paused for this account (WRITES_PAUSED), or too many brands were being created at once and this one lost the race. Nothing was created and the Idempotency-Key is still usable: retry the SAME request after Retry-After.