Open a matter

Open a matter for a client, with the same conflict check your team gets.

POST /desk/matters

Before the matter is opened we check the client and anyone you add against every matter the firm holds. If something looks like a match, nothing is opened: you get the matches back so a person can look at them. Once they’re happy, send the same request again with confirm: true.

What to send

client_id string Required
The client, from Add a client or List clients.
stream_id string Required
The work stream, from List work streams. It sets the stages, checklist and key dates the matter starts with.
title string Required
What your team will see in lists, like “Purchase of 14 Marchmont Road”.
type_label string
A finer label inside the work stream.
reference string
Your own matter reference. Left out, it gets the next in your numbering.
external_ref string
Its id in the system you’re sending from.
owner string
Who owns it, as a user_id from List seats.
source string
Where the work came from: a referrer, your website.
people array
Others on the matter, each { reference, role }.
confirm boolean
true to open it although the conflict check found someone.
Request
curl -X POST "https://api.torlie.com/desk/matters" \
  -H "Authorization: Bearer $TORLIE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "cli_01jd4m2x8r6tq9w3e5y7u1i0pa",
    "stream_id": "wst_01jcz8q3w6e9r2t5y8u1i4o7p0",
    "title": "Purchase of 14 Marchmont Road",
    "source": "Website enquiry"
  }'

What comes back

201 and result: "opened" with the matter, or 200 and result: "conflicts" with what matched. Check result before you go on.

Response 201 Created
{
  "result": "opened",
  "matter": {
    "id": "mat_01jd4n7c2v5b8n1m4k6j9h3g2f",
    "reference": "HEN001-0001",
    "external_ref": null,
    "title": "Purchase of 14 Marchmont Road",
    "type_label": null,
    "client_id": "cli_01jd4m2x8r6tq9w3e5y7u1i0pa",
    "client_name": "Morag Henderson",
    "client_kind": "person",
    "stream_id": "wst_01jcz8q3w6e9r2t5y8u1i4o7p0",
    "stream_name": "Residential purchase",
    "stage": {
      "id": "stg_01jcz8q3w6e9r2t5y8u1i4o7p1",
      "name": "Instructed"
    },
    "stage_index": 0,
    "stage_count": 6,
    "owner": "user_01jcz6a9s2d5f8g1h4j7k0l3z6",
    "next_date": null,
    "opened_at": "2026-11-22T10:20:41Z",
    "closed_at": null,
    "version": 1,
    "documents": 0,
    "source": "Website enquiry"
  }
}

When the check finds someone

Each match says who it is, which client they’re linked to, the matters involved, and whether it matched on the name, the surname or the company number.

200 OK
{
  "result": "conflicts",
  "matches": [
    {
      "name": "M Henderson",
      "client_id": "cli_01j8x2c5v8b1n4m7k0j3h6g9f2",
      "client_name": "Henderson Holdings Ltd",
      "reference": "HEN004",
      "on": "surname",
      "matters": [
        "HEN004-0002"
      ]
    }
  ]
}