Mendloop Docs Request access

Tickets

Create, transition and comment on tickets in Jira, Linear and GitHub Issues, and configure trackers.

Tickets link issues to Jira, Linear or GitHub Issues through a connection. Creating a ticket first looks for an open ticket with the issue's fingerprint label and links it instead of creating a duplicate. Writing to a tracker needs the connection's write grant. In test mode, tickets go to the connection's test project, or are simulated when it has none. ticket.created and ticket.updated live events follow changes.

Create a ticket#

POST/api/v1/orgs/{org_id}/issues/{issue_id}/ticket

Creates a ticket for the issue now, in the project's default tracker unless you name a connection. With preview: true nothing is sent or stored; you get back what would be created. Audit logged.

Auth: secret key with the issues:write scope, or a session. Either way the role behind it needs issues.triage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
issue_id uuid required Issue id

Body (JSON)

Parameter Type Required Description
connection_id uuid optional Tracker connection. Default: the project's default tracker.
title string optional Up to 250 characters. Default: from the title template.
body string optional Markdown, up to 30,000 characters. Default: from the body template.
labels string[] optional Up to 20 labels
priority string optional Tracker priority name
project string optional Tracker project, e.g. Jira ENG
dedupe boolean optional Link an existing open ticket for this fingerprint instead of creating one. Default true.
preview boolean optional Build the ticket without sending or storing it. Default false.

Response

Field Type Description
id uuid or null Ticket id; null when simulated without storing
issue_id uuid or null The issue
connection_id uuid or null The tracker connection
provider string jira, linear or github_issues
key string e.g. ENG-4812, acme/rider-web#311
url string or null Link to the ticket
status string or null Status in the tracker
simulated boolean Nothing was sent (test mode or preview)
duplicate boolean An existing open ticket was linked instead
payload object What was, or would have been, sent

Errors

Status Code When
404 issue_not_found No such issue in this mode, or it's in a project you can't see
409 no_default_tracker No connection_id and the project has no default tracker, or no tracker is connected
422 not_a_tracker The connection isn't Jira, Linear or GitHub Issues
403 write_not_granted The connection doesn't have write access
409 connection_disconnected The connection is disconnected
502 integration_error The tracker returned an error
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/issues/ISSUE_ID/ticket" \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
    "labels": [
      "checkout"
    ]
  }'
Response 201JSON
{
  "id": "0193c3e1-90a2-7dbe-8f20-4b5c6d7e8f9a",
  "issue_id": "0193b7e2-0a4c-7f19-b8d2-51c3e9a7f604",
  "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "provider": "jira",
  "key": "ENG-4812",
  "url": "https://acme.atlassian.net/browse/ENG-4812",
  "status": "To Do",
  "simulated": false,
  "duplicate": false,
  "payload": {
    "summary": "[P2] TypeError: Cannot read properties of undefined (reading 'id')",
    "…": "…"
  }
}

List an issue's tickets#

GET/api/v1/orgs/{org_id}/issues/{issue_id}/tickets

Tickets linked to the issue. Returned whole.

Auth: secret key with the issues:read scope, or a session. Either way the role behind it needs issues.view.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
issue_id uuid required Issue id

Response

Field Type Description
items[].id uuid Ticket id
items[].issue_id uuid The issue
items[].connection_id uuid The tracker connection
items[].provider string jira, linear or github_issues
items[].project string Tracker project
items[].key string or null Ticket key
items[].url string or null Link
items[].title string Title
items[].status string or null Status in the tracker
items[].category string or null Status category
items[].assignee string or null Assignee in the tracker
items[].simulated boolean Simulated (test mode)
items[].duplicate boolean Linked rather than created
items[].created_at datetime Linked at
items[].last_synced_at datetime or null Last two-way sync

Errors

Status Code When
404 issue_not_found No such issue in this mode, or it's in a project you can't see
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/issues/ISSUE_ID/tickets" \
  -H "Authorization: Bearer sk_test_…"
Response 200JSON
{
  "items": [
    {
      "id": "0193c3e1-90a2-7dbe-8f20-4b5c6d7e8f9a",
      "issue_id": "0193b7e2-0a4c-7f19-b8d2-51c3e9a7f604",
      "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
      "provider": "jira",
      "project": "ENG",
      "key": "ENG-4812",
      "url": "https://acme.atlassian.net/browse/ENG-4812",
      "title": "[P2] TypeError: Cannot read properties of undefined (reading 'id')",
      "status": "In Progress",
      "category": "indeterminate",
      "assignee": "Priya Shah",
      "simulated": false,
      "duplicate": false,
      "created_at": "2026-11-05T09:17:00Z",
      "last_synced_at": "2026-11-05T09:45:12Z"
    }
  ],
  "next_cursor": null
}

