Skip to main content

Fetching User Information

The GET /v3/user endpoint is used to fetch user information.

GET /v3/user?pageNumber=1&pageSize=10&sortBy=id&sortDirection=descending
Authorization: Basic ${ base64(apiKey + ':' + secretKey) }
ParameterRequiredDescription
pageNumberNoWhich page to fetch. Defaults to 1.
pageSizeNoThe size of the page. Can be no more than 100. Defaults to 10.
sortByNoWhich property to sort the results by. Can be one of: 'id', 'createdAt', 'lastLoggedInAt'.
sortDirectionNoCan be one of: 'ascending', 'descending'. Defaults to 'ascending'.
isAdminNoFilter users based on whether they are admins or not.

Response example:

HTTP/2.0 200 OK
{
"data": [
{
"ssn": "YYYYMMDDXXXX",
"country": "SWEDEN",
"authType": "EID",
"email": "firstname.lastname@example.com",
"createdAt": "2020-01-01 00:00:00",
"lastLoggedInAt": "2020-01-01 00:00:00",
"isAdmin": false,
"services": [
{
"type": "TELEID",
"countries": ["SWEDEN"]
}
]
}
],
"totalPages": 1,
"totalElements": 1,
"numberOfElements": 1
}