Skip to main content

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​


    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

    enabledbooleanrequired

    true turns the product on, false turns it off.

    Example: true

Responses​

Spoof Defense was updated. Returns the updated business.

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

    idstringrequired

    The business's ID, assigned by Hiya.

    Format: string<uuid>
    Example: 9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f

    legalNamestringrequired

    Legally registered name of the business.

    Example: Acme Plumbing Inc.

    primaryNamestring | null

    Public-facing name (DBA).

    Example: Acme Plumbing

    dunsNumberstring | null

    DUNS number.

    Example: 123456789

    addressobjectrequired

    Postal address of the business headquarters, as stored.


    countrystringrequired

    ISO 3166-1 alpha-2 country code.

    Possible values: Value must match regular expression ^[A-Z]{2}$

    Example: US

    regionstring | null

    State or province.

    Example: WA

    localitystring | null

    City or town.

    Example: Seattle

    postalCodestring | null

    Postal or ZIP code.

    Example: 98101

    streetAddressLine1string | null

    Street address.

    Example: 123 Pine St

    streetAddressLine2string | null

    Suite, unit, or floor.

    Example: Suite 200

    contactobjectrequired

    Authorized representative at the business.


    firstNamestringrequired
    Example: Alice

    lastNamestringrequired
    Example: Anderson

    emailstringrequired
    Format: string<email>
    Example: alice@acmeplumbing.example

    titlestring | null

    Job title.

    Example: Owner

    phonestring | null

    Phone number in E.164 format, with the leading +.

    Example: +12065550123

    industrystringrequired

    The business's main industry.

    Format: 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]

    Example: ACCOUNTING_OR_FINANCE

    numberOfEmployeesstring | null

    Number 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]

    Example: BETWEEN_1_AND_10

    websitestring | null

    The business's website.

    Format: string<uri>
    Example: https://acmeplumbing.example

    externalIdstring | null

    Your own reference for this business.

    Possible values: Value must match regular expression ^[A-Za-z0-9._-]+$

    Example: partner-customer-7421

    statusstringrequired

    The 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. |

    Format: business_BusinessStatus (string)

    Possible values: [UNDER_REVIEW, ACTIVE, INACTIVE, NEEDS_ATTENTION]

    Example: UNDER_REVIEW

    attentionReasonstring | null

    Why 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.

    Example: Domain risk: website and email domain differ

    registeredstringrequired

    When the business was created.

    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

    updatedstringrequired

    When the business was last changed.

    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:45:00.324Z

Example 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"
}