Get a project
GET
/projects/{projectId}
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const project = await client.projects.retrieve({ projectId: '<projectId>',});console.log(project);curl -X GET 'https://app.flora.ai/api/v1/projects/<projectId>' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns metadata for a single project when it is accessible to the authenticated public API key. Missing and inaccessible projects both return 404.
Error responses use the standard error body.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” projectId
required
Project identifier
string
Project identifier
Responses
Section titled “ Responses ”Project returned.
Media type application/json
object
project_id
required
Project identifier
string
name
required
Project name
string
is_private
True when only the creator sees the project, rather than the whole workspace. Absent when the API cannot tell.
boolean
workspace_id
required
Workspace identifier
string
created_at
required
number
copy_status
required
copying while a copy’s canvas and media are still being written; it cannot be opened yet. failed when the copy did not finish; retry or delete it in the app. Every other project is ready.
string
Example
{ "project_id": "prj_abc123", "name": "Spring Campaign", "workspace_id": "ws_abc123", "origin": "api", "copy_status": "copying"}