Signing members in

You want to automatically sign members into your external application whenever they sign into Memberful. Memberful uses OAuth 2.0 for authenticating members. Please read the OAuth 2.0 implementation instructions for details on using OAuth with Memberful.

Once you've acquired an access token, you can make a request to the Member API to get information about the member:

GET https://yoursite.memberful.com/account.json?access_token=XXX
Accept: application/json

Response

Status: 200 OK
Content-Type: application/json
{
  "member": {
    "address": {
      "street": "Street",
      "city": "City",
      "postal_code": "Postal code",
      "country": "City"
    },
    "created_at": 1513113157,
    "credit_card": {
      "exp_month": 1,
      "exp_year": 2040
    },
    "custom_field": "Custom field value",
    "email": "john.doe@example.com",
    "first_name": "John",
    "full_name": "John Doe",
    "id": 0,
    "last_name": "Doe",
    "phone_number": "555-12345",
    "stripe_customer_id": "cus_00000",
    "tracking_params": {
    },
    "unrestricted_access": false,
    "username": "john_doe"
  },
  "products": [
    {
      "product": {
        "id": 0,
        "name": "Sample download",
        "price": 1000,
        "slug": "0-sample-download",
        "for_sale": true
      }
    }
  ],
  "subscriptions": [
    {
      "active": true,
      "created_at": 1402281249,
      "expires": true,
      "expires_at": 1433817249,
      "in_trial_period": false,
      "renew_at_end_of_period": true,
      "subscription": {
        "id": 0,
        "price": 1000,
        "name": "Sample plan",
        "slug": "0-sample-plan",
        "renewal_period": "monthly",
        "interval_unit": "month",
        "interval_count": 1,
        "for_sale": true
      },
      "trial_end_at": null,
      "trial_start_at": null
    }
  ],
  "purchased_subscriptions": [
    {
      "active": true,
      "created_at": 1402281249,
      "expires": true,
      "expires_at": 1433817249,
      "in_trial_period": false,
      "renew_at_end_of_period": true,
      "subscription": {
        "id": 0,
        "price": 1000,
        "name": "Sample plan",
        "slug": "0-sample-plan",
        "renewal_period": "monthly",
        "interval_unit": "month",
        "interval_count": 1,
        "for_sale": true
      },
      "trial_end_at": null,
      "trial_start_at": null
    }
  ]
}

General

How to

CMS Integrations

Email Newsletters

Discussion Forums

WordPress

Video

API