# How to send hubspot form using PHP

**URL:** <https://community.hubspot.com/t/how-to-send-hubspot-form-using-php/90862>\
**Category:** APIs & Integrations\
**Tags:** php\
**Created:** [October 2, 2023, 10:07am UTC](https://community.hubspot.com/t/how-to-send-hubspot-form-using-php/90862 "2023-10-02T10:07:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NShiragave](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@NShiragave](https://community.hubspot.com/u/NShiragave)\
**Post date:** [October 2, 2023, 10:07am UTC](https://community.hubspot.com/t/how-to-send-hubspot-form-using-php/90862/1 "2023-10-02T10:07:38Z")

</div>

We want to send data to a form on hubspot. How we can do that using PHP.

---

<div class="post-metadata">

**Author:** ![Levi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/levi/32/21492_2.png) [@Levi](https://community.hubspot.com/u/Levi)\
**Post date:** [October 2, 2023, 11:51am UTC](https://community.hubspot.com/t/how-to-send-hubspot-form-using-php/90862/2 "2023-10-02T11:51:51Z")

</div>

@TDwebdev can you help?

---

<div class="post-metadata">

**Author:** ![TDwebdev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tdwebdev/32/78032_2.png) [@TDwebdev](https://community.hubspot.com/u/TDwebdev)\
**Post date:** [October 2, 2023, 12:06pm UTC](https://community.hubspot.com/t/how-to-send-hubspot-form-using-php/90862/3 "2023-10-02T12:06:20Z")

</div>

Hi NShiragave,

Did you check the docs?

[https://legacydocs.hubspot.com/docs/methods/forms/submit\_form](https://legacydocs.hubspot.com/docs/methods/forms/submit_form)

Example endpoint: POST [https://api.hsforms.com/submissions/v3/integration/submit/:portalId/:formGuid](https://api.hsforms.com/submissions/v3/integration/submit/:portalId/:formGuid)

AUTH: bearer

JSON POST body:

{

```
  "fields": \[

{

  "objectTypeId": "0-1",

  "name": "email",

  "value": "example@example.com"

}

  ]

```

}
