Workspaces
Workspaces are the top-level containers for projects, assets, techniques, runs, and billing. Most API calls that create or list resources require a workspace_id.
List workspaces
Section titled “List workspaces”curl https://app.flora.ai/api/v1/workspaces \ -H "Authorization: Bearer ak_XXXX"Response:
{ "workspaces": [ { "workspace_id": "ws_...", "name": "My Workspace", "app_url": "https://app.flora.ai/projects?workspace=..." } ]}Use a returned workspace_id in later requests, such as listing projects or creating assets. app_url opens FLORA in that workspace; it is stable, so you can share it, and only members can open it.
List members
Section titled “List members”curl "https://app.flora.ai/api/v1/workspaces/ws_.../members?email=ana@example.com" \ -H "Authorization: Bearer ak_XXXX"Without email, the endpoint returns one page of members; follow meta.next_cursor for the rest. With email, it returns the member who owns that address, or an empty list when nobody who owns it belongs to the workspace. Matching ignores case for addresses stored in lowercase; an address stored with upper case matches only in that casing. At Gmail and Googlemail, dots in the local part are ignored. URL-encode the address: a raw + reads as a space. A workspace your key cannot read returns 403.
Common endpoints
Section titled “Common endpoints”| Method | Path | Description |
|---|---|---|
| GET | /api/v1/workspaces |
List workspaces available to your API key |
| GET | /api/v1/workspaces/{workspace_id}/members |
List members, or look one up by email |
- API keys carry per-workspace read/write/billing permissions chosen in Settings → API Keys;
GET /workspacesreturns every workspace where the key has read access. - Store the
workspace_idin your server-side configuration alongside your API key. - Do not expose API keys or workspace IDs in frontend-only code.