Register phone numbers
POST/v1/businesses/{businessId}/phone-numbers
Registers one or more phone numbers. Numbers must be in E.164 format
with a leading +. branding and spoofDefense, if set, apply to
every number in the request.
This endpoint only creates. A number already registered to this
business is ignored: it is not re-verified, and neither its branding
nor its Spoof Defense state is touched. Use PUT to replace an existing
number's state or PATCH to change part of it.
A number Hiya cannot accept does not fail the batch. The rest are
registered and it is returned in needsAttention with its own error
— so a mixed request still returns 200, and the response is what
tells you the outcome per number. That holds even if every number needs
attention.
The business must have completed verification (ACTIVE or
INACTIVE). Registering against one still UNDER_REVIEW or in
NEEDS_ATTENTION returns 409. Numbers may be registered while the
business is INACTIVE, ready for when branded call is turned on.
Path Parameters
The ID of the business, assigned by Hiya.
9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fHeader 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-0042Body
requiredArray [
]
phoneNumbersobject[]required
The numbers to register.
Possible values: >= 1, <= 1000
A phone number in E.164 format, with the leading + — e.g.
+12065550123.
No pattern is enforced on the request so that a malformed number is
reported per-number in the response rather than rejecting the whole
batch. Hiya normalises and validates each number server-side; anything
it cannot use comes back in needsAttention.
phone_SubmittedPhoneNumber (string)+12065550123brandingobject | null
Branding applied to every number in the request. Optional — omitting
it registers the numbers without branding, which is the same as
sending null.
Name shown on the recipient's phone for branded calls.
Possible values: non-empty and <= 200 characters
Acme PlumbingThe id of a logo uploaded via the logo endpoints.
string<uuid>550e8400-e29b-41d4-a716-446655440000Reason for the call, shown next to the brand.
Possible values: <= 50 characters
Appointment reminderMark the number as Do-Not-Originate — it should only receive calls, never place them.
falsefalsesecureBrandingobject | null
Secure Branding for the number — delivers the business's branding at call time.
truespoofDefenseobject | null
Spoof Defense applied to every number in the request. Optional —
omitting it is the same as sending null, i.e. not enabled. These
are new numbers, so nothing is overwritten either way.
Whether Spoof Defense is on for the number.
trueResponses
- 200
- 400
- 401
- 404
- 409
- 500
The batch was processed. Check the response to see which numbers were added, which were already registered, and which need attention.
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.264ZThe numbers that were newly registered.
phone_E164PhoneNumber (string)[]Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
["+12065550123","+12065559876"]Numbers already registered to this business. POST only creates, so
these were left exactly as they were — not re-verified, and their
branding and Spoof Defense untouched. Use PUT or PATCH to change
them.
phone_E164PhoneNumber (string)[]Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
["+12065551111"]needsAttentionobject[]required
The numbers that did not end up in the state you asked for, each
with its own error.code and error.message saying why.
error.code | Meaning |
|---|---|
INVALID_FIELD | Not a usable phone number |
CONFLICT | Already registered |
BRANDING_FAILED | Registered, but the branding could not be applied |
The number this applies to, echoed exactly as you submitted it — which, if the problem was the format, will not be E.164.
+12065550123errorobjectrequired
| Code | Meaning |
|---|---|
| INVALID_FIELD | Not a usable phone number. |
| CONFLICT | Already registered. |
| BRANDING_FAILED | Registered, but the branding could not be applied. |
Possible values: [INVALID_FIELD, CONFLICT, BRANDING_FAILED]
INVALID_FIELDA description of what went wrong.
Not a valid E.164 phone number.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"added": [
"+12065550123",
"+12065559876"
],
"ignored": [
"+12065551111"
],
"needsAttention": [
{
"phoneNumber": "not-a-number",
"error": {
"code": "INVALID_FIELD",
"message": "Not a valid E.164 phone number."
}
},
{
"phoneNumber": "+12065552222",
"error": {
"code": "CONFLICT",
"message": "This number is registered already."
}
}
]
}
The request is invalid — for example phoneNumbers is missing or
has more than 1000 items, a supplied branding has no
displayName, or the X-Hiya-Request-Id header doesn't match its
pattern. A number Hiya can't apply doesn't cause this — it is
reported in needsAttention.
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 |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| 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: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
CONFLICTA description of what went wrong.
Phone numbers can only be added to a verified business.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "Phone numbers can only be added to a verified business."
}
]
}
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 |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| 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: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
CONFLICTA description of what went wrong.
Phone numbers can only be added to a verified business.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "Phone numbers can only be added to a verified business."
}
]
}
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 |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| 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: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
CONFLICTA description of what went wrong.
Phone numbers can only be added to a verified business.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "Phone numbers can only be added to a verified business."
}
]
}
The business hasn't completed verification yet, or is being deleted,
so numbers can't be registered. A verified business whose branded
call is switched off (INACTIVE) still accepts them.
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 |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| 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: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
CONFLICTA description of what went wrong.
Phone numbers can only be added to a verified business.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "Phone numbers can only be added to a verified business."
}
]
}
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 |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| 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: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
CONFLICTA description of what went wrong.
Phone numbers can only be added to a verified business.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "Phone numbers can only be added to a verified business."
}
]
}