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": "8ZAeylV9Zg@nwe0ZmAT.com",
"domain": "UP7PmHM",
"image": "https://EllCPBs2O.hNYB.com/eYIvYAibO0/00Rc4Xz28sDc",
"name": "A",
"phone": "+1-886-521-4812"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "f@.com",
"billing_email_verified": "2024-09-19T16:12:02.721Z",
"block": "payment_method_failed",
"can_train_on_data": false,
"created_at": "2024-09-19T16:12:02.721Z",
"domain": "pu1R8lkHeJcyGxMrOA2cg",
"id": "e40065df-275a-4c2e-83b6-23ca842ab52c",
"image": "https://Nc03vSwo.5R.com/L7Rgc5/M1QwZac",
"name": "cWTADxsc6j3",
"phone": "+1-531-400-2304",
"stripe_id": "O6i2A6W5zyVgm",
"updated_at": "2024-09-19T16:12:02.721Z"
}