Skip to main content

Remove phone numbers

POST 

/v1/businesses/{businessId}/phone-numbers/delete

Unregisters several phone numbers at once. Numbers that aren't registered to the business are ignored.

This is a POST action rather than a DELETE on the collection, because request bodies on DELETE are unreliable across clients and proxies. To remove a single number, DELETE it directly.

Path Parameters​


    businessId string<uuid>required

    The ID of the business, assigned by Hiya.

    Example: 9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f

Header Parameters​


    X-Hiya-Request-Id string

    Your own correlation ID for this call, returned as requestId in the response body. Hiya generates one if omitted. A value that doesn't match the pattern is rejected with 400 INVALID_HEADER.

    Possible values: <= 200 characters, Value must match regular expression ^[A-Za-z0-9._:/+=@-]+$

    Example: job-2f9c1a7e-0042

Body

required

application/json

    phoneNumbersarrayrequired

    E.164 numbers (with leading +) to remove.

    Format: phone_SubmittedPhoneNumber (string)[]

    Possible values: >= 1, <= 1000

    Example: ["+12065550123","+12065559876"]

Responses​

The numbers were removed.

Response Body

application/json

    requestIdstringrequired

    The X-Hiya-Request-Id this call was handled under — the value you sent, or one Hiya generated if you didn't send one.

    Example: job-2f9c1a7e-0042

    timestampstringrequired

    When Hiya handled the request.

    Format: string<date-time>

    Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

    Example: 2026-05-28T14:32:10.264Z

Example from Schema​

{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z"
}