Access to tc_user_device table via API

Tracker10 months 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 Tananaev10 months ago

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

Tracker10 months 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 Tananaev10 months ago

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

Tracker10 months ago

Thanks! it worked perfectly.