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": "BrU@BT.com",
"domain": "YOvzFy3t",
"image": "https://w.FrY.com/N/V",
"name": "NClVi29N",
"phone": "+1-655-219-6900"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "073@BAvKb1Rz.com",
"billing_email_verified": "2025-01-17T16:13:09.824Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2025-01-17T16:13:09.824Z",
"domain": "8opa0E8Kq6qS83Bno6tY4hf",
"id": "7ffa689c-6c12-4cc4-856c-7b4af54ef077",
"image": "https://F9qLz.JqJYNVGbX1S8.com/RYQ2G7w/g1",
"name": "INaB5JQha2ppuyPC9f2GbyqHP55",
"phone": "+1-274-533-6897",
"stripe_id": "3lpH",
"updated_at": "2025-01-17T16:13:09.824Z"
}