Skip to content

Company roles

A company role is a named position in your organization’s org chart (for example “Service Manager”). Each role can have a training curriculum — the lessons and topics everyone in the role is expected to complete — and a set of members who currently hold it.

GET /v1/company-roles

Lists the organization’s company roles, sorted alphabetically by name. Each result carries how many people hold the role and the role it reports to.

ParameterTypeNotes
querystringCase-insensitive match on the role name.
cursorstringPagination cursor from a previous response.
limitnumber1–100. Default 50.
Terminal window
curl "https://api.mereon.ai/v1/company-roles?query=manager" \
-H "Authorization: Bearer $MEREON_TOKEN"
{
"data": [
{
"id": "695690de-1c49-42c7-a416-b0d3bea29102",
"name": "Service Manager",
"description": "Supervises the field technician team and schedules work.",
"memberCount": 2,
"parentRoleId": "1c0f8b2a-7d34-4e91-bf02-3a5d9c6e8f10",
"createdAt": "2026-02-01T10:00:00.000Z",
"updatedAt": "2026-05-20T10:00:00.000Z"
}
],
"nextCursor": null
}
FieldTypeNotes
descriptionstring | nullThe role’s description, if set.
memberCountnumberHow many people currently hold the role.
parentRoleIdstring | nullThe role this one reports to; null at the top of the chart.

GET /v1/company-roles/{id}

Role detail: the summary fields plus the role’s training curriculum (the lessons and topics everyone in the role must complete) and its current members. Returns 404 if the role is not visible to you.

{
"id": "695690de-1c49-42c7-a416-b0d3bea29102",
"name": "Service Manager",
"description": "Supervises the field technician team and schedules work.",
"memberCount": 2,
"parentRoleId": "1c0f8b2a-7d34-4e91-bf02-3a5d9c6e8f10",
"createdAt": "2026-02-01T10:00:00.000Z",
"updatedAt": "2026-05-20T10:00:00.000Z",
"curriculum": [
{ "type": "lesson", "id": "lsn_6e3f...", "name": "Scheduling and dispatch" },
{ "type": "topic", "id": "t_91ab...", "name": "Maintenance plans" }
],
"members": [
{ "id": "usr_44de...", "name": "Carla Field" }
]
}
FieldTypeNotes
curriculum[].typestringlesson or topic.
curriculum[].idstringThe lesson or topic id. Resolve a lesson with /v1/lessons/{id}, a topic with /v1/topics/{id}.
members[]objectEach holder’s id and name.