Thank you for clarifying.
To confirm, it sounds like you wish to pull call information from FreePBX and then push it into HubSpot to create contacts and
CALL engagements. Is that correct?
FreePBX's documentation only covers getting information out of their system using an API key. You can't use the FreePBX API key with HubSpot directly or HubSpot's API key with FreePBX. To integrate the systems, you must set up an external app or server to
GET information from FreePBX's APIs, parse the data you receive, and then make calls to HubSpot's endpoints to create or update the desired objects.
In your case, I recommend just authenticating HubSpot calls with your API key; it's much simpler than OAuth 2.0.
Yes, you will need some external app to take in data from FreePBX, and parse it into calls to create contacts and engagements in HubSpot. I don't know what your previous experience is with app development, but Heroku is a popular platform for many developers. Heroku supports the most common server-side languages.
I recommend focusing on reviewing the following endpoints, as they will be what you use to actually create contacts and calls in HubSpot:
Create a new contact | As long as you know a caller's email, you will be able to create a contact record for them. You can also include properties like
phone number, and more.
Create an engagement | You will probably want to create
CALL-type engagements from every call from FreePBX. This must happen after you create a contact record, as you will need to associate the call with the correct