Skip to main content
Solved

Images not loaded in email via API

  • August 1, 2025
  • 1 reply
  • 70 views

s5der_clothing
Forum|alt.badge.img+1

 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.

Best answer by justin

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

1 reply

justin
Forum|alt.badge.img+8
  • Fronteer
  • Answer
  • August 1, 2025

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