Admin/Users
User endpoints for admins.
Get Users list
GET
https://switchapi3.azurewebsites.net/admin/users
Retrieves list of users.
Query Parameters
blacklisted
string
Filter for blacklisted users. true or false
sales_agent_referral_code
string
Referral code of a sales agent.
is_diaspora
boolean
Filter for diasporan/non-diasporan users. true or false
search_query
string
Query string to search through users by email or name
is_verified
boolean
Filter for verified/unverified users. true or false
page
string
Defaults to 1
per_page
string
Defaults to 20
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Get User info
GET
https://switchapi3.azurewebsites.net/admin/users/:user_id
Retrieve user info by id.
Path Parameters
user_id
string
The user id
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Disable User
POST
https://switchapi3.azurewebsites.net/admin/users/disable/:user_id
This endpoint is for the super-admin to directly disable a user.
Path Parameters
user_id
string
The user's id.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Request Body
reason
string
The reason for disabling the user.
Enable disabled user
POST
https://switchapi3.azurewebsites.net/admin/users/enable/:user_id
This endpoint is for the super-admin to directly enable a disabled user.
Path Parameters
user_id
string
The user id
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Request Body
reason
string
The reason for enabling the user.
Update user's fraud status
POST
https://switchapi3.azurewebsites.net/admin/users/update_fraud_status/:user_id
This endpoint updates the user's fraud status. Only for customer success and admin.
Path Parameters
user_id
string
The id of the user
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Request Body
comment
string
The admin's comments.
fraud_status
string
The user's fraud status. Can be one of the following: - whitelisted - suspicious - fraudulent
Get Users with pending verification requests
GET
https://switchapi3.azurewebsites.net/admin/users/pending_verification_requests
This endpoint returns the users that have pending verification requests.
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Get User's Devices
GET
https://switchapi3.azurewebsites.net/admin/users/:id/devices
This endpoint returns the list of mobile devices linked to a user's account.
Path Parameters
id
string
The user's id.
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Delete User Device
POST
https://switchapi3.azurewebsites.net/admin/users/delete/:id/devices/:device_id
This endpoint unlinks a device from a user.
Path Parameters
id
string
The user's id.
device_id
string
The id of the device
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Reset User Password
POST
https://switchapi3.azurewebsites.net/admin/users/reset_password/:id
This endpoint resets the user's password.
Path Parameters
id
string
The user's id
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Last updated
Was this helpful?