I ran the following command from the Linux shell
curl ‘https://api.hubapi.com/companies/v2/companies/\’ --request GET --header ‘Authorization: Bearer <ID>’
The output was:
{“status”:“error”,“message”:“resource not found”,“correlationId”:“498a39ae-8781-4df3-b016-c4739ba39aa4”}
I could find this company from the dashboard UI but not by API.
What is the reason for this?
Thanks,
Yoram
@yorambaron
Hi.
curl 'https://api.hubapi.com/companies/v2/companies/<COMPANY ID>' --request GET --header 'Authorization: Bearer <TOKEN>'
In my case, your command works.
But I got the same error when I made the company id non-existent.
Are you using a company ID that exists?
Thanks.
>Yes, the company exists.
What number is the http response code?
404 although the company exists.
@yorambaron
Is the account that issued the token the same account the company resides in?
I know this pain, @yorambaron
Thanks for letting us know you got it worked out. — Jaycee
No, this is my fault, I used the wrong token, thank you so much!