# Integration Api with PHP

**URL:** <https://community.hubspot.com/t/integration-api-with-php/23437>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [July 27, 2020, 6:56pm UTC](https://community.hubspot.com/t/integration-api-with-php/23437 "2020-07-27T18:56:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luciano1368](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/luciano1368/32/32521_2.png) [@Luciano1368](https://community.hubspot.com/u/Luciano1368)\
**Post date:** [July 27, 2020, 6:56pm UTC](https://community.hubspot.com/t/integration-api-with-php/23437/1 "2020-07-27T18:56:13Z")

</div>

Hi everyone i try to find a method to add a record deal into pipelines/deals using API key with PHP.

I read the documentation but i can´t find the answer.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [July 29, 2020, 8:25am UTC](https://community.hubspot.com/t/integration-api-with-php/23437/2 "2020-07-29T08:25:18Z")

</div>

Hey @Luciano1368,

When looking to create a deal via PHP using HubSpot APIs, you can use the following API - [CRM API | Deals](https://developers.hubspot.com/docs/api/crm/deals) and/or explore this github - [GitHub - HubSpot/hubspot-php: HubSpot PHP API Client](https://github.com/HubSpot/hubspot-php).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Luciano1368](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/luciano1368/32/32521_2.png) [@Luciano1368](https://community.hubspot.com/u/Luciano1368)\
**Post date:** [July 31, 2020, 3:02pm UTC](https://community.hubspot.com/t/integration-api-with-php/23437/3 "2020-07-31T15:02:09Z")

</div>

I read the documentation, but it doesn´t work for me. I need create a pipeline/deal/deal-record with php APIs. The record inside the email field (CampoPrueba1) it´s one of the many i need to create with these method.

 ![29867i4EC69228F28D8CFC.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/e/ceab84174aa14ff09589396833c52343fe07f8ba.jpeg)

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [August 5, 2020, 2:26am UTC](https://community.hubspot.com/t/integration-api-with-php/23437/4 "2020-08-05T02:26:49Z")

</div>

Hey @Luciano1368,

Using the [CRM API | Deals](https://developers.hubspot.com/docs/api/crm/deals) endpoint, specifically the

POST /crm/v3/objects/deals with an example POST body:

```auto
{
 "properties": {
 "pipeline": "528ebb34-2cb6-4fdc-8cf7-ba11f23642f2",
 "dealstage": "1727a8b0-2258-43de-99bd-b6b4122abba5",
 "dealname": "test aug"
 }
}

```

You would be able to achieve the end goal that you shared.
