# Memberstack

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

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/memberstack

## Actions

### Create member

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

**Inputs**

- Email (`email`, text, required): The new member's email address. It must not belong to another member.
- Password (`password`, text): The member's password. Leave empty only if your app signs members in without passwords.
- Custom fields (`custom_fields`, object): Your custom fields as field name and value. Names are the field ids from Memberstack's Custom Fields settings.
- Metadata (`meta_data`, object): Your own keys and values to keep on the member.
- Member JSON (`json_data`, object): Free-form JSON to store on the member (up to 1 MB).
- Page after sign-in (`login_redirect`, text): Where the member lands after signing in, such as /welcome.

**Outputs**

- `member` (object): The member

**Example output**

```json
{
  "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 ID (`member_id`, text, required): The member's id (starts with mem_), from 'List members' or an earlier step.
- Delete their Stripe customer (`delete_stripe_customer`, true/false): Also delete the member's customer record in Stripe. Default: `false`.
- Cancel their Stripe subscriptions (`cancel_stripe_subscriptions`, true/false): Also cancel the member's subscriptions in Stripe. Default: `false`.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `member_id` (text): The member deleted

**Example output**

```json
{
  "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 email (`member`, text, required): The member's id (mem_...) or email address.
- Include teams (`include_teams`, true/false): Also return the teams the member belongs to. Default: `false`.

**Outputs**

- `found` (true/false): Whether a member matched
- `member` (object): The member, empty if none matched

**Example output**

```json
{
  "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**

- `count` (number): How many tables there are
- `tables` (list): The data tables

**Example output**

```json
{
  "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 size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.
- Order (`order`, text): Sort by sign-up. Defaults to oldest first. One of: `ASC` (Oldest first (default)), `DESC` (Newest first).
- Include member JSON (`include_json`, true/false): Also return each member's stored JSON. Slower on big pages. Default: `false`.

**Outputs**

- `count` (number): How many are on this page
- `has_next_page` (true/false): Whether another page follows
- `members` (list): The members
- `next_cursor` (text): Pass as 'Next page cursor' for the next page
- `total_count` (number): How many members the app has in all

**Example output**

```json
{
  "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 ID (`member_id`, text, required): The member's id (starts with mem_), from 'List members' or an earlier step.
- Email (`email`, text): A new email address. Leave empty to keep it.
- Custom fields (`custom_fields`, object): 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.
- Metadata (`meta_data`, object): Metadata keys to set. Only the ones you give change; the rest are kept.
- Member JSON (`json_data`, object): New member JSON. This replaces all of the member's JSON, so include everything to keep. Leave empty to keep it.
- Page after sign-in (`login_redirect`, text): A new landing page after sign-in. Leave empty to keep it.
- Email verified (`verified`, text): Mark the member's email as verified or not. Leave empty to keep it. One of: `true` (Verified), `false` (Not verified).
- Profile image address (`profile_image`, text): The address (https://...) of a new profile image. Leave empty to keep it.

**Outputs**

- `member` (object): The member

**Example output**

```json
{
  "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 token (`token`, text, required): The member's sign-in token, such as from a request your site received.

**Outputs**

- `member_id` (text): The member the token belongs to, empty if invalid
- `token` (object): What a member token says
- `valid` (true/false): Whether the token is genuine and unexpired

**Example output**

```json
{
  "member_id": "mem_abc123",
  "token": {
    "aud": "app_abc123",
    "exp": 1782624476,
    "iat": 1781414876,
    "id": "mem_abc123",
    "iss": "https://client.memberstack.com",
    "type": "member"
  },
  "valid": true
}
```
