# Error 400 on create Form API, "internal error" as error message

**URL:** <https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [August 9, 2023, 10:16am UTC](https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097 "2023-08-09T10:16:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [August 9, 2023, 10:16am UTC](https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097/1 "2023-08-09T10:16:06Z")

</div>

Hello,

I have created an integration with Hubspot and I attempt to create a form when my app is installed.

I just received for one of my user an error ( **400** http code) when hitting the **POST /marketing/v3/forms** endpoint:

`"status":"error","message":"internal error","correlationId":"842...","category":"VALIDATION_ERROR"}`

I don’t really know how to handle this error as it seems to be an internal error (I would expect a **500** ) at Hubspot but it seems that something’s wrong with some validations (the body I send has always been working until now and its content is only static values, not depening of the customer).  
Do I miss something?

---

<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:** [August 11, 2023, 8:18pm UTC](https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097/2 "2023-08-11T20:18:31Z")

</div>

Hi, @yoLotus 👋 Thanks for reaching out. Were you able to resolve this one? If not, I have a few questions to help the community better understand your issue:

- Have you been able to reproduce it on your end?
- Is it persistent or intermittent?
- It’s only happening to one user?
- If only one user, have you tried to remove or isolate other variables that could cause a [400 Bad Request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400) to appear? From that user?

Thanks for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [August 17, 2023, 1:21pm UTC](https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097/3 "2023-08-17T13:21:31Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) sorry for the late response and thanks for your message,

- I’ve only be able to reproduce with this customer, same environment
- I’ve tried several times during the day and always got the same error payload
- It happended only with this customer so far
- Unfortunately the body of the request is always the same, whatever the customer. I’ve modified the body to make some errors on purpose (just to see) and it happened that I got a readable and usable error message.  
I thought the customer haven’t the right permissions to let us hit the _form_ endpoint on their behalf but they wouldn’t have been allowed to install our app beforehand.

Let me know if you need more info,

best regards, etienne

---

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [September 18, 2023, 12:00pm UTC](https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097/4 "2023-09-18T12:00:19Z")

</div>

It seems that I wanted to create a Form at the customer account with a property that has been archived. As I was attempting to only install _default_ properties (basic ones as _jobtitle_, _company_…) I didn’t think it was possible to archive them (only custom ones).  
Nevertheless, the message is useless and should be updated

---

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [September 26, 2023, 3:13pm UTC](https://community.hubspot.com/t/error-400-on-create-form-api-internal-error-as-error-message/87097/5 "2023-09-26T15:13:09Z")

</div>

Actually, I was attempting to install a form with the default “phone” properties that I declared as `single_line_text` as formType. The exact value for the formType was “phone”. But once again, Hubspot api response was providing 0 clues.
