List actions
List actions with the FLORA API: GET /actions.
Returns released prebuilt Flora actions that can be executed by the public API. Action identifiers are raw slugs such as rotate-image, not action-prefixed IDs.
GET https://app.flora.ai/api/v1/actionsAuth: API key as a bearer token,
Authorization: Bearer $FLORA_API_KEY. See Authentication.TypeScript SDK:
client.actions.list().Operation ID:
listActions.
Example
curl -X GET 'https://app.flora.ai/api/v1/actions' \
-H "Authorization: Bearer $FLORA_API_KEY"import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const page = await client.actions.list();
console.log(page);Responses
200: Actions returned.
actions
array of objects
Yes
actions[].action_id
string
Yes
Action identifier. One of: color-grade-image-browser, overlay-image-browser, draw-image-browser, pixel-remover-image-browser, magic-eraser-image-browser, crop-image-browser, scene-3d-image-browser, blur-image-browser, change-image-ar-browser, rotate-image-browser, color-filter-image-browser, color-tint-image-browser, filter-color-image-browser, duplicate-image-browser, side-by-side-composite-browser, add-shape-to-image-browser, add-text-to-image-browser, qr-code-generator-browser, resize-image-browser, shader-effect-browser, split-text-browser, find-and-replace-text-browser, concat-text-browser, ken-burns-video, stitch-videos, split-video, extract-video-frames, color-grade-video, video-to-frame-grid, boomerang-video, reverse-video, video-to-long-exposure, video-effect, color-filter-video, speed-up-video, slow-down-video, duplicate-video, greenscreen-video, resize-video, change-video-ar, and 2 more.
actions[].name
string
Yes
Action name. Example: Rotate Image.
actions[].description
string
Yes
Action description. Example: Rotate an image by a fixed angle..
actions[].language
string
Yes
Action runtime language. One of: javascript, python.
actions[].runtime
string
Yes
Where the action executes: a server sandbox (node, python) or the browser runtime (browser), which a host can also run live. One of: node, python, browser.
actions[].has_preview
boolean
Yes
True when the code is a browser-runtime module exporting preview, so a host can mount it live and re-render edits without a run
actions[].charged_cost
number
Yes
Cost per execution in USD. At least 0.
actions[].inputs
array of objects
Yes
Action input slots
actions[].inputs[].name
string
Yes
Action input or output name. Example: image.
actions[].inputs[].type
string
Yes
Action input or output media type. One of: image, video, text, audio, model3d.
actions[].inputs[].dynamic
boolean
No
Deprecated alias for multiple: true. Mirrors multiple for back-compat.
actions[].inputs[].optional
boolean
No
Whether the slot allows zero connections in single-input mode. Ignored when multiple is the object form (use min: 0 there instead).
actions[].inputs[].multiple
boolean or object
No
Many-connections form. true is unbounded shorthand; the object form sets explicit min/max bounds. See the actions[].inputs[].multiple shapes below.
actions[].outputs
array of objects
Yes
Action output slots
actions[].outputs[].name
string
Yes
Action input or output name. Example: image.
actions[].outputs[].type
string
Yes
Action input or output media type. One of: image, video, text, audio, model3d.
actions[].outputs[].dynamic
boolean
No
Deprecated alias for multiple: true. Mirrors multiple for back-compat.
actions[].outputs[].optional
boolean
No
Whether the slot allows zero connections in single-input mode. Ignored when multiple is the object form (use min: 0 there instead).
actions[].outputs[].multiple
boolean or object
No
Many-connections form. true is unbounded shorthand; the object form sets explicit min/max bounds. Same shape as actions[].inputs[].multiple.
actions[].params
array of objects
Yes
Action parameters
actions[].params[].key
string
Yes
Action parameter key. Example: angle.
actions[].params[].type
string
Yes
Action parameter control type. Example: select.
actions[].params[].label
string
No
Action parameter label. Example: Angle.
actions[].params[].info_tooltip
string
No
Action parameter description. Example: Rotation angle in degrees..
actions[].params[].default_value
any
No
Default parameter value
actions[].params[].available_values
array of objects
No
Allowed parameter values
actions[].params[].available_values[].value
string
Yes
actions[].params[].available_values[].label
string
Yes
actions[].params[].available_values[].description
string
No
actions[].params[].min_number_value
number
No
Lowest accepted number
actions[].params[].max_number_value
number
No
Highest accepted number
actions[].params[].number_step
number
No
Step between accepted numbers
actions[].params[].placeholder
string
No
Placeholder shown in an empty text control
actions[].params[].max_count
integer
No
For colorList controls: how many colors the value may hold. At least 0.
actions[].params[].visible_if
array of objects
No
Conditions under which a control is shown, all of which must hold. Keys are the snake_case keys of this same params list.
actions[].params[].visible_if[].key
string
Yes
Key of the parameter this condition reads
actions[].params[].visible_if[].equals
string or number or boolean
No
Show this parameter only when the other parameter equals this value
actions[].params[].visible_if[].not_equals
string or number or boolean
No
Show this parameter only when the other parameter differs from this value
actions[].params[].point2d_min
object
No
Per-axis minimum for point2d values
actions[].params[].point2d_min.x
number
No
Bound on the x axis
actions[].params[].point2d_min.y
number
No
Bound on the y axis
actions[].params[].point2d_min.z
number
No
Bound on the z axis (point3d only)
actions[].params[].point2d_max
object
No
Per-axis maximum for point2d values
actions[].params[].point2d_max.x
number
No
Bound on the x axis
actions[].params[].point2d_max.y
number
No
Bound on the y axis
actions[].params[].point2d_max.z
number
No
Bound on the z axis (point3d only)
actions[].params[].point2d_step
object
No
Per-axis step for point2d values
actions[].params[].point2d_step.x
number
No
Bound on the x axis
actions[].params[].point2d_step.y
number
No
Bound on the y axis
actions[].params[].point2d_step.z
number
No
Bound on the z axis (point3d only)
actions[].params[].point3d_min
object
No
Per-axis minimum for point3d values
actions[].params[].point3d_min.x
number
No
Bound on the x axis
actions[].params[].point3d_min.y
number
No
Bound on the y axis
actions[].params[].point3d_min.z
number
No
Bound on the z axis (point3d only)
actions[].params[].point3d_max
object
No
Per-axis maximum for point3d values
actions[].params[].point3d_max.x
number
No
Bound on the x axis
actions[].params[].point3d_max.y
number
No
Bound on the y axis
actions[].params[].point3d_max.z
number
No
Bound on the z axis (point3d only)
actions[].params[].point3d_step
object
No
Per-axis step for point3d values
actions[].params[].point3d_step.x
number
No
Bound on the x axis
actions[].params[].point3d_step.y
number
No
Bound on the y axis
actions[].params[].point3d_step.z
number
No
Bound on the z axis (point3d only)
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.
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?