curl --request POST \
--url https://api-lr.agent.ai/v1/action/get_hubspot_object \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"object_type": "company",
"query": "Acme Corporation"
}
'{
"status": 200,
"response": {
"id": "12345678",
"properties": {
"name": "Acme Corporation",
"domain": "acme.com",
"industry": "Technology",
"phone": "+1-123-456-7890",
"createdate": "2023-01-15T15:30:45.123Z",
"hs_lastmodifieddate": "2024-03-10T09:12:34.567Z"
},
"createdAt": "2023-01-15T15:30:45.123Z",
"updatedAt": "2024-03-10T09:12:34.567Z",
"archived": false
}
}Retrieve data for any supported HubSpot object type based on a query or get the most recent object.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/get_hubspot_object \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"object_type": "company",
"query": "Acme Corporation"
}
'{
"status": 200,
"response": {
"id": "12345678",
"properties": {
"name": "Acme Corporation",
"domain": "acme.com",
"industry": "Technology",
"phone": "+1-123-456-7890",
"createdate": "2023-01-15T15:30:45.123Z",
"hs_lastmodifieddate": "2024-03-10T09:12:34.567Z"
},
"createdAt": "2023-01-15T15:30:45.123Z",
"updatedAt": "2024-03-10T09:12:34.567Z",
"archived": false
}
}Bearer token from your account (https://agent.ai/user/integrations#api)
Type of HubSpot object to retrieve (e.g., company, contact, deal).
company, contact, deal, ticket "company"
Search query to find specific object. Defaults to '_most_recent_company' if not provided or too short (or '_most_recent_contact' if object_type is 'contact').
"Acme Corporation"