Get an action
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const action = await client.actions.retrieve({ actionId: '<actionId>',});console.log(action);curl -X GET 'https://app.flora.ai/api/v1/actions/<actionId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns metadata for one released prebuilt Flora action. Action identifiers are raw slugs such as rotate-image, not action-prefixed IDs.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Action identifier
Action identifier
Responses
Section titled “ Responses ”Action returned.
object
Action identifier
Action name
Action description
Action runtime language
Cost per execution in USD
Action input slots
object
Action input or output name
Action input or output media type
Deprecated alias for multiple: true. Mirrors multiple for back-compat.
Whether the slot allows zero connections in single-input mode. Ignored when multiple is the object form (use min: 0 there instead).
Action output slots
object
Action input or output name
Action input or output media type
Deprecated alias for multiple: true. Mirrors multiple for back-compat.
Whether the slot allows zero connections in single-input mode. Ignored when multiple is the object form (use min: 0 there instead).
Action parameters
object
Action parameter key
Action parameter control type
Action parameter label
Action parameter description
Default parameter value
Allowed parameter values
object
Example
{ "action_id": "color-grade-image-browser", "name": "Rotate Image", "description": "Rotate an image by a fixed angle.", "language": "javascript", "inputs": [ { "name": "image", "type": "image", "multiple": true } ], "outputs": [ { "name": "image", "type": "image", "multiple": true } ], "params": [ { "key": "angle", "type": "select", "label": "Angle", "info_tooltip": "Rotation angle in degrees." } ]}