List workspace projects
GET
/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 that are accessible to the authenticated public API key, ordered by recent activity.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
Maximum number of results to return
integer
Maximum number of results to return
cursor
Opaque cursor for fetching the next page
string
Opaque cursor for fetching the next page
query
Search query
string
Search query
workspace_id
required
Workspace identifier
string
Workspace identifier
Responses
Section titled “ Responses ”Projects returned.
Media type application/json
object
projects
required
Example
{ "projects": [ { "project_id": "prj_abc123", "name": "Spring Campaign", "workspace_id": "ws_abc123", "origin": "api" } ], "meta": { "next_cursor": "eyJvZmZzZXQiOjIwfQ" }}