Create a Collection
Creates a new collection with default fields (name, created_at, updated_at) and a default view.
Authorizations
Your Moonbase API key.
Body
The Collection object to be created.
Parameters for creating a Collection.
The user-facing name of the collection (e.g., "Leads"). A ref is automatically derived from the name.
An optional, longer-form description of the collection's purpose.
An optional icon for the collection, as a Phosphor icon name in kebab-case (e.g. users, chart-bar).
Response
Creation succeeded.
A Collection is a container for structured data, similar to a database table or spreadsheet. It defines a schema using a set of Fields and holds the data as a list of Items.
String representing the object’s type. Always collection for this object.
"collection"Unique identifier for the object.
The user-facing name of the collection (e.g., “Organizations”).
A unique, stable, machine-readable identifier for the collection. This reference is used in API requests and does not change even if the name is updated.
system collections are managed by Moonbase (e.g., People, Organizations), form collections back a Form, and custom collections are user-created.
system, form, custom A list of Field objects that define the schema for items in this collection.
A field definition, which varies by type
- SingleLineTextField
- MultiLineTextField
- IdentifierField
- IntegerField
- FloatField
- MonetaryField
- PercentageField
- BooleanField
- EmailField
- UrlField
- DomainField
- SocialXField
- SocialLinkedInField
- TelephoneNumberField
- GeoField
- DateField
- DatetimeField
- ChoiceField
- StageField
- RelationField
Time at which the object was created, as an ISO 8601 timestamp in UTC.
Time at which the object was last updated, as an ISO 8601 timestamp in UTC.
An optional, longer-form description of the collection's purpose.
The collection's icon, as a Phosphor icon name in kebab-case (e.g. users, chart-bar). Only present when an icon is set.
A list of saved View objects for presenting the collection's data.
Note: Only present when requested using the include query parameter.

