# Resubscription API gives 500 error

**URL:** <https://community.hubspot.com/t/resubscription-api-gives-500-error/97390>\
**Category:** APIs & Integrations\
**Tags:** email, contacts\
**Created:** [January 9, 2024, 9:50am UTC](https://community.hubspot.com/t/resubscription-api-gives-500-error/97390 "2024-01-09T09:50:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADedhia](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ADedhia](https://community.hubspot.com/u/ADedhia)\
**Post date:** [January 9, 2024, 9:50am UTC](https://community.hubspot.com/t/resubscription-api-gives-500-error/97390/1 "2024-01-09T09:50:11Z")

</div>

Hello, we are using this API to enable hubspot to send resubscription mail to users of our portal.

[https://api.hubapi.com/email/v1/form-resubscribe/test@email.com/jsonp/initiate?portalId=xxxxxxx&resub\_form\_name=&resub\_form\_address=about%3Ablank&callback=resubscription\_callback](https://api.hubapi.com/email/v1/form-resubscribe/test@email.com/jsonp/initiate?portalId=xxxxxxx&resub_form_name=&resub_form_address=about%3Ablank&callback=resubscription_callback)  
It was working fine until recently this API started giving us 500 error.  
Here is the response

`{"status":"error","message":"internal error","correlationId":"e60a4a23-2e66-48bd-b2b4-0d5a9dbd276e"}`

Could someone please help with this? Thanks

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 10, 2024, 5:39pm UTC](https://community.hubspot.com/t/resubscription-api-gives-500-error/97390/2 "2024-01-10T17:39:02Z")

</div>

Hey, @ADedhia 👋 This looks like the endpoint that is used with the option — [Resubscribe a contact through a HubSpot form (Marketing Hub Professional, Enterprise, or Legacy Marketing Hub Basic only)](https://knowledge.hubspot.com/email/resubscribe-contacts-to-your-marketing-emails#resubscribe-a-contact-through-a-hubspot-form-marketing-hub-professional-enterprise-or-legacy-marketing-hub-basic-only). Is that correct? I ask because I do not see it listed in the API catalog as a publicly available endpoint — [Email Subscriptions API](https://legacydocs.hubspot.com/docs/methods/email/email_subscriptions_overview).

Because this feature is [limited to specific subscriptions](https://knowledge.hubspot.com/email/resubscribe-contacts-to-your-marketing-emails#resubscribe-a-contact-through-a-hubspot-form-marketing-hub-professional-enterprise-or-legacy-marketing-hub-basic-only:~:text=their%20email%20preferences.-,Resubscribe%20a%20contact%20through%20a%20HubSpot%20form%20(Marketing%20Hub%20Professional%2C%C2%A0Enterprise%2C%20or%C2%A0Legacy%20Marketing%20Hub%20Basic%20only),-If%20a%20contact), I’d recommend filing a ticket with support and asking the following:

- Is the endpoint publicly available?
- Can they work with their internal resources to use the correlation ID you listed to get more details?

My understating, and a reply from our product team, this API is triggered by a customer filling out a form and not intended to be triggered “on behalf” of your customers.

Best,

Jaycee
