How do I format headers correctly if I want to use my Clay API to send data into Clay?
Clay doesn't have a direct API for sending data in. Instead, we use webhooks for input and HTTP API for output. For HTTP API requests, headers are key-value pairs that provide additional information about the request. Common headers include: 1. Authorization: Used for authentication, typically formatted as "Bearer <token> ". 2. Content-Type: Specifies the format of the data being sent, usually set to "application/json" for Clay. To set headers in Clay's HTTP API integration: 1. Go to the Headers section in the integration setup. 2. Enter the header name (e.g., "Authorization") and its corresponding value. For more details on using webhooks to send data to Clay, check our documentation on importing data using webhooks.
No it's not, I would like to know how to add my accounts Clay API in my javascript code to send data into clay from my custom code. Here is how I have it set up currently const clayApiUrl = `https://api.clay.com`; try { const response = await fetch(clayApiUrl, { method: 'PATCH', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer My_API' }, body: JSON.stringify(clayData) });
No it's not, I would like to know how to add my accounts Clay API in my javascript code to send data into clay from my custom code. Here is how I have it set up currently const clayApiUrl = `https://api.clay.com`; try { const response = await fetch(clayApiUrl, { method: 'PATCH', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer My_API' }, body: JSON.stringify(clayData) });
Hi there, We don't expose the API like this. What you need to use is the webhook to receive the data inside of Clay. The webhook will provide a URL that you can send post requests to, and the data will appear in Clay directly. You can learn more here: https://www.clay.com/university/lesson/intro-to-typeforms-webhooks-and-inbound-lead-sources-automated-inbound
u have to authorize the req with cookies.....clay does not have a public api yet.
Hey Michael - What's your question here?
Summiya B. helped answered this but I’m curious if there’s a more permanent setup like api call since cookies expire
Hi Bo (. I love your Webhooks feature to send data in the workbooks and the HTTP API requests to send data in and out! But I was looking for a way to send "updates" data to your sources integration - like find people or find jobs, for example. This would be a really cool feature if possible!
Hey, Curious—when you say “updates,” do you mean triggering a new Find People or Find Jobs search based on incoming data? If so, both of those are enrichment sources available in the enrichment panel. So yes, when you send data into Clay via Webhooks, you can still trigger those searches automatically. Let me know if you’re trying something different!
Hey Bo (. thank you for getting back to me and yes that's what I mean. The issue with using the webhooks in the table is that the webhook is set as the source instead of the "Find Jobs" source. I am unable to find the same "Find Jobs" enrichment that does not use clay credits if it is not used as the source for the table.
Hey — You’re right, the “Find Jobs” enrichment does use Clay credits when run inside the table. The free version isn’t available outside of Play of Fortune because of how it’s structured and the providers it relies on. Let me know if you want help finding a workaround.
Bo (. thank you for the clarification. And I would love help finding a workaround!
I’m looking to send data into clay to fill in the Find Job filters without having the company domain/name be a required field - just like how you can using the Find Jobs source
Hey, One workaround could be using an Apify actor. Apify has a few that let you input just job info—no need for company name or domain. You can send your data to Apify via API, then pass it to Clay using a webhook for further enrichment.
Bo (. Okay wow, yeah good idea! Do you have any recommendations on specific actors?
Hey! I’d recommend checking out this list of job-related actors on Apify: https://apify.com/store/categories/jobs Depending on what you’re trying to achieve, a few of those might spark some ideas or give you a solid starting point. Let me know if you have more questionsl
Thank you Bo (.