Skip to main content

Entities

Host: https://crm-service.<domain>. All endpoints need a service token or a user with the customers.use claim.

Get an entity​

GET/api/v2/entity/{humanId}crm-service
QueryDescription
fieldsComma separated field list, e.g. fields=data.name,data.city
include, excludeComma separated lists, alternative to fields
curl -s "https://crm-service.scenid.cloud/api/v2/entity/SC-ZW2VEG?fields=data.name,data.city" \
-H "Authorization: Bearer $TOKEN"
Response 200
{
"id": "6f0f…",
"humanId": "SC-ZW2VEG",
"entityType": "ou",
"data": { "name": "Nordlicht Holding GmbH", "city": "Hamburg" }
}

Errors: 400 entity/not-found. The type is not checked, the same route returns companies, people and groups. Users only see what their group ACLs permit, service tokens see everything.

List entities​

POST/api/v2/entities/listcrm-service
BodyTypeDescription
entityTypesstring[]Required. ou, person, group
fieldsstring[]Extra fields
filterModelobject{ logicOperator, items: [{ field, operator, value }] }
hideInactivebooleanHide data.active = false
sortarrayES clauses, or { field, sort } with pagination
pagination{ page, pageSize }Optional. Response becomes { rows, totalCount }
curl -s https://crm-service.scenid.cloud/api/v2/entities/list \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{
"entityTypes": ["ou"],
"fields": ["data.city"],
"filterModel": {
"logicOperator": "and",
"items": [{ "field": "data.city", "operator": "equals", "value": "Hamburg" }]
},
"hideInactive": true
}'
Response 200 (no pagination)
[
{ "entityType": "ou", "id": "…", "humanId": "SC-ZW2VEG", "data": { "name": "Nordlicht Holding GmbH", "city": "Hamburg" }, "score": 1 }
]

Without pagination all matches are returned (read in pages of 10,000). With pagination: { "rows": […], "totalCount": 123 }, limited to a 10,000 result window (entity/pagination-window-exceeded).

Filter operators: strings contains, doesNotContain, startsWith, endsWith, equals, isEmpty, isNotEmpty. Booleans equals, isEmpty, isNotEmpty. Virtual fields __GROUPS__, __MEMBERS__, __EMPLOYEES__, __EMPLOYMENTS__, __ROLES__ with includes / excludes.

Search entities​

POST/api/v2/entities/searchcrm-service
BodyDescription
entityTypeRequired. One type
quickFilterFree text (n-gram)
filterModel, fields, sort, hideInactiveAs above
searchSubEntitiesInclude sub-entities
idsOnlyIdentifiers only

Returns an array ordered by score. For ou, ancestors of the matches are appended.

curl -s https://crm-service.scenid.cloud/api/v2/entities/search \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"entityType":"ou","quickFilter":"nordl","fields":["data.city"]}'