{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Petal Cite Documentation","colors":{"primary":"#C33D34","light":"#F6F8FC","dark":"#3D5A80"},"favicon":"/logo/petal-logo.svg","logo":{"light":"https://mintcdn.com/petal-14/mhUsAphitrES2Pxg/logo/petal-logo.png?fit=max\u0026auto=format\u0026n=mhUsAphitrES2Pxg\u0026q=85\u0026s=06201142e3bf2e8b0e26886b2e5c7c7a","dark":"https://mintcdn.com/petal-14/mhUsAphitrES2Pxg/logo/petal-logo.png?fit=max\u0026auto=format\u0026n=mhUsAphitrES2Pxg\u0026q=85\u0026s=06201142e3bf2e8b0e26886b2e5c7c7a"},"api":{"openapi":["openapi.json"]},"navbar":{"links":[{"label":"Support","href":"mailto:help@petal.org"},{"label":"Sign up","href":"https://cite.petal.org/signup"}],"primary":null},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"petal-14","hasAudioNarration":false,"actualSubdomain":"petal-14","customDomains":["docs.petal.org"],"gitSource":{"type":"github","owner":"zhelen","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c3f6ff8eb42874036c75","collectionId":"11a15ef7-9f98-4bca-9326-b6c7c8bbdbbb","schemaVersion":"v2"},"entitlements":{},"buildId":"6a20c3f6ff8eb42874036c75:success","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API References","count":33},{"language":"default","tag":"AI Table","count":17},{"language":"default","tag":"AI Chat","count":9},{"language":"default","tag":"Documentation","count":5},{"language":"default","tag":"Document","count":4},{"language":"default","tag":"Sample Use Cases","count":3},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Authorization","count":2},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"openapi/document/list_one","slug":"/openapi/document/list_one","pageMetadata":{"title":"Get a Document","openapi":"GET /api/document/{document_id}","description":"Fetch detailed information on a single Document by its unique ID","href":"/openapi/document/list_one","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Fetch detailed information on a single Document by its unique ID\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get a Document","openapi":"GET /api/document/{document_id}","description":"Fetch detailed information on a single Document by its unique ID","href":"/openapi/document/list_one","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Fetch detailed information on a single Document by its unique ID","operationId":"get_/api/document/{document_id}","parameters":["79577ac2-19bf-4380-9649-4e6303158159"],"responses":{"200":"be7d4098-0a9c-4b88-b9e6-786f71b28772","422":"d22e4994-9355-4bfc-8842-3a33559ccb9f"},"summary":"Read a document","tags":["document"],"method":"get","type":"path","servers":["0f371fd7-4be4-45f3-bd38-b02d2414b5fc"],"security":["05cf096d-a005-443f-884f-acd1cdf19e13"],"path":"/api/document/{document_id}","baseUrlOptions":["https://cite.petal.org"],"title":"Read a document","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"79577ac2-19bf-4380-9649-4e6303158159":{"description":"The unique ID of the Document","in":"path","name":"document_id","required":true,"schema":{"format":"int32","type":"integer","isRequired":true,"description":"The unique ID of the Document","uniqueKey":"","typeLabel":"integer\u003cint32>"}}},"responses":{"be7d4098-0a9c-4b88-b9e6-786f71b28772":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"annotation_ids":{"items":{"type":"integer","uniqueKey":"annotation_ids.items.[INDEX]","typeLabel":"integer"},"title":"Annotation IDs","description":"Unique IDs of Annotations made on this Document","type":"array","isRequired":true,"uniqueKey":"annotation_ids","typeLabel":"integer[]"},"created_at":{"title":"Created At","description":"Creation time, by UTC","type":"string","isRequired":true,"uniqueKey":"created_at","typeLabel":"string"},"csl":{"title":"CSL","description":"CSL reference info for internal use","type":"object","isRequired":true,"uniqueKey":"csl","typeLabel":"CSL · object"},"doctype":{"title":"Doctype","description":"Type of file, such as pdf, txt, etc.","type":"string","isRequired":true,"uniqueKey":"doctype","typeLabel":"string"},"file_resource_size":{"title":"File Resource Size","description":"Size of extracted information","type":"integer","isRequired":true,"uniqueKey":"file_resource_size","typeLabel":"integer"},"file_size":{"title":"File Size","description":"Size of original file","type":"integer","isRequired":true,"uniqueKey":"file_size","typeLabel":"integer"},"id":{"title":"ID","description":"Unique ID of the Document","type":"integer","isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"is_trash":{"title":"Is Trash","description":"Is the Document in Workspace trash","type":"boolean","isRequired":true,"uniqueKey":"is_trash","typeLabel":"boolean"},"meta":{"title":"Meta","description":"Metadata, for internal use","type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"Meta · object"},"modified_at":{"title":"Modified At","description":"Modification time, by UTC","type":"string","isRequired":true,"uniqueKey":"modified_at","typeLabel":"string"},"modified_by":{"title":"Modified By","description":"Last user to modify","type":"integer","isRequired":true,"uniqueKey":"modified_by","typeLabel":"integer"},"organization_id":{"title":"Organization ID","description":"Unique ID of Organization","type":"integer","isRequired":true,"uniqueKey":"organization_id","typeLabel":"integer"},"pages":{"title":"Pages","description":"Number of pages in Document","type":"integer","isRequired":true,"uniqueKey":"pages","typeLabel":"integer"},"resource_size":{"title":"Resource Size","description":"Internal resource usage","type":"integer","isRequired":true,"uniqueKey":"resource_size","typeLabel":"integer"},"status":{"additionalProperties":{"type":"integer","uniqueKey":"status.additionalProperties","typeLabel":"integer"},"title":"Status","description":"Processing status of Document","type":"object","isRequired":true,"uniqueKey":"status","typeLabel":"Status · object"},"tag_ids":{"items":{"type":"integer","uniqueKey":"tag_ids.items.[INDEX]","typeLabel":"integer"},"title":"Tag IDs","description":"IDs of tags on this Document","type":"array","isRequired":true,"uniqueKey":"tag_ids","typeLabel":"integer[]"},"ui":{"title":"UI","description":"UI information for internal use","type":"object","isRequired":true,"uniqueKey":"ui","typeLabel":"UI · object"},"use_ocr":{"title":"Use OCR","description":"Whether or not to use OCR on this Document. Leave as False except for images","type":"boolean","isRequired":true,"uniqueKey":"use_ocr","typeLabel":"boolean"},"user":{"additionalProperties":false,"properties":{"id":{"title":"ID","description":"Unique ID of user","type":"integer","isRequired":true,"uniqueKey":"user.id","typeLabel":"integer"},"name":{"title":"Name","description":"Name of user","type":"string","uniqueKey":"user.name","typeLabel":"string"}},"required":["id"],"title":"UserSimple","type":"object","isRequired":true,"uniqueKey":"user","typeLabel":"UserSimple · object"},"annotations":{"items":{"additionalProperties":false,"properties":{"comment_count":{"title":"Comment Count","description":"Number of comments on Annotation","type":"integer","isRequired":true,"uniqueKey":"annotations.items.[INDEX].comment_count","typeLabel":"integer"},"created_at":{"title":"Created At","description":"Creation time, by UTC","type":"string","isRequired":true,"uniqueKey":"annotations.items.[INDEX].created_at","typeLabel":"string"},"description":{"title":"Description","description":"Text description of Annotation","type":"string","isRequired":true,"uniqueKey":"annotations.items.[INDEX].description","typeLabel":"string"},"document_id":{"title":"Document ID","description":"Unique ID of the Document","type":"integer","isRequired":true,"uniqueKey":"annotations.items.[INDEX].document_id","typeLabel":"integer"},"id":{"title":"ID","description":"Unique ID of the Annotation","type":"integer","isRequired":true,"uniqueKey":"annotations.items.[INDEX].id","typeLabel":"integer"},"is_hidden":{"title":"Is Hidden","description":"Whether the Annotation is hidden from other users","type":"boolean","isRequired":true,"uniqueKey":"annotations.items.[INDEX].is_hidden","typeLabel":"boolean"},"modified_at":{"title":"Modified At","description":"Modification time, by UTC","type":"string","isRequired":true,"uniqueKey":"annotations.items.[INDEX].modified_at","typeLabel":"string"},"modified_by":{"title":"Modified By","description":"Last user to modify","type":"integer","isRequired":true,"uniqueKey":"annotations.items.[INDEX].modified_by","typeLabel":"integer"},"type":{"title":"Type","description":"Whether the Annotation is on text or an image (rectangular)","type":"string","isRequired":true,"uniqueKey":"annotations.items.[INDEX].type","typeLabel":"string"},"use_ocr":{"title":"Use OCR","description":"Whether or not to use OCR on this Annotation. Leave as False except for images","type":"boolean","isRequired":true,"uniqueKey":"annotations.items.[INDEX].use_ocr","typeLabel":"boolean"},"user_id":{"title":"User ID","description":"ID of user who created this Annotation","type":"integer","isRequired":true,"uniqueKey":"annotations.items.[INDEX].user_id","typeLabel":"integer"}},"required":["id","type","description","document_id","user_id","comment_count","is_hidden","use_ocr","created_at","modified_at","modified_by"],"title":"Annotation","type":"object","uniqueKey":"annotations.items.[INDEX]","typeLabel":"Annotation · object"},"title":"Annotations","description":"Detailed Annotations made on this Document","type":"array","uniqueKey":"annotations","typeLabel":"Annotation · object[]"},"comments":{"items":{"additionalProperties":false,"properties":{"annotation_id":{"title":"Annotation ID","description":"Unique ID of Annotation this comment belongs to","type":"integer","isRequired":true,"uniqueKey":"comments.items.[INDEX].annotation_id","typeLabel":"integer"},"content":{"title":"Content","description":"Text content of the comment","type":"string","isRequired":true,"uniqueKey":"comments.items.[INDEX].content","typeLabel":"string"},"created_at":{"title":"Created At","description":"Creation time, by UTC","type":"string","isRequired":true,"uniqueKey":"comments.items.[INDEX].created_at","typeLabel":"string"},"id":{"title":"ID","description":"Unique ID of comment","type":"integer","isRequired":true,"uniqueKey":"comments.items.[INDEX].id","typeLabel":"integer"},"modified_at":{"title":"Modified At","description":"Modification time, by UTC","type":"string","isRequired":true,"uniqueKey":"comments.items.[INDEX].modified_at","typeLabel":"string"},"modified_by":{"title":"Modified By","description":"Last user to modify","type":"integer","isRequired":true,"uniqueKey":"comments.items.[INDEX].modified_by","typeLabel":"integer"},"user":{"additionalProperties":false,"properties":{"id":{"title":"ID","description":"Unique ID of user","type":"integer","isRequired":true,"uniqueKey":"comments.items.[INDEX].user.id","typeLabel":"integer"},"name":{"title":"Name","description":"Name of user","type":"string","uniqueKey":"comments.items.[INDEX].user.name","typeLabel":"string"}},"required":["id"],"title":"UserSimple","type":"object","isRequired":true,"uniqueKey":"comments.items.[INDEX].user","typeLabel":"UserSimple · object"},"user_id":{"title":"User ID","description":"Unique ID of user to create comment","type":"integer","isRequired":true,"uniqueKey":"comments.items.[INDEX].user_id","typeLabel":"integer"}},"required":["id","annotation_id","user_id","created_at","modified_at","modified_by","content","user"],"title":"Comment","type":"object","uniqueKey":"comments.items.[INDEX]","typeLabel":"Comment · object"},"title":"Comments","description":"Detailed comments made on the Annotations","type":"array","uniqueKey":"comments","typeLabel":"Comment · object[]"},"filename":{"title":"Filename","description":"Name of original file","type":"string","uniqueKey":"filename","typeLabel":"string"},"keywords":{"items":{"oneOf":[{}],"uniqueKey":"keywords.items.[INDEX]","typeLabel":"any"},"title":"Keywords","description":"Keywords for internal use","type":"array","uniqueKey":"keywords","typeLabel":"any[]"},"ranking":{"title":"Ranking","description":"Search ranking if applicable","type":"integer","uniqueKey":"ranking","typeLabel":"integer"},"resource_stats":{"additionalProperties":false,"properties":{"file_size":{"title":"File Size","type":"integer","isRequired":true,"uniqueKey":"resource_stats.file_size","typeLabel":"integer"},"file_list":{"oneOf":[{"title":"File List"}],"uniqueKey":"resource_stats.file_list","typeLabel":"any"},"file_size_by_mime_type":{"oneOf":[{"title":"File Size By Mime Type"}],"uniqueKey":"resource_stats.file_size_by_mime_type","typeLabel":"any"},"file_size_by_res_type":{"oneOf":[{"title":"File Size By Res Type"}],"uniqueKey":"resource_stats.file_size_by_res_type","typeLabel":"any"}},"required":["file_size"],"title":"DocumentResourceStats","description":"Detailed description of disk usage by a given Document","type":"object","uniqueKey":"resource_stats","typeLabel":"DocumentResourceStats · object"},"snippet":{"title":"Snippet","description":"Snippet found through search, if applicable","type":"string","uniqueKey":"snippet","typeLabel":"string"},"span":{"items":{"type":"integer","uniqueKey":"span.items.[INDEX]","typeLabel":"integer"},"title":"Span","description":"For UI use","type":"array","uniqueKey":"span","typeLabel":"integer[]"},"suggested_tags":{"items":{"additionalProperties":false,"properties":{"color":{"title":"Color","type":"string","isRequired":true,"uniqueKey":"suggested_tags.items.[INDEX].color","typeLabel":"string"},"document_count":{"title":"Document Count","type":"integer","isRequired":true,"uniqueKey":"suggested_tags.items.[INDEX].document_count","typeLabel":"integer"},"id":{"title":"ID","type":"integer","isRequired":true,"uniqueKey":"suggested_tags.items.[INDEX].id","typeLabel":"integer"},"name":{"title":"Name","type":"string","isRequired":true,"uniqueKey":"suggested_tags.items.[INDEX].name","typeLabel":"string"},"organization_id":{"title":"Organization ID","type":"integer","isRequired":true,"uniqueKey":"suggested_tags.items.[INDEX].organization_id","typeLabel":"integer"}},"required":["id","organization_id","name","color","document_count"],"title":"SuggestedTag","description":"Detailed information of a tag","type":"object","uniqueKey":"suggested_tags.items.[INDEX]","typeLabel":"SuggestedTag · object"},"title":"Suggested Tags","description":"Auto suggested tags","type":"array","uniqueKey":"suggested_tags","typeLabel":"SuggestedTag · object[]"},"tasks":{"items":{"additionalProperties":false,"properties":{"id":{"title":"ID","type":"string","isRequired":true,"uniqueKey":"tasks.items.[INDEX].id","typeLabel":"string"},"args_json":{"title":"Args Json","type":"string","uniqueKey":"tasks.items.[INDEX].args_json","typeLabel":"string"},"created_at":{"oneOf":[{"title":"Created At"}],"uniqueKey":"tasks.items.[INDEX].created_at","typeLabel":"any"},"function":{"title":"Function","type":"string","uniqueKey":"tasks.items.[INDEX].function","typeLabel":"string"},"group_id":{"title":"Group ID","type":"string","uniqueKey":"tasks.items.[INDEX].group_id","typeLabel":"string"},"module":{"title":"Module","type":"string","uniqueKey":"tasks.items.[INDEX].module","typeLabel":"string"},"nrequeue":{"title":"Nrequeue","type":"integer","uniqueKey":"tasks.items.[INDEX].nrequeue","typeLabel":"integer"},"parent_id":{"title":"Parent ID","type":"integer","uniqueKey":"tasks.items.[INDEX].parent_id","typeLabel":"integer"},"parent_table":{"title":"Parent Table","type":"string","uniqueKey":"tasks.items.[INDEX].parent_table","typeLabel":"string"},"runtime":{"title":"Runtime","type":"number","uniqueKey":"tasks.items.[INDEX].runtime","typeLabel":"number"},"status":{"title":"Status","type":"string","uniqueKey":"tasks.items.[INDEX].status","typeLabel":"string"},"traceback":{"title":"Traceback","type":"string","uniqueKey":"tasks.items.[INDEX].traceback","typeLabel":"string"},"updated_at":{"oneOf":[{"title":"Updated At"}],"uniqueKey":"tasks.items.[INDEX].updated_at","typeLabel":"any"}},"required":["id"],"title":"Task","type":"object","uniqueKey":"tasks.items.[INDEX]","typeLabel":"Task · object"},"title":"Tasks","description":"Queued tasks associated with this Document","type":"array","uniqueKey":"tasks","typeLabel":"Task · object[]"}},"required":["annotation_ids","created_at","modified_at","modified_by","id","is_trash","use_ocr","meta","csl","ui","status","organization_id","tag_ids","user","doctype","file_size","pages","resource_size","file_resource_size"],"title":"DocumentReadResponse","type":"object","uniqueKey":"","typeLabel":"DocumentReadResponse · object"},"examples":{"Example":{"title":"Example","value":{"annotation_ids":[123],"created_at":"\u003cstring>","csl":{},"doctype":"\u003cstring>","file_resource_size":123,"file_size":123,"id":123,"is_trash":true,"meta":{},"modified_at":"\u003cstring>","modified_by":123,"organization_id":123,"pages":123,"resource_size":123,"status":{},"tag_ids":[123],"ui":{},"use_ocr":true,"user":{"id":123,"name":"\u003cstring>"},"annotations":[{"comment_count":123,"created_at":"\u003cstring>","description":"\u003cstring>","document_id":123,"id":123,"is_hidden":true,"modified_at":"\u003cstring>","modified_by":123,"type":"\u003cstring>","use_ocr":true,"user_id":123}],"comments":[{"annotation_id":123,"content":"\u003cstring>","created_at":"\u003cstring>","id":123,"modified_at":"\u003cstring>","modified_by":123,"user":{"id":123,"name":"\u003cstring>"},"user_id":123}],"filename":"\u003cstring>","keywords":["\u003cunknown>"],"ranking":123,"resource_stats":{"file_size":123,"file_list":"\u003cunknown>","file_size_by_mime_type":"\u003cunknown>","file_size_by_res_type":"\u003cunknown>"},"snippet":"\u003cstring>","span":[123],"suggested_tags":[{"color":"\u003cstring>","document_count":123,"id":123,"name":"\u003cstring>","organization_id":123}],"tasks":[{"id":"\u003cstring>","args_json":"\u003cstring>","created_at":"\u003cunknown>","function":"\u003cstring>","group_id":"\u003cstring>","module":"\u003cstring>","nrequeue":123,"parent_id":123,"parent_table":"\u003cstring>","runtime":123,"status":"\u003cstring>","traceback":"\u003cstring>","updated_at":"\u003cunknown>"}]}}},"exampleType":"generated"}},"description":"OK","exampleType":"generated"},"d22e4994-9355-4bfc-8842-3a33559ccb9f":{"content":{"application/json":{"schema":{"description":"Model of a validation error response.","items":{"description":"Model of a validation error response element.","properties":{"loc":{"items":{"type":"string","uniqueKey":"items.[INDEX].loc.items.[INDEX]","typeLabel":"string"},"title":"Missing field name","type":"array","isRequired":true,"uniqueKey":"items.[INDEX].loc","typeLabel":"string[]"},"msg":{"title":"Error message","type":"string","isRequired":true,"uniqueKey":"items.[INDEX].msg","typeLabel":"string"},"type":{"title":"Error type","type":"string","isRequired":true,"uniqueKey":"items.[INDEX].type","typeLabel":"string"},"ctx":{"title":"Error context","type":"object","uniqueKey":"items.[INDEX].ctx","typeLabel":"Error context · object"}},"required":["loc","msg","type"],"title":"ValidationErrorElement","type":"object","uniqueKey":"items.[INDEX]","typeLabel":"ValidationErrorElement · object"},"title":"ValidationError","type":"array","uniqueKey":"","typeLabel":"ValidationErrorElement · object[]"},"examples":{"Example":{"title":"Example","value":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","ctx":{}}]}},"exampleType":"generated"}},"description":"Unprocessable Entity","exampleType":"generated"}},"security":{"05cf096d-a005-443f-884f-acd1cdf19e13":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"0f371fd7-4be4-45f3-bd38-b02d2414b5fc":{"url":"https://cite.petal.org"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"petal-14","siteName":"Petal Cite Documentation","title":"Get a Document - Petal Cite Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:50:43.622Z","originalFileLocation":"openapi/document/list_one.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fetch detailed information on a single Document by its unique ID\">\u003cmeta data-mint-head name=\"application-name\" content=\"Petal Cite Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a Document - Petal Cite Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fetch detailed information on a single Document by its unique ID\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Petal Cite Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.petal.org/openapi/document/list_one\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://petal-14.mintlify.app/_mintlify/api/og/v2?division=Document\u0026amp;title=Get+a+Document\u0026amp;description=Fetch+detailed+information+on+a+single+Document+by+its+unique+ID\u0026amp;theme=235cdf88d049722ecddb7c8b\u0026amp;signature=0c97d3a18b03da6fec0bf3e1f77df131abf4b4d8859311e06fdfe11bb4298848\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get a Document - Petal Cite Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fetch detailed information on a single Document by its unique ID\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://petal-14.mintlify.app/_mintlify/api/og/v2?division=Document\u0026amp;title=Get+a+Document\u0026amp;description=Fetch+detailed+information+on+a+single+Document+by+its+unique+ID\u0026amp;theme=235cdf88d049722ecddb7c8b\u0026amp;signature=0c97d3a18b03da6fec0bf3e1f77df131abf4b4d8859311e06fdfe11bb4298848\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/petal-14/AGpcLuG437Uh6nj8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Petal Cite Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C33D34\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.petal.org/openapi/document/list_one\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/openapi/document/list_one.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.petal.org/#organization\",\"name\":\"Petal Cite Documentation\",\"url\":\"https://docs.petal.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/petal-14/mhUsAphitrES2Pxg/logo/petal-logo.png?fit=max\u0026auto=format\u0026n=mhUsAphitrES2Pxg\u0026q=85\u0026s=06201142e3bf2e8b0e26886b2e5c7c7a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.petal.org#website\",\"name\":\"Petal Cite Documentation\",\"url\":\"https://docs.petal.org\",\"publisher\":{\"@id\":\"https://docs.petal.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.petal.org/openapi/document/list_one#webpage\",\"url\":\"https://docs.petal.org/openapi/document/list_one\",\"name\":\"Get a Document\",\"description\":\"Fetch detailed information on a single Document by its unique ID\",\"dateModified\":\"2026-01-06T23:50:43.622Z\",\"isPartOf\":{\"@id\":\"https://docs.petal.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.petal.org/openapi/document/list_one#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.petal.org/openapi/document/list_one#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Document\",\"item\":\"https://docs.petal.org/openapi/document/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a Document\",\"item\":\"https://docs.petal.org/openapi/document/list_one\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.petal.org/openapi/document/list_one#apireference\",\"headline\":\"Get a Document\",\"name\":\"Get a Document\",\"description\":\"Fetch detailed information on a single Document by its unique ID\",\"url\":\"https://docs.petal.org/openapi/document/list_one\",\"mainEntityOfPage\":{\"@id\":\"https://docs.petal.org/openapi/document/list_one#webpage\"},\"dateModified\":\"2026-01-06T23:50:43.622Z\",\"publisher\":{\"@id\":\"https://docs.petal.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.petal.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Petal Cite Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Petal Cite Documentation","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/intro/introduction"}]},{"anchor":"API References","icon":"code","groups":[{"group":"Overview","pages":[{"title":"Petal API Reference","href":"/openapi/introduction"}]},{"group":"Authorization","pages":[{"title":"Obtain authorization information","openapi":"POST /api/auth","href":"/openapi/auth/auth"},{"title":"List Workspaces","openapi":"GET /api/user/{user_id}/organization/list","href":"/openapi/auth/list_orgs"}]},{"group":"Document","pages":[{"title":"Create a Document","openapi":"POST /api/document/create","description":"Create a Document by uploading your file to Petal","href":"/openapi/document/create"},{"title":"Get a Document","openapi":"GET /api/document/{document_id}","href":"/openapi/document/list_one"},{"title":"List all Documents in an Organization","openapi":"GET /api/organization/{organization_id}/document/list","description":"List all Documents within an Organization","href":"/openapi/document/list_org"},{"title":"Delete Documents","openapi":"DELETE /api/document/delete","href":"/openapi/document/delete"}]},{"group":"AI Chat","pages":[{"title":"Create an AI chat Session","openapi":"POST /api/ai/session/create","href":"/openapi/ai_chat/create_session"},{"title":"List AI Chat Sessions","openapi":"GET /api/ai/session/list","href":"/openapi/ai_chat/list_session"},{"title":"Get an AI chat Session","openapi":"GET /api/ai/session/{ai_session_id}","href":"/openapi/ai_chat/get_session"},{"title":"Update an AI Chat Session","openapi":"POST /api/ai/session/{ai_session_id}/update","href":"/openapi/ai_chat/update_session"},{"title":"Reset an AI chat Session","openapi":"POST /api/ai/session/{ai_session_id}/reset","href":"/openapi/ai_chat/reset_session"},{"title":"Delete an AI chat Session","openapi":"DELETE /api/ai/session/{ai_session_id}/delete","href":"/openapi/ai_chat/delete_session"},{"title":"Create a chat message","openapi":"POST /api/ai/session/{ai_session_id}/qa/create","href":"/openapi/ai_chat/create_qa"},{"title":"List chat messages in a Session","openapi":"GET /api/ai/session/{ai_session_id}/qa/list","href":"/openapi/ai_chat/list_qa"},{"title":"Delete a chat message","openapi":"DELETE /api/ai/session/{ai_session_id}/qa/{ai_qa_id}/delete","href":"/openapi/ai_chat/delete_qa"}]},{"group":"AI Table","pages":[{"title":"Create an AI Table","openapi":"POST /api/ai/table/create","href":"/openapi/ai_table/create_table"},{"title":"List AI Tables","openapi":"GET /api/ai/table/list","href":"/openapi/ai_table/list_tables"},{"title":"Get an AI Table","openapi":"GET /api/ai/table/{ai_table_id}","href":"/openapi/ai_table/get_table"},{"title":"Update an AI Table","openapi":"POST /api/ai/table/{ai_table_id}/update","href":"/openapi/ai_table/update_table"},{"title":"Delete an AI Table","openapi":"DELETE /api/ai/table/{ai_table_id}/delete","href":"/openapi/ai_table/delete_table"},{"title":"Create an AI Table column","openapi":"POST /api/ai/table/{ai_table_id}/column/create","href":"/openapi/ai_table/create_column"},{"title":"List all columns in an AI Table","openapi":"GET /api/ai/table/{ai_table_id}/column/list","href":"/openapi/ai_table/list_columns"},{"title":"Get an AI Table column","openapi":"GET /api/ai/table/{ai_table_id}/column/{ai_column_id}","href":"/openapi/ai_table/get_column"},{"title":"Update an AI Table column","openapi":"POST /api/ai/table/{ai_table_id}/column/{ai_column_id}/update","href":"/openapi/ai_table/update_column"},{"title":"Run AI on all cells in a column","openapi":"POST /api/ai/table/{ai_table_id}/column/{ai_column_id}/run","href":"/openapi/ai_table/run_column"},{"title":"Delete an AI Table column","openapi":"DELETE /api/ai/table/{ai_table_id}/column/{ai_column_id}/delete","href":"/openapi/ai_table/delete_column"},{"title":"List all cells in a row","openapi":"GET /api/ai/table/{ai_table_id}/document/{document_id}","href":"/openapi/ai_table/list_row_cells"},{"title":"Run AI on all cells in a row","openapi":"POST /api/ai/table/{ai_table_id}/column/{ai_column_id}/run","href":"/openapi/ai_table/run_row"},{"title":"Create cells and run AI","openapi":"POST /api/ai/table/{ai_table_id}/run","href":"/openapi/ai_table/run_cells"},{"title":"Create cell without AI","openapi":"POST /api/ai/table/{ai_table_id}/cell/create","href":"/openapi/ai_table/create_cell"},{"title":"Update cell without AI","openapi":"POST /api/ai/table/{ai_table_id}/cell/{ai_cell_id}/update","href":"/openapi/ai_table/update_cell"},{"title":"List all cells in an AI Table","openapi":"GET /api/ai/table/{ai_table_id}/cell/list","href":"/openapi/ai_table/list_table_cells"}]}]},{"anchor":"Contact us","href":"mailto:help@petal.org","icon":"envelope"}]},"title":"Get a Document - Petal Cite Documentation","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}