HEADS-UP BASIC AUTH (NOT BEARER)
We use BASIC authentication NOT bearer. Pay special attention to the following:- You must use HTTP BASIC authentication (more below).
- The login (username) is always empty.
- The password is your API key.
- THERE IS A COLON before your API key.
Grab your API key
- head over to lemlist
- click on your profile picture in the bottom left-hand corner and click on Settings
- go to the Integrations tab
- click on Generate a new API key
- store it securely because you won’t be able to see it again

Of course, never - ever - share your API key. Treat it like a password.
Authenticate
Basic authentication involves sending a verified username (empty, in our case) and password (your API key) with all requests. But not just like that. They must be Base64 encoded and passed in the Authorization header of all your requests. Step by step, this is how to authenticate to our API:- you get an API key (cf. above)
- you build the string
:YourApiKey(YES, colon at the start) - you Base64 encode that
:YourApiKeystring (this is how in Javascript) - you pass the encoded result in the Authorization header of all requests with the prefix “Basic ”.
endpoint in the API will look similar to this:
give us feedback on this page