---
title: "Match the prospect to an existing client or create one from it"
method: POST
path: "/api/client-prospects/{prospect_id}/resolve-client"
tags: ["Client Prospect - Admin"]
---

# Match the prospect to an existing client or create one from it

`POST /api/client-prospects/{prospect_id}/resolve-client`

Lead → contract flow: finds an existing Cliente for this prospect
(NIF, then email/phone with a name sanity-check) or creates a new one
from the prospect's data. No body — everything comes from the prospect
row, tenant-scoped by the authenticated user's idcompany.

Returns {"status": "matched"|"created", "id_cliente", "Nome", "matched_by"}.

## Path parameters

- `prospect_id` integer, required

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
