/v1/sessionsCreate session
Creates a Cloud session and routes it through the manager to a dedicated container.
{
"runtime": "wppconnect-server-go",
"provider": "go",
"webhookUrl": "https://example.com/webhook"
}API REFERENCE
Create a session, pair your number using a QR code and integrate messages over HTTP. You need active access and a key with the scopes required by each operation. The plan includes one connection.
Base URL
https://cloud.wppconnect.io/apiSend your key in the Authorization header with every request. Keep the secret on your application server.
Authorization: Bearer YOUR_KEY
Content-Type: application/jsonManage keysRun the example in your environment. Save the returned sessionId and use it to retrieve the QR code and status. Creation uses provider=go and runtime=wppconnect-server-go.
curl -X POST "https://cloud.wppconnect.io/api/v1/sessions" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "go",
"runtime": "wppconnect-server-go",
"waitQrCode": false
}'Append the paths below to the base URL. Replace {sessionId} with your session identifier.
/v1/sessionsCreates a Cloud session and routes it through the manager to a dedicated container.
{
"runtime": "wppconnect-server-go",
"provider": "go",
"webhookUrl": "https://example.com/webhook"
}/v1/sessions/{sessionId}/startRestarts a closed session to generate a fresh QR code without consuming another connection.
/v1/sessions/{sessionId}Retrieves the session state, provider, runtime, worker and metadata.
/v1/sessions/{sessionId}/qrcodeReturns a PNG image when the session is waiting for pairing.
/v1/sessions/{sessionId}/send-textSends a text message to a WhatsApp number.
{ "phone": "5511999999999", "message": "Hello from WPPConnect Cloud" }/v1/sessions/{sessionId}/send-mediaSends an image, video, audio or document using a URL/base64, depending on provider support.
{
"phone": "5511999999999",
"url": "https://example.com/file.png",
"caption": "File sent from Cloud"
}/v1/sessions/{sessionId}/send-locationSends latitude, longitude and a description when supported by the provider.
/v1/sessions/{sessionId}/check-numberChecks whether a number can receive WhatsApp messages.
/v1/sessions/{sessionId}/logoutDisconnects WhatsApp. To free your connection and create another session, delete the session using DELETE.
/v1/sessions/{sessionId}Removes the session and frees the connection for new pairing.
Provide webhookUrl when creating the session. Your endpoint must accept integration events. Each event's availability depends on the feature used.
session.qrcodesession.connectedsession.disconnectedmessage.receivedmessage.sentmessage.ackgroup.createderror.provider_not_supported{
"event": "message.received",
"sessionId": "session_123",
"provider": "go",
"runtime": "wppconnect-server-go",
"data": {}
}Check the HTTP status and error field before continuing. Unavailable operations return an error response rather than simulating success.
{
"success": false,
"error": {
"code": "PROVIDER_CAPABILITY_NOT_SUPPORTED",
"message": "Feature unavailable for this operation.",
"status": 501
}
}