Collections
Create and manage CMS collections using the Collections tools. Collections define the structure and schema for your content.
List collections
List all CMS collections in a site. Returns collection metadata including IDs, names, and schemas.
Tool: collections_list
site_id
stringRequired
Unique identifier for the site
Returns
Response
1 { 2 "collections": [ 3 { 4 "id": "63692ab61fb2852f582ba8f5", 5 "displayName": "Products", 6 "singularName": "Product", 7 "slug": "product", 8 "createdOn": "2019-06-12T13:35:14.238Z", 9 "lastUpdated": "2022-11-17T15:08:50.480Z" 10 }, 11 { 12 "id": "63692ab61fb2856e6a2ba8f6", 13 "displayName": "Categories", 14 "singularName": "Category", 15 "slug": "category", 16 "createdOn": "2019-06-12T13:35:14.238Z", 17 "lastUpdated": "2022-11-17T15:08:50.481Z" 18 }, 19 { 20 "id": "63692ab61fb285a8562ba8f4", 21 "displayName": "SKUs", 22 "singularName": "SKU", 23 "slug": "sku", 24 "createdOn": "2019-06-12T13:35:14.238Z", 25 "lastUpdated": "2022-11-17T15:08:50.478Z" 26 } 27 ] 28 }
Get collection details
Get detailed information about a specific CMS collection including its schema and field definitions.
Tool: collections_get
collection_id
stringRequired
Unique identifier for the collection
Returns
Response
1 { 2 "id": "7f15043107e2fc95644e93807ee25dd6", 3 "displayName": "Guide Entries", 4 "singularName": "Guide Entry", 5 "fields": [ 6 { 7 "id": "5e2a1b3c4d5e6f7890a1b2c3", 8 "isRequired": true, 9 "type": "PlainText", 10 "displayName": "Entry Title", 11 "isEditable": true, 12 "slug": "name", 13 "helpText": "Name of the entry." 14 }, 15 { 16 "id": "5e2a1b3c4d5e6f7890a1b2c4", 17 "isRequired": true, 18 "type": "PlainText", 19 "displayName": "Slug", 20 "isEditable": true, 21 "slug": "slug", 22 "helpText": "Slug of the entry." 23 }, 24 { 25 "id": "6f7e8d9c0b1a2e3d4c5b6a7f", 26 "isRequired": false, 27 "type": "PlainText", 28 "displayName": "Summary", 29 "isEditable": true, 30 "slug": "summary", 31 "helpText": "A short summary of the entry." 32 }, 33 { 34 "id": "1a2b3c4d5e6f7a8b9c0d1e2f", 35 "isRequired": false, 36 "type": "RichText", 37 "displayName": "Entry HTML", 38 "isEditable": true, 39 "slug": "entry-html", 40 "helpText": "The HTML content of the entry." 41 }, 42 { 43 "id": "7e8d9c0b1a2e3d4c5b6a7f8e", 44 "isRequired": false, 45 "type": "Image", 46 "displayName": "Illustration Image", 47 "isEditable": true, 48 "slug": "illustration-image", 49 "helpText": "An image of the entry." 50 }, 51 { 52 "id": "2f3e4d5c6b7a8e9d0c1b2a3f", 53 "isRequired": false, 54 "type": "VideoLink", 55 "displayName": "Demonstration Video", 56 "isEditable": true, 57 "slug": "demonstration-video", 58 "helpText": "A video of the entry." 59 }, 60 { 61 "id": "8e9d0c1b2a3f4e5d6c7b8a9e", 62 "isRequired": false, 63 "type": "Link", 64 "displayName": "More Info Link", 65 "isEditable": true, 66 "slug": "more-info-link", 67 "helpText": "A link to more information about the entry." 68 }, 69 { 70 "id": "3f4e5d6c7b8a9e0d1c2b3a4f", 71 "isRequired": false, 72 "type": "Number", 73 "displayName": "Importance Level", 74 "isEditable": true, 75 "slug": "importance-level", 76 "helpText": "The importance level of the entry.", 77 "validations": { 78 "format": "integer", 79 "allowNegative": false, 80 "allowZero": false, 81 "minValue": 1, 82 "maxValue": 5 83 } 84 }, 85 { 86 "id": "9e0d1c2b3a4f5e6d7c8b9a0e", 87 "isRequired": false, 88 "type": "Switch", 89 "displayName": "Is Essential", 90 "isEditable": true, 91 "slug": "is-essential", 92 "helpText": "Is this entry essential?" 93 }, 94 { 95 "id": "4f5e6d7c8b9a0e1d2c3b4a5f", 96 "isRequired": false, 97 "type": "Color", 98 "displayName": "First Mentioned", 99 "isEditable": true, 100 "slug": "first-mentioned", 101 "helpText": "Date of the first mention of the subject." 102 }, 103 { 104 "id": "0e1d2c3b4a5f6e7d8c9b0a1e", 105 "isRequired": false, 106 "type": "Color", 107 "displayName": "Towel Color", 108 "isEditable": true, 109 "slug": "towel-color", 110 "helpText": "The color of the towel." 111 }, 112 { 113 "id": "5f6e7d8c9b0a1e2d3c4b5a6f", 114 "isRequired": false, 115 "type": "Reference", 116 "displayName": "Related Entry", 117 "isEditable": true, 118 "slug": "related-entry", 119 "helpText": "A related entry.", 120 "validations": { 121 "collectionId": "7f15043107e2fc95644e93807ee25dd6" 122 } 123 }, 124 { 125 "id": "1e2d3c4b5a6f7e8d9c0b1a2f", 126 "isRequired": false, 127 "type": "MultiReference", 128 "displayName": "Mentioned In Entries", 129 "isEditable": true, 130 "slug": "mentioned-in-entries", 131 "helpText": "Entries that mention this subject.", 132 "validations": { 133 "collectionId": "7f15043107e2fc95644e93807ee25dd6" 134 } 135 }, 136 { 137 "id": "6f7e8d9c0b1a2e3d4c5b6a8f", 138 "isRequired": false, 139 "type": "Option", 140 "displayName": "Item Type", 141 "isEditable": true, 142 "slug": "item-type", 143 "helpText": "The type of item.", 144 "validations": { 145 "options": [ 146 { 147 "name": "Survival Gear", 148 "id": "66f6e966c9e1dc700a857ca3" 149 }, 150 { 151 "name": "Gadget", 152 "id": "66f6e966c9e1dc700a857ca4" 153 }, 154 { 155 "name": "Other", 156 "id": "66f6e966c9e1dc700a857ca5" 157 } 158 ] 159 } 160 }, 161 { 162 "id": "2e3d4c5b6a7f8e9d0c1b2a4f", 163 "isRequired": false, 164 "type": "File", 165 "displayName": "Guide File", 166 "isEditable": true, 167 "slug": "guide-file" 168 }, 169 { 170 "id": "7f8e9d0c1b2a3f4e5d6c8b9e", 171 "isRequired": false, 172 "type": "Email", 173 "displayName": "Contributor Email", 174 "isEditable": true, 175 "slug": "contributor-email" 176 }, 177 { 178 "id": "3a4f5e6d7c8b9a0e1d2c4b5f", 179 "isRequired": false, 180 "type": "Phone", 181 "displayName": "Emergency Contact", 182 "isEditable": true, 183 "slug": "emergency-contact" 184 } 185 ], 186 "slug": "guide-entry", 187 "createdOn": "2024-04-12T12:42:00.000Z", 188 "lastUpdated": "2024-04-12T12:42:00.000Z" 189 }
Create collection
Create a new CMS collection in a site with specified name and schema.
Tool: collections_create
site_id
stringRequired
Unique identifier for the site
request
objectRequired
Collection creation request
+ Show 3 properties
displayName
stringRequired
Collection name
singularName
stringRequired
Singular form of the name
slug
stringRequired
URL slug for the collection
1 from webflow import Webflow, StaticField 2 3 client = Webflow( 4 access_token="YOUR_TOKEN_HERE", 5 ) 6 7 client.collections.create( 8 site_id="580e63e98c9a982ac9b8b741", 9 display_name="Blog Posts", 10 singular_name="Blog Post", 11 slug="posts", 12 fields=[ 13 StaticField( 14 is_required=True, 15 type="PlainText", 16 display_name="Title", 17 help_text="The title of the blog post", 18 ), 19 StaticField( 20 is_required=True, 21 type="RichText", 22 display_name="Content", 23 help_text="The content of the blog post", 24 ), 25 StaticField( 26 is_required=True, 27 type=, 28 display_name="Author", 29 help_text="The author of the blog post", 30 ) 31 ], 32 )