Mendloop Docs Request access

Members and teams

Members, roles, invites, teams, linked accounts and the permission matrix.

Roles per organization are admin, developer, viewer and support; super_admin is the instance's own role and can't be granted here. A member can be limited to some projects with project_ids (empty means all).

All endpoints on this page need a signed-in session.

List members#

GET/api/v1/orgs/{org_id}/members

Members of the organization.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Query parameters

Parameter Type Required Description
limit integer optional 1 to 200, default 50
cursor string optional next_cursor from the previous page

Response

Field Type Description
items[].id uuid Membership id (used in the paths below)
items[].user object {id, name, email, avatar_url}
items[].role string Effective role
items[].project_ids uuid[] Live project ids the member is limited to; empty means all
items[].last_active_at datetime or null Last activity
items[].two_factor boolean Always false for now
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/members" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "0193a2c4-5e30-7a19-8f2d-4b6c1e9a7d53",
      "user": {
        "id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
        "name": "Priya Shah",
        "email": "priya@acme.dev",
        "avatar_url": null
      },
      "role": "developer",
      "project_ids": [],
      "last_active_at": "2026-11-05T09:01:00Z",
      "two_factor": false
    }
  ],
  "next_cursor": null
}

Update a member#

PATCH/api/v1/orgs/{org_id}/members/{member_id}

Changes a member's role or projects. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
member_id uuid required Membership id

Body (JSON)

Parameter Type Required Description
role string optional admin, developer, viewer or support
project_ids uuid[] optional Live project ids; empty means all

Response

The updated member.

Errors

Status Code When
404 member_not_found No such member
409 last_admin This would leave the organization without an admin
Shell
curl -X PATCH "https://app.getmendloop.com/api/v1/orgs/ORG_ID/members/MEMBER_ID" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "admin"
  }'
Response 200JSON
{
  "id": "0193a2c4-5e30-7a19-8f2d-4b6c1e9a7d53",
  "user": {
    "id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
    "name": "Priya Shah",
    "email": "priya@acme.dev",
    "avatar_url": null
  },
  "role": "admin",
  "project_ids": [],
  "last_active_at": "2026-11-05T09:01:00Z",
  "two_factor": false
}

Remove a member#

DELETE/api/v1/orgs/{org_id}/members/{member_id}

Removes a member from the organization. Secret keys they created stop working for this organization. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
member_id uuid required Membership id

Errors

Status Code When
404 member_not_found No such member
409 last_admin This is the last admin
Shell
curl -X DELETE "https://app.getmendloop.com/api/v1/orgs/ORG_ID/members/MEMBER_ID" \
  --cookie "ml_session=…"
Response 204Text
(empty body)

List invites#

GET/api/v1/orgs/{org_id}/invites

Pending invites.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Query parameters

Parameter Type Required Description
limit integer optional 1 to 200, default 50
cursor string optional next_cursor from the previous page

Response

Field Type Description
items[].id uuid Invite id
items[].email string Invited address
items[].role string Role on joining
items[].project_ids uuid[] Projects on joining
items[].invited_by object or null {id, name}
items[].expires_at datetime When the invite expires (7 days by default)
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/invites" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "0193d0a1-7b3c-7e40-a2d9-5f1c8b4e6a71",
      "email": "sam@acme.dev",
      "role": "developer",
      "project_ids": [],
      "invited_by": {
        "id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
        "name": "Priya Shah"
      },
      "expires_at": "2026-11-12T09:30:00Z"
    }
  ],
  "next_cursor": null
}

Invite people#

POST/api/v1/orgs/{org_id}/invites

Sends invites by email. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Body (JSON)

Parameter Type Required Description
emails string[] required 1 to 50 addresses
role string required admin, developer, viewer or support
project_ids uuid[] optional Limit to these live projects; empty means all

Response

The created invites, as {items, next_cursor: null}.

Errors

Status Code When
409 already_member An address already belongs to a member
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/invites" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": [
      "sam@acme.dev"
    ],
    "role": "developer"
  }'
