Actions164
- API Key Actions
- Automation Rule Actions
- Call Actions
- Catalog Actions
- Channel Actions
- Chat Actions
- Contact Actions
- Group Actions
- Add Participants
- Approve Membership Requests
- Create
- Delete Picture
- Demote Participants
- Get
- Get Invite Code
- Get Join Info
- Get Membership Requests
- Get Picture
- Get Settings
- Join
- Leave
- List
- Promote Participants
- Reject Membership Requests
- Remove Participants
- Revoke Invite Code
- Set Member Label
- Set Picture
- Update Description
- Update Settings
- Update Subject
- 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 new WhatsApp session with a unique session name, optionally configuring session parameters and specifying a proxy URL.
Inputs
- Session Name (required) — Unique name for the session (3–50 characters; letters, numbers, and hyphens only).
- Session Config (JSON) — Optional session config as a JSON object (at most 16384 bytes when serialized as JSON). The server reads exactly four keys and silently ignores anything else: autoRejectCalls (boolean, default false, Baileys only), maxReconnectAttempts (0-20, default unlimited), reconnectBaseDelay (1000-300000 ms, default 5000) and linkPreview (boolean, default unset: the preview of a Send Text or Send Template that sets none; needs OpenWA 0.30.3 or later, and an older server stores it and ignores it). The two reconnect keys bound only the gateway's own reconnect: on Baileys the engine retries a transient drop itself, with its own backoff and no cap. On OpenWA 0.24.0 or later, invalid values for these keys are rejected at creation. Reconnect changes apply from the next Start; autoRejectCalls applies to the next incoming call and linkPreview to the next send. A proxy belongs in the Proxy URL field and requires ADMIN, not in config. Example: {"autoRejectCalls":true,"maxReconnectAttempts":5}
- Proxy URL — Optional egress proxy URL for the session (http, https, socks4, or socks5 scheme, max 255 characters). Credentials supported on Baileys for http, https, socks5; SOCKS4 cannot authenticate. Proxy changes take effect on next session start. Requires ADMIN API key to set.
Output shape
a single record
Upon successful creation, returns details about the new session, excluding sensitive proxy credentials. Session Config keys invalid values cause rejection (OpenWA ≥ 0.24.0). Proxy URL setting requires ADMIN key and does not restart session immediately, taking effect on next start.