For the complete documentation index, see llms.txt. This page is also available as Markdown.

List project canvas nodes

List project canvas nodes with the FLORA API: GET /projects/{projectId}/nodes.

Returns sanitized visible media nodes on a project canvas. The response omits raw graph documents, Liveblocks internals, raw Convex IDs, and unbounded node data blobs.

GET https://app.flora.ai/api/v1/projects/{projectId}/nodes
  • Auth: API key as a bearer token, Authorization: Bearer $FLORA_API_KEY. See Authentication.

  • TypeScript SDK: client.projects.listNodes(), paginated. See Pagination.

  • Operation ID: listCanvasNodes.

Example

curl -X GET 'https://app.flora.ai/api/v1/projects/prj_abc123/nodes' \
  -H "Authorization: Bearer $FLORA_API_KEY"
import { FloraClient } from '@flora-ai/flora';

const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });

// Paginated lists are async iterables; further pages are fetched as needed.
for await (const project of await client.projects.listNodes({
  projectId: 'prj_abc123',
})) {
  console.log(project);
}

Path parameters

Name
Type
Required
Description

projectId

string

Yes

Project identifier. Pattern: ^prj_\S+$. Example: prj_abc123.

Query parameters

Name
Type
Required
Description

limit

integer

No

Maximum number of results to return. 1 to 100.

cursor

string

No

Opaque cursor for fetching the next page. Example: eyJvZmZzZXQiOjIwfQ.

Responses

200: Canvas nodes returned.

Field
Type
Required
Description

project_id

string

Yes

Project identifier. Pattern: ^prj_\S+$. Example: prj_abc123.

canvas_url

string (uri)

Yes

Project canvas URL

nodes

array of objects

Yes

nodes[].node_id

string

Yes

Canvas node identifier. At least 1 character. Example: node_abc123.

nodes[].type

string

Yes

Canvas node media type. One of: image, video, audio, text, model3d.

nodes[].label

string or null

No

Canvas node label. Example: Logo.

nodes[].asset_id

string or null

No

Asset identifier. Pattern: ^asset_\S+$. Example: asset_abc123.

nodes[].url

string or null

No

Canvas node output URL or text content. At least 1 character. Example: https://media.flora.ai/output.png.

nodes[].width

integer or null

No

nodes[].height

integer or null

No

meta

object

Yes

meta.next_cursor

string or null

Yes

Opaque cursor for fetching the next page. Example: eyJvZmZzZXQiOjIwfQ.

meta.total_estimate

integer or null

No

Estimated total matching items. At least 0.

Errors

Every error has the same body: error.code, error.message, and error.fields on validation errors. See Errors for how to recover from each code.

Status
Code
Meaning

400

invalid_json, input_validation_error

The body isn't valid JSON, or an input failed validation (fields lists each one).

401

unauthorized, invalid_api_key

The API key is missing, invalid or revoked.

402

insufficient_credits

The workspace balance is too low for this request.

403

forbidden, paid_plan_required

The key can't do this, or the workspace plan doesn't include it.

404

not_found

The resource doesn't exist or isn't visible to this key.

409

idempotency_duplicate, revision_conflict

Duplicate Idempotency-Key or a stale base_revision.

429

rate_limited

Too many requests. Back off and retry.

500

unknown_error, internal_error

Something failed on FLORA's side. Retry with backoff.

503

temporarily_unavailable

Authorization is temporarily unavailable. Retry later.

Last updated

Was this helpful?