# Getting the current membership

# CLI

# Get membership invites for user

$ cncli query accreditations get-invites-for-user [address]
1

# Get all the membership invites

$ cncli query accreditations get-invites
1

# REST

# Endpoint

/memberships/${address}
1

# Parameters

Parameter Description
address Address of the user for which to read the membership

# Example

# Call

http://localhost:1317/memberships/did:com:15erw8aqttln5semks0vnqjy9yzrygzmjwh7vke
1

# Response

{
  "height": "0",
  "result": {
    "user": "did:com:15erw8aqttln5semks0vnqjy9yzrygzmjwh7vke",
    "membership_type": "bronze"
  }
}
1
2
3
4
5
6
7