Returns a JSON object contain statistics related to the specified user. The statistics provided are:

  1. Total topics (spaces)
  2. Total messages
  3. Total tasks
  4. Total posts (ideas)
  5. Total uploaded files

URL Parameters

NameDescriptionLocationRequiredDefault Value
userIdUnique identifier for the user.pathYes
filterPossible values are : topic, message, task, post, file. You can pass multiple filters like: https://spacesapis.zang.io/api/users/{userId}/statistics?filter=topic,message,post
Default will include all filters.
QueryNo

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

OAuthAuthorizer

Headers

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

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example 1

Request URL

For Production: GET https://spacesapis.avayacloud.com/api/users/{userId}/statistics
For Staging: GET https://loganstagingapis.esna.com/api/users/{userId}/statistics

Response

{
  "topics": {
    "total": 18
  },
  "messages": {
    "total": 79
  },
  "tasks": {
    "total": 5
  },
  "posts": {
    "total": 5
  },
  "files": {
    "total": 7
  }
}

Example 2

Request URL

For Production: GET https://spacesapis.avayacloud.com/api/users/{userId}/statistics?filter=topic,message,post
For Staging: GET https://loganstagingapis.esna.com/api/users/{userId}/statistics?filter=topic,message,post

Response

{
  "topics": {
    "total": 18
  },
  "messages": {
    "total": 79
  },
  "posts": {
    "total": 5
  }
}