WaMCP
Api referenceClients

Set Username

Claim or change the phone number's WhatsApp business username.

PUT
/api/clients/{id}/username

Claim or change the phone number's WhatsApp business username.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

id*Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/clients/string/username" \  -H "Content-Type: application/json" \  -d '{    "username": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}