{"openapi":"3.1.0","info":{"title":"Zotero (BYOK) API","version":"0.1.0","description":"Zotero (BYOK) lets an AI assistant read your own Zotero data through the Zotero API with a key you supply (Zotero API key). Read-only: 9 tools (list_items, list_top_items, get_item, list_item_children, list_collections, get_collection, list_collection_items, list_tags, list_trashed_items). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-zotero.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-zotero/docs"},"termsOfService":"https://connectorbay.com/byok-zotero/terms"},"servers":[{"url":"https://byok-zotero.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-zotero/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_items":{"post":{"operationId":"list_items","summary":"List items in a Zotero user library (trash excluded), including attachments and notes, with search, type and tag filters","description":"List items in a Zotero user library (trash excluded), including attachments and notes, with search, type and tag filters. Use for \"Search my Zotero library for papers about transformers\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Quick search over titles and creators (phrase search).","title":"Q"},"qmode":{"anyOf":[{"enum":["titleCreatorYear","everything"],"type":"string"},{"type":"null"}],"default":"titleCreatorYear","description":"titleCreatorYear (default) or everything, which also searches full-text content.","title":"Qmode"},"item_type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Item type filter, for example 'book', 'journalArticle' or 'book || journalArticle'; prefix '-' to exclude.","title":"Item Type"},"tag":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Tag filter; use 'a || b' for either tag or '-a' to exclude.","title":"Tag"},"sort":{"anyOf":[{"enum":["dateAdded","dateModified","title","creator","itemType","date","publisher","publicationTitle","journalAbbreviation","language","accessDate","libraryCatalog","callNumber","rights","addedBy"],"type":"string"},{"type":"null"}],"default":"dateModified","description":"Field to sort by (default dateModified).","title":"Sort"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"asc or desc.","title":"Direction"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id"],"title":"list_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_top_items":{"post":{"operationId":"list_top_items","summary":"List top-level items of a Zotero library (no child notes or attachments), with the same search filters. Use for \"Which b","description":"List top-level items of a Zotero library (no child notes or attachments), with the same search filters. Use for \"Which books are in my Zotero library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Quick search over titles and creators (phrase search).","title":"Q"},"qmode":{"anyOf":[{"enum":["titleCreatorYear","everything"],"type":"string"},{"type":"null"}],"default":"titleCreatorYear","description":"titleCreatorYear (default) or everything, which also searches full-text content.","title":"Qmode"},"item_type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Item type filter, for example 'book', 'journalArticle' or 'book || journalArticle'; prefix '-' to exclude.","title":"Item Type"},"tag":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Tag filter; use 'a || b' for either tag or '-a' to exclude.","title":"Tag"},"sort":{"anyOf":[{"enum":["dateAdded","dateModified","title","creator","itemType","date","publisher","publicationTitle","journalAbbreviation","language","accessDate","libraryCatalog","callNumber","rights","addedBy"],"type":"string"},{"type":"null"}],"default":"dateModified","description":"Field to sort by (default dateModified).","title":"Sort"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"asc or desc.","title":"Direction"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id"],"title":"list_top_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_item":{"post":{"operationId":"get_item","summary":"Get one Zotero item by key with its title, creators, date, abstract, URL, tags and collections. Use for \"Show the Zotero","description":"Get one Zotero item by key with its title, creators, date, abstract, URL, tags and collections. Use for \"Show the Zotero item X42A7DEE\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"item_key":{"description":"Eight-character item key, for example 'X42A7DEE'.","maxLength":16,"title":"Item Key","type":"string"}},"required":["user_id","item_key"],"title":"get_itemArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_item_children":{"post":{"operationId":"list_item_children","summary":"List the notes and attachments filed under one Zotero item. Use for \"What attachments and notes does Zotero item X42A7DE","description":"List the notes and attachments filed under one Zotero item. Use for \"What attachments and notes does Zotero item X42A7DEE have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"item_key":{"description":"Eight-character item key, for example 'X42A7DEE'.","maxLength":16,"title":"Item Key","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id","item_key"],"title":"list_item_childrenArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_collections":{"post":{"operationId":"list_collections","summary":"List all collections (folders) in a Zotero library with their parent collection. Use for \"What collections are in my Zot","description":"List all collections (folders) in a Zotero library with their parent collection. Use for \"What collections are in my Zotero library\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id"],"title":"list_collectionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_collection":{"post":{"operationId":"get_collection","summary":"Get one Zotero collection by key. Use for \"Show Zotero collection 9KH9TNSJ\".","description":"Get one Zotero collection by key. Use for \"Show Zotero collection 9KH9TNSJ\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"collection_key":{"description":"Eight-character collection key, for example '9KH9TNSJ'.","maxLength":16,"title":"Collection Key","type":"string"}},"required":["user_id","collection_key"],"title":"get_collectionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_collection_items":{"post":{"operationId":"list_collection_items","summary":"List the items inside one Zotero collection, with the same search filters as list_items. Use for \"What is in my Zotero c","description":"List the items inside one Zotero collection, with the same search filters as list_items. Use for \"What is in my Zotero collection 9KH9TNSJ\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"collection_key":{"description":"Eight-character collection key, for example '9KH9TNSJ'.","maxLength":16,"title":"Collection Key","type":"string"},"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Quick search over titles and creators (phrase search).","title":"Q"},"qmode":{"anyOf":[{"enum":["titleCreatorYear","everything"],"type":"string"},{"type":"null"}],"default":"titleCreatorYear","description":"titleCreatorYear (default) or everything, which also searches full-text content.","title":"Qmode"},"item_type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Item type filter, for example 'book', 'journalArticle' or 'book || journalArticle'; prefix '-' to exclude.","title":"Item Type"},"tag":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Tag filter; use 'a || b' for either tag or '-a' to exclude.","title":"Tag"},"sort":{"anyOf":[{"enum":["dateAdded","dateModified","title","creator","itemType","date","publisher","publicationTitle","journalAbbreviation","language","accessDate","libraryCatalog","callNumber","rights","addedBy"],"type":"string"},{"type":"null"}],"default":"dateModified","description":"Field to sort by (default dateModified).","title":"Sort"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"asc or desc.","title":"Direction"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id","collection_key"],"title":"list_collection_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_tags":{"post":{"operationId":"list_tags","summary":"List the tags used in a Zotero library, optionally filtered by a text match. Use for \"Which tags do I use in Zotero\".","description":"List the tags used in a Zotero library, optionally filtered by a text match. Use for \"Which tags do I use in Zotero\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only tags matching this text.","title":"Q"},"qmode":{"anyOf":[{"enum":["contains","startsWith"],"type":"string"},{"type":"null"}],"default":"contains","description":"contains (default) or startsWith.","title":"Qmode"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id"],"title":"list_tagsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_trashed_items":{"post":{"operationId":"list_trashed_items","summary":"List items currently in the Zotero library trash. Use for \"What is in my Zotero trash\".","description":"List items currently in the Zotero library trash. Use for \"What is in my Zotero trash\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_id":{"description":"Numeric Zotero user ID (not the username); shown on the Zotero API keys settings page.","minimum":1,"title":"User Id","type":"integer"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (1 to 100).","title":"Limit"},"start":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first result, for paging (0 for the first page).","title":"Start"}},"required":["user_id"],"title":"list_trashed_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}