Response 201JSON
{
  "items": [
    {
      "id": "0193d0a1-7b3c-7e40-a2d9-5f1c8b4e6a71",
      "email": "sam@acme.dev",
      "role": "developer",
      "project_ids": [],
      "invited_by": {
        "id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
        "name": "Priya Shah"
      },
      "expires_at": "2026-11-12T09:30:00Z"
    }
  ],
  "next_cursor": null
}

Resend an invite#

POST/api/v1/orgs/{org_id}/invites/{invite_id}/resend

Sends the invite email again.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
invite_id uuid required Invite id

Errors

Status Code When
404 invite_not_found No such invite; it may have been accepted or revoked
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/invites/INVITE_ID/resend" \
  --cookie "ml_session=…"
Response 204Text
(empty body)

Revoke an invite#

DELETE/api/v1/orgs/{org_id}/invites/{invite_id}

Revokes a pending invite. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
invite_id uuid required Invite id

Errors

Status Code When
404 invite_not_found No such invite
Shell
curl -X DELETE "https://app.getmendloop.com/api/v1/orgs/ORG_ID/invites/INVITE_ID" \
  --cookie "ml_session=…"
Response 204Text
(empty body)

Accept an invite#

POST/api/v1/invites/accept

Accepts an invite as the signed-in user. The invite's email must match the user's.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Body (JSON)

Parameter Type Required Description
token string required The token from the invite link

Response

The signed-in user with their memberships: {user, memberships: [{org: {id, name, slug}, role, project_ids}]}.

Errors

Status Code When
404 invite_invalid The token is unknown, used or expired
403 invite_email_mismatch The invite is for another email address
Shell
curl -X POST "https://app.getmendloop.com/api/v1/invites/accept" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "…"
  }'
Response 200JSON
{
  "user": {
    "id": "0193a2c4-5e21-7d42-b1e9-0c7a3f5d2b86",
    "name": "Sam Lee",
    "email": "sam@acme.dev",
    "avatar_url": null,
    "is_super_admin": false
  },
  "memberships": [
    {
      "org": {
        "id": "0193a2c4-5e1f-7b20-8c4d-2f6a9e1b3c70",
        "name": "Acme",
        "slug": "acme"
      },
      "role": "developer",
      "project_ids": []
    }
  ]
}

Get the permission matrix#

GET/api/v1/orgs/{org_id}/permissions

Which role may do which action. Partial grants show a short condition instead of yes or no, e.g. own actions.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Response

Field Type Description
roles string[] super_admin, admin, developer, viewer, support
actions object[] {id, label, group}; group is instance, organization or work
grants object action id → role → yes, no or a condition
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/permissions" \
  --cookie "ml_session=…"
Response 200JSON
{
  "roles": [
    "super_admin",
    "admin",
    "developer",
    "viewer",
    "support"
  ],
  "actions": [
    {
      "id": "fixes.approve",
      "label": "Approve fixes",
      "group": "work"
    }
  ],
  "grants": {
    "fixes.approve": {
      "super_admin": "yes",
      "admin": "yes",
      "developer": "owned code",
      "viewer": "no",
      "support": "no"
    }
  }
}

Teams#

Teams are used for code ownership, routing and approvals.

List teams#

GET/api/v1/orgs/{org_id}/teams

Teams with their members and lead. Returned whole.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs issues.view.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Response

Field Type Description
items[].id uuid Team id
items[].name string Name
items[].slug string Slug
items[].member_ids uuid[] User ids
items[].lead_id uuid or null Lead's user id
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/teams" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "0193a9f2-3c4d-7b18-9e05-2a7d6c1f4b38",
      "name": "Checkout",
      "slug": "checkout",
      "member_ids": [
        "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
        "0193a2c4-5e21-7d42-b1e9-0c7a3f5d2b86"
      ],
      "lead_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15"
    }
  ],
  "next_cursor": null
}

Create a team#

POST/api/v1/orgs/{org_id}/teams

Creates a team. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Body (JSON)

Parameter Type Required Description
name string required 1 to 200 characters
slug string optional Up to 100 characters
member_ids uuid[] optional User ids, up to 500
lead_id uuid optional Lead's user id

