cURL
curl --request POST \ --url https://api-lr.agent.ai/v1/action/get_hubspot_owners \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "hubspot_portal": "12345678" } '
{ "status": 200, "response": [ { "id": "12345", "email": "[email protected]", "firstName": "Sarah", "lastName": "Jones", "createdAt": "2022-05-10T09:30:22.123Z", "updatedAt": "2024-01-18T14:22:45.789Z", "teams": [ "Sales", "Marketing" ], "userRole": "Super Admin" }, { "id": "67890", "email": "[email protected]", "firstName": "Mike", "lastName": "Smith", "createdAt": "2022-07-15T10:45:33.456Z", "updatedAt": "2023-12-05T16:18:21.345Z", "teams": [ "Sales" ], "userRole": "Standard" } ] }
Retrieve all owners (users) from a HubSpot portal.
Bearer token from your account (https://agent.ai/user/integrations#api)
HubSpot portal ID to retrieve owners from
"12345678"
Retrieved HubSpot owners data
HTTP status code of the action response
Response data from the action