Mendloop Docs Request access

Connections

The integration catalog, connecting tools, verify runs, mapping and the webhook delivery log.

A connection links one tool (Sentry, Jira, Linear, GitHub Issues, Slack, GitHub) to your organization in one mode. Connecting isn't complete until its checks pass: creating a connection starts a verify run (token valid, scopes right, a sample read, and so on), and its progress arrives as verify.progress live events. Credentials are write-only: they are encrypted per organization and never returned.

Every connection endpoint needs a signed-in session. Any member can read connections, verify runs and deliveries; changing them needs integrations.manage (Admin).

The create and update endpoints here cover the token-based integrations (sentry, jira, linear, github_issues). Slack and the GitHub App connect through install flows in the app.

The connection object#

Field Type Description
id uuid Connection id
integration string e.g. sentry, jira, linear, github_issues, slack, github
name string Display name
mode string live or test
status string connecting, verifying, verified, degraded, failing or disconnected
access string read or read_write. Every connection starts read-only; write access is granted separately.
scopes string[] Scopes the token has
config object Non-secret settings, e.g. Sentry's {base_url, organization_slug}
mapping object[] {external_project, project_id, environments}: which tool project feeds which Mendloop project
webhook_url string The URL to paste into the tool
last_verified_at datetime or null Last passing verify run
last_sync_at datetime or null Last sync
health_detail string or null Why it is degraded or failing
created_at datetime Created

List integrations#

GET/api/v1/integrations

Every integration Mendloop knows, with the scopes it reads and writes and the checks its verify run performs. coming_soon ones can't be connected yet.

Auth: any secret key of this organization, or a session. No scope is needed.

Response

Field Type Description
items[].id string e.g. sentry
items[].name string Display name
items[].category string e.g. errors, tickets, chat, git
items[].auth string token, oauth, app or drain
items[].read_scopes string[] Scopes it reads with
items[].write_scopes string[] Scopes it writes with, once granted
items[].checks object[] {id, label} for each verify check
items[].status string available or coming_soon
items[].docs_url string Setup guide
items[].description string One line
items[].instance_app boolean This instance has its own app for it, so you install rather than create one (GitHub)
Shell
curl "https://app.getmendloop.com/api/v1/integrations" \
  -H "Authorization: Bearer sk_test_…"
Response 200JSON
{
  "items": [
    {
      "id": "sentry",
      "name": "Sentry",
      "category": "errors",
      "auth": "token",
      "read_scopes": [
        "org:read",
        "project:read",
        "event:read"
      ],
      "write_scopes": [],
      "checks": [
        {
          "id": "auth",
          "label": "Token is valid"
        },
        {
          "id": "webhook",
          "label": "Webhook delivery received"
        }
      ],
      "status": "available",
      "docs_url": "https://docs.mendloop.dev/integrations/sentry",
      "description": "Issues and events from Sentry, linked to the same issue as your SDK events.",
      "instance_app": false
    }
  ],
  "next_cursor": null
}

List connections#

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

Connections in the current mode. Returned whole.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Response

A page of connection objects.

Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
      "integration": "sentry",
      "name": "Sentry (acme)",
      "mode": "live",
      "status": "verified",
      "access": "read",
      "scopes": [
        "org:read",
        "project:read",
        "event:read"
      ],
      "config": {
        "base_url": "https://sentry.io",
        "organization_slug": "acme"
      },
      "mapping": [
        {
          "external_project": "acme/rider-web",
          "project_id": "0193a2c4-61b0-7d3e-9a15-7c2e4f8b1d02",
          "environments": {
            "production": "production"
          }
        }
      ],
      "webhook_url": "https://ingest.getmendloop.com/hooks/sentry/0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
      "last_verified_at": "2026-11-05T08:30:00Z",
      "last_sync_at": "2026-11-05T09:14:00Z",
      "health_detail": null,
      "created_at": "2026-10-02T14:11:00Z"
    }
  ],
  "next_cursor": null
}

Connect a tool#

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

Creates a connection and starts its verify run. The connection starts with status: verifying. Audit logged.

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

