Clay Icon

Need Help with Clay API for CI/CD Token Rotation in Enrichment

Β·
Β·

Hi, I have an enrichment that make HTTP call. It requires a header token. The token expires every 30 days so I need to rotate it. I would like to use Clay API to CI/CD the rotation of that key, but I can't seem to find the relevant api to modify settings of an enrichment. Any pointer for this please?

  • Avatar of Bo (.
    Bo (.
    Β·
    Β·

    Hey, thanks for reaching out! 😊 You can use our HTTP JWT for authentication, or if the keys change every 30 days, you can simply update the auth manually. What I’ve seen others do is create a text column to store the API key, then reference it using a forward slash / in the authentication headers. This way, the column won’t trigger a rerun.

  • Avatar of Le M.
    Le M.
    Β·
    Β·

    sending the api as a text column is a good trick, although not very secure I guess. But I will try to do that for now, thanks! But so, do you guys have a documentation for your API key? I see the API Key but no documentation at all about what can be done with it

  • Avatar of Daniela D.
    Daniela D.
    Β·
    Β·

    Hey! Thanks for the reply. Clay doesn't have a public API/documentation that can be shared. The API key in Clay applies to using the write to table/lookup integrations or importing data through Zapier (webhook import). Sharing some resources below to provide a bit more context about how those features work: - https://docs.clay.com/en/articles/9672432-write-to-other-table-with-clay-labs - https://docs.clay.com/en/articles/9672275-lookup-multiple-rows-in-other-table-with-clay - https://docs.clay.com/en/articles/9672418-lookup-single-row-in-other-table-with-clay Zapier Let me know if this helps.

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    We haven't heard back from you in a bit, so we're going to go ahead and close things out here - feel free to let us know if you still need something!

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    Hi Le M.! This thread was recently closed by our Support team. If you have a moment, please share your feedback: