I am trying to make a rest call to ExactTarget to preview Email. But the REST API is not returning the response for all the Emails on ExactTarget. Sometimes the API does return Email for preview while at other times it returns 500 Server Error.
I am calling
https://www.exacttargetapis.com/guide/v1/emails/{ET email id}/preview
API using:
curl -X POST -H "Authorization: Bearer {access token}" -H "Cache-Control: no-cache" https://www.exacttargetapis.com/guide/v1/emails/{ET email id}/preview?kind=html,text
but I get
{
"documentation": "https://code.docs.exacttarget.com/rest/errors/500",
"errorcode": 0,
"message": "Internal Server Error"
}
in response for few Emails ids (not for all Emails on ExactTarget). I am using Email id which is shown in the ExactTarget Web UI.
And I also ensured that access token is valid using "/platform/v1/tokenContext/ " API.
So can anyone help me understand how does this API work and under what conditions do I get these kind responses? Also it will be great help if you could direct me to a list of ExactTarget REST API's and its proper documentation.