components: schemas: AppendToMultiPageDocumentRequest: properties: content: description: HTML-format section content to append to the document with the given `document_id` title: Document section content type: string doc_id: description: Unique ID used to identify a document. title: Document ID type: string required: - doc_id - content title: AppendToMultiPageDocumentRequest type: object CreateMultiPageDocumentRequest: properties: title: description: Title of the document. title: Document Title type: string required: - title title: CreateMultiPageDocumentRequest type: object CreateSpreadsheetRequest: properties: prompt: description: Prompt context for creating spreadsheet - will be shown later in document UI. title: Prompt type: string sheets: description: List of sheets inside spreadsheet. Each sheet consists of a header row, followed by rows of data items: $ref: '#/components/schemas/DocmakerSheet' title: Sheets type: array title: default: Untitled description: 'Mandatory: the title of the spreadsheet. Must be included.' title: Title type: string required: - prompt - sheets title: CreateSpreadsheetRequest type: object DocmakerSheet: properties: content: default: '' description: Sheet data content in CSV format. Enclose all fields in double quotes. title: Content type: string title: DocmakerSheet type: object HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' title: Detail type: array title: HTTPValidationError type: object Markdown2DocumentRequest: properties: formatted_markdown: description: Formatted Markdown content. title: Formatted Markdown type: string prompt: description: Prompt used for creating doc. title: Prompt type: string title: default: Untitled description: 'Mandatory: title of the document.' title: Title type: string required: - prompt - formatted_markdown title: Markdown2DocumentRequest type: object Markdown2ResumeRequest: properties: prompt: description: Prompt used to describe the doc creation request. IT IS NOT USED TO CREATE DOC, only to display in UI for user to view later. title: Prompt type: string resume_content: default: '' description: Resume content in Markdown format. Do NOT include any of the above information (name, email, phone, location, website url) here; they should be directly placed via their respective fields. When using acronyms, ensure to write out the full term as well. For example, instead of writing 'SEO', write 'Search Engine Optimization (SEO)'. title: Resume Content type: string resume_field_email: description: 'Optional: Personal email to be placed directly into the resume/cv. If supplied, do NOT include it in the formatted_markdown field.' title: Resume Field Email type: string resume_field_location: description: 'Optional: Location to be placed directly into the resume/cv. If supplied, do NOT include it in the formatted_markdown field.' title: Resume Field Location type: string resume_field_name: default: '' description: 'Mandatory: Personal name to be placed directly into the resume/cv. Do NOT include it in the formatted_markdown field.' title: Resume Field Name type: string resume_field_phone: description: 'Optional: Phone number to be placed directly into the resume/cv. If supplied, do NOT include it in the formatted_markdown field.' title: Resume Field Phone type: string resume_field_website_url: description: 'Optional: Website URL to be placed directly into the resume/cv. If supplied, do NOT include it in the formatted_markdown field.' title: Resume Field Website Url type: string title: default: Untitled description: 'Mandatory: Title of the document.' title: Title type: string required: - prompt title: Markdown2ResumeRequest type: object PptxRequest: properties: intro_slide: allOf: - $ref: '#/components/schemas/SimpleIntroSlide' description: The first slide in the deck - IT SHOULD ONLY HAVE A TITLE AND NO CONTENT title: Intro Slide prompt: description: Prompt context for creating doc - will be shown later in document UI. title: Prompt type: string slides: description: 'List of slides following the intro slide. Each slide should only have 2 string params: `title` and `content`. Content is a single string (DO NOT INPUT AS A LIST).' items: $ref: '#/components/schemas/SimpleSlideContent' title: Slides type: array required: - prompt - intro_slide - slides title: PptxRequest 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 SimpleIntroSlide: properties: title: description: The title of the slide. Must be included. title: Title type: string required: - title title: SimpleIntroSlide type: object SimpleSlideContent: properties: content: description: The string content for this slide. DO NOT INPUT AS A LIST. Must contain ALL the text that will go on the slide. Use '\n' characters for formatting. title: Content type: string title: description: The title of the slide. Must be included. title: Title type: string required: - title - content title: SimpleSlideContent 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 DOCX, XLSX, PDF, CSV, HTML file using ChatGPT. title: Create Doc Plugin version: v1 openapi: 3.1.0 paths: /create_pptx_directly_with_content: post: description: Create a new presentation by directly providing the content. operationId: create_pptx_directly_with_content requestBody: content: application/json: schema: $ref: '#/components/schemas/PptxRequest' 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 presentation directly with content /create_resume: post: operationId: create_resume requestBody: content: application/json: schema: $ref: '#/components/schemas/Markdown2ResumeRequest' 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 Resume Endpoint /create_spreadsheet: post: description: Create a new spreadsheet given data. Enclose all fields in double quotes. operationId: create_spreadsheet requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateSpreadsheetRequest' 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 spreadsheet /multipage_add_subsection_to_document: post: description: Append a new document subsection to a MultiPageDocument. operationId: multipage_add_subsection_to_document requestBody: content: application/json: schema: $ref: '#/components/schemas/AppendToMultiPageDocumentRequest' 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 to a MultiPageDocument. /multipage_create_empty_document: post: description: Create a blank MultiPageDocument. operationId: multipage_create_empty_document requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateMultiPageDocumentRequest' 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 blank MultiPageDocument /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: {} 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://pdfmagic.level2labs.xyz