Remove a phone number
DELETE/v1/businesses/{businessId}/phone-numbers/{phoneNumber}
Unregisters one phone number. Removing a number that isn't registered
to the business still returns 200, so the call is safe to repeat; a
404 only ever means the business doesn't exist or isn't yours.
Path Parameters
The ID of the business, assigned by Hiya.
9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fAn E.164 phone number, URL-encoded — the leading + becomes %2B
(e.g. %2B12065550123).
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
+12065550123Header Parameters
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._:/+=@-]+$
job-2f9c1a7e-0042Responses
- 200
- 400
- 401
- 404
- 409
- 500
The number was unregistered.
Response Body
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
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$
2026-05-28T14:32:10.264ZExample from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z"
}
The phone number in the path isn't valid E.164, or the
X-Hiya-Request-Id header doesn't match its pattern.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
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$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_FIELD | 400 | The phone number in the path isn't valid E.164. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
NOT_FOUNDA description of what went wrong.
Business not found.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "NOT_FOUND",
"message": "Business not found."
}
]
}
The API key is missing or invalid.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
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$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_FIELD | 400 | The phone number in the path isn't valid E.164. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
NOT_FOUNDA description of what went wrong.
Business not found.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "NOT_FOUND",
"message": "Business not found."
}
]
}
The business doesn't exist, or isn't one of yours — the two are indistinguishable by design.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
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$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_FIELD | 400 | The phone number in the path isn't valid E.164. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
NOT_FOUNDA description of what went wrong.
Business not found.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "NOT_FOUND",
"message": "Business not found."
}
]
}
The business is being deleted.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
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$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_FIELD | 400 | The phone number in the path isn't valid E.164. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
NOT_FOUNDA description of what went wrong.
Business not found.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "NOT_FOUND",
"message": "Business not found."
}
]
}
Something went wrong on our side.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
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$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| INVALID_FIELD | 400 | The phone number in the path isn't valid E.164. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
NOT_FOUNDA description of what went wrong.
Business not found.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "NOT_FOUND",
"message": "Business not found."
}
]
}