Skip to content

Members

These endpoints read the organization’s directory of people: who is a member, what role and teams they have, who has been invited and not joined, and who reports to whom. To turn a name into an id, People is cheaper. To see how one person is doing on their training, use their progress.

The reads follow the rule the app applies to the same data, which is the user.read permission. An owner, admin or billing admin reads everyone. A list below that scope is the caller’s own row. Getting one member also admits a manager for someone who reports to them. An external account is refused with 403. The fields and endpoints that are for an organization admin are marked below. The writes further down need the member:manage scope, and permission to invite, update or remove people, which owners and admins have.

GET /v1/members

The organization’s people, ordered by name, as the members page lists them. Active people are listed unless status says otherwise. A person’s name and email are the organization’s own record of them, which can differ from their login’s.

Parameter Type Notes
query string Matches anywhere in the name or the email, case-insensitively.
status string active (the default), deactivated, or all. A deactivated person has left the organization.
teamId string Only members of this team. A team that is not in your organization is a 400.
noManager boolean true lists only people with no manager. Organization admins only; anyone else gets 403.
cursor string Pagination cursor from a previous response.
limit number 1 to 100. Default 50.
Terminal window
curl "https://api.mereon.ai/v1/members?status=active&limit=50" \
-H "Authorization: Bearer $MEREON_TOKEN"
{
"data": [
{
"id": "usr_2d9e...",
"name": "Ada Admin",
"email": "ada@example.com",
"status": "ACTIVE",
"signedUp": true,
"role": "admin",
"companyRoles": [{ "id": "rol_1122...", "name": "Operations Manager" }],
"teams": [{ "id": "tea_77aa...", "name": "Night shift", "role": "team-admin" }],
"phone": "+15555550101",
"directoryManaged": false,
"deactivatedAt": null,
"reportsTo": { "id": "usr_8s2k...", "name": "Sam Owner", "status": "ACTIVE" }
}
],
"nextCursor": "2",
"total": 120
}
Field Type Notes
id string The person’s user id, which is what the other endpoints name a person by.
status string ACTIVE, or DEACTIVATED once they have left. Their training history is kept either way.
signedUp boolean Whether they have finished setting up their account. Someone loaded in bulk or by a directory is a member before they sign in, so this is false for them. It does not mean they are an invitation.
role string owner, admin, billing-admin, viewer, or external.
companyRoles object[] The company roles they hold now.
teams object[] The teams they are on, each with role team-admin or team-viewer.
phone string | null Organization admins only. The number the organization has on file.
directoryManaged boolean Organization admins only. Whether an identity directory is in charge of their details: it provisioned them and the organization’s connection has not been disconnected. Disconnecting turns this false for everyone at once, and a paused or failing connection still counts as in charge.
deactivatedAt string | null Organization admins only. When they left, or null while they are active.
reportsTo object | null Organization admins only. The manager they have been given, as id, name and status, or null for no manager. A manager the organization records without an account has a null id and name.

A caller who reads only themself gets one row and none of the organization-admin fields.

GET /v1/members/{id}

One person, at any status. An organization admin may open anyone with a record in the organization. A manager may open someone who reports to them. Anyone else may open only themself. Phone, manager and the other organization-admin fields stay with an organization admin.

Everyone else gets 404, as if the person did not exist. So does an id from another organization, a person who never belonged, and an id that does not exist, so the answer does not say whether someone is a member.

Terminal window
curl "https://api.mereon.ai/v1/members/usr_2d9e" \
-H "Authorization: Bearer $MEREON_TOKEN"

The response is one member, in the shape described above.

GET /v1/members/progress

How much training each person has, as the progress page shows it. Everyone who has finished setting up appears, including people who have since left, because this is a record of who was trained and not a roster. Someone loaded in bulk who has never signed in is not listed until they do.

Ordered by the name on the person’s login, as the progress page is, with the id breaking ties so a page boundary never repeats or skips a person. A person the organization names differently from their login can sit out of alphabetical order, because the name shown is the organization’s own.

For how one person is doing, with completion and overdue counts, use their progress.

Parameter Type Notes
query string Matches anywhere in the name or the email, case-insensitively.
teamId string Only members of this team.
cursor string Pagination cursor from a previous response.
limit number 1 to 100. Default 50.
{
"data": [
{
"id": "usr_2d9e...",
"name": "Ada Admin",
"email": "ada@example.com",
"employmentStatus": "ACTIVE",
"companyRoles": [{ "id": "rol_1122...", "name": "Operations Manager" }],
"lessonCount": 6,
"popQuizCount": 2,
"lastReviewDate": "2026-06-01T00:00:00.000Z"
}
],
"nextCursor": null,
"total": 1
}

lessonCount is every lesson the person is enrolled in, finished or not. An organization admin sees every row and every review. Anyone else sees their own row, and lastReviewDate is then only a review they wrote themselves.

GET /v1/invitations

Invitations that have been sent and not yet accepted, newest first. Expired invitations are included and marked. Organization admins only; anyone else gets 403.

{
"data": [
{
"name": "New Hire",
"email": "new.hire@example.com",
"phone": null,
"role": "viewer",
"expiresAt": "2026-10-20T00:00:00.000Z",
"expired": false
}
],
"nextCursor": null
}

role is what the person will have when they accept. An invitation sent without one takes the role the app will give it, which is owner for the first person in an organization and viewer after that. An invitation has no id here, because the id is what its public accept page is addressed by.

