﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
canonical_url: "https://docs.composio.dev/reference/api-reference/projects/postOrgOwnerProjectNew"
markdown_url: "https://docs.composio.dev/reference/api-reference/projects/postOrgOwnerProjectNew.md"
product: "platform"
version: "3.1"
last_updated: null
---

# Create a new project

**Documentation:** /reference/api-reference/projects/postOrgOwnerProjectNew

> **API version:** This page documents Composio REST API v3.1, the current version, at `https://backend.composio.dev/api/v3.1`. `https://backend.composio.dev/api/v3` is the previous version and remains supported.

Creates a new project within the authenticated user's organization using the specified name. Projects are isolated environments within your organization, each with their own API keys, webhook configurations, and resources. Use this endpoint to create additional projects for different environments (e.g., development, staging, production) or for separate applications.

---

## POST `/api/v3.1/org/owner/project/new`

**Endpoint:** `https://backend.composio.dev/api/v3.1/org/owner/project/new`

**Summary:** Create a new project

Creates a new project within the authenticated user's organization using the specified name. Projects are isolated environments within your organization, each with their own API keys, webhook configurations, and resources. Use this endpoint to create additional projects for different environments (e.g., development, staging, production) or for separate applications.

### Authentication

**OrgApiKeyAuth** - API Key in `header` header `x-org-api-key`

### Request Body

**Schema:**

- `name` (string) *(required)*: A unique name for your project that follows the required format rules
- `should_create_api_key` (boolean): Whether to create an API key for the project. If true, the API key will be created and returned in the response.
- `api_key_allowed_ips` (array<string (ip)>): IPv4 or IPv6 addresses allowed to use the project API key. Requires should_create_api_key to be true. Omit to allow requests from any IP address.
- `api_key_permissions` (array<object>): Permission levels for the project API key. Requires should_create_api_key to be true. Omit to create a full-access API key.
  - Array items:
    - `preset` (enum: "tools" | "tool_execution" | "proxy_execute" | ...) *(required)*
    - `access` (enum: "none" | "read" | "write" | ...) *(required)*
- `config` (object): Configuration for the project. Use display_name and logo_url to brand the hosted Connect Link page. Use zdr_enabled for Zero Data Retention; log_visibility_setting remains supported for existing clients. Do not send both fields.
  - `is_2FA_enabled` (boolean)
  - `logo_url` (string): URL of the logo shown to end users on the hosted Connect Link page. Use a publicly reachable https image URL. The Composio logo is shown when omitted.
  - `display_name` (string): App name shown to end users on the hosted Connect Link page, up to 75 characters. The page shows Composio when omitted.
  - `mask_secret_keys_in_connected_account` (boolean)
  - `log_visibility_setting` (enum: "show_all" | "dont_store_data")
  - `is_composio_link_enabled_for_managed_auth` (boolean): Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key.
  - `signed_url_file_expiry_in_seconds` (number)
  - `oauth_callback_verifier_url` (string,null (uri)): Developer-hosted OAuth callback verifier URL. Setting it enables per-user callback identity verification; null disables it. Must be https and pass SSRF checks.
  - `theme` (object): Link-auth theme for the hosted connect page. Opaque to the API; the dashboard owns the token vocabulary and all value validation.
    - `[key: string]` (any)
  - `enable_instant` (boolean): Enable Instant Toolkits for this project.
  - `zdr_enabled` (boolean): Enable Zero Data Retention for the new project. Hobby cannot enable it. Enterprise defaults to enabled; other paid plans default to disabled. An explicit value overrides the default.

**Example:**

```json
{
  "name": "string",
  "should_create_api_key": false,
  "api_key_allowed_ips": [
    "string"
  ],
  "api_key_permissions": [
    {
      "preset": "tools",
      "access": "none"
    }
  ],
  "config": {
    "is_2FA_enabled": true,
    "logo_url": "string",
    "display_name": "string",
    "mask_secret_keys_in_connected_account": true,
    "log_visibility_setting": "show_all",
    "is_composio_link_enabled_for_managed_auth": true,
    "signed_url_file_expiry_in_seconds": 1,
    "oauth_callback_verifier_url": null,
    "theme": {
      "key": null
    },
    "enable_instant": true,
    "zdr_enabled": true
  }
}
```

### Responses

#### 200 - Project successfully created. Returns the complete project object with generated IDs, webhook secrets, and configuration.

