# Internal EmailId API Retrieval

**URL:** <https://community.hubspot.com/t/internal-emailid-api-retrieval/127444>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [March 6, 2025, 9:30am UTC](https://community.hubspot.com/t/internal-emailid-api-retrieval/127444 "2025-03-06T09:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlejandroGarcia](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AlejandroGarcia](https://community.hubspot.com/u/AlejandroGarcia)\
**Post date:** [March 6, 2025, 9:30am UTC](https://community.hubspot.com/t/internal-emailid-api-retrieval/127444/1 "2025-03-06T09:30:58Z")

</div>

Hi,

Trying to created Dynamic Lists filtered by some Email action I realized it is expected to use the Internal HubSpot IDs, not the regular Email ID:

 ![AlejandroGarcia_0-1741250919885.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/9/e9cc5f719a4fabf41e58da872c00cfb76ff82a6d.png)

I’ve been trying some property names in this query: [https://api.hubapi.com/marketing/v3/emails/186899289459?includedProperties=](https://api.hubapi.com/marketing/v3/emails/186899289459?includedProperties=)  
but I can’t find the correct one to retrieve the Internal ID, is it possible to get that value through API?  
Thanks.

---

<div class="post-metadata">

**Author:** ![HMir](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@HMir](https://community.hubspot.com/u/HMir)\
**Post date:** [March 6, 2025, 10:45am UTC](https://community.hubspot.com/t/internal-emailid-api-retrieval/127444/2 "2025-03-06T10:45:39Z")

</div>

> * * *
> 
> @AlejandroGarcia wrote:
> 
> Hi,
> 
> Trying to created Dynamic Lists filtered by some Email action I realized it is expected to use the Internal HubSpot IDs, not the regular Email ID:

 ![AlejandroGarcia_0-1741250919885.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/9/e9cc5f719a4fabf41e58da872c00cfb76ff82a6d.png)

> I’ve been trying some property names in this query: [https://api.hubapi.com/marketing/v3/emails/186899289459?includedProperties=](https://api.hubapi.com/marketing/v3/emails/186899289459?includedProperties=)  
> but I can’t find the correct one to [retrieve](https://www.jewellok.com/) the Internal ID, is it possible to get that value through API?  
> Thanks.
> 
> * * *

You can use the Get all marketing emails endpoint. This endpoint provides a list of marketing emails, each with its internal ID. To make a request, send a GET request to:

[https://api.hubapi.com/marketing-emails/v1/emails?hapikey=YOUR\_HUBSPOT\_API\_KEY](https://api.hubapi.com/marketing-emails/v1/emails?hapikey=YOUR_HUBSPOT_API_KEY)

Replace YOUR\_HUBSPOT\_API\_KEY with your actual HubSpot API key. The response will include details of each email, such as its ID, name, and subject. The ID field in the response represents the internal HubSpot ID for the email. For example:  
{  
“id”: 123456,  
“name”: “Email Name”,  
“subject”: “Email Subject”  
}

If you need to filter emails based on their internal ID, this method will allow you to retrieve the correct value. For more details, you can refer to HubSpot’s Marketing Emails API v1 documentation here [Marketing API | Marketing Email - HubSpot docs](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails/v1).

---

<div class="post-metadata">

**Author:** ![AStewart53](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@AStewart53](https://community.hubspot.com/u/AStewart53)\
**Post date:** [April 17, 2025, 6:26pm UTC](https://community.hubspot.com/t/internal-emailid-api-retrieval/127444/3 "2025-04-17T18:26:28Z")

</div>

Unfortunately, this is only a temporary solution.

The v1 api (/marketing-emails/v1/emails) will stop working in October.

“To avoid disruption, please migrate to the new v3 Email API before October 1, 2025. If you don’t complete the update by this date, _ **any requests to the v1 Marketing Email API will result in an error.** _ ”

This is a breaking change for us - we are tracking certain emails and need to know who actually received it - a call to /email/public/v1/events for the specific email where the only way to get these results is to supply the **internal Hubspot ID** as the **campaignId**

parameter.

I can’t just pull all of the email events, because in the returned results the email is also identified with the **campaignId** , not the **Marketing email ID**.

---

<div class="post-metadata">

**Author:** ![Efikelvi](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@Efikelvi](https://community.hubspot.com/u/Efikelvi)\
**Post date:** [October 3, 2025, 4:23pm UTC](https://community.hubspot.com/t/internal-emailid-api-retrieval/127444/4 "2025-10-03T16:23:10Z")

</div>

Thanks Hmir for solution
