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": "4j1D@EABtT.com",
"domain": "ajah3sI6893JoZCqk5PyHwYn0qk",
"image": "https://SN.t5kK0RyIAW.com/XXv/E",
"name": "t3ZlcYmfi",
"phone": "+1-469-514-9573"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "GQAKXEGZ@xDEhhoMD.com",
"billing_email_verified": "2024-12-06T17:02:40.784Z",
"block": "missing_payment_method",
"can_train_on_data": true,
"created_at": "2024-12-06T17:02:40.784Z",
"domain": "8coFPVBoiDactOsCzwUb6Kl7oU",
"id": "9981cc75-bed1-46ec-b207-62d3980173b6",
"image": "https://Y8h0YxemkcoR.lYdd62C.com/qZGb/GhUQH",
"name": "hYO",
"phone": "+1-128-562-8041",
"stripe_id": "tQUG0HHbqaZrXe5",
"updated_at": "2024-12-06T17:02:40.784Z"
}