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.
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).