How can use HTTP API request with Hubspot to bring companies created in the last 24h and enrich them? After that how can I sync this data with Hubspot automatically for an account that does not have the Hubspot integration
You can use our HTTP API to work with HubSpot data. We support importing objects from HubSpot and creating/updating objects back to HubSpot. For enrichment, use our HubSpot actions like "Lookup object" to find companies, then apply Clay's enrichment tools, and finally use "Update object" or "Create or Update Company" actions to sync enriched data back. However, filtering companies by creation date (last 24h) and setting up automatic syncing requires specific API configurations. Could you share your current JSON setup or HTTP API request so I can help troubleshoot the exact implementation?
How can I build an HTTP to update object properties inside Hubspot?
To build an HTTP request to update object properties in HubSpot, use our "Update object" action. Required inputs: ** Object type (e.g., company, contact) ** HubSpot Object ID ** *Ignore blank values (optional) The action supports updating various properties like company name, description, location, domain, revenue, and more. If you're experiencing JSON formatting issues or "failed to parse body" errors with your HTTP API request, please copy and paste your JSON into the chat so I can help troubleshoot the specific implementation.
Hey Gabriel! You should be able to also use our native Hubspot integration's "Update Object" action which should be much easier here
Hey Hari K. in the account that I'm managing I'm not able to do it. I figured out how to bring objects via API, but I want to know if it's also possible to update them with API and select the fields
Hey! Yes, you can do both with HubSpot's API through Clay's HTTP API enrichment.
To get companies from last 24h:
** Use GET request to HubSpot's companies API
** Add date filter for createdate
in the last 24 hours
** Use the search endpoint with proper query parameters
To update companies back to HubSpot:
** Use PATCH request to HubSpot's companies API
** Send the enriched data to the specific company ID
** Include your API key in headers for authentication
For automation:
** Set up auto-update on your Clay table to run this workflow continuously
** This works even without the native HubSpot integration
You'll need a HubSpot API key with read/write permissions for companies.
Let me know if you have more questions.
Thanks!!
Of course!