Discussions

Ask a Question
Back to All

API response missing data

Hi - I am having issues with data being dropped when using the API. When we use this API endpoint: v1/campaigns/{campaign_id}/leads/{lead_id}/message-history, we don't get the full text of email in the email_body field. I'm attaching an example email with the full response below as an example of the API response which is missing data.

Specifically in the below example we're missing data from the email body, it cuts off after "my rates" but the email had more info in it.

ACTUAL EMAIL RESPONSE:

Hi Ann,
I think this would be a really good product for my viewers, given that many work in the copywriting and social media space.
I've grown my audience to over 50,000 people organically, who are all interested in this sphere of work!
My rates are £750, plus £100p/month if usage rights are needed for ads.
Let me know if this works for you, and I'd love to create some content for your brand.
Happy New Year!
Best wishes,
Miranda Pilkington


API RESPONSE:

"email_body": "Hi Ann,\n\nI think this would be a really good product for my viewers, given that many work in the copywriting and social media space.\n\nI've grown my audience to over 50,000 people organically, who are all interested in this sphere of work!\n\nMy rates",

How can I fix or better track when there are errors like this? Please let me know if I can provide any other info that would be helpful to investigate, thanks!

FULL API RESPONSE:

{
"history": [
{
"stats_id": "06b14160-eb2a-4d83-85c4-f4cf1fbeb9f0",
"type": "SENT",
"message_id": "[[email protected]](mailto:[email protected])",
"time": "2024-12-18T19:54:42.309Z",
"email_body": "<div style="-webkit-tap-highlight-color: transparent; box-sizing: inherit;" fr-original-style="">Hey - Sorry for the cold email but your video popped up in my feed and wanted to reach out! I run partnerships at Type, a new AI writing tool. Your content is awesome and I'd love to find a way to work together. Can I send more details on how we're partnering with a handful of creators? Thanks!",
"subject": "paid collab with new AI writing tool",
"email_seq_number": "1",
"open_count": 0,
"click_count": 0,
"click_details": {}
},
{
"stats_id": "5e090c77-f0b4-4587-b091-2de0bbee3312",
"type": "SENT",
"message_id": "[[email protected]](mailto:[email protected])",
"time": "2024-12-19T20:28:33.510Z",
"email_body": "<div fr-original-style="" style="-webkit-tap-highlight-color: transparent; box-sizing: inherit;">hey - just looping back to make sure this is on your radar! Can I send a content brief with more details?",
"subject": "RE: paid collab with new AI writing tool",
"email_seq_number": "2",
"open_count": 0,
"click_count": 0,
"click_details": {}
},
{
"stats_id": "b18c1d89-5c04-4457-ade0-9742c3c41624",
"type": "SENT",
"message_id": "[[email protected]](mailto:[email protected])",
"time": "2024-12-22T21:02:46.186Z",
"email_body": "<div fr-original-style="" style="-webkit-tap-highlight-color: transparent; box-sizing: inherit;">hey - wanted to ping you one last time to make sure this wasn't lost in your inbox! I'd be happy to share more details about how we can collab, let me know if you're open to it. Thanks!",
"subject": "RE: paid collab with new AI writing tool",
"email_seq_number": "3",
"open_count": 3,
"click_count": 0,
"click_details": {}
},
{
"stats_id": "b18c1d89-5c04-4457-ade0-9742c3c41624",
"type": "REPLY",
"message_id": "CAHX9_857S141ELbQQnfdk21iDQzv9Z=[[email protected]](mailto:[email protected])",
"time": "2024-12-24T11:43:45.000Z",
"email_body": "\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi Ann,


Thanks for reaching out, these emails have not shown in my inbox!

Please send over some more details on this brief and I'd love to take a look,

Have a good Christmas!

Best,
Miranda Pilkington

<div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Dec 22, 2024 at 9:02\u202fPM Ann Silva <<a href="mailto:[email protected]">[email protected]> wrote:
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div style="box-sizing:inherit">hey - wanted to ping you one last time to make sure this wasn't lost in your inbox! I'd be happy to share more details about how we can collab, let me know if you're open to it. Thanks!

<div class="gmail_quote">
On Thu, Dec 19, 2024 at 08:28 PM UTC Ann Silva <<a href="http://[email protected]" target="_blank">[email protected]> wrote:
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex"><div style="box-sizing:inherit">hey - just looping back to make sure this is on your radar! Can I send a content brief with more details?
<div class="gmail_quote">
On Wed, Dec 18, 2024 at 07:54 PM UTC Ann Silva <<a href="http://[email protected]" target="_blank">[email protected]> wrote:
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex"><div style="box-sizing:inherit">Hey - Sorry for the cold email but your video popped up in my feed and wanted to reach out! I run partnerships at Type, a new AI writing tool. Your content is awesome and I'd love to find a way to work together. Can I send more details on how we're partnering with a handful of creators? Thanks!<img src="https://open.sleadtrack.com/image.png?messageId=%[3Cb18c1d89-5c04-sl43-4457-ade0-9742c3c41624@typeaicreatorshub.com](mailto:3Cb18c1d89-5c04-sl43-4457-ade0-9742c3c41624@typeaicreatorshub.com)%3E\" alt="line"> ",
"email_seq_number": "3",
"cc": []
},
{
"stats_id": "b18c1d89-5c04-4457-ade0-9742c3c41624",
"cc": null,
"time": "2024-12-24T21:04:05.401+00:00",
"type": "SENT",
"subject": null,
"email_body": "<div fr-original-style="" style="-webkit-tap-highlight-color: transparent; box-sizing: inherit;">Hey Miranda - Awesome! You can check out <a href="https://invited-coal-30b.notion.site/Type-ai-Content-Brief-1526bc96af2180c7a159f43fce153eb9\" fr-original-style="" style="margin: 0px; user-select: auto; font-family: unset; font-weight: unset; -webkit-tap-highlight-color: transparent; box-sizing: inherit;">our content brief here. Happy to answer any questions but can you let me know your rates? Thanks! ",
"message_id": "[b18c1d89-5c04-slt74-4457-ade0-9742c3c41624-alzt95o@typeaicreatorshub.com](mailto:b18c1d89-5c04-slt74-4457-ade0-9742c3c41624-alzt95o@typeaicreatorshub.com)"
},
{
"stats_id": "b18c1d89-5c04-4457-ade0-9742c3c41624",
"cc": [],
"time": "2024-12-31T16:34:05+00:00",
"type": "REPLY",
"subject": "Re: RE: paid collab with new AI writing tool",
"email_body": "Hi Ann,\n\nI think this would be a really good product for my viewers, given that many work in the copywriting and social media space.\n\nI've grown my audience to over 50,000 people organically, who are all interested in this sphere of work!\n\nMy rates",
"message_id": "[CAHX9_85sUQ4WhLFXj50-PBkVD6b3RtsG24FJ6up9m8-BN2Df7w@mail.gmail.com](mailto:CAHX9_85sUQ4WhLFXj50-PBkVD6b3RtsG24FJ6up9m8-BN2Df7w@mail.gmail.com)"
}
],
"from": "[email protected]",
"to": "[email protected]"
}