OperatorAPI user:list
newadmapi (Operator API) function. Available to: Operator, SuperRoot.
Description
Lists the customers of the caller's tenant. The source view carries a plaintext password and bank-account columns; neither is declared and neither is selected. Paginated. Sorting and searching are restricted to the declared fields; anything else is rejected and named. Read audience is provisional pending operator confirmation.
Call
GET|POST https://YOUR_HOST:9089/newadm?func=user:list
Send your API key with every request (header X-API-Key: YOUR_KEY, or Authorization: Bearer YOUR_KEY, or the ukey query parameter).
Parameters
None beyond the API key and func=user:list.
Example
https://host:port/newadm?func=user:list
Response
Success is {"ok":true,"data":{...}}; on refusal {"ok":false,"code":"...","message":"..."}. This function's data shape: {"ok":true,"data":{"rows":[{"id":n,"accountcode":s,"name":s,"company":s,"email":s,"tariff":s,"blocked":s,"credit":n,"credit_limit":n,"postpaid":s,"date_added":s(ISO-8601, naive),"nota":s,"nif":s}],"page":n,"pagesize":n,"fields":[s],"available":[s],"order":s,"dir":s,"filterby":s?,"filter":s?}}.
Errors
Refusals carry a machine-readable code (branch on the code, never the message). See OperatorAPI#Error codes.
Back to OperatorAPI