TheDocumentation Index
Fetch the complete documentation index at: https://docs.major.build/llms.txt
Use this file to discover all available pages before exploring further.
HubSpotResourceClient is a specialized client for interacting with the HubSpot API, providing a convenient way to access CRM objects and other HubSpot features.
Usage
Search API
The HubSpot Search API allows you to query CRM objects with filtering, sorting, and pagination. Search has stricter rate limits than other API methods.Rate Limits
- Search API: 5 requests per second (much stricter than general API rate limit)
- General API: 100 requests per 10 seconds
Basic search
Filter operators
| Operator | Description | Example |
|---|---|---|
EQ | Equal | { propertyName: "status", operator: "EQ", value: "active" } |
NEQ | Not equal | { propertyName: "status", operator: "NEQ", value: "inactive" } |
LT | Less than | { propertyName: "amount", operator: "LT", value: "1000" } |
LTE | Less than or equal | { propertyName: "amount", operator: "LTE", value: "1000" } |
GT | Greater than | { propertyName: "amount", operator: "GT", value: "1000" } |
GTE | Greater than or equal | { propertyName: "amount", operator: "GTE", value: "1000" } |
IN | In list | { propertyName: "status", operator: "IN", values: ["active", "pending"] } |
NOT_IN | Not in list | { propertyName: "status", operator: "NOT_IN", values: ["inactive"] } |
CONTAINS_TOKEN | Contains (for text) | { propertyName: "name", operator: "CONTAINS_TOKEN", value: "John" } |
HAS_PROPERTY | Has property | { propertyName: "custom_field", operator: "HAS_PROPERTY" } |
Date formatting
For date properties, use ISO 8601 format (YYYY-MM-DD) or Unix timestamps (milliseconds):
Pagination
Use theafter parameter for cursor-based pagination:
paginationCursor field if more results are available.
Inputs
Theinvoke method accepts the following arguments:
The HTTP method to use:
"GET", "POST", "PUT", "PATCH", or "DELETE".The HubSpot API path (e.g.,
/crm/v3/objects/contacts).A unique identifier for this operation.
Optional configuration object.
Outputs
The output format is the same as the Custom API client.Discriminator for the response type.
The HTTP status code.
The response body (typically JSON).