Skip to main content
POST
Criar ou iniciar uma sessão do WhatsApp
Uma sessão é um número de WhatsApp gerenciado pela D-API. Use type: "unofficial" para o WhatsApp não oficial (via QR code) ou type: "cloud_api" para a API Oficial. Você pode já configurar o webhookUrl na criação para receber eventos em tempo real (mensagens, status, conexão). Veja a documentação de webhooks.
Escolha um sessionId estável e único por número — ele é usado em praticamente todos os outros endpoints.

Authorizations

Authorization
string
header
required

API Key para autenticação. Formato: <API_KEY>

Body

sessionId
string
Minimum string length: 1
type
Allowed value: "unofficial"
webhookUrl
string
webhookConfig
object
metadata
object
provider
string
Allowed value: "whatsmeow"
connectionMode
Allowed value: "qr"
pairPhone
string
historySync
boolean
ignoreGroups
boolean
ignoreStatus
boolean
wabaId
string
phoneNumberId
string
accessToken
string
businessId
string
displayPhoneNumber
string
verifiedName
string
webhookMode
Allowed value: "normalized"

Response

200

Resposta bem-sucedida