Skip to main content
This endpoint creates a new project and registers the authenticated user as its administrator. The project name is required; description and domain are optional. After creation the caller is automatically recorded in a UserProjectMapping with privilege=1 (Admin), granting them full control over the project including SDK key management.
The caller becomes the sole Admin of the project at creation time. Additional members can be added separately via the project membership endpoints.

Request

Method: POST
URL: http://localhost:8000/api/project/v1/create/
Authentication: X-OTAS-USER-TOKEN header

Headers

string
required
Signed JWT returned by /api/user/v1/login/ or /api/user/v1/create/.

Body parameters

string
required
Human-readable name for the project (max 255 characters).
string
Optional short description of the project (max 300 characters).
string
Optional URL of the project’s primary domain (e.g. https://myapp.example.com).

Response

integer
required
1 on success, 0 on failure.
string
required
project_created on success.
object

Example

Error responses