Registers a new device for the given user, or updates metadata of an existing one. This requires a client access token of the application, and must be called from the backend.
Required permissions: apps:edit, [appId]:edit, devices:edit.
Security
ClientAccessToken
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/users/{user_id}/devices
- US production environmenthttps://api.transmitsecurity.io/cis/v1/users/{user_id}/devices
- EU production environmenthttps://api.eu.transmitsecurity.io/cis/v1/users/{user_id}/devices
- CA production environmenthttps://api.ca.transmitsecurity.io/cis/v1/users/{user_id}/devices
- AU production environmenthttps://api.au.transmitsecurity.io/cis/v1/users/{user_id}/devices
- JP production environmenthttps://api.gasne1-ts01.transmitsecurity.io/cis/v1/users/{user_id}/devices
curl -i -X POST \
'https://api.sbx.transmitsecurity.io/cis/v1/users/{user_id}/devices' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"device_id": "string",
"display_name": "string",
"device_type": "mobile",
"hardware_model": "string",
"os": "string",
"browser": "string",
"registered_region": "string"
}'Device created or updated
Response
{ "user_id": "string", "device_id": "string", "status": "active", "display_name": "string", "device_type": "mobile", "hardware_model": "string", "os": "string", "browser": "string", "registered_ip": "string", "registered_region": "string", "last_authenticated": "2019-08-24T14:15:22Z", "last_auth_attempt": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }