Messages
Handles incoming messages from custom channels. Campaign Assignment Priority - 1. Explicit campaignId (highest priority) 2. Keyword matching (existing logic) 3. Default campaign (fallback). Backwards Compatibility - All new fields are optional. Existing integrations continue to work unchanged.
API key for authentication
your_api_key
Type of message (e.g., text, reaction)
text
Message processed successfully
Invalid request
Unauthorized
Server error
POST /v1/incoming-custom-channel-message HTTP/1.1
Host: api.dmchamp.com
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"customData": {
"messageSid": "msg123",
"fromId": "user123",
"toId": "business456",
"body": "Hello from custom channel",
"status": "received",
"channel": "custom"
},
"messageType": "text"
}
{
"success": true,
"messageId": "1234567890"
}
Alternative endpoint for handling incoming messages from custom channels. Same functionality as /incoming-custom-channel-message. Campaign Assignment Priority - 1. Explicit campaignId (highest priority) 2. Keyword matching (existing logic) 3. Default campaign (fallback). Backwards Compatibility - All new fields are optional. Existing integrations continue to work unchanged.
API key for authentication
your_api_key
Type of message (e.g., text, reaction)
text
Message processed successfully
Invalid request
Unauthorized
Server error
POST /v1/incoming_custom_channel_message HTTP/1.1
Host: api.dmchamp.com
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"customData": {
"messageSid": "msg123",
"fromId": "user123",
"toId": "business456",
"body": "Hello from custom channel",
"status": "received",
"channel": "custom"
},
"messageType": "text"
}
{
"success": true,
"messageId": "1234567890"
}
Send an outbound message to a custom channel contact. Creates contact if it doesn't exist.
API key for authentication
your_api_key
Message sent successfully
Bad request
Unauthorized
Server error
POST /v1/send-custom-channel-message HTTP/1.1
Host: api.dmchamp.com
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"customData": {
"fromId": "user_123",
"customChannel": "telegram",
"body": "Hello! How can I help you today?"
}
}
{
"success": true,
"messageId": "text",
"contactId": "text",
"message": "Message sent successfully"
}
Alternative endpoint for sending outbound messages to custom channel contacts. Same functionality as /send-custom-channel-message. Creates contact if it doesn't exist.
API key for authentication
your_api_key
Message sent successfully
Bad request
Unauthorized
Server error
POST /v1/send_custom_channel_message HTTP/1.1
Host: api.dmchamp.com
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"customData": {
"fromId": "user_123",
"customChannel": "telegram",
"body": "Hello! How can I help you today?"
}
}
{
"success": true,
"messageId": "text",
"contactId": "text",
"message": "Message sent successfully"
}
Was this helpful?