cURL
curl --request POST \ --url https://api-lr.agent.ai/v1/action/get_hubspot_contact_object \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "query": "[email protected]" }'
{ "status": 200, "response": { "createdate": "2024-05-08T11:27:38.205Z", "email": "[email protected]", "firstname": "Andrei", "hs_object_id": "19491938352", "lastmodifieddate": "2025-03-24T03:22:02.681Z", "lastname": "Oprisan" } }
Retrieve contact data from Hubspot based on a query or get the most recent contact.
Bearer token from your account (https://agent.ai/user/settings#credits)
Retrieved Hubspot contact data
The response is of type object.
object