Access to tc_user_device table via API

Tracker 2 years 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 Tananaev 2 years ago

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

Tracker 2 years 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 Tananaev 2 years ago

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

Tracker 2 years ago

Thanks! it worked perfectly.