POST
/
action
/
get_hubspot_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
  }
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/settings#credits)

Body

application/json

Response

200 - application/json

Retrieved Hubspot object data

The response is of type object.