The Memberstack Admin API allows for verifying webhooks and JWT tokens, as well as performing CRUD operations on Members. The API has a rate limit of 25 requests per second.
View Admin Package Documentation →
-------------------
To authenticate requests, the API uses secret keys, which can be managed and obtained from the Memberstack dashboard. It is important to keep these keys secure and use them only in server-side environments.
To use the API in Node.js, the Memberstack Admin package can be installed from the npm public registry or Yarn. Once installed, the API can be initialized by passing in the secret key to the init method.
The Memberstack REST API has a base URL of https://admin.memberstack.com, and X-API-KEY headers should be used with the secret key for authentication.
Webhook and JWT verification methods cannot be performed via REST API at the moment, but a Public Key URL is available for token verification with custom logic.
The Member object represents members in a Memberstack app instance, and various endpoints are available for CRUD operations, such as GET, PATCH, DELETE, and POST. Actions such as listing all members, retrieving a member by their ID or email, creating a member, updating a member, and deleting a member are possible. Additionally, free plans can be added or removed from members.
-------------------
Keywords: Verify, retrieve, payload, token, Parameters, Request Examples, memberstackAdmin, initialization, object, npm, memberstackAdmin, init, verifyToken, verifySignature, GET /members/:id, PATCH /members/:id, DELETE /members/:id, POST /members, plans, customFields, metaData, loginRedirect, after, order, limit, totalCount, endCursor, hasMore, data.
Comments
0 comments
Please sign in to leave a comment.