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": "abN96fCy@N9LoLkCz.com",
"domain": "FF12N3fVcEn96Hy",
"image": "https://dorwVVL.6OH.com/jI/IA9y3",
"name": "ydxEfH17Erkw2HCWKgVuXwsKEODX",
"phone": "+1-290-536-4088"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "@.com",
"billing_email_verified": "2025-01-09T18:26:01.756Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2025-01-09T18:26:01.756Z",
"domain": "XsCe30906loxeMPT9tCBtWmQ",
"id": "9dd72930-36f0-4248-9d22-5cddb51147af",
"image": "https://wms8h.51SpSarw.com/J6AEN/DA8OQcmPYcQ",
"name": "t2629Gvl5qo15otnOO5alUEt",
"phone": "+1-284-462-7506",
"stripe_id": "1KuCmRDHsjZ",
"updated_at": "2025-01-09T18:26:01.756Z"
}