SHOP DESKDevelopers
shopdeskbd.com

Brands

Brands assigned to products.

Paste a key and every snippet on this page switches from the placeholder to your key — and the Try it panel under each endpoint is ready to send. It is stored in this browser only and goes nowhere except, if you press Send, straight to the API host you pick there.

List brands

GET/ext/v1/brandsproducts:read

Every brand of the store; search resolves a brand name to its id.

Query parameters

NameTypeDescription
limitnumberdefault 25max 100Page size.
starting_afterstringReturn the page AFTER this object id (the previous page's next_cursor).
ending_beforestringReturn the page BEFORE this object id.
sortstringdefault -created_atNewest first by default. Only created_at is sortable — a cursor over a mutable key (like updated_at) cannot page reliably. Use updated_after to sync changes.created_at-created_at
store_idstringRestrict to one store. Required breadth control for company-scoped keys; on a store-scoped key it must match the key's own store.
statusstringFilter to one of the values below.activeinactive
searchstringMatch on name or slug (case-insensitive, partial) — how a name resolves to an id.

Request

export SHOPDESK_API_KEY="shopdesk_sk_YOUR_API_KEY"

curl -sS "https://api.shopdeskbd.com/ext/v1/brands?limit=25" \
  -H "Authorization: Bearer $SHOPDESK_API_KEY"
Try itruns from your browser
GEThttps://api.shopdeskbd.com/ext/v1/brands?search=shirts

Stored in this browser only and never sent anywhere except to the API host you picked above — these pages are static files with no server behind them.

Query parameters

Blank fields are left out of the request.

Paste a key above to enable Send.

Responses

  • 200A cursor page of brands.
  • 401Missing/invalid API key, revoked or expired key, plan without API access, or a dead store.
  • 403The key's scopes do not cover this endpoint.
  • 422Validation failed — error.fields maps each offending field to its messages.
  • 429Rate limit exceeded for this key. Honor Retry-After and the X-RateLimit-* headers.

Every failure uses the one error envelope — Errors lists each code and what to do with it.

Example 200 response
{
  "data": [
    {
      "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
      "store_id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
      "name": "Acme",
      "slug": "acme",
      "logo": "https://cdn.example.com/companies/c1/brands/b1/logo.webp",
      "banner_image": "https://cdn.example.com/companies/c1/brands/b1/banner.webp",
      "description": null,
      "seo": {
        "title": "Cotton T-Shirts",
        "description": "Breathable cotton tees in every size."
      },
      "status": "active",
      "created_at": "2026-08-11T10:00:00.000Z",
      "updated_at": "2026-08-11T10:00:00.000Z"
    }
  ],
  "meta": {
    "has_more": true,
    "next_cursor": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001"
  }
}

Create a brand

POST/ext/v1/brandscatalog:write

Creates a brand with an optional logo (logo_url or a logo part) and banner (banner_url or a banner part). Send JSON, with images by link, or multipart/form-data with the files as parts (at most 10 MB each, 50 MB in all) and the other fields as text (seo as a JSON string). An image comes by link or as a part, not both. Images are stored re-encoded as WebP. On a multipart request the Idempotency-Key covers the route only — a retry under the same key replays the first answer whatever the form holds — so send a new key for a different request. Image links: https only, PNG/JPEG/WebP/GIF read from the bytes (never SVG), at most 10 MB and 8000 px on the longest side (and 40 megapixels in all; 16 for a GIF), fetched within 10 s each and 30 s for the call, at most 50 MB downloaded per call. One failing link fails the whole call and nothing is written. Each image a call carries — link or file — counts as one write against the key's per-minute write limit; calls that download or upload images run at most 2 at a time per key; and a company may have 2,000 links downloaded per UTC day. Past any of these the answer is 429 RATE_LIMITED with Retry-After.

Headers

NameTypeDescription
Idempotency-KeystringOptional, but honored: send it to make retries of this request safe.

Body parameters

NameTypeDescription
store_iduuidTarget store. REQUIRED with a company-scoped key; with a store-scoped key it may only repeat the key's own store.
slugstringURL slug: lowercase letters, digits and single hyphens (anything else is refused with 422). Derived from the name when omitted, and suffixed (-1, -2) when taken. A rename keeps the slug; send one to change it.
statusstringdefault active—activeinactive
seoSeoBodyDtoSearch-engine overrides. Send null to clear them. In a multipart form, send the object as a JSON string.
banner_urlstringDetails-page hero banner, by link. An https link the server downloads and stores a copy of (PNG, JPEG, WebP or GIF, at most 10 MB and 8000 px on the longest side; read from the bytes, never the extension). The link itself is not kept. A link that cannot be fetched or is not such an image fails the whole call with 422 naming this field, and nothing is written. Or upload the file in a banner part of a multipart request — not both.
logo_urlstringBrand logo, by link. An https link the server downloads and stores a copy of (PNG, JPEG, WebP or GIF, at most 10 MB and 8000 px on the longest side; read from the bytes, never the extension). The link itself is not kept. A link that cannot be fetched or is not such an image fails the whole call with 422 naming this field, and nothing is written. Or upload the file in a logo part of a multipart request — not both.
namerequiredstring—
descriptionstringShown on the brand page.

seo fields

NameTypeDescription
titlestringPage title for search engines; stored cut to 200 characters.
descriptionstringMeta description; stored cut to 500 characters.

Request

export SHOPDESK_API_KEY="shopdesk_sk_YOUR_API_KEY"

curl -sS -X POST "https://api.shopdeskbd.com/ext/v1/brands" \
  -H "Authorization: Bearer $SHOPDESK_API_KEY" \
  -H "Idempotency-Key: 3f2b8c1e-9d4a-4e7b-8a6f-2c5d1e0b9a47" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Nukta",
  "logo_url": "https://cdn.example.com/brands/nukta-logo.png"
}'
Try itruns from your browser
POSThttps://api.shopdeskbd.com/ext/v1/brands

