Connect a channel
connectLink a messaging account to Parley by starting an authorization flow; open the returned URL to scan a QR or authorize, then poll the returned ID for status.
Instructions
Start linking a messaging account (e.g. WhatsApp) to Parley. You can link several on one channel (another WhatsApp number is just another connect); linking a number that is already linked replaces the old link. Returns a link URL to open in a browser (scan the QR / authorize), and a connection id to poll with connection_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Channel id, e.g. "whatsapp". Use list_channels to see options. | |
| country | No | ISO country code the account lives in, e.g. "GB". Picks a proxy exit there; learned from the phone number when omitted. | |
| timezone | No | IANA time zone the account holder lives in, e.g. "Europe/London". Messages go out during their local daytime. Defaults to UTC. |