Update a number

PATCH
/v1/numbers/{id}

Change the nickname, the renewal settings or the price fixed for the customer. Fields you leave out stay as they are.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Path Parameters

id*string

Request Body

application/json
  1. body
nickname?|

Your own label for the number; null clears it

autoRenew?boolean
renewDuration?string

Length of the rental

Value in"12h""1d""7d""30d""180d""365d"
customerPrice?|

What the customer pays for one unit of this item from now on, in minor units of their list's currency. It beats their contract and list prices. null clears it

Response Body

Success

application/json
  1. response

Success

id*string
number*string

Digits only, as issued by the carrier

country*string

ISO 3166-1 alpha-2 country code, for example US or GB

Match^[A-Z]{2}$
product*string

any_service receives SMS from anyone; single_service is locked to one sender

Value in"any_service""single_service"
service*|

The one service a single_service number receives from

status*string
Value in"active""expired""cancelled"
customerId*|

The customer this was bought for, if any

orderId*string
nickname*string|null
startsAt*string

ISO 8601 timestamp

Formatdate-time
endsAt*string

ISO 8601 timestamp

Formatdate-time
autoRenew*boolean

Whether it is extended shortly before it ends

renewDuration*string

How long each automatic renewal adds

Value in"12h""1d""7d""30d""180d""365d"
unitPrice*integer

Price of one rental period, in minor units

customerPrice*|

A price per renewal fixed for the customer on this number alone, in their list's currency. It beats their contract and list. Null when there is none

paidTotal*integer

Everything charged for this number so far, in minor units

messageCount*integer
createdAt*string

ISO 8601 timestamp

Formatdate-time
curl -X PATCH "https://example.com/v1/numbers/num_01K6XJ4Q8ZT3M9R5V2B7WDHNCA" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "num_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "number": "15550100002",  "country": "US",  "product": "any_service",  "service": null,  "status": "active",  "customerId": "cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "orderId": "ord_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "nickname": "Support line",  "startsAt": "2026-10-07T11:04:31.000Z",  "endsAt": "2026-11-06T11:04:31.000Z",  "autoRenew": true,  "renewDuration": "30d",  "unitPrice": 1200,  "customerPrice": null,  "paidTotal": 1200,  "messageCount": 3,  "createdAt": "2026-10-07T11:04:31.000Z"}