Memberstack

App · 7 actions

Manage your Memberstack members: list, find, create, update and delete them, check sign-in tokens, and see your data tables.

Actions

ActionWhat it does
Create memberAdd a member to your app, with a password, custom fields and metadata if you like.
Delete memberPermanently delete a member.
Get memberLook up one member by id or email address.
List data tablesList your data tables with their fields and access rules.
List membersList your app's members with their email, custom fields and plans.
Update memberChange a member's email, custom fields, metadata, JSON, sign-in page, verified state or profile image.
Verify member tokenCheck that a member's sign-in token (the JWT from their browser) is genuine and not expired, and get the member it belongs to.

Create member

Add a member to your app, with a password, custom fields and metadata if you like.

Inputs

EmailemailtextRequired
The new member's email address. It must not belong to another member.
Passwordpasswordtext
The member's password. Leave empty only if your app signs members in without passwords.
Custom fieldscustom_fieldsobject
Your custom fields as field name and value. Names are the field ids from Memberstack's Custom Fields settings.
Metadatameta_dataobject
Your own keys and values to keep on the member.
Member JSONjson_dataobject
Free-form JSON to store on the member (up to 1 MB).
Page after sign-inlogin_redirecttext
Where the member lands after signing in, such as /welcome.

Outputs

memberobject
The member
Example output
{
  "member": {
    "auth": {
      "email": "jo@example.com"
    },
    "createdAt": "2026-10-15T09:00:00.000Z",
    "customFields": {
      "firstName": "Jo"
    },
    "id": "mem_abc123",
    "json": {},
    "lastLogin": "2026-10-16T09:00:00.000Z",
    "loginRedirect": "/welcome",
    "metaData": {
      "source": "API"
    },
    "permissions": [],
    "planConnections": [
      {
        "active": true,
        "id": "con_xyz789",
        "payment": null,
        "planId": "pln_free123",
        "planName": "Free",
        "status": "ACTIVE",
        "type": "FREE"
      }
    ],
    "profileImage": null,
    "stripeCustomerId": null,
    "teams": null,
    "verified": true
  }
}

Delete member

Permanently delete a member. This cannot be undone. Optionally delete their Stripe customer and cancel their subscriptions too.

Inputs

Member IDmember_idtextRequired
The member's id (starts with mem_), from 'List members' or an earlier step.
Delete their Stripe customerdelete_stripe_customertrue/false
Also delete the member's customer record in Stripe.Default: false.
Cancel their Stripe subscriptionscancel_stripe_subscriptionstrue/false
Also cancel the member's subscriptions in Stripe.Default: false.

Outputs

deletedtrue/false
Always true once deleted
member_idtext
The member deleted
Example output
{
  "deleted": true,
  "member_id": "mem_abc123"
}

Get member

Look up one member by id or email address. 'Found' is false, rather than an error, when no member matches.

Inputs

Member ID or emailmembertextRequired
The member's id (mem_...) or email address.
Include teamsinclude_teamstrue/false
Also return the teams the member belongs to.Default: false.

Outputs

foundtrue/false
Whether a member matched
memberobject
The member, empty if none matched
Example output
{
  "found": true,
  "member": {
    "auth": {
      "email": "jo@example.com"
    },
    "createdAt": "2026-10-15T09:00:00.000Z",
    "customFields": {
      "firstName": "Jo"
    },
    "id": "mem_abc123",
    "json": {},
    "lastLogin": "2026-10-16T09:00:00.000Z",
    "loginRedirect": "/welcome",
    "metaData": {
      "source": "API"
    },
    "permissions": [],
    "planConnections": [
      {
        "active": true,
        "id": "con_xyz789",
        "payment": null,
        "planId": "pln_free123",
        "planName": "Free",
        "status": "ACTIVE",
        "type": "FREE"
      }
    ],
    "profileImage": null,
    "stripeCustomerId": null,
    "teams": null,
    "verified": true
  }
}

List data tables

List your data tables with their fields and access rules.

Inputs

None.

Outputs

countnumber
How many tables there are
tableslist
The data tables
Example output
{
  "count": 1,
  "tables": [
    {
      "createRule": "AUTHENTICATED",
      "createdAt": "2026-01-15T10:30:00.000Z",
      "deleteRule": "ADMIN_ONLY",
      "fields": [
        {
          "defaultValue": null,
          "id": "cm2xyz789ghi012abc",
          "key": "name",
          "name": "Product Name",
          "referencedTableId": null,
          "required": true,
          "tableOrder": 0,
          "type": "TEXT"
        }
      ],
      "id": "tbl_cm1abc123def456",
      "key": "products",
      "name": "Products",
      "readRule": "PUBLIC",
      "updateRule": "AUTHENTICATED_OWN",
      "updatedAt": "2026-01-20T14:45:00.000Z"
    }
  ]
}

