Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Class NumbersService

    The Numbers Service exposes the following APIs:

    • availableRegions
    • availableNumber
    • activeNumber
    • callbacks
    Index

    Properties

    activeNumber: ActiveNumberApi

    Use the methods exposed at the Numbers Service level instead

    availableNumber: AvailableNumberApi

    Use the methods exposed at the Numbers Service level instead

    availableRegions: AvailableRegionsApi
    callbacks: CallbacksApi

    Methods

    • This endpoint allows you to enter a specific phone number to check if it's available for use. A 200 response will return the number's capability, setup costs, monthly costs and if supporting documentation is required. If the phone number is not available, the API will return a 404 error.

      Parameters

      Returns Promise<AvailableNumber>

    • Update the default hostname for each API

      Parameters

      • hostname: string

        The new hostname to use for all the APIs.

      Returns void

    • Update a virtual phone number. For example: you can configure SMS/Voice services or set a friendly name. To update the name that displays, modify the displayName parameter. You'll use smsConfiguration to update your SMS configuration and voiceConfiguration to update the voice configuration.

      Parameters

      Returns Promise<ActiveNumber>