Get API key

    Reference/Chat

    PATCH/v1/agents/:id/threads/:threadId

    Rename a thread

    Update the title only.

    Full URL

    PATCH https://api.tryleadreach.com/v1/agents/:id/threads/:threadId

    Headers

    • X-Api-Key (required): your API key from the app Keys tab.
    • Content-Type: application/json (required)

    Path params (in the URL)

    NameTypeRequiredMeaning
    iduuidYesThe agent's id (from Create agent or List agents).
    threadIduuidYesThe chat thread id (from Create thread or List threads).

    Query params (after ?)

    None

    Request body (JSON)

    FieldTypeRequiredMeaning
    titlestringYesNew thread title (1–120 characters).

    Example request (JSON)

    What you send: headers, and path / query / body when used.

    {
      "headers": {
        "X-Api-Key": "lr_your_key_here",
        "Content-Type": "application/json"
      },
      "path": {
        "id": "a1111111-1111-1111-1111-111111111111",
        "threadId": "t1111111-1111-1111-1111-111111111111"
      },
      "body": {
        "title": "Warm leads"
      }
    }

    Example response (JSON)

    Typical successful response shape.

    {
      "id": "t1111111-1111-1111-1111-111111111111",
      "title": "Warm leads"
    }

    Response

    Updated thread object.

    Credits

    0