Contact Info Curl

Hello. I am just starting out using hubspot. The other day, I was able to easily access my contact info by portal ID, but I forget what endpoint I was using to do it. When I try to access it using

/api/contacts/v1/contact/vid/<myportalID>/profile

I get the error:
“HubId is not present in any form on the request. Please provide a path param or a query param.”
Before it was just cleanly output with my name, portal ID, and email. How would I access it like this again?

Hey @JDeville - thanks for posting this inquiry in the HubSpot Community!
I understand that you’re looking to re-clarify which endpoint you were using to easily access your Contacts info by portal ID. I’d like to tag in some of our developer and API experts for further support. @ashleyidesign, @ChrisMagtoto, and @felixmacaspac - any insight that may help @JDeville with the above?

Hi @JDeville you can use this endpoint to get the contact details from CRM using api :

For V1 that you are using , you can use this :
https://api.hubapi.com/contacts/v1/contact/vid/:vid/profile

in url it is not <myportalID> it is :vid which will be passed , vid is contact’s unique ID stands for Visitor ID

for reference = Accounts Dashboard | HubSpot

and can use v3 apis as well

/crm/v3/objects/contacts/{contactId}

for more info you can refere here : Accounts Dashboard | HubSpot

Thank you for your reply. I am still getting the error for the HubID for any request to the contact API. Sending a GET request to /api/contacts/v1/contacts/statistics returns “HubId is not present in any form on the request. Please provide a path param or a query param.”,