Issue with Null Response for hs_email_text in HubSpot CRM GET crm/v3/objects/emails/.. API

Hi everyone,
[u]

Previously I posted this exact question in the wrong board so this is a repost. Appologies for the inconvinience.

[/u]

I’m facing an issue while trying to retrieve the email content using the HubSpot CRM API.

Issue Summary

I’m calling this API:

GET https://api.hubapi.com/crm/v3/objects/emails/{id}?properties=hs_email_text

But the hs_email_text field is returning null.

Steps Taken

  1. Ticket API Call: First, I retrieved the ticket information using:

GET https://api.hubapi.com/crm/v3/objects/tickets/{ticketId}?associations=emails

This returned the following response, showing an associated email with id: 60697003081:

{ "id": "3512558974", "properties": { "content": "Debashish - Test HS Ticket...", "subject": "Test HS Ticket" }, "associations": { "emails": { "results": [ { "id": "60697003081", "type": "ticket_to_email" } ] } } }

  1. Email API Call: I then used the email id from the above response to make the following API request:

GET https://api.hubapi.com/crm/v3/objects/emails/60697003081?properties=hs_email_text

But in the response, the hs_email_text field is null:

{ "id": "60697003081", "properties": { "hs_email_text": null, "hs_createdate": "2024-09-20T14:04:40Z" } }

Questions:

  1. Is there any way to fix the null response for hs_email_text?
  2. Can I directly hit an API by just sending the ticketId to get all associated emails, instead of fetching the email IDs first?

Thanks for any guidance!

Hi @DSarkar1 ,

1. Do you get a result if you retrieve any of the other available properties? Like `hs_email_html` or `hs_email_subject` for example?
2. Yes, I think you can use GraphQL to retrieve the associated emails and the properties of those associated emails in a single call. It is however limited to sales, service or content hub enterprise.

Hey @Teun,

Thank you so much for your help!

  1. It looks like the field

hs_email_html

contains the exact value I was looking for. That really solved my issue — I appreciate it!

  • I noticed that my account profile indicates I have an active free trial for the Sales, Service, or Content Hub Enterprises. Given that, is it still possible to use GraphQL queries to fetch the data?

Thanks again!

Hi @DSarkar1 ,

Awesome! Happy that you solved it.
Yes, you can use GraphQL until the trials end. However, depending on where you want to use this functionality, you must first check if they have the right licenses.