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": "jjD0uu34Rq@.com",
"domain": "Bpnm1eYTP4r",
"image": "https://7p2.53XOlXc.com/cwwWS3o/RMTMlNTKc3",
"name": "lAcUQag",
"phone": "+1-822-324-2566"
}'
201 Created
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "QFhqv@aJ.com",
"billing_email_verified": "2025-02-11T16:12:20.551Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2025-02-11T16:12:20.551Z",
"domain": "CrQOHi2xJKRGJFaZNFxNlvNj0A7C",
"id": "52e9f7bb-e298-4778-a1ac-99218c2c07c3",
"image": "https://Q.3706H5QOD.com/kQ5aFXS/uoHXBOhlVuq",
"name": "EjGM5ysG4nR24c68GqExnf",
"phone": "+1-838-249-9885",
"stripe_id": "QkdJVpO6Siwj1",
"updated_at": "2025-02-11T16:12:20.551Z"
}