๐Ÿ“„Create a Briefing Document from a PDF Upload

Use a PDF as the source when you want to summarize a private report, whitepaper, or internal deck.

You can either:

Option A: Base64 PDF Payload

curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "briefing_doc",
    "format": "pdf",
    "resources": [
      {
        "type": "pdf",
        "content": "BASE64_ENCODED_PDF"
      }
    ],
    "text": "Extract the executive summary, highlight three supporting data points, and end with recommended actions."
  }'

Option B: Uploaded File ID

Tips

  • Use type: "file" when the PDF is large or private.

  • Use format: "html" if the output will be embedded in your application.

  • Use format: "pdf" if you want the result as a downloadable asset URL.

Try it in code

Last updated