Stored in this browser only and never sent anywhere except to the API host you picked above — these pages are static files with no server behind them.

Valid JSON
Idempotency-Keyoptional
generating…

A new value is generated whenever you edit this request, and kept while you do not — so sending twice without changing anything is a real retry and comes back Idempotent-Replayed: true instead of writing again.

Paste a key above to enable Send.

Responses

  • 201The new brand.
  • 400An Idempotency-Key header was sent but is empty or longer than 255 characters (VALIDATION_ERROR; error.fields names the header).
  • 401Missing/invalid API key, revoked or expired key, plan without API access, or a dead store.
  • 403The key's scopes do not cover this endpoint.
  • 409A request with this Idempotency-Key is still in flight (IDEMPOTENCY_IN_FLIGHT) — retry once it has finished.
  • 413A file part is larger than 10 MB, or the parts total more than 50 MB.
  • 422Validation failed. An image link that cannot be downloaded, or a link or file that is not an allowed image, is refused here with error.fields naming it.
  • 429Rate limit exceeded for this key. Honor Retry-After and the X-RateLimit-* headers.

Every failure uses the one error envelope — Errors lists each code and what to do with it.

Example 200 response
{
  "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "store_id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "name": "Acme",
  "slug": "acme",
  "logo": "https://cdn.example.com/companies/c1/brands/b1/logo.webp",
  "banner_image": "https://cdn.example.com/companies/c1/brands/b1/banner.webp",
  "description": null,
  "seo": {
    "title": "Cotton T-Shirts",
    "description": "Breathable cotton tees in every size."
  },
  "status": "active",
  "created_at": "2026-08-11T10:00:00.000Z",
  "updated_at": "2026-08-11T10:00:00.000Z"
}

Get a brand by id

GET/ext/v1/brands/{id}products:read

One brand record.

Path parameters

NameTypeDescription
idrequireduuidThe brand id.

Query parameters

NameTypeDescription
store_iduuidRestrict the lookup to one store. Breadth control for company-scoped keys; on a store-scoped key it must match the key's own store.

Request

export SHOPDESK_API_KEY="shopdesk_sk_YOUR_API_KEY"

curl -sS "https://api.shopdeskbd.com/ext/v1/brands/REPLACE_WITH_ID" \
  -H "Authorization: Bearer $SHOPDESK_API_KEY"
Try itruns from your browser
GEThttps://api.shopdeskbd.com/ext/v1/brands/5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001

Stored in this browser only and never sent anywhere except to the API host you picked above — these pages are static files with no server behind them.

Path parameters

Query parameters

Blank fields are left out of the request.

Paste a key above to enable Send.

Responses

  • 200The brand.
  • 401Missing/invalid API key, revoked or expired key, plan without API access, or a dead store.
  • 403The key's scopes do not cover this endpoint.
  • 404Brand not found.
  • 422Validation failed — error.fields maps each offending field to its messages.
  • 429Rate limit exceeded for this key. Honor Retry-After and the X-RateLimit-* headers.

Every failure uses the one error envelope — Errors lists each code and what to do with it.

Example 200 response
{
  "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "store_id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "name": "Acme",
  "slug": "acme",
  "logo": "https://cdn.example.com/companies/c1/brands/b1/logo.webp",
  "banner_image": "https://cdn.example.com/companies/c1/brands/b1/banner.webp",
  "description": null,
  "seo": {
    "title": "Cotton T-Shirts",
    "description": "Breathable cotton tees in every size."
  },
  "status": "active",
  "created_at": "2026-08-11T10:00:00.000Z",
  "updated_at": "2026-08-11T10:00:00.000Z"
}

Update a brand

PATCH/ext/v1/brands/{id}catalog:write

