WhatsApp Business Username Management

Meta WhatsApp lets businesses adopt an optional, unique username that maps to a specific WhatsApp Business phone number. When a username is active, it appears in the user's WhatsApp app alongside (or instead of) the phone number, giving your brand a more recognizable presence in conversations.

Vonage exposes this functionality through the Channel Manager API so you can manage usernames programmatically.

Note: Business usernames are a branding feature, not a privacy feature. Your business phone number remains visible in the WhatsApp app even after you adopt a username.

How Business Usernames Work

A business username is a one-to-one mapping: each username belongs to exactly one WhatsApp Business phone number. Vonage stores a username in its database only after Meta confirms the username is active (via a webhook).

When you retrieve a number using the List Numbers or Get Number endpoints, the username field appears in the response only if an active username exists for that number. If no active username is set, the field is omitted entirely (not returned as null).

Username Status Values

Status Description
approved Username is approved and visible to WhatsApp users. The feature is live.
reserved Username is reserved but not yet visible. The feature is not yet live in the user's region.

Username Format Rules

Usernames must follow Meta's formatting requirements. Before submitting a username, confirm it meets all of the following criteria:

  • Length: 3–35 characters
  • Allowed characters: English letters (a-z, A-Z), digits (0-9), period (.), and underscore (_)
  • Must contain at least one English letter
  • Must not start or end with a period, or contain two consecutive periods
  • Must not start with www
  • Must not end with a domain suffix (for example, .com, .org, .net, .edu, .gov, .mil, .us, .in, .html)

Case is ignored when comparing usernames, but period and underscore are not interchangeable. For example, myid, my.id, and my_id are all treated as distinct usernames.

For the full and authoritative list of rules, refer to the Meta Business Usernames documentation.

Authentication

All username management endpoints support Basic Auth and JWT authentication. Your API key must be linked to the WhatsApp Business Account (WABA) that owns the phone number you are managing.

If your API key does not own the specified phone number, the API returns a 401 or 403 error. Meta's API is not called in this case.

Base URL

All username management endpoints follow the Channel Manager API path convention:

https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/:whatsapp_number/...

The :whatsapp_number path parameter must contain only digits, without a leading + or - (for example, 447000000000).

Available Endpoints

Get Reserved Username Suggestions

Retrieve a list of usernames that Meta has pre-reserved for a business phone number. This is a useful starting point if you are not sure which username to adopt.

GET /v1/channel-manager/whatsapp/numbers/:whatsapp_number/username-suggestions

Example request:

curl -X GET https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/447000000000/username-suggestions \
  -H "Authorization: Bearer $VONAGE_JWT"

Example response (suggestions available):

{
  "username_suggestions": [
    "vonage_support",
    "vonagesupport",
    "vonage.support"
  ]
}

If Meta has no suggestions for the number, the username_suggestions array is returned empty.

HTTP Code Description
404 Phone number not found or not linked to the authenticated API key
4xx Phone number not onboarded or not registered with Meta
401 / 403 API key does not own this phone number

Adopt, Change, or Delete a Username

Use this endpoint to adopt a new username, change an existing one, or delete a username for a business phone number.

PATCH /v1/channel-manager/whatsapp/numbers/:whatsapp_number/username

Request body fields:

Field Type Required Description
username string Yes The desired business username. Must follow the format rules. Pass an empty string ("") to delete an existing username or cancel a pending request.
transfer_action string No Controls behavior when the requested username is already in use on another phone number within the same WABA portfolio. Values: none (default — request fails if username is in use) or force_transfer (moves the username from the other number to this one).

Example request — adopt or change a username:

curl -X PATCH https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/447000000000/username \
  -H "Authorization: Bearer $VONAGE_JWT" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "vonage_support"
  }'

Example request — delete a username:

curl -X PATCH https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/447000000000/username \
  -H "Authorization: Bearer $VONAGE_JWT" \
  -H "Content-Type: application/json" \
  -d '{
    "username": ""
  }'

Response — 202 Accepted:

The request has been forwarded to Meta and is pending approval. Vonage stores the username in its database only after the status becomes ACTIVE via webhook.

{
  "status": "approved"
}

Error responses:

HTTP Code Meta Error Code Description
400 100 Invalid username format
409 147001 Username already claimed or unavailable
403 147002 Account not eligible — messaging limit too low
422 147003 Phone number must be linked to a Facebook Page first
422 147004 Phone number must be linked to an Instagram account first
409 147005 Username in use on another number in the same portfolio. Resend with transfer_action: force_transfer to move it.
422 133010 Phone number not registered for API use
401 / 403 - API key does not own this phone number
404 — Phone number not found or no active username to delete

Get the Current Username

Retrieve the current username and its status for a business phone number.

GET /v1/channel-manager/whatsapp/numbers/:whatsapp_number/username

Example request:

curl -X GET https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/447000000000/username \
  -H "Authorization: Bearer $VONAGE_JWT"

Example response (username exists):

{
  "username": "vonage_support",
  "status": "approved"
}

Example response (no username set):

{
  "username": null,
  "status": null
}
HTTP Code Description
404 Phone number not found or not linked to the authenticated API key
401 / 403 API key does not own this phone number

Username Field in Number Responses

The username field has been added to the responses of the existing List Numbers and Get Number endpoints. It appears only when a username with ACTIVE status exists for the number. If no active username is set, the field is omitted from the response.

Affected endpoints:

  • GET /v1/channel-manager/whatsapp/wabas/:waba_id/numbers
  • GET /v1/channel-manager/whatsapp/numbers/:whatsapp_number

Updated response example:

{
  "verified_name": "Vonage Support",
  "display_phone_number": "+44 7000 000000",
  "phone_number": "447000000000",
  "number_id": "3900084270039015",
  "waba_id": "345688589250625",
  "api_key": "ccc333",
  "messaging_limit_tier": "TIER_100K",
  "quality_score": {
    "score": "GREEN"
  },
  "username": "vonage_support"
}

Further Information