Transition a ticket#

POST/api/v1/orgs/{org_id}/tickets/{ticket_id}/transition

Moves a ticket to a mapped state (fixing, in_review, done, using the connection's field mapping) or to a status by name, optionally with a comment. Audit logged.

Auth: secret key with the issues:write scope, or a session. Either way the role behind it needs issues.triage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
ticket_id uuid required Mendloop's ticket id

Body (JSON)

Parameter Type Required Description
to string required fixing, in_review, done, or a status name
comment string optional Markdown, up to 30,000 characters

Response

The ticket, in the shape Create a ticket returns.

Errors

Status Code When
404 ticket_not_found No such ticket in this mode
403 write_not_granted The connection doesn't have write access
502 integration_error The tracker returned an error
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/tickets/TICKET_ID/transition" \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "in_review",
    "comment": "Fix is in review: https://github.com/acme/rider-web/pull/1287"
  }'
Response 200JSON
{
  "id": "0193c3e1-90a2-7dbe-8f20-4b5c6d7e8f9a",
  "issue_id": "0193b7e2-0a4c-7f19-b8d2-51c3e9a7f604",
  "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "provider": "jira",
  "key": "ENG-4812",
  "url": "https://acme.atlassian.net/browse/ENG-4812",
  "status": "In Review",
  "simulated": false,
  "duplicate": false,
  "payload": {}
}

Comment on a ticket#

POST/api/v1/orgs/{org_id}/tickets/{ticket_id}/comment

Adds a Markdown comment to the ticket. Audit logged.

Auth: secret key with the issues:write scope, or a session. Either way the role behind it needs issues.triage.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
ticket_id uuid required Mendloop's ticket id

Body (JSON)

Parameter Type Required Description
body string required Markdown, 1 to 30,000 characters

Response

Field Type Description
ticket string or null Ticket key
comment_id string or null The comment's id in the tracker
simulated boolean Nothing was sent

Errors

Status Code When
404 ticket_not_found No such ticket in this mode
403 write_not_granted The connection doesn't have write access
Shell
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/tickets/TICKET_ID/comment" \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Root cause: `src/cart.tsx:42` reads `item.product.id` before it loads."
  }'
Response 201JSON
{
  "ticket": "ENG-4812",
  "comment_id": "10421",
  "simulated": false
}

Tracker settings#

These configure how a tracker connection files tickets. They need a signed-in session.

Get tracker metadata#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/ticket-meta

Projects, issue types, priorities, fields and statuses in the tracker, for building a field 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 A Jira, Linear or GitHub Issues connection

Query parameters

Parameter Type Required Description
project string optional Narrow to this tracker project
issue_type string optional Narrow fields to this issue type

Response

Field Type Description
project string or null The project the metadata is for
projects object[] Tracker projects
issue_types object[] Issue types
priorities object[] Priorities
fields object[] {id, name, type, required, options}
statuses object[] Statuses
labels string[] Existing labels (Linear, GitHub)

Errors

Status Code When
404 connection_not_found No such connection
502 integration_error The tracker returned an error
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/ticket-meta?project=ENG" \
  --cookie "ml_session=…"
Response 200JSON
{
  "project": "ENG",
  "projects": [
    {
      "id": "10001",
      "key": "ENG",
      "name": "Engineering"
    }
  ],
  "issue_types": [
    {
      "id": "10004",
      "name": "Bug"
    }
  ],
  "priorities": [
    {
      "id": "2",
      "name": "High"
    }
  ],
  "fields": [
    {
      "id": "components",
      "name": "Components",
      "type": "array",
      "required": false,
      "options": [
        "web",
        "api"
      ]
    }
  ],
  "statuses": [
    {
      "id": "3",
      "name": "In Progress"
    }
  ],
  "labels": []
}

Get the field mapping#

GET/api/v1/orgs/{org_id}/connections/{connection_id}/field-mapping

How Mendloop fills tickets for this tracker.

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 A Jira, Linear or GitHub Issues connection

Response

Field Type Description
project string or null Default tracker project
issue_type string or null Default issue type
priority_by_severity object P0..P4 → tracker priority
component_by_service object Service → component
assignee string owner or none
labels string[] Labels; may use placeholders
custom_fields object Field id → template
transitions object fixing, in_review, done → status name
fingerprint_label boolean Add the fingerprint label used for duplicate detection
title_template string Ticket title template with {{placeholders}}
body_template string Markdown body template
sync_status boolean A done ticket resolves the issue; reopening it reopens the issue
dry_run_creates_ticket boolean Test-mode verify creates and deletes a real ticket in the test project
placeholders string[] Names the templates may use
projects object Per Mendloop project id: {project, issue_type}

