Skip to main content
POST
/
action
/
get_hubspot_company_object
Get HubSpot Company Data
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/get_hubspot_company_object \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "Acme Corporation"
}'
{
  "status": 200,
  "response": {
    "id": "12345678",
    "properties": {
      "name": "Acme Corporation",
      "domain": "acme.com",
      "industry": "Technology",
      "phone": "+1-123-456-7890",
      "address": "123 Main St, Anytown, USA",
      "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/integrations#api)

Body

application/json
query
string
required

Search query to find specific company. Defaults to '_most_recent_company' if not provided or too short.

Example:

"Acme Corporation"

Response

200 - application/json

Retrieved HubSpot company data

status
integer

HTTP status code of the action response

response
object

Response data from the action

I