⚠️ APIv2 is legacy
APIv2 is considered legacy and is no longer recommended for new integrations.
We strongly encourage you to use APIv4 for all new integrations and to migrate existing integrations where possible.
Please refer to our latest APIv4 documentation for up-to-date information and integration guidelines:
Click here to view the APIv4 example documentation - your own documentation is at https://[your-instance].langlion.com/api/v4/docs
List all users - GET /api/v2/users
Returns a list of the all users (including archived). Users are returned sorted by 'id' field in increasing order.
Request
1$ curl -G 'https://test.langlion.com/api/v2/users' \
2--header 'Authorization: Bearer af2b3df9c671d5413fc5c38b467794782b4047705ac3...'Response
1{
2 "data": {
3 "users": [
4 {
5 "id": 1,
6 "login": "system",
7 "name": "System",
8 "firstName": "System",
9 "lastName": "Langlion",
10 "fullname": "System Langlion",
11 "systemRole": "administrator",
12 "isArchived": 0,
13 "photo": null,
14 "language": "pl_PL",
15 "tosAccepted": 1,
16 "type": null,
17 "typeName": null,
18 "createdAt": null,
19 "updatedAt": "2023-08-23 15:35:56",
20 "additionalData": {
21 "id": null,
22 "phone": null,
23 "mobile": null,
24 "email": null,
25 "skype": null,
26 "street": null,
27 "zipCode": null,
28 "city": null,
29 "country": null,
30 "post": null,
31 "province": null,
32 "pesel": null,
33 "nipNumber": null,
34 "birthDate": null,
35 "birthPlace": null,
36 "description": null,
37 "billingName": null,
38 "billingStreet": null,
39 "billingCity": null,
40 "billingZipCode": null,
41 "billingNipNumber": null,
42 "billingPesel": null,
43 "billingEmail": null,
44 "createdAt": null,
45 "updatedAt": null
46 },
47 "parentUser": null
48 },
49 {
50 "id": 2,
51 "login": "admin",
52 "name": "Administrator",
53 "firstName": "Administrator",
54 "lastName": "Administrator",
55 "fullname": "Administrator Administrator",
56 "systemRole": "administrator",
57 "isArchived": 0,
58 "photo": null,
59 "language": "pl_PL",
60 "tosAccepted": 1,
61 "type": null,
62 "typeName": null,
63 "createdAt": "2017-12-18 15:46:56",
64 "updatedAt": "2023-01-31 18:55:13",
65 "additionalData": {
66 "id": 1,
67 "phone": null,
68 "mobile": null,
69 "email": null,
70 "skype": null,
71 "street": null,
72 "zipCode": null,
73 "city": null,
74 "country": null,
75 "post": null,
76 "province": null,
77 "pesel": null,
78 "nipNumber": null,
79 "birthDate": null,
80 "birthPlace": null,
81 "description": null,
82 "billingName": null,
83 "billingStreet": null,
84 "billingCity": null,
85 "billingZipCode": null,
86 "billingNipNumber": null,
87 "billingPesel": null,
88 "billingEmail": null,
89 "createdAt": "2017-12-18 15:46:56",
90 "updatedAt": "2017-12-18 15:46:56"
91 },
92 "parentUser": null
93 },
94 [...]Parameters
Required
No required parameters.
Optional
- filter - JSON filter
- recordFrom - fetch records from
- recordTo - fetch record up to
- login - filter by user login
- name - filter by user firstname or company name
- lastName - filter by last name
- fullname - filter by fullname
- systemRole - filter by system role
- createdAt - filter by user's date of creation
- updatedAt - filter by user's date of creation