API documentation GET /admin/users
Get user details.
GET https://demo.trafficmanager.com/api/v1/admin/users
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key
: Your API key, found in the Security pagex-user-id
: Your User ID, found in the Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
GET Parameters:
- Optional:
csv
: if set, the response will be returned in CSV format instead of JSONids
: comma-separated list of user IDs
Returned values:
id
: user IDuuid
: user UUIDusername
: username of the useremail
: user's email addressrole
: user's role:0
: User1
: Admin2
: Advertiser3
: Affiliate manager4
: Manager5
: Finance department6
: Operator7
: Supplier
status
: user's status:-3
: Inactive and banned-2
: Unapproved-1
: Pending approval0
: Banned1
: Active3
: Inactive
is_email_verified
: whether the email was verified or notlang
: user's languageregistration_date
: user's registration datelast_login
: user's last login datepending
: user's pending credit, in EURcredit
: user's credit, in EURreferer_id
: user's referrer IDaffiliate_manager_id
: user's affiliate manager IDlast_login_ip
: user's last login IPcountry
: user's countryfirst_name
: user's first namelast_name
: user's last namecompany_name
: user's company nametax_number
: user's tax numberis_vat_valid
: whether the European VAT Number is valid or notcity
: user's cityaddress
: user's addressphone
: user's phonezip
: user's zip codeskype
: user's Skype usernametelegram
: user's Telegram usernameregno
: company registration numberaccount_type
: user's account type:1
: Company2
: Individual
Request example
GET https://demo.trafficmanager.com/api/v1/admin/users
Response example
{ users: [ { "id":1, "uuid":"6673616e-6365-7363-6f2d-6c6f7b6b6100", "username":"John", "email":"john@yahoo.com", "role":1, "status":1, "is_email_verified":true, "lang":"en", "registration_date":"2016-07-08 23:23:46", "last_login":"2021-09-20 11:13:10", "pending":0.000015, "credit":75703.41078, "referer_id":null, "affiliate_manager_id":null, "last_login_ip":"10.0.2.2", "country":"RO", "first_name":"John", "last_name":"Doe", "company_name":"Company", "tax_number":"12345", "is_vat_valid":0, "city":"Brașov", "address":"Strada X", "phone":"+407434352", "zip":"500123", "skype":"john_doe", "telegram":"", "regno":"12312", "account_type":1 }, { "id":2, "uuid":"6075c39f-7e44-3a47-45c2-a1c392c2a662", "username":"admin", "email":"info@tubeadvertising.eu", "role":1, "status":3, "is_email_verified":true, "lang":"en", "registration_date":"2016-07-12 08:06:24", "last_login":"2019-07-18 12:17:00", "pending":-942.548833, "credit":0, "referer_id":null, "affiliate_manager_id":null, "last_login_ip":null, "country":"RO", "first_name":"", "last_name":"", "company_name":"", "tax_number":null, "is_vat_valid":0, "city":"", "address":"", "phone":"", "zip":"", "skype":"", "telegram":null, "regno":null, "account_type":2 }, ], status: 200 }
CSV
You can also get the response in CSV instead of JSON. Simply add csv=1
as a GET parameter.
Request example:
GET https://demo.trafficmanager.com/api/v1/admin/users/?csv=1
Response example:
id,uuid,username,email,role,status,is_email_verified,lang,registration_date,last_login,pending,credit,referer_id,affiliate_manager_id,last_login_ip,country,first_name,last_name,company_name,tax_number,is_vat_valid,city,address,phone,zip,skype,telegram,regno,account_type 1,6673616e-6365-7363-6f2d-6c6f7b6b6100,John,john@yahoo.com,1,1,1,en,"2016-07-08 23:23:46","2021-09-27 12:39:18",1.5E-5,75703.41078,,10.0.2.2,RO,John,Doe,Company,12345,0,Brașov,"Strada X",+407434352,500123,"john_doe",,12312,1 2,6075c39f-7e44-3a47-45c2-a1c392c2a662,admin,info@tubeadvertising.eu,1,3,1,en,"2016-07-12 08:06:24","2019-07-18 12:17:00",-942.548833,0,,,RO,,,,,0,,,,,,,,2