Skip to content
FLORA DocsGo to app
Resources

Projects

Create, list, retrieve, and attach assets to FLORA projects.

Projects group generated work and assets inside a workspace. Use projects when you want API-created assets and runs to appear together in FLORA.

Terminal window
curl "https://app.flora.ai/api/v1/projects?workspace_id=ws_XXXX&limit=10" \
-H "Authorization: Bearer sk_live_XXXX"

Response:

{
"projects": [
{
"project_id": "proj_...",
"name": "Campaign concepts"
}
]
}
Terminal window
curl -X POST https://app.flora.ai/api/v1/projects \
-H "Authorization: Bearer sk_live_XXXX" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": "ws_XXXX",
"name": "Campaign concepts"
}'

Some keys may not have permission to create projects. In that case, the API returns 403 forbidden.

Terminal window
curl https://app.flora.ai/api/v1/projects/proj_XXXX \
-H "Authorization: Bearer sk_live_XXXX"
Terminal window
curl https://app.flora.ai/api/v1/projects/proj_XXXX/nodes \
-H "Authorization: Bearer sk_live_XXXX"

Project nodes are the items shown inside a FLORA project canvas or workspace view.

After creating or uploading an asset, attach it to a project:

Terminal window
curl -X POST https://app.flora.ai/api/v1/projects/proj_XXXX/assets/asset_XXXX/attach \
-H "Authorization: Bearer sk_live_XXXX"
MethodPathDescription
GET/api/v1/projects?workspace_id={workspace_id}&limit=10List projects
POST/api/v1/projectsCreate a project
GET/api/v1/projects/{project_id}Retrieve a project
GET/api/v1/projects/{project_id}/nodesList project nodes
POST/api/v1/projects/{project_id}/assets/{asset_id}/attachAttach an asset to a project
  • workspace_id is required when listing or creating projects.
  • Permission-sensitive operations can return 403 forbidden.
  • Use project IDs from the list or create response in run creation payloads when you want generations associated with a project.