Skip to main content
GET
/
storefront
/
collections
컬렉션 목록
curl --request GET \
  --url https://api.headlesscommerce.io/v1/storefront/collections \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "description": "<string>",
      "type": "manual",
      "position": 123,
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total_count": 123,
  "has_more": true,
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx

Query Parameters

limit
integer
default:20
Required range: 1 <= x <= 100
starting_after
string

이 ID 이후의 결과 반환 (cursor)

Response

200 - application/json

Success

data
object[]
total_count
integer

Admin API에서만 반환

has_more
boolean
next_cursor
string | null