Skip to main content

Create Project

Register a new project under your organization and configure its database connection:

Request Body

FieldTypeRequiredDescription
namestring✅ YesDisplay name of the project
abbreviationstring✅ YesShort slug — lowercase, no spaces
descriptionstring❌ NoOptional description of the project
database[].hoststring✅ YesDatabase host (e.g. localhost)
database[].portstring✅ YesDatabase port (e.g. 3306 for MySQL)
database[].usernamestring✅ YesDatabase username
database[].passwordstring✅ YesDatabase password
database[].db_namestring✅ YesName of the database to connect
database[].db_typestring✅ YesDatabase engine — e.g. mysql, postgres
database[].connect_timeout_secsinteger✅ YesConnection timeout in seconds
database[].idle_timeout_secsinteger✅ YesIdle connection timeout in seconds
database[].max_open_connectionsinteger✅ YesMax open connections in the pool
database[].max_idle_connectionsinteger✅ YesMax idle connections in the pool

Required Headers

All requests to Minimal must include these headers.

They are mandatory — missing any header results in a 400 Bad Request.

HeaderFormatDescription
X-Org-IdStringOrganization identifier
X-User-IdStringAuthenticated user's identifier
X-Server-KeyStringServer-level auth key — contact your admin
Content-TypeStringMust be application/json

Response

201 Created — project registered successfully:

{
"code": 201,
"status": "Created",
"message": "project created successfully"
}

208 Already Reported — a project with this abbreviation already exists under the org:

{
"code": 208,
"status": "Already Reported",
"message": "project already exists"
}

Common Errors

CodeReason
400Malformed JSON body or missing required field
401Missing X-User-Id or X-Server-Key header
403X-Server-Key is invalid or does not match the org
404X-Org-Id does not correspond to any existing organization
208Project with this abbreviation already exists — safe to proceed