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
1
fetch('https://api.memberstack.com/v1/members', {
2
headers: {
3
'X-API-KEY': // your API key
4
}
5
})
Copied!
1
curl -i -H "X-API-KEY: yourapikey" -H "Content-Type: application/json" https://api.memberstack.com/v1/members
Copied!
Make sure you're not exposing your private API key in a browser environment.
Last modified 1yr ago
Copy link