Skip to main content
POST
/
project
curl -X POST https://api.ubicloud.com/project \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-project-name"
  }'
{
  "id": "pjkkmx0f2vke4h36nk9cm8v8q0",
  "name": "my-project-name",
  "credit": 0.0,
  "discount": 0
}
Creates a new project with the specified name.

Request Body

name
string
required
Name for the new project. Must match pattern: ^[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?$
  • Must start and end with alphanumeric characters
  • Can contain hyphens in the middle
  • Maximum length: 63 characters
Example: my-project-name

Response

id
string
required
Unique identifier for the created project (format: pj followed by 24 characters)Example: pjkkmx0f2vke4h36nk9cm8v8q0
name
string
required
Name of the projectExample: my-project
credit
number
required
Remaining credit for the project in USDExample: 25.4
discount
integer
required
Discount percentage applied to the projectExample: 10
curl -X POST https://api.ubicloud.com/project \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-project-name"
  }'
{
  "id": "pjkkmx0f2vke4h36nk9cm8v8q0",
  "name": "my-project-name",
  "credit": 0.0,
  "discount": 0
}

Build docs developers (and LLMs) love