Errors

Status Code When
404 connection_not_found No such connection
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/field-mapping" \
  --cookie "ml_session=…"
Response 200JSON
{
  "project": "ENG",
  "issue_type": "Bug",
  "priority_by_severity": {
    "P0": "Highest",
    "P1": "High",
    "P2": "Medium",
    "P3": "Low",
    "P4": "Lowest"
  },
  "component_by_service": {},
  "assignee": "owner",
  "labels": [
    "mendloop",
    "{{severity}}"
  ],
  "custom_fields": {},
  "transitions": {
    "fixing": "In Progress",
    "in_review": "In Review",
    "done": "Done"
  },
  "fingerprint_label": true,
  "title_template": "[{{severity}}] {{title}}",
  "body_template": "…",
  "sync_status": true,
  "dry_run_creates_ticket": false,
  "placeholders": [
    "title",
    "severity",
    "short_id",
    "url",
    "…"
  ],
  "projects": {}
}

Change the field mapping#

PUT/api/v1/orgs/{org_id}/connections/{connection_id}/field-mapping

Updates the fields you send; the others keep their values. 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 A Jira, Linear or GitHub Issues connection

Body (JSON)

Parameter Type Required Description
project, issue_type, priority_by_severity, component_by_service, assignee, labels, custom_fields, transitions, fingerprint_label, title_template, body_template, sync_status, dry_run_creates_ticket optional As in Get the field mapping
projects object optional Per Mendloop project id: {project, issue_type}

Response

The full field mapping.

Errors

Status Code When
404 connection_not_found No such connection
422 invalid_input A value is invalid
Shell
curl -X PUT "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/field-mapping" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "priority_by_severity": {
      "P0": "Highest",
      "P1": "High",
      "P2": "High",
      "P3": "Medium",
      "P4": "Low"
    }
  }'
Response 200JSON
{
  "project": "ENG",
  "issue_type": "Bug",
  "priority_by_severity": {
    "P0": "Highest",
    "P1": "High",
    "P2": "High",
    "P3": "Medium",
    "P4": "Low"
  },
  "…": "…"
}

Set the test project#

PUT/api/v1/orgs/{org_id}/connections/{connection_id}/test-target

The tracker project test-mode tickets go to, e.g. Jira TEST. null clears it, so test-mode tickets are simulated.

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 A Jira, Linear or GitHub Issues connection

Body (JSON)

Parameter Type Required Description
project string or null optional Tracker project key, up to 200 characters

Response

Field Type Description
connection_id uuid The connection
project string or null The test project

Errors

Status Code When
404 connection_not_found No such connection
Shell
curl -X PUT "https://app.getmendloop.com/api/v1/orgs/ORG_ID/connections/CONNECTION_ID/test-target" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "TEST"
  }'
Response 200JSON
{
  "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26",
  "project": "TEST"
}

Get a project's default tracker#

GET/api/v1/orgs/{org_id}/projects/{project_id}/tracker

The connection tickets go to when none is named.

Auth: session only. Secret keys get 403 api_key_not_allowed.

Path parameters

Parameter Type Required Description
org_id uuid required Organization id
project_id uuid required Project id

Response

Field Type Description
project_id uuid The project
connection_id uuid or null The default tracker connection

Errors

Status Code When
404 project_not_found No such project in this mode
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/tracker" \
  --cookie "ml_session=…"
Response 200JSON
{
  "project_id": "0193a2c4-61b0-7d3e-9a15-7c2e4f8b1d02",
  "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26"
}

Set a project's default tracker#

PUT/api/v1/orgs/{org_id}/projects/{project_id}/tracker

Sets or clears the default tracker. 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
project_id uuid required Project id

Body (JSON)

Parameter Type Required Description
connection_id uuid or null required Tracker connection; null clears it

Response

Field Type Description
project_id uuid The project
connection_id uuid or null The default tracker connection

Errors

Status Code When
404 project_not_found No such project
404 connection_not_found No such connection
409 connection_disconnected The connection is disconnected
Shell
curl -X PUT "https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/tracker" \
  --cookie "ml_session=…" \
  -H "Content-Type: application/json" \
  -d '{
    "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26"
  }'
Response 200JSON
{
  "project_id": "0193a2c4-61b0-7d3e-9a15-7c2e4f8b1d02",
  "connection_id": "0193a8b0-2e4f-7d61-b5a3-9c0e1f7d4a26"
}