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:POSTURL:
http://localhost:8000/api/project/v1/create/Authentication:
X-OTAS-USER-TOKEN header
Headers
Signed JWT returned by
/api/user/v1/login/ or /api/user/v1/create/.Body parameters
Human-readable name for the project (max 255 characters).
Optional short description of the project (max 300 characters).
Optional URL of the project’s primary domain (e.g.
https://myapp.example.com).Response
1 on success, 0 on failure.project_created on success.Example
Error responses
status_description | HTTP status | Cause |
|---|---|---|
missing_token | 400 | The X-OTAS-USER-TOKEN header was absent. |
invalid_token | 401 | The token is malformed, expired, or not associated with a user. |
project_creation_failed | 400 | Payload validation failed or project_name was missing. |
project_creation_failed | 500 | Unexpected server-side error during project creation. |