Create a project
POST
/projects
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const project = await client.projects.create({ workspace_id: 'ws_abc123', name: 'Spring Campaign',});console.log(project);curl -X POST 'https://app.flora.ai/api/v1/projects' \ -H 'Authorization: Bearer $FLORA_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "workspace_id": "ws_abc123", "name": "Spring Campaign"}'Creates a new Flora project in the requested workspace. To file the project into a project folder, use POST /workspaces/{workspace_id}/folders/{folder_id}/projects. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
workspace_id
required
Workspace identifier
string
name
required
Project name
string
Responses
Section titled “ Responses ”Project created.
Media type application/json
object
Example
{ "project_id": "prj_abc123", "name": "Spring Campaign", "workspace_id": "ws_abc123", "origin": "api"}