Actions138
- API Key Actions
- Automation Rule Actions
- Call Actions
- Catalog Actions
- Channel Actions
- Chat Actions
- Contact Actions
- Group Actions
- Label Actions
- Media Actions
- Message Actions
- Observability Actions
- Presence Actions
- Profile Actions
- Session Actions
- Status Actions
- System Actions
- Template Actions
- Webhook Actions
Session → Create
AI-generatedSummary
Create a named OpenWA session, optionally applying JSON configuration and an egress proxy URL. The session name is required; proxy and configuration are sent only when provided.
Inputs
- sessionName (required) — Unique session name; the UI documents 3–50 characters using letters, numbers, and hyphens. The handler trims the value before sending it.
- sessionConfig — Optional JSON object. The server reads
autoRejectCalls(Baileys only),maxReconnectAttempts, andreconnectBaseDelay; other keys are ignored. The reconnect settings bound the gateway's reconnect attempts and delay. - proxyUrl — Optional full proxy URL using
http,https,socks4, orsocks5, up to 255 characters. It is supplied at creation so the session uses it when started; proxy authentication support depends on the engine and scheme.
Output shape
A single item containing the API response for the created session.
The operation creates the session through the session request handler. It does not start the session; use the session Start operation separately.