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": "Ozm@LDi9WSfJ.com",
"domain": "eJPcVl3vxF",
"image": "https://nXF5C.be8tRDZR.com/IZ/b1Qhpka3",
"name": "KVps7NVgBff",
"phone": "+1-996-592-6888"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "vbED@bdXG.com",
"billing_email_verified": "2024-07-27T01:15:50.037Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2024-07-27T01:15:50.037Z",
"domain": "fSfZHghAGtNUoTBO1V2gy2oZFuNgmk",
"id": "b2428f9a-3233-47d6-906d-0aa847490b4e",
"image": "https://mf1V2rhgV.aXJr.com/w2mXL/5pgcpzV3bW9x",
"name": "xpzghli1cK",
"phone": "+1-401-428-4605",
"stripe_id": "dXwZCJZ8UBK4RQlibchO",
"updated_at": "2024-07-27T01:15:50.037Z"
}