Get one slide of a deck node
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const canva = await client.projects.canvas.getDeckSlide({ workspaceId: '<workspaceId>', projectId: '<projectId>', nodeId: '<nodeId>', slideId: '<slideId>',});console.log(canva);curl -X GET 'https://app.flora.ai/api/v1/workspaces/<workspaceId>/projects/<projectId>/nodes/<nodeId>/document/slides/<slideId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns a single slide of a deck node’s authored document — its frame, guides and every layer with z-order — plus the document revision, without fetching the whole document (which can reach a megabyte). Deck nodes only; an unknown node or slide id returns not_found.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Workspace identifier
Workspace identifier
Project identifier
Project identifier
The node’s short id or UUID, as the project graph endpoint reports them
The node’s short id or UUID, as the project graph endpoint reports them
Slide id on the deck
Slide id on the deck
Responses
Section titled “ Responses ”Slide returned.
object
Project identifier
Short node identifier
Canvas node UUID
Current document revision; pass as base_revision on a changeset update.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Dimensionless size multipliers. Text uses frame.pixel_width by round(font_size * 7.5) as its reference box (font_size defaults to 144); shapes use 512 by 512; media uses its resolved source dimensions. Divide the desired pixel width and height by the reference dimensions. For a 1200 by 240 text box at font_size 96 on a 1920-wide frame, use x: 0.625, y: 0.3333333333333333.
object
object
Typography only; the rendered text or live binding belongs in content.
object
object
object
Dimensionless size multipliers. Text uses frame.pixel_width by round(font_size * 7.5) as its reference box (font_size defaults to 144); shapes use 512 by 512; media uses its resolved source dimensions. Divide the desired pixel width and height by the reference dimensions. For a 1200 by 240 text box at font_size 96 on a 1920-wide frame, use x: 0.625, y: 0.3333333333333333.
object
object
object
object
object
object
Dimensionless size multipliers. Text uses frame.pixel_width by round(font_size * 7.5) as its reference box (font_size defaults to 144); shapes use 512 by 512; media uses its resolved source dimensions. Divide the desired pixel width and height by the reference dimensions. For a 1200 by 240 text box at font_size 96 on a 1920-wide frame, use x: 0.625, y: 0.3333333333333333.
object
object
object
object
object
object
object
object
object
Example
{ "project_id": "prj_abc123", "id": "n7", "node_id": "7f6ae6da-4a0e-4a2f-9c6a-2c1c6b8d1f21", "slide": { "hidden": false, "guides": { "vertical": [], "horizontal": [] }, "document": { "layers": { "additionalProperty": { "name": "", "visible": true, "blend_mode": "normal", "content_type": "text", "content": { "kind": "node_output" }, "text_data": {} } } } }}