---
updatedAt: 2026-11-12T11:23:57.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# Match Engine

🏏 If strings had a cricket "match", our API would be the third umpire. Always precise, always unbiased!

> 🙌 Important Note
>
> Please use only **Staging Credentials** on each API Reference page to test the APIs directly from our Documentation.

### API Endpoints

| Environment       | Endpoint                                        |
| :---------------- | :---------------------------------------------- |
| Staging / Sandbox | <https://in.staging.decentro.tech/v2/kyc/match> |
| Production        | <https://in.decentro.tech/v2/kyc/match>         |

> 📘 Text Match Response Keys
>
> Here are the Response Keys and the scenarios under which Decentro will propagate the same to the platform - [Response Keys](https://docs.decentro.tech/docs/response-keys-kyc#text-match)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decentro-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://in.staging.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v2/kyc/match": {
      "post": {
        "summary": "Match Engine",
        "description": "🏏 If strings had a cricket \"match\", our API would be the third umpire. Always precise, always unbiased!",
        "operationId": "kyc-and-onboarding-api-reference-farsight-data-forensics-match-engine",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "ID/identifier that is provided by Decentro to a specific client and environment. Please note, this may change based on the environment you are on.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "The confidential credential provided by Decentro that is associated with the client_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "text1",
                  "text2",
                  "threshold"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "Any unique ID assigned by you for this API request."
                  },
                  "text1": {
                    "type": "string",
                    "description": "The first text/name that needs to be matched."
                  },
                  "text2": {
                    "type": "string",
                    "description": "The second text/name to be matched"
                  },
                  "threshold": {
                    "type": "object",
                    "description": "The minimum match percentage that is acceptable.",
                    "properties": {
                      "textual": {
                        "type": "integer",
                        "description": "The threshold for the textual matching",
                        "format": "int32"
                      },
                      "phonetic": {
                        "type": "integer",
                        "description": "The threshold for the phonetic match",
                        "format": "int32"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Success": {
                  "value": {
                    "reference_id": "DEC001",
                    "text1": "Dada Joel Rego Bhai",
                    "text2": "Shri Shri Joyal Raygoo Ji",
                    "match_threshold": {
                      "textual": 80,
                      "phonetic": 80
                    }
                  }
                },
                "Failure: Invalid Reference ID": {
                  "value": {
                    "reference_id": "",
                    "text1": "Dada Joel Rego Bhai",
                    "text2": "Shri Shri Joyal Raygoo Ji",
                    "match_threshold": {
                      "textual": 80,
                      "phonetic": 80
                    }
                  }
                },
                "Failure: Invalid Text 1": {
                  "value": {
                    "reference_id": "DEC001",
                    "text1": "",
                    "text2": "Shri Shri Joyal Raygoo Ji",
                    "match_threshold": {
                      "textual": 80,
                      "phonetic": 80
                    }
                  }
                },
                "Failure: Invalid Text 2": {
                  "value": {
                    "reference_id": "DEC001",
                    "text1": "Dada Joel Rego Bhai",
                    "text2": "",
                    "match_threshold": {
                      "textual": 80,
                      "phonetic": 80
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n    \"decentroTxnId\": \"A9E798B99D8745C59D729A7019628EF5\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Successfully performed matching\",\n    \"data\": {\n        \"textualMatch\": {\n            \"matchScore\": 41,\n            \"matchStatus\": false\n        },\n        \"phoneticMatch\": {\n            \"matchScore\": 56,\n            \"matchStatus\": false\n        }\n    },\n    \"responseKey\": \"success_match_completed\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "A9E798B99D8745C59D729A7019628EF5"
                    },
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "S00000"
                    },
                    "message": {
                      "type": "string",
                      "example": "Successfully performed matching"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "textualMatch": {
                          "type": "object",
                          "properties": {
                            "matchScore": {
                              "type": "integer",
                              "example": 41,
                              "default": 0
                            },
                            "matchStatus": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            }
                          }
                        },
                        "phoneticMatch": {
                          "type": "object",
                          "properties": {
                            "matchScore": {
                              "type": "integer",
                              "example": 56,
                              "default": 0
                            },
                            "matchStatus": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            }
                          }
                        }
                      }
                    },
                    "responseKey": {
                      "type": "string",
                      "example": "success_match_completed"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure: Invalid Reference ID": {
                    "value": "{\n    \"decentroTxnId\": \"DECXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Request reference ID cannot be null or empty. Hint: reference_id (string)\",\n    \"responseKey\": \"error_empty_reference_id\"\n}"
                  },
                  "Failure: Invalid Text 1": {
                    "value": "{\n    \"decentroTxnId\": \"DECXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"text1 cannot be null or empty.\",\n    \"responseKey\": \"error_empty_text1\"\n}"
                  },
                  "Failure: Invalid Text 2": {
                    "value": "{\n    \"decentroTxnId\": \"DECXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"text2 cannot be null or empty.\",\n    \"responseKey\": \"error_empty_text2\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Failure: Invalid Reference ID",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DECXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Request reference ID cannot be null or empty. Hint: reference_id (string)"
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_empty_reference_id"
                        }
                      }
                    },
                    {
                      "title": "Failure: Invalid Text 1",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DECXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "text1 cannot be null or empty."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_empty_text1"
                        }
                      }
                    },
                    {
                      "title": "Failure: Invalid Text 2",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DECXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "text2 cannot be null or empty."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_empty_text2"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```