WhatsApp Web
Authorizations
apiKeystringRequired
Your DM Champ API key. Obtain from Settings → API Keys.
Query parameters
apiKeystringOptionalExample:
API key for authentication. At least one of apiKey or userId is required for protected endpoints.
your_api_keyBody
phoneNumberstringRequiredExample:
Recipient's phone number in E.164 format (e.g., +1234567890)
+1234567890Pattern: ^[+][1-9][0-9]{1,14}$messagestringRequiredExample:
Message text. Will be automatically split by double newlines into separate messages.
Hey Sohaib! 👋 Great news about your feature request! I'll let you know when it's live!Responses
200
Message(s) sent successfully
application/json
successbooleanOptionalExample:
truecontactIdstringOptionalExample:
ID of the contact (created or existing)
contact123messagesSentintegerOptionalExample:
Number of message chunks successfully sent
3totalChunksintegerOptionalExample:
Total number of chunks the message was split into
3messageIdsstring[]OptionalExample:
Array of message IDs for each sent chunk
["msg1","msg2","msg3"]creditsUsedintegerOptionalExample:
Total credits deducted (always 1 per message, regardless of chunks)
1400
Bad request - Invalid input
application/json
401
Unauthorized - Invalid API key
application/json
402
Payment required - Insufficient credits
application/json
500
Internal server error
application/json
post
/whatsapp-web/sendLast updated
Was this helpful?

