---
title: "Resolve the phone number for a BSUID-only WhatsApp conversation"
method: PUT
path: "/chat/conversations/{conversation_id}/whatsapp-phone-number-resolution"
tags: ["Conversation"]
---

# Resolve the phone number for a BSUID-only WhatsApp conversation

`PUT /chat/conversations/{conversation_id}/whatsapp-phone-number-resolution`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/chat/conversations/{conversation_id}/whatsapp-phone-number-resolution`
- Auth: HTTP basic

Records the consultant-verified phone number for a WhatsApp conversation whose sender hid their phone (a BSUID). Upserts the BSUID->phone mapping, audits it, and publishes the event that triggers the background resolution (which sets the phone on the conversation). The BSUID is derived server-side from the conversation; only the phone_number is accepted in the body. Returns the upserted BSUID->phone mapping.

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required
- `X-Accept-Timezone` string

## Request body

- object
  - `phone_number` string, required

## Response `201`

The upserted BSUID to phone-number mapping will be returned

- object
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `bsuid` string, required
  - `phone_number` string, required
  - `source_context_id` string, required
  - `source_conversation_id` string, required

## Other responses

- `400`: Usually caused by invalid input
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `404`: Resource not found
- `412`: Failed a pre condition while resolving the WhatsApp phone number
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
