Allow orgs to own teams
Set org level budgets + model access.
Only admins can create orgs.
/organization/new
.Case 1: Create new org without a budget_id
curl --location 'http://0.0.0.0:4000/organization/new'
--header 'Authorization: Bearer sk-1234'
--header 'Content-Type: application/json'
--data '{
"organization_alias": "my-secret-org",
"models": ["model1", "model2"],
"max_budget": 100
}'
Case 2: Create new org with a budget_id
curl --location 'http://0.0.0.0:4000/organization/new'
--header 'Authorization: Bearer sk-1234'
--header 'Content-Type: application/json'
--data '{
"organization_alias": "my-secret-org",
"models": ["model1", "model2"],
"budget_id": "428eeaa8-f3ac-4e85-a8fb-7dc8d7aa8689"
}'
Successful Response