Integration credentials
sentry token (internal integration token), client_secret (checks webhook signatures). config: organization_slug, base_url (https://sentry.io, https://de.sentry.io or your own)
jira Cloud: site_url, email, api_token. Data Center: site_url, pat. Optional webhook_secret.
linear api_key. Optional webhook_secret (Linear's signing secret).
github_issues token (fine-grained or classic personal access token). Optional webhook_secret.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id

Body (JSON)

Parameter Type Required Description
integration string required sentry, jira, linear or github_issues
name string optional Display name, up to 200 characters
credentials object required Write-only. See the table below.
config object optional Non-secret settings, e.g. Sentry's organization_slug and base_url

Response

Field Type Description
… Every field of the connection object
run_id uuid The verify run it started

Errors

Status Code When
404 integration_not_available Unknown integration, or it is coming_soon
422 invalid_input A body field is missing or invalid
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "integration": "sentry",
    "credentials": {
      "token": "sntrys_…",
      "client_secret": "…"
    },
    "config": {
      "organization_slug": "acme",
      "base_url": "https://sentry.io"
    }
  }'
Response 201JSON
{
  "id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "integration": "sentry",
  "name": "Sentry (acme)",
  "mode": "live",
  "status": "verifying",
  "access": "read",
  "scopes": [
    "org:read",
    "project:read",
    "event:read"
  ],
  "config": {
    "base_url": "https://sentry.io",
    "organization_slug": "acme"
  },
  "mapping": [],
  "webhook_url": "https://ingest.getmendloop.com/hooks/sentry/0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "last_verified_at": null,
  "last_sync_at": null,
  "health_detail": null,
  "created_at": "2026-11-05T09:20:00Z",
  "run_id": "0193a8b0-3f50-7e72-86b4-0d1f2a8e5b37"
}

Get a connection#

GET/api/v1/orgs/{org_id}/connections/{connection_id}

One connection.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Response

The connection object.

Errors

Status Code When
404 connection_not_found No such connection in this mode
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID" \
  --cookie "ml_session=…"
Response 200JSON
{
  "id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "integration": "sentry",
  "name": "Sentry (acme)",
  "mode": "live",
  "status": "verified",
  "access": "read",
  "scopes": [
    "org:read",
    "project:read",
    "event:read"
  ],
  "config": {
    "base_url": "https://sentry.io",
    "organization_slug": "acme"
  },
  "mapping": [
    {
      "external_project": "acme/rider-web",
      "project_id": "0193a2c4-61b0-7d3e-9a15-7c2e4f8b1d02",
      "environments": {
        "production": "production"
      }
    }
  ],
  "webhook_url": "https://ingest.getmendloop.com/hooks/sentry/0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "last_verified_at": "2026-11-05T08:30:00Z",
  "last_sync_at": "2026-11-05T09:14:00Z",
  "health_detail": null,
  "created_at": "2026-10-02T14:11:00Z"
}

Update a connection#

PATCH/api/v1/orgs/{org_id}/connections/{connection_id}

Renames, configures, maps projects or replaces credentials. New credentials start a new verify run. Audit logged.

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

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Body (JSON)

Parameter Type Required Description
name string optional Up to 200 characters
config object optional Non-secret settings
mapping object[] optional Replaces the mapping: {external_project, project_id, environments}, up to 200. environments maps the tool's environment names to yours.
credentials object optional New credentials; starts a verify run

Response

The updated connection object.

Errors

Status Code When
404 connection_not_found No such connection in this mode
409 connection_disconnected The connection is disconnected
Shell
curl -X PATCH "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "mapping": [
      {
        "external_project": "acme/rider-web",
        "project_id": "0193a2c4-61b0-7d3e-9a15-7c2e4f8b1d02",
        "environments": {
          "production": "production"
        }
      }
    ]
  }'