GET /v1/reporting-lines

Each person and the manager they have been given. This is the reporting line and not the role tree: two people who share a title are not each other’s managers. See Company roles for the chart of roles.

Organization admins only; anyone else gets 403, because who has no manager is something only an organization admin is shown.

Parameter Type Notes
status string active (the default), deactivated, or all.
noManager boolean true lists only people with no manager.
cursor string Pagination cursor from a previous response.
limit number 1 to 100. Default 50.
{
"data": [
{
"id": "usr_2d9e...",
"name": "Ada Admin",
"status": "ACTIVE",
"reportsTo": { "id": "usr_8s2k...", "name": "Sam Owner", "status": "DEACTIVATED" }
},
{ "id": "usr_8s2k...", "name": "Sam Owner", "status": "ACTIVE", "reportsTo": null }
],
"nextCursor": null,
"total": 2
}

A manager who has left is still named, with status DEACTIVATED, so a team whose manager has gone can be found.

POST /v1/members

Invites a person to the organization, as the members page does, and sends them an email or a text with a link to join. They are a member once they accept.

This needs a token granted the member:manage scope, and the person behind it must be allowed to invite people, which owners and admins are. Both are checked on every call.

The role they will have is the one you send: admin, billing-admin, viewer or external. Leave role out and acceptance chooses it, owner when the organization has none yet and viewer after that. An owner joins as someone else and is then given the owner role. An external invitation includes companyRoleIds, the external company roles they join. teamIds are the teams they join.

The response is one row of pending invitations, including the role they will have. The accept link stays on the invitation.

Terminal window
curl -X POST "https://api.mereon.ai/v1/members" \
-H "Authorization: Bearer $MEREON_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Bea Builder",
"email": "bea@example.com",
"role": "viewer"
}'
{
"name": "Bea Builder",
"email": "bea@example.com",
"phone": null,
"role": "viewer",
"expiresAt": "2026-11-15T00:00:00.000Z",
"expired": false
}

A person who is already a member, or who already has an invitation, is a 409. An organization that signs people in by email requires email. One that signs people in by text requires phone.

When the email or text provider refuses the invitation (an address on its suppression list, a number it cannot reach), the call is a 422 (INVITATION_NOT_DELIVERED) with the provider’s reason in details.reason. No invitation is kept, so after fixing the address you can invite them again.

When the provider gives no answer at all (a timeout, or an error on its side), the call is a 422 (INVITATION_DELIVERY_UNCONFIRMED). The invitation may have arrived, so it is kept as pending. Resend it if they don’t receive it.

PUT /v1/members/{id}/role

Sets a member’s organization role to owner, admin, billing-admin, viewer or external. An external person’s role is set when they are invited, and changing it in either direction is a 400. Demoting the last active owner is a 400 LAST_OWNER_DEMOTE. Returns the member as get a member does.

Terminal window
curl -X PUT "https://api.mereon.ai/v1/members/usr_2d9e.../role" \
-H "Authorization: Bearer $MEREON_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "role": "admin" }'

POST /v1/members/{id}/deactivate

Ends a person’s access and frees their seat. Their training history, teams and company roles stay. Deactivating the last active owner, or yourself, is a 400 (LAST_OWNER_DEACTIVATE, CANNOT_DELETE_SELF). Doing it again is safe: they stay deactivated. Returns the member, with status DEACTIVATED.

Terminal window
curl -X POST "https://api.mereon.ai/v1/members/usr_2d9e.../deactivate" \
-H "Authorization: Bearer $MEREON_TOKEN"

POST /v1/members/{id}/reactivate

Brings a deactivated person back, with their training history continuous. A comped organization at its seat cap is a 400 SEAT_LIMIT_REACHED, and the person stays deactivated. Doing it again for someone who is already active is safe. Returns the member.

Terminal window
curl -X POST "https://api.mereon.ai/v1/members/usr_2d9e.../reactivate" \
-H "Authorization: Bearer $MEREON_TOKEN"

DELETE /v1/members/{id}

Removes a person from the organization. Their training history and organization role stay, and they show as deactivated. Removal takes them off their teams, closes their company roles, and deletes their duties in this organization. Reactivating them later starts from that empty position. Deactivate them when their teams, company roles, and duties should stay. Removing the last active owner, or yourself, is a 400 (LAST_OWNER_DELETE, CANNOT_DELETE_SELF). The response is empty.

Terminal window
curl -X DELETE "https://api.mereon.ai/v1/members/usr_2d9e..." \
-H "Authorization: Bearer $MEREON_TOKEN"

PUT /v1/members/{id}/reports-to

Sets or clears who a person reports to, by the manager’s user id from the member list. null clears it. The manager is someone with an account in the organization. A manager recorded without an account has no user id to name, and an id that is not a member is a 404.

Setting a reporting line needs organization-wide permission to update people, which owners and admins have, because the edge lets that manager see the person’s reviews and learning progress. A person cannot report to themself, and a cycle is refused, as on the members page. Returns the member.

Terminal window
curl -X PUT "https://api.mereon.ai/v1/members/usr_2d9e.../reports-to" \
-H "Authorization: Bearer $MEREON_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "reportsToUserId": "usr_8s2k..." }'

Changing a person’s name, email or phone, resending an invitation, and editing the teams or company roles someone already holds, stay on the members page in the app.