Skip to main content
POST
Get HubSpot Object Data

Authorizations

Authorization
string
header
required

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

Body

application/json
object_type
enum<string>
required

Type of HubSpot object to retrieve (e.g., company, contact, deal).

Available options:
company,
contact,
deal,
ticket
Example:

"company"

query
string
required

Search query to find specific object. Defaults to '_most_recent_company' if not provided or too short (or '_most_recent_contact' if object_type is 'contact').

Example:

"Acme Corporation"

Response

200 - application/json

Retrieved HubSpot object data

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action