Skip to main content
POST
/
inbound
/
update_label
Update Inbound Number Label
curl --request POST \
  --url https://api.bland.ai/inbound/update_label \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "phoneNumber": "<string>",
  "newLabel": "<string>"
}
'
{
  "data": {
    "message": "Label updated successfully",
    "phone_number": "+18669659045",
    "label": "apitest"
  },
  "errors": null
}

Headers

authorization
string
required
Your API key for authentication.

Body

phoneNumber
string
required
The inbound phone number whose label you want to update.Required format: E.164 (for example, +12223334444).
newLabel
string
required
The new label to assign to this inbound number.Constraints:
  • Max length: 150 characters
  • Set to an empty string ("") to clear the label

Response

data
object
Success response data.
data.message
string
Success message.
data.phone_number
string
The inbound phone number that was updated.
data.label
string
The updated label value.
errors
null
Error array (null on success).
{
  "data": {
    "message": "Label updated successfully",
    "phone_number": "+18669659045",
    "label": "apitest"
  },
  "errors": null
}