List workspace projects
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.list({ workspace_id: 'ws_abc123',})) { console.log(project);}curl -X GET 'https://app.flora.ai/api/v1/projects' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns projects in the requested workspace, ordered by recent activity. By default these are the projects the caller created; visibility narrows to the caller’s private projects or widens to every member’s shared canvases. query filters by name.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Maximum number of results to return
Maximum number of results to return
Opaque cursor for fetching the next page
Opaque cursor for fetching the next page
Search query
Search query
Workspace identifier
Workspace identifier
Which projects to list. private: the caller’s private projects. workspace: canvases shared with the whole workspace, by any member. Omit for every project the caller created, private and shared alike.
Which projects to list. private: the caller’s private projects. workspace: canvases shared with the whole workspace, by any member. Omit for every project the caller created, private and shared alike.
Responses
Section titled “ Responses ”Projects returned.
object
object
Project identifier
Project name
True when only the creator sees the project, rather than the whole workspace. Absent when the API cannot tell.
Workspace identifier
Example
{ "projects": [ { "project_id": "prj_abc123", "name": "Spring Campaign", "workspace_id": "ws_abc123", "origin": "api" } ], "meta": { "next_cursor": "eyJvZmZzZXQiOjIwfQ" }}