Response 200JSON
{
  "id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "integration": "sentry",
  "name": "Sentry (acme)",
  "mode": "live",
  "status": "verified",
  "access": "read",
  "scopes": [
    "org:read",
    "project:read",
    "event:read"
  ],
  "config": {
    "base_url": "https://sentry.io",
    "organization_slug": "acme"
  },
  "mapping": [
    {
      "external_project": "acme/rider-web",
      "project_id": "0193a2c4-61b0-7d3e-9a15-7c2e4f8b1d02",
      "environments": {
        "production": "production"
      }
    }
  ],
  "webhook_url": "https://ingest.getmendloop.com/hooks/sentry/0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "last_verified_at": "2026-11-05T08:30:00Z",
  "last_sync_at": "2026-11-05T09:14:00Z",
  "health_detail": null,
  "created_at": "2026-10-02T14:11:00Z"
}

Disconnect#

DELETE/api/v1/orgs/{org_id}/connections/{connection_id}

Disconnects the tool. Its credentials are deleted; the connection stays listed with status: disconnected. Audit logged.

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

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Errors

Status Code When
404 connection_not_found No such connection in this mode
Shell
curl -X DELETE "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID" \
  --cookie "ml_session=…"
Response 204Text
(empty body)

Run verify again#

POST/api/v1/orgs/{org_id}/connections/{connection_id}/verify

Starts a new verify run. Send skip: ["webhook"] to skip the webhook check for now; the connection is then degraded until a webhook arrives.

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

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Body (JSON)

Parameter Type Required Description
skip string[] optional ["webhook"] to skip the webhook check

Response

Field Type Description
run_id uuid The new verify run

Errors

Status Code When
404 connection_not_found No such connection in this mode
409 connection_disconnected The connection is disconnected
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/verify" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "skip": [
      "webhook"
    ]
  }'
Response 202JSON
{
  "run_id": "0193a8b0-3f50-7e72-86b4-0d1f2a8e5b37"
}

List verify runs#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/verify-runs

Recent verify runs, newest first. Returned whole.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Response

A page of verify runs, in the shape Get a verify run returns.

Errors

Status Code When
404 connection_not_found No such connection in this mode
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/verify-runs" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "0193a8b0-3f50-7e72-86b4-0d1f2a8e5b37",
      "status": "running",
      "trigger": "manual",
      "started_at": "2026-11-05T09:20:00Z",
      "finished_at": null,
      "checks": [
        {
          "id": "auth",
          "label": "Token is valid",
          "status": "passed",
          "detail": "Token belongs to acme",
          "hint": null,
          "duration_ms": 182
        },
        {
          "id": "scopes",
          "label": "Scopes: org:read, project:read, event:read",
          "status": "passed",
          "detail": "",
          "hint": null,
          "duration_ms": 4
        },
        {
          "id": "read_sample",
          "label": "Read projects and one issue",
          "status": "passed",
          "detail": "3 projects",
          "hint": null,
          "duration_ms": 640
        },
        {
          "id": "mapping",
          "label": "Mapped projects still exist",
          "status": "passed",
          "detail": "",
          "hint": null,
          "duration_ms": 2
        },
        {
          "id": "webhook",
          "label": "Webhook delivery received",
          "status": "waiting",
          "detail": "Paste the webhook URL into Sentry",
          "hint": "…",
          "duration_ms": 0
        }
      ]
    }
  ],
  "next_cursor": null
}

Get a verify run#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/verify-runs/{run_id}

A verify run and its checks. A run stays running while its webhook check is waiting for the first signed delivery.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id
run_id uuid required Verify run id

Response

Field Type Description
id uuid Run id
status string running, passed or failed
trigger string create, manual or credentials
started_at datetime Started
finished_at datetime or null Finished
checks object[] {id, label, status, detail, hint, duration_ms}; status is pending, running, passed, failed, skipped or waiting

Errors

Status Code When
404 connection_not_found No such connection in this mode
404 verify_run_not_found No such run
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/verify-runs/RUN_ID" \
  --cookie "ml_session=…"
