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

FLORA API reference

Every FLORA API endpoint, with its parameters, request and response fields, errors and a curl and TypeScript example.

This reference lists all 72 public FLORA API endpoints, grouped by resource. Each page gives the method and path, a curl and TypeScript SDK example, then the parameters, request and response fields, and errors. For concepts and walkthroughs, start with the FLORA API documentation.

Base URL

https://app.flora.ai/api/v1

Authentication

Send a FLORA API key as a bearer token on every request:

Authorization: Bearer $FLORA_API_KEY

See Create a key to get one.

TypeScript SDK

Every endpoint has a method in the @flora-ai/flora package, named on its page.

import { FloraClient } from '@flora-ai/flora';

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

Errors

Every error response has the same body. fields appears on input_validation_error (one entry per rejected field) and revision_conflict (the stale revision).

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.

See Errors for how to recover from each code.

Pagination

Paginated list endpoints return one page at a time. Set the page size with limit (1 to 100). Each response carries meta.next_cursor: pass it back as cursor to get the next page. It is null on the last page. The TypeScript SDK iterates pages for you.

Idempotency

28 write endpoints accept an optional Idempotency-Key header, so a retry after a timeout doesn't run twice; their pages say so under Idempotency. Reusing a key within two hours returns 409 idempotency_duplicate. See Idempotency.

Endpoints

Actions

Prebuilt action catalog endpoints. All Actions endpoints.

Method
Path
Endpoint

GET

/actions

GET

/actions/{actionId}

Workspaces

Workspace discovery endpoints. All Workspaces endpoints.

Method
Path
Endpoint

GET

/workspaces/{workspaceId}/members

GET

/workspaces/{workspaceId}/usage

Organizations

Organization usage reporting endpoints. All Organizations endpoints.

Method
Path
Endpoint

GET

/organizations/{organizationId}/usage

POST

/organizations/{organizationId}/usage-exports

GET

/organizations/{organizationId}/usage-exports/{exportId}

Projects

Project management endpoints. All Projects endpoints.

Method
Path
Endpoint

POST

/projects

POST

/workspaces/{workspaceId}/projects

GET

/workspaces/{workspaceId}/folders

POST

/workspaces/{workspaceId}/folders

POST

/workspaces/{workspaceId}/folders/{folderId}/projects

GET

/projects/{projectId}

PATCH

/projects/{projectId}

POST

/projects/{projectId}/agent-session

GET

/projects/{projectId}/sharing

PATCH

/projects/{projectId}/sharing

POST

/projects/{projectId}/share

Comments

Project comment thread endpoints. All Comments endpoints.

Method
Path
Endpoint

GET

/projects/{projectId}/comment-threads

POST

/projects/{projectId}/comment-threads

GET

/projects/{projectId}/comment-threads/{threadId}

POST

/projects/{projectId}/comment-threads/{threadId}/replies

POST

/projects/{projectId}/comment-threads/{threadId}/resolve

POST

/projects/{projectId}/comment-threads/{threadId}/reopen

DELETE

/projects/{projectId}/comment-threads/{threadId}/comments/{commentId}

Skills

Workspace-skill and user-skill management endpoints. All Skills endpoints.

Method
Path
Endpoint

GET

/workspaces/{workspaceId}/skills

POST

/workspaces/{workspaceId}/skills

GET

/workspaces/{workspaceId}/skills/{skillId}

GET

/skills/{skillId}

Models

Model catalog endpoints. All Models endpoints.

Method
Path
Endpoint

Techniques

Technique catalog endpoints. All Techniques endpoints.

Method
Path
Endpoint

GET

/techniques

GET

/techniques/{techniqueId}

Technique Runs

Nested technique run endpoints. All Technique Runs endpoints.

Method
Path
Endpoint

POST

/techniques/{techniqueId}/runs

GET

/techniques/{techniqueId}/runs/{runId}

GET

/technique-runs

Assets

Asset upload and retrieval endpoints. All Assets endpoints.

Method
Path
Endpoint

POST

/assets/resolve

GET

/assets

GET

/assets/{assetId}

POST

/assets/{assetId}/complete

POST

/assets/{assetId}/retry

Library

Library folder and saved-image endpoints. All Library endpoints.

Method
Path
Endpoint

POST

/workspaces/{workspaceId}/library/folders

POST

/workspaces/{workspaceId}/library/folders/{folderId}/items

DELETE

/workspaces/{workspaceId}/library/folders/{folderId}

Runs

Top-level run creation endpoints. All Runs endpoints.

Method
Path
Endpoint

GET

/runs/{runId}

POST

/runs/action

Canvas

Project canvas endpoints. All Canvas endpoints.

Method
Path
Endpoint

POST

/projects/{projectId}/actions

POST

/projects/{projectId}/actions/{nodeId}/run

GET

/projects/{projectId}/actions/{nodeId}

PATCH

/projects/{projectId}/actions/{nodeId}

GET

/workspaces/{workspaceId}/projects/{projectId}/canvas/definition

PUT

/workspaces/{workspaceId}/projects/{projectId}/canvas/definition

GET

/workspaces/{workspaceId}/projects/{projectId}/graph

POST

/workspaces/{workspaceId}/projects/{projectId}/canvas/changeset

POST

/workspaces/{workspaceId}/projects/{projectId}/canvas/arrange

POST

/workspaces/{workspaceId}/projects/{projectId}/nodes/run

GET

/workspaces/{workspaceId}/projects/{projectId}/nodes/{nodeId}/document

GET

/workspaces/{workspaceId}/projects/{projectId}/nodes/{nodeId}/document/slides/{slideId}

GET

/workspaces/{workspaceId}/projects/{projectId}/nodes/{nodeId}/document/slides/{slideId}/layers/{layerId}

GET

/projects/{projectId}/nodes

POST

/projects/{projectId}/assets/{assetId}/attach

Feedback

Product feedback endpoints. All Feedback endpoints.

Method
Path
Endpoint

Generations

Generation endpoints. All Generations endpoints.

Method
Path
Endpoint

POST

/generate

LoRAs

LoRA training and saved Style readiness endpoints. All LoRAs endpoints.

Method
Path
Endpoint

This reference is generated from version 5.10.2 of the FLORA OpenAPI spec.

Using an AI agent instead of code? See FLORA MCP.

Last updated

Was this helpful?