User Management > Accounts
List accounts
This endpoint allows you to retrieve all the accounts of a user.
get/1/accounts
Query parameters
withstring
Optional : Allows loading additional data about a resource, which may include related resources.
Optional parameter that define the field used for sorting<br /> Part of the sort capacity
order'asc' | 'desc'
Optional parameter that define the default sort order<br /> Part of the sort capacity
order_forobject
Optional parameter that define the sorting order for a field<br /> By default order is used<br /> Part of the sort capacity
Response
OK
Example response
{
"result": "success",
"data": [
{
"id": 1234,
"name": "Secret Organization",
"legal_entity_type": "company",
"created_at": 1294959600,
"addresses": [
{
"id": 1234,
"street": "Rue Eugène-Marziano 25",
"zip": "1227",
"city": "Genève",
"type": "professional",
"created_at": 1558601584,
"country": {
"id": 203,
"name": "SWITZERLAND",
"short_name": "CH"
}
}
],
"timezone": "Europe/Zurich",
"website": "https://www.infomaniak.com",
"phone": "+41790000000",
"fax": "+41220000000",
"locale": "fr_FR",
"language_id": 1,
"logo": "https://www.infomaniak.com/img/common/logo-infomaniak.svg",
"logo_square": "https://www.infomaniak.com/img/common/logo-infomaniak.svg",
"order": {
"waiting_payment": 1
},
"support_level": 1,
"type": "owner",
"tags": [
{
"id": 1234,
"name": "My tag name",
"color": 4,
"product_count": 2
}
],
"nb_invitations": 2,
"nb_users": 2,
"count_owners": 2
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.