.pptx
GET
https://api.slidesgpt.com/v1/presentations/{id}/download
import fs from "fs"; async function downloadPresentation(id) { try { const response = await fetch(`${API_BASE_URL}/presentations/${id}/download`, { method: "GET", headers: { Authorization: `Bearer ${token}` }, }); const buffer = await response.arrayBuffer(); fs.writeFileSync(`presentation-${id}.pptx`, Buffer.from(buffer)); } catch (err) { console.error(err); } }
wget --header="Authorization: Bearer YOUR_API_KEY" \ -O presentation.pptx \ "https://api.slidesgpt.com/v1/presentations/12345/download"
Note: You must include your API key in the Authorization header. If you don’t have one, follow the steps in the Authentication Guide to get your API key.
Authorization