List members

List your app's members with their email, custom fields and plans. Gets one page; to see more, run it again with the next page it gives.

Inputs

Page sizelimitnumber
How many to return, 1 to 100.From 1 to 100.
Next page cursoraftertext
The 'next_cursor' from an earlier page, to get the page after it.
Orderordertext
Sort by sign-up. Defaults to oldest first.One of: ASC (Oldest first (default)), DESC (Newest first).
Include member JSONinclude_jsontrue/false
Also return each member's stored JSON. Slower on big pages.Default: false.

Outputs

countnumber
How many are on this page
has_next_pagetrue/false
Whether another page follows
memberslist
The members
next_cursortext
Pass as 'Next page cursor' for the next page
total_countnumber
How many members the app has in all
Example output
{
  "count": 1,
  "has_next_page": false,
  "members": [
    {
      "auth": {
        "email": "jo@example.com"
      },
      "createdAt": "2026-10-15T09:00:00.000Z",
      "customFields": {
        "firstName": "Jo"
      },
      "id": "mem_abc123",
      "json": {},
      "lastLogin": "2026-10-16T09:00:00.000Z",
      "loginRedirect": "/welcome",
      "metaData": {
        "source": "API"
      },
      "permissions": [],
      "planConnections": [
        {
          "active": true,
          "id": "con_xyz789",
          "payment": null,
          "planId": "pln_free123",
          "planName": "Free",
          "status": "ACTIVE",
          "type": "FREE"
        }
      ],
      "profileImage": null,
      "stripeCustomerId": null,
      "teams": null,
      "verified": true
    }
  ],
  "next_cursor": "",
  "total_count": 1
}

Update member

Change a member's email, custom fields, metadata, JSON, sign-in page, verified state or profile image. Only what you fill in changes.

Inputs

Member IDmember_idtextRequired
The member's id (starts with mem_), from 'List members' or an earlier step.
Emailemailtext
A new email address. Leave empty to keep it.
Custom fieldscustom_fieldsobject
Your custom fields as field name and value. Names are the field ids from Memberstack's Custom Fields settings. Only the ones you give change; the rest are kept.
Metadatameta_dataobject
Metadata keys to set. Only the ones you give change; the rest are kept.
Member JSONjson_dataobject
New member JSON. This replaces all of the member's JSON, so include everything to keep. Leave empty to keep it.
Page after sign-inlogin_redirecttext
A new landing page after sign-in. Leave empty to keep it.
Email verifiedverifiedtext
Mark the member's email as verified or not. Leave empty to keep it.One of: true (Verified), false (Not verified).
Profile image addressprofile_imagetext
The address (https://...) of a new profile image. Leave empty to keep it.

Outputs

memberobject
The member
Example output
{
  "member": {
    "auth": {
      "email": "jo@example.com"
    },
    "createdAt": "2026-10-15T09:00:00.000Z",
    "customFields": {
      "firstName": "Jo"
    },
    "id": "mem_abc123",
    "json": {},
    "lastLogin": "2026-10-16T09:00:00.000Z",
    "loginRedirect": "/welcome",
    "metaData": {
      "source": "API"
    },
    "permissions": [],
    "planConnections": [
      {
        "active": true,
        "id": "con_xyz789",
        "payment": null,
        "planId": "pln_free123",
        "planName": "Free",
        "status": "ACTIVE",
        "type": "FREE"
      }
    ],
    "profileImage": null,
    "stripeCustomerId": null,
    "teams": null,
    "verified": true
  }
}

Verify member token

Check that a member's sign-in token (the JWT from their browser) is genuine and not expired, and get the member it belongs to.

Inputs

Member tokentokentextRequired
The member's sign-in token, such as from a request your site received.

Outputs

member_idtext
The member the token belongs to, empty if invalid
tokenobject
What a member token says
validtrue/false
Whether the token is genuine and unexpired
Example output
{
  "member_id": "mem_abc123",
  "token": {
    "aud": "app_abc123",
    "exp": 1782624476,
    "iat": 1781414876,
    "id": "mem_abc123",
    "iss": "https://client.memberstack.com",
    "type": "member"
  },
  "valid": true
}

On this page