Skip to main content

Method

POST /v1/collections

Body Parameters

base
object
required
Base properties
translation
object
Localized fields (optional)

Headers

Authorization
string
required
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
content-type
string
application/json
curl -X POST https://api.voyantcloud.com/v1/collections \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "base": {
      "key": "summer",
      "name": "Summer Picks",
      "type": "smart",
      "status": "active",
      "sort_strategy": "manual",
      "definition": { "include": [{ "tag": "summer" }] }
    },
    "translation": { "locale": "en", "name": "Summer Picks", "slug": "summer" }
  }'
{
  "id": "col_123",
  "key": "summer",
  "status": "active"
}