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": "@PXo5FM.com",
"domain": "XnUQjerEZ839X0oVxTz",
"image": "https://hObzIMIMMh.mDBF.com/rl2H3L/znL7mvoZA0",
"name": "f1ojR",
"phone": "+1-239-858-4658"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "OHRUKT@BWjcQVPvX.com",
"billing_email_verified": "2025-02-21T16:37:27.303Z",
"block": "missing_payment_method",
"can_train_on_data": true,
"created_at": "2025-02-21T16:37:27.303Z",
"domain": "sxr9YkflsrEK8z3AsFLjMrSBuXQ1s9",
"id": "3891646b-5250-4718-a9e6-3afc23de184c",
"image": "https://dcgt.r8zo3kDs.com/cF3SguxRRI3g/B9",
"name": "wZ09vkTVa",
"phone": "+1-878-896-4300",
"stripe_id": "EeQmyozDdu2H6wVW4RTGpalt7nAzBk",
"updated_at": "2025-02-21T16:37:27.303Z"
}