Set Spoof Defense
PUT/v1/businesses/{businessId}/spoof-defense
Turns Spoof Defense on or off for the business, per the enabled flag
in the body.
The business must have completed verification; one already disabled can
still be toggled. A business still under review, or one being shut
down, returns 409.
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
requiredtrue turns the product on, false turns it off.
trueResponses
- 200
- 400
- 401
- 404
- 409
- 500
Spoof Defense was updated. Returns the updated business.
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.264ZThe business's ID, assigned by Hiya.
string<uuid>9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fLegally registered name of the business.
Acme Plumbing Inc.Public-facing name (DBA).
Acme PlumbingDUNS number.
123456789addressobjectrequired
Postal address of the business headquarters, as stored.
ISO 3166-1 alpha-2 country code.
Possible values: Value must match regular expression ^[A-Z]{2}$
USState or province.
WACity or town.
SeattlePostal or ZIP code.
98101Street address.
123 Pine StSuite, unit, or floor.
Suite 200contactobjectrequired
Authorized representative at the business.
AliceAndersonstring<email>alice@acmeplumbing.exampleJob title.
OwnerPhone number in E.164 format, with the leading +.
+12065550123The business's main industry.
business_Industry (string)Possible values: [ACCOUNTING_OR_FINANCE, BILLING_AND_COLLECTIONS, BUSINESS_SERVICES, CHARITY_OR_FUNDRAISING, COMMUNICATIONS, CUSTOMER_SERVICE, DELIVERY_OR_SHIPPING, EDUCATION, FINANCIAL_SERVICES, GOVERNMENT_OR_PUBLIC_SERVICES, HEALTHCARE_OR_PHARMACY, INSURANCE, LEGAL_SERVICES, NOTIFICATIONS_OR_SCHEDULING, REAL_ESTATE, RETAIL, SALES, SOFTWARE_OR_TECHNOLOGY_OR_MEDIA, SURVEYS_AND_MARKET_RESEARCH, TRAVEL_OR_HOSPITALITY, OTHER]
ACCOUNTING_OR_FINANCENumber of employees.
Possible values: [BETWEEN_1_AND_10, BETWEEN_11_AND_50, BETWEEN_51_AND_200, BETWEEN_201_AND_500, BETWEEN_501_AND_2000, BETWEEN_2001_AND_10000, MORE_THAN_10001]
BETWEEN_1_AND_10The business's website.
string<uri>https://acmeplumbing.exampleYour own reference for this business.
Possible values: Value must match regular expression ^[A-Za-z0-9._-]+$
partner-customer-7421The business's current status. A new business is always
UNDER_REVIEW.
| Value | Meaning |
|-------|---------|
| UNDER_REVIEW | Verification is in progress. |
| ACTIVE | Verified and live. |
| INACTIVE | Verified, but Branded Call is currently turned off. |
| NEEDS_ATTENTION | Verification flagged the business; attentionReason says why. You may need to contact Hiya. |
business_BusinessStatus (string)Possible values: [UNDER_REVIEW, ACTIVE, INACTIVE, NEEDS_ATTENTION]
UNDER_REVIEWWhy the business is NEEDS_ATTENTION, as text. Set only while
status is NEEDS_ATTENTION; null otherwise. Meant to be
shown to a person — don't parse it, since the wording can
change.
Domain risk: website and email domain differWhen the business was created.
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.264ZWhen the business was last changed.
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:45:00.324ZExample from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"id": "9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f",
"legalName": "Acme Plumbing Inc.",
"primaryName": "Acme Plumbing",
"dunsNumber": "123456789",
"address": {
"country": "US",
"region": "WA",
"locality": "Seattle",
"postalCode": "98101",
"streetAddressLine1": "123 Pine St",
"streetAddressLine2": "Suite 200"
},
"contact": {
"firstName": "Alice",
"lastName": "Anderson",
"email": "alice@acmeplumbing.example",
"title": "Owner",
"phone": "+12065550123"
},
"industry": "ACCOUNTING_OR_FINANCE",
"numberOfEmployees": "BETWEEN_1_AND_10",
"website": "https://acmeplumbing.example",
"externalId": "partner-customer-7421",
"status": "UNDER_REVIEW",
"attentionReason": "Domain risk: website and email domain differ",
"registered": "2026-05-28T14:32:10.264Z",
"updated": "2026-05-28T14:45:00.324Z"
}
The request is invalid — enabled is missing or not a boolean, 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 |
|---|---|---|
| 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.
The business hasn't completed verification.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "The business hasn't completed verification."
}
]
}
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.
The business hasn't completed verification.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "The business hasn't completed verification."
}
]
}
No business with that ID exists, or it 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.
The business hasn't completed verification.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "The business hasn't completed verification."
}
]
}
The business isn't in a state that allows this change — it hasn't
completed verification yet, or it is being shut down. Returned as
CONFLICT; the message says which case applies.
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.
The business hasn't completed verification.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "The business hasn't completed verification."
}
]
}
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.
The business hasn't completed verification.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "CONFLICT",
"message": "The business hasn't completed verification."
}
]
}