Skip to main content
POST
/
v1
/
embed
/
catalogs
Publish a variable catalog version
curl --request POST \
  --url https://api.craftkit.dev/v1/embed/catalogs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "crm-fields",
  "catalog": {
    "allowCustom": false,
    "namespaces": [
      {
        "key": "customer",
        "label": "Customer",
        "fields": [
          {
            "key": "name",
            "label": "Name",
            "dataType": "text"
          }
        ]
      }
    ],
    "loops": []
  }
}
'
{
  "id": "c1a2b3c4-d5e6-f708-9a0b-1c2d3e4f5061",
  "name": "crm-fields",
  "version": 2
}

Authorizations

Authorization
string
header
required

Project API key (ck_live_… or ck_test_…) presented as a bearer token. For embed partner endpoints this is the partner secret key, which is the same credential type.

Body

application/json
name
string
required
Required string length: 1 - 120
Pattern: ^[a-z0-9][a-z0-9-]*$
catalog
object
required

Response

Catalog version published.

id
string<uuid>
required
name
string
required
version
integer
required