Skip to content

Get clients

Request

Returns an array of clients the current user is linked to

const resp = await fetch(
  `https://api-sandbox.lawvu.com/account-apis/v1/organisations/clients`,
  {method: 'GET'}
);

const data = await resp.text();
console.log(data);

Responses

OK

Body
Array [
idinteger, (int32)

The organisation id of the client

namestring or null

The name of the client organisation

typestring

The type of the organisation

Options:

  • ServiceProvider
  • Customer

Enum:"ServiceProvider""Customer"
permissionsArray of integers or null, (int32)

The permissions the user has for the organisation

]
Response
[
  {
    "id": 1,
    "name": "My organisation",
    "type": "ServiceProvider",
    "permissions": []
  },
  {
    "id": 4,
    "name": "Client 1 organisation",
    "type": "Customer",
    "permissions": []
  }
]