Skip to main content
POST
/
action
/
get_hubspot_contact_object
Get HubSpot Contact Data
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": {
    "id": "12345678",
    "properties": {
      "firstname": "John",
      "lastname": "Doe",
      "email": "[email protected]",
      "phone": "+1-123-456-7890",
      "jobtitle": "Product Manager",
      "company": "Acme Corporation",
      "createdate": "2023-05-20T13:45:22.123Z",
      "hs_lastmodifieddate": "2024-02-15T11:24:36.789Z"
    },
    "createdAt": "2023-05-20T13:45:22.123Z",
    "updatedAt": "2024-02-15T11:24:36.789Z",
    "archived": false
  }
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
query
string
required

Search query to find specific contact. Defaults to '_most_recent_contact' if not provided or too short.

Response

200 - application/json

Retrieved HubSpot contact data

status
integer

HTTP status code of the action response

response
object

Response data from the action

I