Bug report: List invitations endpoint does not return "totals"

Thank you, Dan! Nice to meet you. About the bug, actually the expected return would be something like:

{
  "invitations": [
  {...},
  {...}
  ],
  "start": 0,
  "limit": 2,
  "total": 2
}

start and limit are related with params page and per_page respectively. total is a different information. For example, if I set page to 0, per_page to 3 and I have 5 invitations the expected result would be

{
  "invitations": [
  {...},
  {...},
  {...}
  ],
  "start": 0,
  "limit": 3,
  "total": 5
}

As I understand it, the return of this call would be something similar to calls https://xxx.auth0.com/api/v2/users?include_totals=true or https://xxx.auth0.com/api/v2/organizations?include_totals=true.

1 Like