components: schemas: ChatGptDocumentSection: properties: body: description: 150-300 word document section containing content in HTML format. title: Document Section Body type: string did: description: Unique document ID. title: Document ID type: string title: description: Heading title used for this document section. title: Title of Document Section type: string required: - did - title - body title: ChatGptDocumentSection type: object CreateChatGptDocumentRequest: properties: title: description: Title of the document. title: Document Title type: string required: - title title: CreateChatGptDocumentRequest type: object HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' title: Detail type: array title: HTTPValidationError type: object Markdown2DocumentRequest: properties: camelcase_filename: default: Untitled description: 'Mandatory: suggested CamelCase filename. Do NOT include file extension.' title: Camelcase Filename type: string formatted_markdown: description: Formatted Markdown content. title: Formatted Markdown type: string prompt: description: Prompt used for creating doc. title: Prompt type: string required: - prompt - formatted_markdown title: Markdown2DocumentRequest type: object ReadDocV2Request: properties: f1_http_url: description: User will pass a HTTPS or HTTP url to a file so that the file contents can be read. title: F1 Http Url type: string f2_query: default: '' description: User will pass a query string to fetch relevant sections from the contents. It will be used for sentence-level similarity search on the document based on embeddings. title: F2 Query type: string f3_selected_pages: default: [] description: Filter document on these page numbers. Use empty list to get all pages. items: type: integer title: F3 Selected Pages type: array required: - f1_http_url title: ReadDocV2Request type: object ValidationError: properties: loc: items: anyOf: - type: string - type: integer title: Location type: array msg: title: Message type: string type: title: Error Type type: string required: - loc - msg - type title: ValidationError type: object info: description: A plugin that allows the user to create a PDF using ChatGPT. title: Create PDF Plugin version: v1 openapi: 3.1.0 paths: /multipage_add_subsection_to_document: post: description: Append a new document subsection for a multi-page document, with title and body. Default at least 150-300 words. operationId: multipage_add_subsection_to_document requestBody: content: application/json: schema: $ref: '#/components/schemas/ChatGptDocumentSection' required: true responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Append a new document subsection for a multi-page document. /multipage_create_empty_document: post: description: Create a new empty multi-page document. Always follow up with function call `multipage_add_subsection_to_document`. operationId: multipage_create_empty_document requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateChatGptDocumentRequest' required: true responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create a new empty multi-page document /read_url: post: description: 'Allows for reading the contents of an URL link, including PDF/DOC/DOCX/PPT/CSV/XLS/XLSX/HTML content, Google Drive, Dropbox, OneDrive, aidocmaker.com docs. Always wrap image URLs from the response field `z1_image_urls` in Markdown, where each image has a ## DESCRIPTION.' operationId: read_url requestBody: content: application/json: schema: $ref: '#/components/schemas/ReadDocV2Request' required: true responses: '200': content: application/json: schema: title: Response Read Url Endpoint Read Url Post description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Read the contents of an URL link /simple_create_document: post: description: Create a simple document, with formatted Markdown content in the field `formatted_markdown`. Include prompt text used in the field `prompt`. operationId: simple_create_document requestBody: content: application/json: schema: $ref: '#/components/schemas/Markdown2DocumentRequest' required: true responses: '200': content: application/json: schema: {} description: Successful Response '422': content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' description: Validation Error summary: Create a simple document servers: - url: https://pdf.level2labs.xyz