Hi All,
I’m trying to register a custom channel following the docs mentioned here.
I’m trying to hit the POST API with the following payload
{ "name": "Test Local HS Channel", "webhookUrl": "<some url>", "capabilities": { "threadingModel": "DELIVERY_IDENTIFIER", "deliveryIdentifierTypes": [ {"type":"HS_EMAIL_ADDRESS","value":"<some email"} ], "richText": [ "HYPERLINK", "TEXT_ALIGNMENT", "BLOCKQUOTE", "BOLD", "ITALIC", "LISTS" ], "allowInlineImages": false, "allowOutgoingMessages": true, "outgoingAttachmentTypes": [ "FILE" ], "allowedFileAttachmentMimeTypes": [ "image/png" ], "maxFileAttachmentCount": 1, "maxFileAttachmentSizeBytes": 1500000, "maxTotalFileAttachmentSizeBytes": 1500000 }, "channelAccountConnectionRedirectUrl": "<some url>", "channelDescription": "Respond to prioritized messages via our custom channel", "channelLogoUrl": "<some url>" }
I’m getting the following validation error
{ "status": "error", "message": "One or more Channel Capabilities specified had invalid values: "deliveryIdentifierTypes": "[{"type":"HS_EMAIL_ADDRESS","value":"<some email"}]"", "correlationId": "0e2b1c3c-6874-4878-9821-826922c48a4f", "context": { "capabilityKeysAndValues": [ "\"deliveryIdentifierTypes\": \"[{\"type\":\"HS_EMAIL_ADDRESS\",\"value\":\"<some email\"}]\"" ] }, "category": "VALIDATION_ERROR", "subCategory": "CustomChannelsError.INVALID_CHANNEL_CAPABILITY_VALUES" }
I’ve tried multiple different types for the deliveryIdentifierTypes property, but nothing seems to be working
"deliveryIdentifierTypes": [ { "type": "HS_EMAIL_ADDRESS", "value": "<some email>//used the correct email here" } ],
"deliveryIdentifierTypes": [ "EMAIL"]
"deliveryIdentifierTypes": [ { "type": "DELIVERY_IDENTIFIER", "value": "thread_id" } ],
Can someone please help me out with what I’m doing wrong?