Skip to main content

 I have an image in signature. When sending from admin image is shown correctly and has attribute data-image-whitelisted. But when using API it is broken

from API
$url = 'https://api2.frontapp.com/channels/' . $channel_id . '/messages';

$body = array(
'to' => array( $to ),
'subject' => $subject,
'body' => $content,
'text' => wp_strip_all_tags( $content ),
'options' => array(
'archive' => false,
),
'author_id' => 'tea_j7twg',
'signature_id' => $signature_id,
);

$args = array(
'method' => 'POST',
'headers' => array(
'Authorization' => 'Bearer ' . $api_token,
'Content-Type' => 'application/json',
// 'Content-type' => 'multipart/form-data',
),
'body' => wp_json_encode( $body ),
'timeout' => 30,
);

 

from admin

I know also that if omit author_id, email always in spam.

Hi ​@s5der_clothing
 

Thanks for bringing this to the community forum.

We've been unable to reproduce this behavior on our end, but we're definitely happy to help you investigate what's going on.

Troubleshooting API issues like this requires us to look at specific, private information (like message IDs and your application's outbound API logs) that isn't suitable to share here in a public forum.

We've already reached out to you directly via a private message for next steps to assist. Please follow those instructions and our team will be happy to take a closer look with you! 

Best, 
Justin


Reply