## Create a project

`client.projects.create(ProjectCreateParamsbody, RequestOptionsoptions?): ProjectCreateResponse`

**post** `/projects`

Creates a new Flora project in the requested workspace. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.

### Parameters

- `body: ProjectCreateParams`

  - `name: string`

    Project name

  - `workspace_id: string`

    Workspace identifier

### Returns

- `ProjectCreateResponse`

  - `created_at: number`

  - `last_modified: number | null`

  - `name: string`

    Project name

  - `origin: string | null`

    Project origin

  - `project_id: string`

    Project identifier

  - `workspace_id: string`

    Workspace identifier

### Example

```typescript
import FLORA from '@flora-ai/flora';

const client = new FLORA({
  apiKey: process.env['FLORA_API_KEY'], // This is the default and can be omitted
});

const project = await client.projects.create({
  name: 'Spring Campaign',
  workspace_id: 'ws_abc123',
});

console.log(project.project_id);
```

#### Response

```json
{
  "created_at": 0,
  "last_modified": 0,
  "name": "Spring Campaign",
  "origin": "api",
  "project_id": "prj_abc123",
  "workspace_id": "ws_abc123"
}
```
