# \#php

**URL:** https://community.hubspot.com/tag/php/3119.md

[Latest](https://community.hubspot.com/latest.md) · [Categories](https://community.hubspot.com/categories.md) · [Tags](https://community.hubspot.com/tags.md)

---

## [PHP SDK - v3 vs Date-versioned](https://community.hubspot.com/t/php-sdk-v3-vs-date-versioned/151115)

<div class="topic-metadata">

**Author:** [@TomC86](https://community.hubspot.com/u/TomC86)\
**Replies:** 6\
**Last updated:** [July 2, 2026, 4:50pm UTC](https://community.hubspot.com/t/php-sdk-v3-vs-date-versioned/151115 "2026-07-02T16:50:22Z")

</div>

Hello All, We’ve noticed that there is a new PHP SDK available for the date-versioned API - GitHub - HubSpot/hubspot-sdk-php · GitHub compared to the previous v3 one - GitHub - HubSpot/hubspot-api-php: HubSpot API PHP C…

---

## [Should I migrate my private legacy app?](https://community.hubspot.com/t/should-i-migrate-my-private-legacy-app/146286)

<div class="topic-metadata">

**Author:** [@FHulleman](https://community.hubspot.com/u/FHulleman)\
**Replies:** 2\
**Last updated:** [February 25, 2026, 12:35pm UTC](https://community.hubspot.com/t/should-i-migrate-my-private-legacy-app/146286 "2026-02-25T12:35:48Z")

</div>

Hi, I have a very simple Hubspot CRM contacts integration in my PHP Laravel 12 project. I only use the post contact endpoint to create new contacts. And I currently only have a legacy private app in Hubspot \> developers…

---

## [Saving data from an external form on an external website](https://community.hubspot.com/t/saving-data-from-an-external-form-on-an-external-website/139407)

<div class="topic-metadata">

**Author:** [@AB\_1](https://community.hubspot.com/u/AB_1)\
**Replies:** 5\
**Last updated:** [September 17, 2025, 1:20pm UTC](https://community.hubspot.com/t/saving-data-from-an-external-form-on-an-external-website/139407 "2025-09-17T13:20:51Z")

</div>

Hello all. We have a regular non-HubSpot web form with a bunch of fields on an external website. On submission, we would like to send some of these fields to our HubSpot account and store them inside HubSpot. Are ther…

---

## [Workflow request validation fails if contact has special characters](https://community.hubspot.com/t/workflow-request-validation-fails-if-contact-has-special-characters/138943)

<div class="topic-metadata">

**Author:** [@GBakonyi0](https://community.hubspot.com/u/GBakonyi0)\
**Replies:** 5\
**Last updated:** [September 5, 2025, 9:35am UTC](https://community.hubspot.com/t/workflow-request-validation-fails-if-contact-has-special-characters/138943 "2025-09-05T09:35:16Z")

</div>

I am facing a very weird and edge-case problem. I implemented the HS request verification v3 in PHP, it is working fine until the username or any contact data (firstname, lastname, city, street, etc) contains special ch…

---

## [Form accepting property when property not defined in form - hubspot-php](https://community.hubspot.com/t/form-accepting-property-when-property-not-defined-in-form-hubspot-php/134750)

<div class="topic-metadata">

**Author:** [@Mrk-1](https://community.hubspot.com/u/Mrk-1)\
**Replies:** 14\
**Last updated:** [July 31, 2025, 8:23pm UTC](https://community.hubspot.com/t/form-accepting-property-when-property-not-defined-in-form-hubspot-php/134750 "2025-07-31T20:23:48Z")

</div>

I am using the hubspot-php api to submit data to an old hubspot form in our system. The form has an email property added and that is the only property defined for that form. The api is submitting a property named signu…

---

## [Issue with Delayed hubspotutk Cookie Setting after Analytics Consent (WordPress + CookieYes + Fluent](https://community.hubspot.com/t/issue-with-delayed-hubspotutk-cookie-setting-after-analytics-consent-wordpress-cookieyes-fluent/135470)

<div class="topic-metadata">

**Author:** [@SSakac](https://community.hubspot.com/u/SSakac)\
**Replies:** 3\
**Last updated:** [July 2, 2025, 8:08am UTC](https://community.hubspot.com/t/issue-with-delayed-hubspotutk-cookie-setting-after-analytics-consent-wordpress-cookieyes-fluent/135470 "2025-07-02T08:08:07Z")

</div>

Hi Support, I’m using the CookieYes plugin in WordPress, along with HubSpot and Fluent Forms Pro. I’m passing the hubspotutk cookie to HubSpot through Fluent Forms when a user submits a form, and that part is working w…

---

## [Help Needed: V3 Equivalent for /contacts/v1/lists/{listId}/contacts/recent](https://community.hubspot.com/t/help-needed-v3-equivalent-for-contacts-v1-lists-listid-contacts-recent/134463)

<div class="topic-metadata">

**Author:** [@NVerma7](https://community.hubspot.com/u/NVerma7)\
**Replies:** 3\
**Last updated:** [June 20, 2025, 7:05am UTC](https://community.hubspot.com/t/help-needed-v3-equivalent-for-contacts-v1-lists-listid-contacts-recent/134463 "2025-06-20T07:05:54Z")

</div>

Hello HubSpot Team, I’m working with Daxko, and we’re currently migrating our HubSpot integration from V1 APIs to V3 to ensure long-term support and compliance. In our current implementation, we rely heavily on the V1 …

---

## [How to Add a Google Verification Tag to the \<head\> Section of a Website Using the HubSpot API?](https://community.hubspot.com/t/how-to-add-a-google-verification-tag-to-the-head-section-of-a-website-using-the-hubspot-api/129298)

<div class="topic-metadata">

**Author:** [@U072319](https://community.hubspot.com/u/U072319)\
**Replies:** 1\
**Last updated:** [April 4, 2025, 5:41pm UTC](https://community.hubspot.com/t/how-to-add-a-google-verification-tag-to-the-head-section-of-a-website-using-the-hubspot-api/129298 "2025-04-04T17:41:36Z")

</div>

Hi HubSpot Community, I’m developing a HubSpot app and need to add a Google site verification meta tag dynamically to the \<head\> section of all pages for user website who install my app. I want this process to be autom…

---

## [PHP API contacts search not applying filter condition](https://community.hubspot.com/t/php-api-contacts-search-not-applying-filter-condition/129272)

<div class="topic-metadata">

**Author:** [@mgreenaw](https://community.hubspot.com/u/mgreenaw)\
**Replies:** 4\
**Last updated:** [April 4, 2025, 5:06pm UTC](https://community.hubspot.com/t/php-api-contacts-search-not-applying-filter-condition/129272 "2025-04-04T17:06:04Z")

</div>

$properties = \[ 'email', 'firstname', 'lastname', \]; $filter = new Filter(\[ 'value' =\> $lastuser-\>email, 'propertyName' =\> 'email', 'operator' =\> 'EQ' \]); $filterGroup = new FilterGroup(\[ 'filters' =\> \[$filter\] …

---

## [V3 api endpoint to fetch all the contacts of a given listId](https://community.hubspot.com/t/v3-api-endpoint-to-fetch-all-the-contacts-of-a-given-listid/129170)

<div class="topic-metadata">

**Author:** [@TTeks](https://community.hubspot.com/u/TTeks)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 11:16am UTC](https://community.hubspot.com/t/v3-api-endpoint-to-fetch-all-the-contacts-of-a-given-listid/129170 "2025-04-04T11:16:18Z")

</div>

I need V3 API endpoint to fetch all contacts for a given listId. The list can be either Active or Static. I have tried using https://api.hubapi.com/crm/v3/lists/$listId/memberships and https://api.hubapi.com/crm/v3/obje…

---

## [Issues capturing the hubspotutk cookie in form submission with HubSpot API](https://community.hubspot.com/t/issues-capturing-the-hubspotutk-cookie-in-form-submission-with-hubspot-api/128729)

<div class="topic-metadata">

**Author:** [@alexdeoliveira](https://community.hubspot.com/u/alexdeoliveira)\
**Replies:** 4\
**Last updated:** [April 4, 2025, 10:59am UTC](https://community.hubspot.com/t/issues-capturing-the-hubspotutk-cookie-in-form-submission-with-hubspot-api/128729 "2025-04-04T10:59:52Z")

</div>

Hey folks! I’m having an issue with capturing the hubspotutk cookie and sending it to HubSpot via API. I have a sign-up form in a Laravel app hosted at example.yourdomain.com, and the HubSpot tracking script is being lo…

---

## [Blog Comment is Auto Approved without moderation via API](https://community.hubspot.com/t/blog-comment-is-auto-approved-without-moderation-via-api/129061)

<div class="topic-metadata">

**Author:** [@keggerdev](https://community.hubspot.com/u/keggerdev)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 12:41pm UTC](https://community.hubspot.com/t/blog-comment-is-auto-approved-without-moderation-via-api/129061 "2025-04-03T12:41:44Z")

</div>

Hi ! When the blog comment is posted via API, It is auto approved (published) automatically. It should go to moderation first. I set the state as it is defined in the API documentation as “state”: “PENDING\_AKISMET” …

---

## [Billing Implementation for a Monthly Recurring Paid App in HubSpot](https://community.hubspot.com/t/billing-implementation-for-a-monthly-recurring-paid-app-in-hubspot/128253)

<div class="topic-metadata">

**Author:** [@U072319](https://community.hubspot.com/u/U072319)\
**Replies:** 3\
**Last updated:** [April 2, 2025, 6:17pm UTC](https://community.hubspot.com/t/billing-implementation-for-a-monthly-recurring-paid-app-in-hubspot/128253 "2025-04-02T18:17:54Z")

</div>

Hi, I am developing my first app in HubSpot, which operates on a monthly recurring payment model. I need to implement a billing system for users who install our app. Does HubSpot provide an API for direct client billin…

---

## [Update Table row via API Error status 502 Bad Gateway](https://community.hubspot.com/t/update-table-row-via-api-error-status-502-bad-gateway/128952)

<div class="topic-metadata">

**Author:** [@DVinh5](https://community.hubspot.com/u/DVinh5)\
**Replies:** 1\
**Last updated:** [April 1, 2025, 6:57am UTC](https://community.hubspot.com/t/update-table-row-via-api-error-status-502-bad-gateway/128952 "2025-04-01T06:57:22Z")

</div>

i am using php hubspot-api client ver 9.4.0 for my project and used updateDraftTableRow method to update row of table but its always get response 502 Bad Gateway. Mar 30 previous code always run ok, but i faced error sta…

---

## [How to Retrieve Business Address & Website Email via HubSpot API?](https://community.hubspot.com/t/how-to-retrieve-business-address-website-email-via-hubspot-api/127776)

<div class="topic-metadata">

**Author:** [@U072319](https://community.hubspot.com/u/U072319)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 11:08am UTC](https://community.hubspot.com/t/how-to-retrieve-business-address-website-email-via-hubspot-api/127776 "2025-03-12T11:08:06Z")

</div>

Hi, I’m developing an app in HubSpot and need help retrieving specific account details via the HubSpot API. A. How to Retrieve the Business Address Using the API? I’m trying to fetch the business address configured in…

---

## [Orders API and the Order total issue](https://community.hubspot.com/t/orders-api-and-the-order-total-issue/125585)

<div class="topic-metadata">

**Author:** [@okasem](https://community.hubspot.com/u/okasem)\
**Replies:** 2\
**Last updated:** [February 9, 2025, 7:25am UTC](https://community.hubspot.com/t/orders-api-and-the-order-total-issue/125585 "2025-02-09T07:25:38Z")

</div>

Hello, I’m building a small app to integrate to new orders API, I managed to create a deal then associate it to the order and also add line items. My main issue is I can’t find anyway to fill in the fields for ‘Order To…

---

## [Formulario embebido en Wordpress carga después de 2 segundos](https://community.hubspot.com/t/formulario-embebido-en-wordpress-carga-despues-de-2-segundos/125178)

<div class="topic-metadata">

**Author:** [@VTroiano](https://community.hubspot.com/u/VTroiano)\
**Replies:** 3\
**Last updated:** [February 7, 2025, 3:37pm UTC](https://community.hubspot.com/t/formulario-embebido-en-wordpress-carga-despues-de-2-segundos/125178 "2025-02-07T15:37:41Z")

</div>

¡Hola comunidad! En la empresa en la que estoy trabajando utilizan los formularios incrustados en todas las páginas que tenemos en Wordpress. El problema está en que estos formularios tienen un retraso en aparecer de no …

---

## [Api for non-marketing contact](https://community.hubspot.com/t/api-for-non-marketing-contact/125479)

<div class="topic-metadata">

**Author:** [@RGorkunenko](https://community.hubspot.com/u/RGorkunenko)\
**Replies:** 3\
**Last updated:** [February 7, 2025, 10:44am UTC](https://community.hubspot.com/t/api-for-non-marketing-contact/125479 "2025-02-07T10:44:31Z")

</div>

Hello. Can you tell me if a contact is set as a Non-marketing contact, the contact data (name, company, etc.) cannot be retrieved via the API. However, if the contact is a Marketing contact, I can retrieve the data by ID…

---

## [Fill "Your Information" on quote](https://community.hubspot.com/t/fill-your-information-on-quote/125357)

<div class="topic-metadata">

**Author:** [@JFaber69](https://community.hubspot.com/u/JFaber69)\
**Replies:** 1\
**Last updated:** [February 5, 2025, 6:38pm UTC](https://community.hubspot.com/t/fill-your-information-on-quote/125357 "2025-02-05T18:38:06Z")

</div>

Whenever I make a quote using the API it asks me to fill in the “Your Information” fields. Is there a way to do this using the API too?

---

## [I got 414 Request-URI Too Large while fetching contact with more than 350 properties.](https://community.hubspot.com/t/i-got-414-request-uri-too-large-while-fetching-contact-with-more-than-350-properties/125107)

<div class="topic-metadata">

**Author:** [@KPadhiyar](https://community.hubspot.com/u/KPadhiyar)\
**Replies:** 4\
**Last updated:** [February 4, 2025, 9:01am UTC](https://community.hubspot.com/t/i-got-414-request-uri-too-large-while-fetching-contact-with-more-than-350-properties/125107 "2025-02-04T09:01:38Z")

</div>

I’m using hubspot-api-php for do operation in HubSpot. When I try to get single contact by objectId with more than 350 properties it gives me error like: 414 Request-URI Too Large. Can anyone suggest me what can I do fo…

---

## [Bizarre Rounding Issue When Posting to "/crm/v3/objects/line\_items/batch/update"](https://community.hubspot.com/t/bizarre-rounding-issue-when-posting-to-crm-v3-objects-line-items-batch-update/123689)

<div class="topic-metadata">

**Author:** [@DaveLinderman](https://community.hubspot.com/u/DaveLinderman)\
**Replies:** 5\
**Last updated:** [January 15, 2025, 7:43pm UTC](https://community.hubspot.com/t/bizarre-rounding-issue-when-posting-to-crm-v3-objects-line-items-batch-update/123689 "2025-01-15T19:43:19Z")

</div>

Hello all- Has anyone seen a strange rounding issue when posting values to “/crm/v3/objects/line\_items/batch/update”? I have an instance where I am sending a value to two decimal places, but receiving a 400 error that …

---

## [Unable to PATCH Schema](https://community.hubspot.com/t/unable-to-patch-schema/123590)

<div class="topic-metadata">

**Author:** [@Graham-OUB](https://community.hubspot.com/u/Graham-OUB)\
**Replies:** 5\
**Last updated:** [January 13, 2025, 9:32am UTC](https://community.hubspot.com/t/unable-to-patch-schema/123590 "2025-01-13T09:32:25Z")

</div>

Hello everyone I’m encountering an issue with a Custom Schema update while using the HubSpot PHP SDK (v10). I’ve been successfully using this functionality for years, but today it suddenly stopped working, and I’m now r…

---

## [Is it possible to take a Ticket information by API response?](https://community.hubspot.com/t/is-it-possible-to-take-a-ticket-information-by-api-response/123556)

<div class="topic-metadata">

**Author:** [@DanielDPAltra](https://community.hubspot.com/u/DanielDPAltra)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 9:49am UTC](https://community.hubspot.com/t/is-it-possible-to-take-a-ticket-information-by-api-response/123556 "2025-01-09T09:49:06Z")

</div>

I’m creating via form, a ticket, when created, the API gives a success response, a number, so is it possible to make an API search with that number ( ) - If achieving the desired functionality is not possible, which …

---

## [Inbox, send Attacments](https://community.hubspot.com/t/inbox-send-attacments/122961)

<div class="topic-metadata">

**Author:** [@Anonymous\_ec797a7d7ff1d2da7b6ef6571f92b61f](https://community.hubspot.com/u/Anonymous_ec797a7d7ff1d2da7b6ef6571f92b61f)\
**Replies:** 1\
**Last updated:** [December 24, 2024, 5:11pm UTC](https://community.hubspot.com/t/inbox-send-attacments/122961 "2024-12-24T17:11:41Z")

</div>

There are two ways to attach files to a message in “textarea”. Both methods work, but in different ways. We can send an email to “SendGrid” “SendGrid” can redirect incoming data to “Webhook” As a result, our “Webhook”…

---

## [Batch updating Deals throwing Json error (PHP)](https://community.hubspot.com/t/batch-updating-deals-throwing-json-error-php/87940)

<div class="topic-metadata">

**Author:** [@MBridgeman](https://community.hubspot.com/u/MBridgeman)\
**Replies:** 3\
**Last updated:** [December 20, 2024, 10:24pm UTC](https://community.hubspot.com/t/batch-updating-deals-throwing-json-error-php/87940 "2024-12-20T22:24:14Z")

</div>

Hi Trying to use Guzzle with PHP to batch update Deals. Payload example: \[{"id":12345678,"properties":{"dealname":"001122334455-1, Bob Smith, 0099887766"}},{"id":4657890,"properties":{"dealname":"00334455667-1, John J…

---

## [Batch Upsert API error](https://community.hubspot.com/t/batch-upsert-api-error/122213)

<div class="topic-metadata">

**Author:** [@TTeks](https://community.hubspot.com/u/TTeks)\
**Replies:** 1\
**Last updated:** [December 10, 2024, 6:07pm UTC](https://community.hubspot.com/t/batch-upsert-api-error/122213 "2024-12-10T18:07:34Z")

</div>

I am using https://api.hubapi.com/crm/v3/objects/contacts/batch/upsert api to insert/update data to Hubspot. Request Body be like this { “inputs”: \[ { “id”: “isabella@futureconnect.com”, “idProperty”: “email”, “pr…

---

## [405 errors on PATCH, 401 on DELETE](https://community.hubspot.com/t/405-errors-on-patch-401-on-delete/118902)

<div class="topic-metadata">

**Author:** [@FSena](https://community.hubspot.com/u/FSena)\
**Replies:** 4\
**Last updated:** [October 25, 2024, 9:31pm UTC](https://community.hubspot.com/t/405-errors-on-patch-401-on-delete/118902 "2024-10-25T21:31:04Z")

</div>

Hello all, I’m trying to update a hubdb via API v3. When using POST, all data flows as expected and the database is populated with the proper data in the proper columns. However, I don’t want to duplicate the informati…

---

## [Php client endpoint documentation outdated](https://community.hubspot.com/t/php-client-endpoint-documentation-outdated/117510)

<div class="topic-metadata">

**Author:** [@Yannick\_Lange](https://community.hubspot.com/u/Yannick_Lange)\
**Replies:** 2\
**Last updated:** [October 5, 2024, 9:22am UTC](https://community.hubspot.com/t/php-client-endpoint-documentation-outdated/117510 "2024-10-05T09:22:08Z")

</div>

Just want to point out that the endpoint documentation for the PHP client is outdated. In the documentation (https://developers.hubspot.com/docs/api/cms/pages) it says to use HubSpot\\Client\\Cms\\Pages\\SitePages\\Model\\Pa…

---

## [How to associate Task with Custom object?](https://community.hubspot.com/t/how-to-associate-task-with-custom-object/116646)

<div class="topic-metadata">

**Author:** [@KPadhiyar](https://community.hubspot.com/u/KPadhiyar)\
**Replies:** 3\
**Last updated:** [October 3, 2024, 9:27am UTC](https://community.hubspot.com/t/how-to-associate-task-with-custom-object/116646 "2024-10-03T09:27:22Z")

</div>

I’ve to attach task with my custom object. I’m using below code as defined in docs. But I can’t able to create it and my object name is ‘test’. I've created Association class in PHP: Association::create($from, $to, $typ…

---

## [Hubspot API forms - The cookie needed to link form submissions](https://community.hubspot.com/t/hubspot-api-forms-the-cookie-needed-to-link-form-submissions/46881)

<div class="topic-metadata">

**Author:** [@ablayze\_jb](https://community.hubspot.com/u/ablayze_jb)\
**Replies:** 5\
**Last updated:** [September 20, 2024, 6:57pm UTC](https://community.hubspot.com/t/hubspot-api-forms-the-cookie-needed-to-link-form-submissions/46881 "2024-09-20T18:57:31Z")

</div>

I always see this whenever i submit a form data Im using a custom form where i submit all the data using the hubspot api(legacy version). This is my php code for using api to send form data to hubspot. Is there a…

[Next page](https://community.hubspot.com/tag/php/3119.md?match_all_tags=true&page=1&tags%5B%5D=php)
