Access to tc_user_device table via API

Trackera year ago

Greetings everyone.
I would like help to know which endpoint to access the tc_user_device table via API, I see that this table exists but in the documentation I did not find a reference, if there is already something related in the forum, please excuse me and please direct the path. Grateful!

Anton Tananaeva year ago

You can't access it directly via API, but you can get devices associated with a user using the /api/users endpoint.

Trackera year ago

Thanks!
What would be the parameter to use? I tried these two ways and without success.

api/users/?deviceId=xxx
api/users/?uniqueId=xxxxxxxxxxxxxxxxx

Anton Tananaeva year ago

Sorry. Actually it's the other way around. You need to call api/devices?userId=x.

Trackera year ago

Thanks! it worked perfectly.