Changes the fields sent and leaves the rest alone. A new logo or banner replaces the old one, which is deleted only after the new one is saved; remove_logo / remove_banner delete them. Send JSON, with images by link, or multipart/form-data with the files as parts (at most 10 MB each, 50 MB in all) and the other fields as text (seo as a JSON string). An image comes by link or as a part, not both. Images are stored re-encoded as WebP. On a multipart request the Idempotency-Key covers the route only — a retry under the same key replays the first answer whatever the form holds — so send a new key for a different request. Image links: https only, PNG/JPEG/WebP/GIF read from the bytes (never SVG), at most 10 MB and 8000 px on the longest side (and 40 megapixels in all; 16 for a GIF), fetched within 10 s each and 30 s for the call, at most 50 MB downloaded per call. One failing link fails the whole call and nothing is written. Each image a call carries — link or file — counts as one write against the key's per-minute write limit; calls that download or upload images run at most 2 at a time per key; and a company may have 2,000 links downloaded per UTC day. Past any of these the answer is 429 RATE_LIMITED with Retry-After.

Path parameters

NameTypeDescription
idrequireduuidThe brand id.

Headers

NameTypeDescription
Idempotency-KeystringOptional, but honored: send it to make retries of this request safe.

Body parameters

NameTypeDescription
store_iduuidTarget store. REQUIRED with a company-scoped key; with a store-scoped key it may only repeat the key's own store.
slugstringURL slug: lowercase letters, digits and single hyphens (anything else is refused with 422). Derived from the name when omitted, and suffixed (-1, -2) when taken. A rename keeps the slug; send one to change it.
statusstringdefault active—activeinactive
seoSeoBodyDtoSearch-engine overrides. Send null to clear them. In a multipart form, send the object as a JSON string.
banner_urlstringDetails-page hero banner, by link. An https link the server downloads and stores a copy of (PNG, JPEG, WebP or GIF, at most 10 MB and 8000 px on the longest side; read from the bytes, never the extension). The link itself is not kept. A link that cannot be fetched or is not such an image fails the whole call with 422 naming this field, and nothing is written. Or upload the file in a banner part of a multipart request — not both.
logo_urlstringBrand logo, by link. An https link the server downloads and stores a copy of (PNG, JPEG, WebP or GIF, at most 10 MB and 8000 px on the longest side; read from the bytes, never the extension). The link itself is not kept. A link that cannot be fetched or is not such an image fails the whole call with 422 naming this field, and nothing is written. Or upload the file in a logo part of a multipart request — not both.
namestring—
descriptionstringSend null to clear it.
remove_logobooleanRemove the current logo. Cannot be combined with a new one.
remove_bannerbooleanRemove the current banner. Cannot be combined with a new one.

seo fields

NameTypeDescription
titlestringPage title for search engines; stored cut to 200 characters.
descriptionstringMeta description; stored cut to 500 characters.

Request

export SHOPDESK_API_KEY="shopdesk_sk_YOUR_API_KEY"

curl -sS -X PATCH "https://api.shopdeskbd.com/ext/v1/brands/REPLACE_WITH_ID" \
  -H "Authorization: Bearer $SHOPDESK_API_KEY" \
  -H "Idempotency-Key: 3f2b8c1e-9d4a-4e7b-8a6f-2c5d1e0b9a47" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "Cotton basics since 2019."
}'
Try itruns from your browser
PATCHhttps://api.shopdeskbd.com/ext/v1/brands/5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001

Stored in this browser only and never sent anywhere except to the API host you picked above — these pages are static files with no server behind them.

Path parameters

Valid JSON
Idempotency-Keyoptional
generating…

A new value is generated whenever you edit this request, and kept while you do not — so sending twice without changing anything is a real retry and comes back Idempotent-Replayed: true instead of writing again.

Paste a key above to enable Send.

Responses

  • 200The updated brand.
  • 400An Idempotency-Key header was sent but is empty or longer than 255 characters (VALIDATION_ERROR; error.fields names the header).
  • 401Missing/invalid API key, revoked or expired key, plan without API access, or a dead store.
  • 403The key's scopes do not cover this endpoint.
  • 404Brand not found.
  • 409A request with this Idempotency-Key is still in flight (IDEMPOTENCY_IN_FLIGHT) — retry once it has finished.
  • 413A file part is larger than 10 MB, or the parts total more than 50 MB.
  • 422Validation failed, or a remove flag sent with a new image. An image link that cannot be downloaded, or a link or file that is not an allowed image, is refused here with error.fields naming it.
  • 429Rate limit exceeded for this key. Honor Retry-After and the X-RateLimit-* headers.

Every failure uses the one error envelope — Errors lists each code and what to do with it.

Example 200 response
{
  "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "store_id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "name": "Acme",
  "slug": "acme",
  "logo": "https://cdn.example.com/companies/c1/brands/b1/logo.webp",
  "banner_image": "https://cdn.example.com/companies/c1/brands/b1/banner.webp",
  "description": null,
  "seo": {
    "title": "Cotton T-Shirts",
    "description": "Breathable cotton tees in every size."
  },
  "status": "active",
  "created_at": "2026-08-11T10:00:00.000Z",
  "updated_at": "2026-08-11T10:00:00.000Z"
}