---
title: "Link the lead to a registered user"
method: POST
path: "/v1/acquisition/leads/{id}/link-user"
tags: ["Acquisition Leads"]
---

# Link the lead to a registered user

`POST /v1/acquisition/leads/{id}/link-user`

Called after the funnel graduates the anonymous Firebase account into a real registration. Mirrors `isCustomer` from the canonical `subscriptions` table.

## Path parameters

- `id` string, required

## Request body

- LinkAcquisitionLeadToUserDto
  - `firebaseUid` string, required — Firebase UID of the now-registered user. Used to look up the matching row in the `users` table.
  - `appUserId` string — Pre-resolved `users.id` to short-circuit the Firebase lookup. Optional.

## Response `200`

- AcquisitionLeadDto
  - `id` string, required
  - `firebaseUid` string, nullable
  - `email` string, nullable
  - `linkedAppUserId` string, nullable
  - `isCustomer` boolean, required
  - `firstSeenAt` string, date-time, required
  - `lastSeenAt` string, date-time, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
