> For the complete documentation index, see [llms.txt](https://docs.autocontentapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autocontentapi.com/code-samples/documents.md).

# Documents

- [Overview](https://docs.autocontentapi.com/code-samples/documents/document-examples.md): Snippets in C#, Node.js, Java, PHP and Python that create briefing documents, control their format, and use the /documents retrieval API.
- [C#](https://docs.autocontentapi.com/code-samples/documents/csharp.md): C# snippets for the briefing document recipes, from text, website, topic and PDF sources to format and language settings and document downloads.
- [Create a Briefing Document from Text](https://docs.autocontentapi.com/code-samples/documents/csharp/from-text.md): C# HttpClient sample that creates a briefing document in text format from a board memo, asking for a summary, risks and action items.
- [Create a Briefing Document from a Website](https://docs.autocontentapi.com/code-samples/documents/csharp/from-website.md): C# sample that turns a web page into an HTML briefing document for security leaders by posting a website resource with format html.
- [Create a Briefing Document from a Topic Prompt](https://docs.autocontentapi.com/code-samples/documents/csharp/from-topic.md): C# HttpClient sample that builds a PDF briefing document from a topic prompt on AI regulation, written for product and go-to-market leaders.
- [Create a Briefing Document from a PDF Upload](https://docs.autocontentapi.com/code-samples/documents/csharp/from-pdf.md): C# sample that creates an HTML briefing document from an uploaded PDF by sending its file ID as a file resource to POST /content/Create.
- [Set Document Format and Language](https://docs.autocontentapi.com/code-samples/documents/csharp/set-format-and-language.md): C# HttpClient sample that sets format html and language español on a briefing document request about AI procurement in healthcare.
- [List, Fetch, and Download Documents](https://docs.autocontentapi.com/code-samples/documents/csharp/retrieve-and-download.md): C# HttpClient sample that lists briefing documents, fetches one by ID and downloads the stored file to disk with the matching file extension.
- [Node.js](https://docs.autocontentapi.com/code-samples/documents/nodejs.md): Node.js snippets that mirror the document recipes, creating briefing documents from several sources and listing, fetching and downloading results.
- [Create a Briefing Document from Text](https://docs.autocontentapi.com/code-samples/documents/nodejs/from-text.md): Node.js fetch example that sends written source material with outputType briefing\_doc and format text to get a plain text executive briefing.
- [Create a Briefing Document from a Website](https://docs.autocontentapi.com/code-samples/documents/nodejs/from-website.md): Node.js fetch example that creates a briefing document from a website resource in HTML format, with sections for context, threats and advice.
- [Create a Briefing Document from a Topic Prompt](https://docs.autocontentapi.com/code-samples/documents/nodejs/from-topic.md): Node.js fetch example that creates a briefing document from a topic with format pdf, listing policy shifts and business implications.
- [Create a Briefing Document from a PDF Upload](https://docs.autocontentapi.com/code-samples/documents/nodejs/from-pdf.md): Node.js fetch example that turns an uploaded report into an HTML briefing document, reading FILE\_ID and sending it as a type file resource.
- [Set Document Format and Language](https://docs.autocontentapi.com/code-samples/documents/nodejs/set-format-and-language.md): Node.js fetch example that controls the briefing document output with the format field and its writing language with the language field.
- [List, Fetch, and Download Documents](https://docs.autocontentapi.com/code-samples/documents/nodejs/retrieve-and-download.md): Node.js fetch example that calls /documents/get, reads one document with /documents/{id}, and saves the download with an extension from its type.
- [Java](https://docs.autocontentapi.com/code-samples/documents/java.md): Java snippets that create briefing documents from text, a website, a topic or a PDF, set format and language, and retrieve stored documents.
- [Create a Briefing Document from Text](https://docs.autocontentapi.com/code-samples/documents/java/from-text.md): Java program that posts a text resource with format text and language English through java.net.http to generate a briefing document.
- [Create a Briefing Document from a Website](https://docs.autocontentapi.com/code-samples/documents/java/from-website.md): Java program that sends a report URL as a website resource with java.net.http and asks for an HTML briefing document for CISOs.
- [Create a Briefing Document from a Topic Prompt](https://docs.autocontentapi.com/code-samples/documents/java/from-topic.md): Java program that posts a topic, audience text and format pdf through java.net.http to generate a briefing document without source URLs.
- [Create a Briefing Document from a PDF Upload](https://docs.autocontentapi.com/code-samples/documents/java/from-pdf.md): Java program that references an uploaded PDF by file ID with java.net.http and asks for an HTML briefing with headings and bullets.
- [Set Document Format and Language](https://docs.autocontentapi.com/code-samples/documents/java/set-format-and-language.md): Java program that requests a Spanish-language HTML briefing document through java.net.http by setting the format and language fields.
- [List, Fetch, and Download Documents](https://docs.autocontentapi.com/code-samples/documents/java/retrieve-and-download.md): Java program that pages through your documents, fetches one by DOCUMENT\_ID and writes the downloaded briefing file to disk with java.net.http.
- [PHP](https://docs.autocontentapi.com/code-samples/documents/php.md): PHP snippets matching each document scenario recipe, with briefing documents from text, websites, topics and PDFs plus the retrieval calls.
- [Create a Briefing Document from Text](https://docs.autocontentapi.com/code-samples/documents/php/from-text.md): PHP cURL script that turns a pasted memo into a text briefing document with a summary, risks and action items through /content/Create.
- [Create a Briefing Document from a Website](https://docs.autocontentapi.com/code-samples/documents/php/from-website.md): PHP cURL script that requests an HTML briefing document from a public web page with outputType briefing\_doc and language English.
- [Create a Briefing Document from a Topic Prompt](https://docs.autocontentapi.com/code-samples/documents/php/from-topic.md): PHP cURL script that requests a PDF briefing document from a topic prompt, using text to set the audience and the points to include.
- [Create a Briefing Document from a PDF Upload](https://docs.autocontentapi.com/code-samples/documents/php/from-pdf.md): PHP cURL script that sends a file resource with your uploaded file ID and format html to get a briefing document from a PDF report.
- [Set Document Format and Language](https://docs.autocontentapi.com/code-samples/documents/php/set-format-and-language.md): PHP cURL script that chooses html output and a Spanish writing language for a topic-based briefing document aimed at hospital executives.
- [List, Fetch, and Download Documents](https://docs.autocontentapi.com/code-samples/documents/php/retrieve-and-download.md): PHP cURL script that lists documents, reads a single document record and saves the /documents/{id}/download response to a local file.
- [Python](https://docs.autocontentapi.com/code-samples/documents/python.md): Python snippets that mirror the document scenario recipes, from creating a briefing document to setting its format and language and downloading it.
- [Create a Briefing Document from Text](https://docs.autocontentapi.com/code-samples/documents/python/from-text.md): Python requests snippet that requests a briefing\_doc from a text resource and sets format text and language English in the payload.
- [Create a Briefing Document from a Website](https://docs.autocontentapi.com/code-samples/documents/python/from-website.md): Python requests snippet that posts a website resource with format html and briefing\_doc output to summarize a cloud security report.
- [Create a Briefing Document from a Topic Prompt](https://docs.autocontentapi.com/code-samples/documents/python/from-topic.md): Python requests snippet that sends topic, text and format pdf with outputType briefing\_doc to /content/Create and prints the response.
- [Create a Briefing Document from a PDF Upload](https://docs.autocontentapi.com/code-samples/documents/python/from-pdf.md): Python requests snippet that builds a briefing document from a previously uploaded PDF, passing FILE\_ID in a type file resource.
- [Set Document Format and Language](https://docs.autocontentapi.com/code-samples/documents/python/set-format-and-language.md): Python requests snippet that posts format and language overrides with outputType briefing\_doc for a briefing for hospital procurement teams.
- [List, Fetch, and Download Documents](https://docs.autocontentapi.com/code-samples/documents/python/retrieve-and-download.md): Python requests snippet that lists, fetches and downloads a briefing document, saving the stored PDF, HTML or text result to a file.
