# WhatsApp Widget

## Get WhatsApp Widget

> Returns the HTML for the WhatsApp widget for the specified phone number

```json
{"openapi":"3.1.0","info":{"title":"DM Champ API","version":"1.0.0"},"servers":[{"url":"https://api.dmchamp.com/v1","description":"Production API Server"}],"security":[{"ApiKeyAuth":[]},{"UserIdAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"query","name":"apiKey","description":"Your DM Champ API key. Obtain from Settings → API Keys."},"UserIdAuth":{"type":"apiKey","in":"query","name":"userId","description":"Your DM Champ User ID. Alternative to apiKey authentication. Cannot be used for agency-only endpoints."}}},"paths":{"/whatsapp-widget/{phone}":{"get":{"summary":"Get WhatsApp Widget","description":"Returns the HTML for the WhatsApp widget for the specified phone number","tags":["WhatsApp Widget"],"parameters":[{"name":"phone","in":"path","required":true,"schema":{"type":"string"},"description":"Phone number with country code"}],"responses":{"200":{"description":"HTML content for the WhatsApp widget","content":{"text/html":{"schema":{"type":"string","description":"HTML content"}}}}}}}}}
```

## Get WhatsApp Widget with Message

> Returns the HTML for the WhatsApp widget for the specified phone number and pre-filled message

```json
{"openapi":"3.1.0","info":{"title":"DM Champ API","version":"1.0.0"},"servers":[{"url":"https://api.dmchamp.com/v1","description":"Production API Server"}],"security":[{"ApiKeyAuth":[]},{"UserIdAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"query","name":"apiKey","description":"Your DM Champ API key. Obtain from Settings → API Keys."},"UserIdAuth":{"type":"apiKey","in":"query","name":"userId","description":"Your DM Champ User ID. Alternative to apiKey authentication. Cannot be used for agency-only endpoints."}}},"paths":{"/whatsapp-widget/{phone}/{message}":{"get":{"summary":"Get WhatsApp Widget with Message","description":"Returns the HTML for the WhatsApp widget for the specified phone number and pre-filled message","tags":["WhatsApp Widget"],"parameters":[{"name":"phone","in":"path","required":true,"schema":{"type":"string"},"description":"Phone number with country code"},{"name":"message","in":"path","required":true,"schema":{"type":"string"},"description":"Pre-filled message"}],"responses":{"200":{"description":"HTML content for the WhatsApp widget","content":{"text/html":{"schema":{"type":"string","description":"HTML content"}}}}}}}}}
```