**Response Schema:**

- `id` (string (projectId)) *(required)*: Unique identifier for the project
- `name` (string): Name of the project
- `api_key` (string,null) *(required)*: API key for the project

**Example Response:**

```json
{
  "id": "string",
  "name": "string",
  "api_key": null
}
```

#### 400 - Bad request. This may occur if the project name format is invalid, too short, or contains invalid characters.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 401 - Unauthorized. Authentication is required or the provided credentials are invalid.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 403 - Forbidden. The org API key's owner is not an org admin, or Zero Data Retention requires a paid plan.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 409 - Conflict. A project with this name already exists in the organization.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

#### 500 - Internal server error. An unexpected error occurred while processing the request.

**Response Schema:**

- `error` (object) *(required)*
  - `message` (string) *(required)*
  - `code` (number) *(required)*
  - `slug` (string) *(required)*
  - `status` (number) *(required)*
  - `request_id` (string)
  - `suggested_fix` (string)
  - `errors` (array<string>)

### Example requests

Python uses `requests`; TypeScript uses Node.js fetch. Replace sample IDs and values before sending these requests.

Set `COMPOSIO_ORG_API_KEY` before running these requests.

#### Python

```python
import os
import requests
import json

response = requests.request("POST", "https://backend.composio.dev/api/v3.1/org/owner/project/new",
    headers={"Content-Type": "application/json", "x-org-api-key": os.environ["COMPOSIO_ORG_API_KEY"]},
    json=json.loads("{\"name\":\"string\",\"should_create_api_key\":false,\"api_key_allowed_ips\":[\"string\"],\"api_key_permissions\":[{\"preset\":\"tools\",\"access\":\"none\"}],\"config\":{\"is_2FA_enabled\":true,\"logo_url\":\"string\",\"display_name\":\"string\",\"mask_secret_keys_in_connected_account\":true,\"log_visibility_setting\":\"show_all\",\"is_composio_link_enabled_for_managed_auth\":true,\"signed_url_file_expiry_in_seconds\":1,\"oauth_callback_verifier_url\":null,\"theme\":{\"key\":null},\"enable_instant\":true,\"zdr_enabled\":true}}"))
response.raise_for_status()
print(response.text)
```

#### TypeScript

```typescript
const response = await fetch("https://backend.composio.dev/api/v3.1/org/owner/project/new", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-org-api-key": process.env["COMPOSIO_ORG_API_KEY"]! },
  body: JSON.stringify({
  "name": "string",
  "should_create_api_key": false,
  "api_key_allowed_ips": [
    "string"
  ],
  "api_key_permissions": [
    {
      "preset": "tools",
      "access": "none"
    }
  ],
  "config": {
    "is_2FA_enabled": true,
    "logo_url": "string",
    "display_name": "string",
    "mask_secret_keys_in_connected_account": true,
    "log_visibility_setting": "show_all",
    "is_composio_link_enabled_for_managed_auth": true,
    "signed_url_file_expiry_in_seconds": 1,
    "oauth_callback_verifier_url": null,
    "theme": {
      "key": null
    },
    "enable_instant": true,
    "zdr_enabled": true
  }
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

#### API

```bash
curl -X POST "https://backend.composio.dev/api/v3.1/org/owner/project/new" \
  -H "x-org-api-key: $COMPOSIO_ORG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "should_create_api_key": false,
    "api_key_allowed_ips": [
      "string"
    ],
    "api_key_permissions": [
      {
        "preset": "tools",
        "access": "none"
      }
    ],
    "config": {
      "is_2FA_enabled": true,
      "logo_url": "string",
      "display_name": "string",
      "mask_secret_keys_in_connected_account": true,
      "log_visibility_setting": "show_all",
      "is_composio_link_enabled_for_managed_auth": true,
      "signed_url_file_expiry_in_seconds": 1,
      "oauth_callback_verifier_url": null,
      "theme": {
        "key": null
      },
      "enable_instant": true,
      "zdr_enabled": true
    }
  }'
```

---

## REST API version

The current REST API version is **v3.1**, served at `https://backend.composio.dev/api/v3.1`. Prefer it for new code and new examples.

`https://backend.composio.dev/api/v3` is the previous version. It is frozen with pinned tool-version defaults and remains supported — existing v3 integrations keep working and do not need to migrate.