Collections provide a way to categorize and group markers within a map — for example, “Restaurants”, “Hotels”, or “Must-See Sights”. Each collection belongs to a single map and can have a custom icon and color. Membership of markers in collections is tracked throughDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jacobsamo/buzztrip/llms.txt
Use this file to discover all available pages before exploring further.
collection_links join records, each connecting a marker_id to a collection_id on a given map_id. These links are managed via the Markers API (collectionIds_to_add / collectionIds_to_remove on editMarker, and collectionIds on createMarker).
Every new map automatically receives a Default Collection at creation time. This is handled internally by the
createCollectionFunction helper, which is called by createMapFunction in the Maps API. You do not need to create this default collection manually.authedQuery / authedMutation wrappers.
getCollectionsForMap
Returns all collections belonging to a map. API path:api.maps.collections.getCollectionsForMapType:
authedQuery — authentication required
The map whose collections should be returned.
Collection[] | null
getCollectionLinksForMap
Returns allcollection_links records for a map — the full set of marker-to-collection assignments. Useful for building a complete picture of which markers belong to which collections without fetching each collection separately.
API path: api.maps.collections.getCollectionLinksForMapType:
authedQuery — authentication required
The map whose collection links should be returned.
CollectionLink[] | null
createCollection
Creates a new collection on a map. Thecreated_by field is automatically injected from the authenticated user context — you do not need to supply it.
API path: api.maps.collections.createCollectionType:
authedMutation — authentication required
The map to attach this collection to.
Display title for the collection (e.g.
"Restaurants", "Day 1").Icon identifier. This field is required by the schema.
Optional description of the collection.
Optional accent color string.
Id<'collections'> — the document ID of the newly created collection.
editCollection
Updates an existing collection’s metadata. Automatically stampsupdatedAt with the current ISO datetime.
API path: api.maps.collections.editCollectionType:
authedMutation — authentication required
The collection to update.
The updated collection data.
map_id, title, and icon are required; all other fields are optional.Id<'collections'> — the ID of the updated collection.
deleteCollection
Permanently deletes a collection document. This does not automatically delete the associatedcollection_links — markers previously assigned to this collection will retain orphaned link records until cleaned up.
API path: api.maps.collections.deleteCollectionType:
authedMutation — authentication required
The document ID of the collection to delete.
Id<'collections'> — the ID of the deleted collection.