API → Orgs → Create an org
Parameters
Name
Type
Req.
bodyapplication/json
objectoptionalObject Properties
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
missing_payment_method
: The user is missing a payment method and has exceeded their free API call credits for the month.payment_method_failed
: The users payment method has failed.
post
/org$ curl -X POST "https://api.zoo.dev/org" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "RmTiOMExO@ocCy.com",
"domain": "n4S2YiB4SlNpeC0VAmXaP9z",
"image": "https://PKe667iF..com/T8aLBCAHPDW/Yfjmh",
"name": "acCftR6AzKThs8g",
"phone": "+1-574-817-8364"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "m6VzfJ4z7@4.com",
"billing_email_verified": "2025-01-07T17:16:56.166Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2025-01-07T17:16:56.166Z",
"domain": "",
"id": "dcaf7072-145f-40f3-bf24-996d2f34e26d",
"image": "https://6yYh3kMJ0AYx.8nKCEyUEGwKa.com/BhWp/OQ",
"name": "1hlGYsRxC1",
"phone": "+1-321-739-3377",
"stripe_id": "LUte0QNXRAb9akgPzaMtFTP",
"updated_at": "2025-01-07T17:16:56.166Z"
}