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', ''.$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.


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.