For AI agents: a machine-readable documentation index for this API is available at /llms.txt. Every page is also available as Markdown: append ".md" to the URL or send an "Accept: text/markdown" request header.

Write a new document from content (PDF, Word, PowerPoint, Excel, CSV or Markdown)

Writes a NEW file from the content in the body. format pdf, docx or pptx take `markdown` (for pptx an outline: `# Title` is the title slide and its first line the subtitle, each `## Heading` a slide, bullets become bullet points, a table gets its own slide); md takes `markdown`; xlsx and csv take `table` ({ columns, rows }: up to 12 columns and 500 rows of text; numbers become numbers in Excel, codes with leading zeros stay text). `sources` are ids of files the document is based on (digits, up to 10): a true Sources list is added from their real names. `name` is required (the extension is added or corrected); the file goes to folder_id (null or omitted: the library root). The same generators and limits as the chat (60,000 characters of Markdown). A taken name is 409 name_taken; plan limits apply (413). Needs files:write; 20 calls a minute per token.

What you provide

  • Name: The file's name; the extension is added or corrected
  • Format
  • Markdownoptional: For pdf, docx, pptx and md: the content in Markdown, up to 60,000 characters (at least 20)
  • Tableoptional: For xlsx and csv: up to 12 columns and 500 rows of text
  • Sourcesoptional: File ids (digits) the document is based on, up to 10; a Sources list is added
  • Folder idoptional: The folder; null or omitted for the library root

Do this with AI

I want to write a new document from content (PDF, Word, PowerPoint, Excel, CSV or Markdown). Use the Tarkle API. Read the reference for this operation and follow it exactly: https://project-03b42162.restlessdocs.com/endpoint/createdocument.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.

Paste this into Claude, Cursor, or any AI assistant and it will do it for you.