Create a new WhatsApp session
POST/api/sessions
Create a new WhatsApp session
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 503
Session created
Validation failed, the body carries a field the DTO does not declare, or config is over 16384 bytes serialised as JSON.
The API key is missing, unknown, revoked, or expired
Key lacks the OPERATOR role, is restricted to specific sessions, or set proxyUrl without the ADMIN role. Also returned when the API key's role, session or chat scope, or IP allow-list does not allow this operation.
Session name already exists
On SQLite, another database transaction stayed open for 10 s; nothing was stored, so retry.