Response

The team.

Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/teams" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Checkout",
    "member_ids": [
      "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
      "0193a2c4-5e21-7d42-b1e9-0c7a3f5d2b86"
    ],
    "lead_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15"
  }'
Response 201JSON
{
  "id": "0193a9f2-3c4d-7b18-9e05-2a7d6c1f4b38",
  "name": "Checkout",
  "slug": "checkout",
  "member_ids": [
    "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
    "0193a2c4-5e21-7d42-b1e9-0c7a3f5d2b86"
  ],
  "lead_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15"
}

Update a team#

PATCH/api/v1/orgs/{org_id}/teams/{team_id}

Renames a team or changes its members or lead. Send lead_id: null to clear the lead. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
team_id uuid required Team id

Body (JSON)

Parameter Type Required Description
name string optional 1 to 200 characters
slug string optional Up to 100 characters
member_ids uuid[] optional Replaces the members
lead_id uuid or null optional Lead's user id

Response

The team.

Errors

Status Code When
404 team_not_found No such team
Shell
curl -X PATCH "https://app.getmendloop.com/api/v1/orgs/ORG_ID/teams/TEAM_ID" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "member_ids": [
      "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15"
    ]
  }'
Response 200JSON
{
  "id": "0193a9f2-3c4d-7b18-9e05-2a7d6c1f4b38",
  "name": "Checkout",
  "slug": "checkout",
  "member_ids": [
    "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15"
  ],
  "lead_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15"
}

Delete a team#

DELETE/api/v1/orgs/{org_id}/teams/{team_id}

Deletes a team. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs members.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
team_id uuid required Team id

Errors

Status Code When
404 team_not_found No such team
Shell
curl -X DELETE "https://app.getmendloop.com/api/v1/orgs/ORG_ID/teams/TEAM_ID" \
  --cookie "ml_session=…"
Response 204Text
(empty body)

Linked accounts#

Each member's accounts in other tools, used to route approvals and assign tickets to the right person. Accounts are linked by matching email where possible; you can override them by hand.

List linked accounts#

GET/api/v1/orgs/{org_id}/identities

Each member's GitHub, Slack, Jira, Linear and PagerDuty accounts.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs issues.view.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Response

Field Type Description
items[].user_id uuid The member's user id
items[].name string Display name
items[].github, slack, jira, linear, pagerduty string or null The account in each tool
items[].email_match boolean At least one account was linked by matching the email
items[].sources object Tool → email_match or manual
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/identities" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "user_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
      "name": "Priya Shah",
      "github": "priya-shah",
      "slack": "U04ABCD1234",
      "jira": "5f2a…",
      "linear": null,
      "pagerduty": null,
      "email_match": true,
      "sources": {
        "slack": "email_match",
        "github": "manual"
      }
    }
  ],
  "next_cursor": null
}

Set linked accounts#

PUT/api/v1/orgs/{org_id}/identities

Sets manual overrides. Per member, a value sets the account, null removes it, and an omitted field stays as it is. Audit logged.

Auth: session only. Secret keys get 403 api_key_not_allowed. The role needs policies.manage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Body (JSON)

Parameter Type Required Description
items object[] required Up to 1,000: {user_id, github, slack, jira, linear, pagerduty}; each account up to 200 characters

Response

All linked accounts, as in List linked accounts.

Shell
curl -X PUT "https://app.getmendloop.com/api/v1/orgs/ORG_ID/identities" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      {
        "user_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
        "github": "priya-shah"
      }
    ]
  }'
Response 200JSON
{
  "items": [
    {
      "user_id": "0193a2c4-5e20-7c11-a3f0-6b9d2e4c8a15",
      "name": "Priya Shah",
      "github": "priya-shah",
      "slack": "U04ABCD1234",
      "jira": null,
      "linear": null,
      "pagerduty": null,
      "email_match": true,
      "sources": {
        "slack": "email_match",
        "github": "manual"
      }
    }
  ],
  "next_cursor": null
}