Clay Icon

Using Basic Authentication with Clay's HTTP API

Β·
Β·

How do I use basic authentication with the HTTP API in Clay? The API I am working with requires username and password, where username is the api key?

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    To use basic authentication with the HTTP API in Clay when the API requires a username (API key) and password, you'll need to set up the Authorization header. Here's how: 1. In the HTTP API integration setup, go to the "Headers" section. 2. Add a new header with the key "Authorization". 3. For the value, use: Basic <encoded_credentials> Where <encoded_credentials> is the Base64 encoding of "username:password". For example, if your API key is the username, it would look like this: Authorization: Basic <Base64_encoded_string_of_"api_key:password"> Remember to replace "api_key" and "password" with your actual credentials before encoding. If you encounter any JSON-related issues while setting this up, please copy and paste the JSON into the chat so we can troubleshoot further.

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·