Skip to content

HubSpot Developer Changelog

Change to behaviour between GET and POST Contacts V1 endpoints

We are making a change to the current inconsistent behaviour between the GET and POST Contacts V1 endpoints. 

What's changing?

Currently if you request the Get a contact by email address endpoint and your request includes invalid characters like this example: (notice the invalid characters in the email address <>)

GET /v1/contact/email/<test.contact@testcompany.com>/profile 
A 200 server code is returned with the contact details in the response and the invalid characters get removed from the email address.

If you then create a contact using the Create a new contact endpoint and include invalid characters (<>) in the email address:

POST /v1/contact/email/<test.contact@testcompany.com>/profile
A 400 server code is returned along with this error message:
404 OBJECT_NOT_FOUND "The contact <test.contact@testcompany.com> does not exist"

The GET request normalizes the email address and removes the invalid characters, but the POST request does not. Today we will be changing this behaviour and normalizing email addresses for the Create a new contact endpoint (i.e removing invalid characters) so the behaviour is consistent with the Get a contact by email address endpoint. 

When is this happening?

The change is effective from today, October 29th, 2021.

If you have any questions or comments, please join the conversation in the developer community forum.