Obtaining companyId

#1

Hello!

I would like to ask you for a confirmation whether I understand it correctly or not.
When I’m creating an app action for Person in Details View, I’m redirected to my URL address and Pipedrive adds something like:
?resource=person&view=details&userId=5510054&companyId=3606875&selectedIds=298

CompanyId is an acc ID from Pipedrive where this action has happened. Now to send this data to a proper account in my system, I have to find an account in my app with a matching companyId from Pipedrive. How can I obtain it? Is it a companyID that I can receive from sending a GET request to “https://api-proxy.pipedrive.com/users/me” during OAuth and installations steps after I exchange tokens (using 1h valid token I get)?

#2

Hey Majk,

Yes, it would be the same ID you get from that request under "company_id"

#3

Thanks for the confirmation!