APIs & Integrations

Saravanan90
Member

Hubspot API Success Status Codes

In the Hubspot API Docs, there is an article which gives a list of error status codes returned: http://developers.hubspot.com/docs/faq/api-error-responses

Is there any article for a list of success status codes? If not, is 200 always returned for a successful response?

Kindly clarify. Thanks

0 Upvotes
5 Replies 5
Saravanan90
Member

Hubspot API Success Status Codes

Thanks @pmanca Wish to see the documentation reflected with success status code(s) of all end points.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Hubspot API Success Status Codes

@Saravanan90 i’ll let you know when the docs are updated.

0 Upvotes
Saravanan90
Member

Hubspot API Success Status Codes

Thanks for the response @pmanca

I was also expecting for success status codes in all the end points, but success code could not be found for all.

Take for eg. getContact by email endpoint:

Search for a contact by email address | Contacts API

GET /contacts/v1/contact/email/:contact_email/profile - For a given portal, return information about a single contact by its email address.

It covers the error status code but not the success status code.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Hubspot API Success Status Codes

@Saravanan90 Thanks for the find. That endpoint returns a 200. I’ll make sure the documentation gets updated to reflect that.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Hubspot API Success Status Codes

@Saravanan90 We normally return a 200 or a 204. Each endpoint will have the success code in the documentation.

0 Upvotes