@OmarAlmonte, I am trying to use the Email - Create an Email Record endpoint, but it keeps reporting an Internal Error, although it does not indicate what the issue is.
Internal Server Error: {"code":500,"message":"An unexpected error occurred","status":"Internal Server Error","details":[{"domain":"email","resource":"POST /rest/v2/emails"}]}
I am trying to post the following body.
[
'contact_id' => 968196,
'subject' => 'Test Subject Line',
'sent_to_address' => 'test260606@example.com',
'plain_content' => 'This is a test.'
]
I have tried setting the “sent_time” and “html_content” fields, but same issue is being reported.
Can you please check on your end to see what is going on. If it is working, then what parameters need to be set?
Your team needs to improve the error handling and indicate what the problems are when it processes the request.
In the original post the “plain_content” was not Base 64 Encoded, which caused the problem. After running the test, I could not see the Email due to no date being present.
On upon updating the example with the “sent_time”, it was able to come back with the response.