Get the potential duplicates of a lead Run in API Explorer

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.plannrcrm.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "PlannrCRM MCP server": {
    "url": "https://apidocs.plannrcrm.com/mcp"
  }
}

Close
GET /api/v1/leads/{lead_uuid}/potential-duplicates

Lists the lead's unresolved potential duplicates. Dismissed matches, and matches whose lead has since been promoted or deleted, are left out. Personal details are withheld for records the caller cannot view.

Headers

  • X-PLANNR-ACCOUNT-UUID string

Path parameters

  • lead_uuid string Required

    The UUID of the lead.

Query parameters

  • per_page integer

    Number of results to return with pagination (Default 15. Max 500).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • data array[object]
      Hide data attributes Show data attributes object
      • uuid string
      • type string
      • is_viewable boolean
      • first_name string
      • last_name string
      • date_of_birth string
      • email string
      • phone string
      • postcode string
      • assigned_adviser_name string
      • created_at string
      • flagged_by object
        Hide flagged_by attributes Show flagged_by attributes object
        • uuid string
        • created_at string
        • updated_at string
        • type string
        • role string
        • first_name string
        • last_name string
        • name string
        • email string
        • photo_url string
        • external_references object
          Hide external_references attributes Show external_references attributes object
          • uuid

            The UUID of the resource.

          • created_at

            The timestamp of when the resource was created.

          • updated_at

            The timestamp of when the resource was updated.

          • third_party

            The third party provider with the reference.

          • reference

            The third party reference.

      • flagged_at string
  • 404 application/json

    Lead not found or not visible

    Hide response attribute Show response attribute object
    • message string Required

      A human-readable description of the error.

GET /api/v1/leads/{lead_uuid}/potential-duplicates
curl \
 --request GET 'https://api.plannrcrm.com/api/v1/leads/53f22fe4-3731-4cdc-aa12-e65bd0b15e52/potential-duplicates' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
  "data": [
    {
      "uuid": "6eb08b6a-6fcc-4b66-8715-ac695a42c7b6",
      "type": "client",
      "is_viewable": true,
      "first_name": "Sam",
      "last_name": "Patel",
      "date_of_birth": "1985-04-12",
      "email": "sam@example.com",
      "phone": "+447700900123",
      "postcode": "SW1A 1AA",
      "assigned_adviser_name": "Alex Smith",
      "created_at": "2026-11-29T17:04:08+00:00",
      "flagged_by": {
        "uuid": "c9686c2b-99a2-49e7-993b-4cdb083c3ea0",
        "created_at": "2026-11-29T17:04:08+00:00",
        "updated_at": "2026-11-29T17:04:08+00:00",
        "type": "client",
        "role": "client",
        "first_name": "Gareth",
        "last_name": "Thompson",
        "name": "Gareth Thompson",
        "email": "gareth@codepotato.co.uk",
        "photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
        "external_references": {
          "uuid": "ff836f97-57c6-4821-86a3-1cdfc09bfa7d",
          "created_at": "2026-11-29T17:04:16+00:00",
          "updated_at": "2026-11-29T17:04:16+00:00",
          "third_party": "nucleus",
          "reference": "AB123456"
        }
      },
      "flagged_at": "2026-11-29T17:04:08+00:00"
    }
  ]
}
Response examples (404)
{
  "message": "Not Found"
}