# Create a new project

> Create a new project in Orangescrum.

> For the complete documentation index, see [llms.txt](https://helpdesk.orangescrum.com/llms.txt).

Source: https://helpdesk.orangescrum.com/guide/api/endpoints/projects/projects-create

---
`POST /api/v1/partner/projects/create`

Create a new project in Orangescrum. All data must be encrypted in the request body.

## Authorizations

- `X-API-KEY` *string* (required) — Developer API key (starts with pk_)

- `X-TIMESTAMP` *integer* (required) — Unix timestamp in seconds (must be within ±5 minutes of server time)

- `X-NONCE` *string* (required) — One-time random string (minimum 8 characters, prevents replay attacks)

- `X-SIGNATURE` *string* (required) — HMAC-SHA256 signature of canonical string (hex-encoded)

## Headers

- `Accept` *string* (required) — Content type of response

- `Content-Type` *string* (required) — Content type of request

## Request body

Encrypted request data containing project details

- `encrypted_data` *string* (required) — Base64-encoded encrypted JSON data. Encryption: AES-256-CBC with 16-byte IV prepended. Key: SHA256 hash of secret key.

## Responses

- **201** — Project created successfully - Returns encrypted project data

- **401** — Unauthorized - Invalid or missing API key

- **422** — Validation error

- **500** — Server error
## Request samples

### cURL

```bash
curl -X POST 'https://v4-api.orangescrum.com/api/v1/partner/projects/create' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: pk_your_api_key' \
  -H 'X-TIMESTAMP: '"$(date +%s)" \
  -H 'X-NONCE: '"$(openssl rand -hex 8)" \
  -H 'X-SIGNATURE: <hmac-sha256>' \
  -d '{"encrypted_data":"<base64-aes-256-cbc-payload>"}'
```

### Python

```python
# call() is defined on the Authentication page.
from orangescrum import call

response = call(
    "/api/v1/partner/projects/create",
    { "name": "Mobile App Development", "priority": "High", "description": "iOS and Android app", "status": "Started", "start_date": "2024-03-01", "end_date": "2024-09-30", "estimated_hours": 1200.0 },
)
print(response)
```

### JavaScript

```javascript
// call() is defined on the Authentication page.
import { call } from './orangescrum.js';

const response = await call('/api/v1/partner/projects/create', { "name": "Mobile App Development", "priority": "High", "description": "iOS and Android app", "status": "Started", "start_date": "2024-03-01", "end_date": "2024-09-30", "estimated_hours": 1200.0 });
console.log(response);
```

### PHP

```php
<?php
// call() is defined on the Authentication page.
require 'orangescrum.php';

$response = call('/api/v1/partner/projects/create', json_decode('{ "name": "Mobile App Development", "priority": "High", "description": "iOS and Android app", "status": "Started", "start_date": "2024-03-01", "end_date": "2024-09-30", "estimated_hours": 1200.0 }', true));
print_r($response);
```

## Example response

```json
{
  "success": true,
  "message": "Project created successfully",
  "data": {
    "project_id": "550e8400-e29b-41d4-a716-446655440001",
    "name": "Mobile App Development",
    "short_name": "MAD",
    "description": "iOS and Android app development",
    "project_type": "Mobile",
    "status": "Planning",
    "isactive": true,
    "start_date": "2024-03-01",
    "end_date": "2024-09-30",
    "estimated_hours": 1200.0,
    "is_favourite": false,
    "dt_created": "2024-02-04 10:30:00",
    "dt_updated": "2024-02-04 10:30:00"
  }
}
```

