cURL
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.
Bearer token from your account (https://agent.ai/user/settings#credits)
Retrieved Hubspot object data
The response is of type object.
object