APIs & Integrations

Not applicable

Contacts GET by email - 405 error

I’m using Guzzle and making a call like this:

$client = new Client(['key' => 'my-hubspot-api-key']);
$request = $client->request('get', 'https://api.hubapi.com/contacts/v1/contact/email/contactemail@example.com?hapikey='.$hubspotApiKey);

But it’s always resulting in a 405 Method Not Allowed.

I don’t understand because I’m using a get request (fyi I tried both get and GET with the same results).

Would appreciate some help.

0 Upvotes
1 Reply 1
Not applicable

Contacts GET by email - 405 error

Disregard. I realized I was missing the /profile at the end of the url before the key. The documenation system is janky because you can’t see that information without scrolling horizontally.

0 Upvotes