Response 200JSON
{
  "id": "0193a8b0-3f50-7e72-86b4-0d1f2a8e5b37",
  "status": "running",
  "trigger": "manual",
  "started_at": "2026-11-05T09:20:00Z",
  "finished_at": null,
  "checks": [
    {
      "id": "auth",
      "label": "Token is valid",
      "status": "passed",
      "detail": "Token belongs to acme",
      "hint": null,
      "duration_ms": 182
    },
    {
      "id": "scopes",
      "label": "Scopes: org:read, project:read, event:read",
      "status": "passed",
      "detail": "",
      "hint": null,
      "duration_ms": 4
    },
    {
      "id": "read_sample",
      "label": "Read projects and one issue",
      "status": "passed",
      "detail": "3 projects",
      "hint": null,
      "duration_ms": 640
    },
    {
      "id": "mapping",
      "label": "Mapped projects still exist",
      "status": "passed",
      "detail": "",
      "hint": null,
      "duration_ms": 2
    },
    {
      "id": "webhook",
      "label": "Webhook delivery received",
      "status": "waiting",
      "detail": "Paste the webhook URL into Sentry",
      "hint": "…",
      "duration_ms": 0
    }
  ]
}

List the tool's projects#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/external-projects

Projects in the connected tool, for building the mapping.

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

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Response

Field Type Description
items[].id string Id in the tool
items[].slug string Slug
items[].name string Name
items[].platform string or null Platform

Errors

Status Code When
404 connection_not_found No such connection in this mode
502 integration_error The tool returned an error
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/external-projects" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "4504",
      "slug": "rider-web",
      "name": "rider-web",
      "platform": "javascript-react"
    }
  ],
  "next_cursor": null
}

Webhook deliveries#

Every request to a connection's webhook URL is logged, whether its signature was valid or not. Headers are stored with secrets masked and bodies are scrubbed.

List deliveries#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/deliveries

Webhook deliveries, newest first.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id

Query parameters

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

Response

Field Type Description
items[].id uuid Delivery id
items[].received_at datetime Received
items[].event_type string e.g. issue.created, jira:issue_updated
items[].status string accepted, rejected (bad signature) or failed (processing failed)
items[].http_status integer What Mendloop answered
items[].latency_ms integer Time to answer
items[].error string or null Why it was rejected or failed

Errors

Status Code When
404 connection_not_found No such connection in this mode
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/deliveries" \
  --cookie "ml_session=…"
Response 200JSON
{
  "items": [
    {
      "id": "0193c4e7-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
      "received_at": "2026-11-05T09:12:44Z",
      "event_type": "issue.created",
      "status": "accepted",
      "http_status": 200,
      "latency_ms": 38,
      "error": null
    }
  ],
  "next_cursor": null
}

Get a delivery#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/deliveries/{delivery_id}

One delivery, with its stored headers (secrets masked) and scrubbed body.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id
delivery_id uuid required Delivery id

Response

Field Type Description
… Every field of a delivery in the list
headers object Request headers, signatures and secrets masked
body any Scrubbed request body

Errors

Status Code When
404 connection_not_found No such connection in this mode
404 delivery_not_found No such delivery
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/deliveries/DELIVERY_ID" \
  --cookie "ml_session=…"
Response 200JSON
{
  "id": "0193c4e7-5a6b-7c8d-9e0f-1a2b3c4d5e6f",
  "received_at": "2026-11-05T09:12:44Z",
  "event_type": "issue.created",
  "status": "accepted",
  "http_status": 200,
  "latency_ms": 38,
  "error": null,
  "headers": {
    "content-type": "application/json",
    "sentry-hook-resource": "issue",
    "sentry-hook-signature": "••••"
  },
  "body": {
    "action": "created",
    "data": {
      "…": "…"
    }
  }
}

Redeliver#

POST/api/v1/orgs/{org_id}/connections/{connection_id}/deliveries/{delivery_id}/redeliver

Processes the stored payload of an accepted delivery again. Rejected deliveries (bad signature) can't be redelivered.

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

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
connection_id uuid required Connection id
delivery_id uuid required Delivery id

Response

Field Type Description
status string accepted
details object Empty

Errors

Status Code When
404 connection_not_found No such connection in this mode
404 delivery_not_found No such delivery
409 delivery_rejected The delivery was rejected
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/deliveries/DELIVERY_ID/redeliver" \
  --cookie "ml_session=…"
Response 202JSON
{
  "status": "accepted",
  "details": {}
}