Zotero data model (types & fields)
zotero_schemaGet the Zotero data model to validate item types, fields, and creator types before creating or updating items. Avoid hardcoding item shapes with schema version and type-specific details.
Instructions
Return the Zotero data model so you never hardcode item shapes. With no arguments, returns the schema version and the list of all item type names. With item_type, returns the valid fields and creator types for that type (the "primary" creator type is listed first). Use this to validate an item before creating or updating it: notes, attachments, and annotations are item types too but bypass the normal field/creator model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_type | No | If set, return the fields & creator types for this item type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Valid field names for that item type. | |
| version | Yes | Zotero schema version this answer came from. | |
| itemType | No | The item type asked about. | |
| itemTypes | No | Every item type name; returned when no item_type was given. | |
| creatorTypes | No | Valid creator types for it, primary first. |