## Export a collection type `GET https://getkollek.com/api/collection-types/{collectionType}/export` Retrieve the full schema of a collection type as a portable JSON document: its name, its color, its field groups, and every custom field with its kind, its ordering and its select options. This is the same document the app hands out from the type's export screen. The document describes structure only. Your items, their copies and their photos are never part of it. Fields are ordered the way they render on an item, and a field only carries an options key when it has options. Groups are listed under groups, and fields that sit outside of any group under standaloneFields. The schemaVersion key tells you which shape of the document you are reading. It is bumped whenever the shape changes, so store it alongside the export. **Permissions:** Owners and editors. Viewers get a 404 response. ### Path parameters - `collectionType` (integer, required): The ID of the collection type. **Returns:** A collection_type_export object whose schema attribute is the portable JSON document, or 404 when the type does not belong to your account. ### Example request ```bash curl https://getkollek.com/api/collection-types/1/export \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" ``` ### Example response `Status: 200` ```json { "data": { "type": "collection_type_export", "id": "1", "attributes": { "schema": { "schemaVersion": 1, "type": { "name": "Comics", "color": "#fb923c", "groups": [ { "name": "Publishing info", "fields": [ { "name": "Issue #", "type": "number" }, { "name": "Publisher", "type": "select", "options": [ "Marvel", "DC", "Image" ] } ] } ], "standaloneFields": [ { "name": "Signed", "type": "boolean" } ] } } }, "links": { "self": "https://getkollek.com/api/collection-types/1/export", "collection_type": "https://getkollek.com/api/collection-types/1" } } } ```