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": false,
"billing_email": "hh@wQgym.com",
"domain": "HZKasw5tT",
"image": "https://pL9W7Q.oOA.com/N3U/",
"name": "bolJ12qgCSHFG1Ia",
"phone": "+1-732-312-4386"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "3EEl@sWsbyaO.com",
"billing_email_verified": "2024-12-19T17:49:01.795Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2024-12-19T17:49:01.795Z",
"domain": "LZY6nZcXiY3f9rb4bKjMCscDp",
"id": "82330bee-1c5e-4108-a2ce-6387bb9a9f18",
"image": "https://z9kc.KMhygx9Q3KZ4.com/hYvJAIqb/lH45DnpTI9C",
"name": "YBlBcLpE8IZCGMnzI1697DI1wz",
"phone": "+1-228-756-8548",
"stripe_id": "",
"updated_at": "2024-12-19T17:49:01.795Z"
}