Authentication

The Memberstack API uses an API key to authenticate the requests. You can retrieve an API key in the Memberstack dashboard.

The received API key can be added to the X-API-KEY request header.

JavaScript
cURL
JavaScript
fetch('https://api.memberstack.com/v1/members', {
headers: {
'X-API-KEY': // your API key
}
})
cURL
curl -i -H "X-API-KEY: yourapikey" -H "Content-Type: application/json" https://api.memberstack.com/v1/members

Make sure you're not exposing your private API key in a browser environment.