This API returns an array of members of a space by given the space id. Members include admin, member, guest. For query pagination, please use the nextPageUrl and previousPageUrl from the response data. Note: page and size parameters were previously ignored, they are now recognized.

URL Parameters

NameDescriptionLocationRequiredDefault Value
spaceIdThe ID of the spacePathYes
sizeThe number of messages in the response dataQueryNo30
pageThe page number of the response dataQueryNo0
searchThe search string to filter membersQueryNo

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator4001

Authorization

PERM_TOPIC_READ

Example Request

URL

GET https://spacesapis.zang.io/api/spaces/{spaceId}/members

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
  "data": [
    {
      "member": "566f226c075808499ec27d0e",
      "memberType": "userId",
      "role": "admin",
      "joinTime": "2017-03-15T19:34:01.481Z",
      "username": "rayg@esna.com",
      "displayname": "Ray Gerami K",
      "picture_url": "https://lh6.googleusercontent.com/-Hv1qTBrUUBI/AAAAAAAAAAI/AAAAAAAAAD0/ocKelr07smI/photo.jpg"
    },
    {
      "member": "568abc6a075808499ec29ea1",
      "memberType": "userId",
      "role": "member",
      "joinTime": "2017-03-15T19:43:22.975Z",
      "username": "ladislavr@esna.com",
      "displayname": "Ladislav Rosulek",
      "picture_url": "https://lh6.googleusercontent.com/-T6OjCBk0m_M/AAAAAAAAAAI/AAAAAAAAAEk/33CDbcKWFIc/photo.jpg"
    },
    {
      "member": "5890b1243bab0e18ff044943",
      "memberType": "userId",
      "role": "member",
      "joinTime": "2017-03-20T17:40:15.208Z",
      "username": "patrickhan@esna.com",
      "displayname": "Patrick-123 Han-han",
      "picture_url": "https://www.onesna.com/norevimages/noimage.jpg"
    }
  ],
  "total": 3
}