Skip to main content

Add Phone Number for Branded Calling

POST 

/v1/phone

Add a new phone number for branded calling and return all information about it.

Body

required

application/json

    phoneNumberstringrequired

    A normalized phone number that consist of two parts: a country calling code and a national part separated by a forward slash.

    Example: 1/6467629160

    doNotOriginateboolean

    The owner may state that they will never originate legitimate phone class from this number. Any calls from the number will show as 'Spoofed'.

    Default value: false

    displayobjectrequired

    All data are potentially subject to being present on the phone of the end user. The exact composition and format might differ by integration (network, device, OS) and the private settings of the end user. As a consequence all data here undergoes an approval process that ensures data is valid, credible, and legally correct.


    displayNamestringrequired

    The display name of the caller.

    Possible values: non-empty and <= 32 characters

    Example: Northstar Credit

    logoIdstring

    The id of the logo that will be shown.

    Format: string<uuid>
    Example: 6f075fbb-d988-4061-a0d2-1fa04ec47361

    callReasonstring

    The reason of the call.

    Possible values: non-empty and <= 50 characters

    Example: Customer Service agent is calling about your inquiry.

    countrystringrequired

    Two-letter country code (ISO 3166-1 Alpha-2)

    Example: US

    statestring

    State in countries where applicable. In case of 'US' country: two-letter state code

    Example: NY

    citystring
    Example: New York

    managedBrandstring

    Managed brand name for BPO partners. This field is NOT visible for most partners.

    Possible values: non-empty and <= 200 characters

    Example: Managed Company Limited

    secureCallobject

    Secure Branding configuration for partners who has it enabled, empty otherwise.


    activateboolean

    Is Secure Branding enabled for this number

    Default value: false

Responses​

Created - A new phone number has been created and returned successfully.

Response Body

application/json

    phoneNumberstring

    A normalized phone number that consist of two parts: a country calling code and a national part separated by a forward slash.

    Example: 1/6467629160

    doNotOriginateboolean

    The owner may state that they will never originate legitimate phone class from this number. Any calls from the number will show as 'Spoofed'.

    Default value: false

    displayobject

    All data are potentially subject to being present on the phone of the end user. The exact composition and format might differ by integration (network, device, OS) and the private settings of the end user. As a consequence all data here undergoes an approval process that ensures data is valid, credible, and legally correct.


    activeobject

    After a successful approval of the pending display it will transition into active state and start to show on end user phones. Empty if there is no 'active' display.


    displayNamestring

    The display name of the caller.

    Example: Northstar Credit

    logoIdstring

    The id of the logo that will be shown.

    Format: string<uuid>
    Example: 6f075fbb-d988-4061-a0d2-1fa04ec47361

    logoUrlStubstring

    An url stub where uploaded logo is available in multiple dimensions. Dimensions: '40x40', '64x64', '200x200' and '600x600'.

    Example: https://somedomain.net/6f075fbb-d988-4061-a0d2-1fa04ec47361_{dimensions}.png

    callReasonstring

    The reason of the call.

    Example: Customer Service agent is calling about your inquiry.

    countrystring

    Two-letter country code (ISO 3166-1 Alpha-2)

    Example: US

    statestring

    State in countries where applicable. In case of 'US' country: two-letter state code

    Example: NY

    citystring
    Example: New York

    managedBrandstring

    Managed brand name for BPO partners. This field is NOT visible for most partners.

    Example: Managed Company Limited

    pendingobject

    Never seen before combination of display name, logo, call reason and managed brand will enter this state first. This will not display on end user's phones until approved. Empty if there is no 'pending' display data.


    displayNamestring

    The display name of the caller.

    Example: Northstar Credit

    logoIdstring

    The id of the logo that will be shown.

    Format: string<uuid>
    Example: 6f075fbb-d988-4061-a0d2-1fa04ec47361

    logoUrlStubstring

    An url stub where uploaded logo is available in multiple dimensions. Dimensions: '40x40', '64x64', '200x200' and '600x600'.

    Example: https://somedomain.net/6f075fbb-d988-4061-a0d2-1fa04ec47361_{dimensions}.png

    callReasonstring

    The reason of the call.

    Example: Customer Service agent is calling about your inquiry.

    countrystring

    Two-letter country code (ISO 3166-1 Alpha-2)

    Example: US

    statestring

    State in countries where applicable. In case of 'US' country: two-letter state code

    Example: NY

    citystring
    Example: New York

    managedBrandstring

    Managed brand name for BPO partners. This field is NOT visible for most partners.

    Example: Managed Company Limited

    rejectedobject

    There was a problem with the pending display data. Please check the returned reasons and/or contact your Hiya representative and resubmit new display data based on the feedback received. Empty if there is no 'rejected' display data.


    displayNamestring

    The display name of the caller.

    Example: Northstar Credit

    logoIdstring

    The id of the logo that will be shown.

    Format: string<uuid>
    Example: 6f075fbb-d988-4061-a0d2-1fa04ec47361

    logoUrlStubstring

    An url stub where uploaded logo is available in multiple dimensions. Dimensions: '40x40', '64x64', '200x200' and '600x600'.

    Example: https://somedomain.net/6f075fbb-d988-4061-a0d2-1fa04ec47361_{dimensions}.png

    callReasonstring

    The reason of the call.

    Example: Customer Service agent is calling about your inquiry.

    countrystring

    Two-letter country code (ISO 3166-1 Alpha-2)

    Example: US

    statestring

    State in countries where applicable. In case of 'US' country: two-letter state code

    Example: NY

    citystring
    Example: New York

    managedBrandstring

    Managed brand name for BPO partners. This field is NOT visible for most partners.

    Example: Managed Company Limited

    reasonsarray

    A list of reasons why the submitted display data had been rejected.

    Format: string[]

    secureCallobject

    Secure Branding configuration for partners who has it enabled, empty otherwise.


    activeboolean

    Is Secure Branding enabled for this number

    Default value: false

    createdstring

    Datetime without a time-zone in ISO-8601.

    Format: string<date-time>

Example from Schema​

{
"phoneNumber": "1/6467629160",
"doNotOriginate": false,
"display": {
"active": {
"displayName": "Northstar Credit",
"logoId": "6f075fbb-d988-4061-a0d2-1fa04ec47361",
"logoUrlStub": "https://somedomain.net/6f075fbb-d988-4061-a0d2-1fa04ec47361_{dimensions}.png",
"callReason": "Customer Service agent is calling about your inquiry.",
"country": "US",
"state": "NY",
"city": "New York",
"managedBrand": "Managed Company Limited"
},
"pending": {
"displayName": "Northstar Credit",
"logoId": "6f075fbb-d988-4061-a0d2-1fa04ec47361",
"logoUrlStub": "https://somedomain.net/6f075fbb-d988-4061-a0d2-1fa04ec47361_{dimensions}.png",
"callReason": "Customer Service agent is calling about your inquiry.",
"country": "US",
"state": "NY",
"city": "New York",
"managedBrand": "Managed Company Limited"
},
"rejected": {
"displayName": "Northstar Credit",
"logoId": "6f075fbb-d988-4061-a0d2-1fa04ec47361",
"logoUrlStub": "https://somedomain.net/6f075fbb-d988-4061-a0d2-1fa04ec47361_{dimensions}.png",
"callReason": "Customer Service agent is calling about your inquiry.",
"country": "US",
"state": "NY",
"city": "New York",
"managedBrand": "Managed Company Limited",
"reasons": [
"string"
]
}
},
"secureCall": {
"active": false
},
"created": "2024-07-29T15:51:28.071Z"
}