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

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
required

Search query to find specific contact by email.

Response

200 - application/json
Retrieved Hubspot contact data
status
integer

HTTP status code of the action response

response
object

Response data from the action