Skip to main content
POST
/
api
/
v2
/
projects
Create Project
curl --request POST \
  --url https://api.example.com/api/v2/projects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "is_private": false,
  "id": null,
  "freeplay_spend_limit_usd": null,
  "data_retention_days": null,
  "enable_eval_insights": true,
  "enable_review_insights": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "is_private": true,
  "freeplay_spend_limit_usd": 123,
  "data_retention_days": 123,
  "enable_eval_insights": true,
  "enable_review_insights": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
is_private
boolean
default:false
id
string<uuid> | null
freeplay_spend_limit_usd
integer | null
data_retention_days
integer | null
enable_eval_insights
boolean
default:true
enable_review_insights
boolean
default:true

Response

201 - application/json

ProjectDetail(id: uuid.UUID, name: str, is_private: bool, freeplay_spend_limit_usd: Optional[int], data_retention_days: Optional[int], enable_eval_insights: bool, enable_review_insights: bool)

id
string<uuid>
required
name
string
required
is_private
boolean
required
freeplay_spend_limit_usd
integer | null
required
data_retention_days
integer | null
required
enable_eval_insights
boolean
required
enable_review_insights
boolean
required