About response from /api/v2/device-credentials when include_totals parameter is true and type is rotating_refresh_token

Hi,

I’m using Management API to retrieve devise credentials(/api/v2/device-credentials).

To handle paging, I use include_totals parameter.

Then I noticed a discrepancy in the behavior of returning an empty return value due to a difference in the type parameter of the request.

For example, the return value of an actual request is as follows.
(Request parameters other than type were the same as these.)

page: 0
per_page: 100
include_totals: true
fields: id,client_id
user_id: {user_id}
client_id:

When requesting with rotating_refresh_token type

{
  "start": 0,
  "limit": 100,
  "device_credentials": []
}

When requesting with public_key

{
  "total": 0,
  "start": 0,
  "limit": 100,
  "device_credentials": []
}

In this case, total was returned.

Since the total parameter is requested, I think it would be preferable to return the total regardless of the contents of the returned value in the case of rotating_refresh_token as well.

Hi @kaito.sato ,

Welcome to the Auth0 Community!

I tested this endpoint and could not repeat this issue. Here is my test with type: rotating_refresh_token

Could you please DM me the name of your tenant and the user_id? Thanks!

Hi, @lihua.zhang,
Thank you for your reply.

I DM’d about my tenant and user_id.

The tenant I tried was Private Instance, so there may be a difference.
I would be grateful if you could take a look. Thanks!