Call the Zotero Web API
zotero_apiSend direct Zotero Web API v3 requests to manage items, collections, and tags in your library.
Instructions
Send one Zotero Web API v3 request to the configured user library.
Reads may still use the local app through the bibliography tools. This tool always uses api.zotero.org, including GET, so the response matches the account the API key can change. Create items with POST items and a JSON array. Put collection keys inside each item's collections array. Update one item with PATCH items/ITEMKEY or PUT of the full item data, and send its current version. Delete with DELETE and confirm_delete true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON object or array. Item creates are an array of item data. Include version when updating one object. | |
| path | Yes | Relative Web API path. Examples: items, items/ITEMKEY, collections, collections/KEY/items, searches, tags, fulltext, deleted, groups/GROUPID/items. | |
| query | No | Query parameters. Values must be strings. Use itemKey for a multi-item delete. | |
| method | Yes | GET, POST, PUT, PATCH, or DELETE. | |
| write_token | No | Optional 32-character token. Repeating it prevents a successful create from running twice. | |
| confirm_delete | No | Must be true for DELETE. A delete without it is refused. | |
| if_unmodified_since_version | No | Library version precondition for updates and deletes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| status | Yes | ||
| message | Yes | ||
| http_status | No | ||
| last_modified_version | No |