For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trebellar Platform
DocsGuidesAPI Reference
DocsGuidesAPI Reference
  • API Reference
    • Introduction
  • API Resources
      • GETList People with Asset Filtering
      • POSTBatch Create/Update People
      • DELBatch Delete People
      • PATCHBatch Assign People to Assets
      • DELBatch Delete People-Asset Associations
      • PATCHBatch Add People to Groups
      • PATCHBatch Remove People from Groups
Trebellar Platform
LogoLogo
API ResourcesPeople

List People with Asset Filtering

||View as Markdown|
GET
https://api.trebellar.app/api/v2/people
GET
/api/v2/people
1import { TrebellarApiClient } from "@trebellar/api-sdk";
2
3async function main() {
4 const client = new TrebellarApiClient({
5 apiKey: "YOUR_API_KEY_HERE",
6 });
7 await client.people.listPeople({});
8}
9main();
1{
2 "data": [
3 {
4 "id": "string",
5 "groups": [
6 {
7 "id": "string",
8 "name": "string",
9 "status": "PEOPLE_GROUP_STATUS_UNKNOWN",
10 "path": "string",
11 "parentId": "string",
12 "avatarUrl": "string",
13 "description": "string",
14 "properties": {
15 "color": "#FF5722"
16 },
17 "externalId": "string"
18 }
19 ],
20 "externalId": "string",
21 "assetId": "st_sf_tower_01",
22 "name": "string",
23 "hireDate": 1.1,
24 "employmentStatus": "active",
25 "terminationDate": 1.1,
26 "address": {
27 "raw": "123 Main St, Apt 4B, San Francisco, CA 94105",
28 "postalCode": "94105",
29 "streetName": "Main St",
30 "city": "San Francisco",
31 "state": "CA",
32 "countryIso": "US"
33 },
34 "properties": {},
35 "createdAt": "string",
36 "updatedAt": "string"
37 }
38 ]
39}

Retrieve a list of people with optional filtering by asset assignments. Use the forAssetIds parameter to filter people who are assigned to specific assets (desks, spaces, etc.). Returns complete employee profiles including contact information, employment status, group memberships, and current asset assignments.

Was this page helpful?
Previous

Delete People Group

Next

Batch Create/Update People

Built with

Authentication

X-Trebellar-Api-Keystring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

forAssetIdsstringOptional

Response

People list retrieved successfully with complete profiles and asset assignments
datalist of objects

Errors

404
Not Found Error