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.
fetch('https://api.memberstack.com/v1/members', {headers: {'X-API-KEY': // your API key}})
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.