Team
Create a workspace
Creates a workspace and makes the signed-in user its owner. API keys are not accepted.
- Console only: signed-in session
Headers
CookiestringrequiredThe
whatsappx_sessioncookie the app sets when you sign in. Browsers send it automatically; API keys are not accepted on this endpoint.
Body
application/jsonnamestringrequiredWorkspace name.
timezonestringoptionalOptional. Your browser’s IANA time zone. With
locale, the new workspace’s billing country is decided from your IP address first, then these. Without either, the workspace gets the billing country of your first workspace.localestringoptionalOptional. Your browser’s language tag. See
timezone.
Response
201 Createdapplication/json
iduuidWorkspace id. Send it as
X-Tenant-ID.namestringWorkspace name.
roleenumYour role in the workspace:
owner,adminoragent.
Status codes
- 201Created. The new workspace, with your role
owner. - 400Bad request. The name is empty (
workspace name is required) or the body is not JSON (invalid request). - 401Unauthorized. No signed-in session (
unauthorized).