Check for 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
POST /api/v1/leads/check-duplicates

Matches unpromoted leads and individual clients in the firm on exact first name, last name (case-insensitive) and date of birth. A promoted lead is not matched; its client account is. Records the caller cannot view are returned with their names withheld. Lead detection is always on and does not depend on the firm's duplicate client detection feature.

Headers

  • X-PLANNR-ACCOUNT-UUID string
application/json

Body

  • first_name string Required

    First name of the lead being created or edited.

    Maximum length is 255.

  • last_name string Required

    Last name of the lead being created or edited.

    Maximum length is 255.

  • date_of_birth string(date) Required

    Date of birth of the lead being created or edited.

  • exclude_lead_uuid string(uuid) | null

    UUID of the lead being edited, so it is not matched against itself or against matches already dismissed for it.

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
  • 403 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • message string Required

      A human-readable description of the error.

  • 422 application/json

    Validation error

    Hide response attributes Show response attributes object
    • message string Required

      A human-readable description of the error.

    • errors object

      Validation messages keyed by the field that failed.

      Hide errors attribute Show errors attribute object
      • * array[string] Additional properties
POST /api/v1/leads/check-duplicates
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/leads/check-duplicates' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 --data '{
  "first_name": "Sam",
  "last_name": "Patel",
  "date_of_birth": "1985-04-12",
  "exclude_lead_uuid": "b567c432-43aa-4f2d-ba06-244ecf0523a5"
}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "first_name": "Sam",
  "last_name": "Patel",
  "date_of_birth": "1985-04-12",
  "exclude_lead_uuid": "b567c432-43aa-4f2d-ba06-244ecf0523a5"
}
Response examples (200)
{
  "data": [
    [
      {
        "uuid": "15171b57-758c-4b23-adb0-9d168de46714",
        "type": "client",
        "is_viewable": true,
        "first_name": "Sam",
        "last_name": "Patel",
        "date_of_birth": "1985-04-12"
      }
    ]
  ]
}
Response examples (403)
{
  "message": "This action is unauthorized."
}
Response examples (422)
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is invalid."
    ]
  }
}