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": "TcWH@jCZiY.com",
"domain": "Sys5LjiXT5xGCZiStnv85pX9zFuC",
"image": "https://nnMPm.2nP.com/03LrfhpBZg/m",
"name": "r",
"phone": "+1-606-386-7916"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "0Gv8eE@1Fvgs.com",
"billing_email_verified": "2024-10-21T17:59:26.976Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2024-10-21T17:59:26.976Z",
"domain": "DrqKRwIu5T2R2EDcBli6wxyyMZQ1O",
"id": "6539104b-1fe4-4df1-a91d-bd94b63f0162",
"image": "https://qGeQTVn8SrJA.Vxt4PUm8I6YA.com/dQdMQCXr9/KTLOvY",
"name": "vPkQe7HhTpJJemL",
"phone": "+1-385-884-2943",
"stripe_id": "OqC",
"updated_at": "2024-10-21T17:59:26.976Z"
}