Skip to content

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.

Terminal window
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.

Terminal window
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.

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 /workspaces returns every workspace where the key has read access.
  • Store the workspace_id in your server-side configuration alongside your API key.
  • Do not expose API keys or workspace IDs in frontend-only code.