Skip to content

Add a emergency address for a number

Request

With this endpoint, you can provision an emergency address associated with this number.

Security
Basic or OAuth2.0
Path
projectIdstringrequired

Found on your Sinch Customer Dashboard. Settings > Projects.

Example:YOUR_projectId
phoneNumberstringrequired

Output only. The phone number in E.164 format with leading +.

Default:"YOUR_selected_phoneNumber_from_search"
Example:+12025550134
Bodyapplication/json

Request to provision an emergency address for a number.

displayNamestringrequired

Name for emergency address.

Example:"New emergency address"
addressobject(Emergency Address)required

Details of the emergency address.

curl -i -X POST \
  -u '<username>:<password>' \
  'https://numbers.api.sinch.com/v1/projects/YOUR_projectId/activeNumbers/+12025550134/emergencyAddress:provision' \
  -H 'Content-Type: application/json' \
  -d '{
    "displayName": "New Emergency Address",
    "address": {
      "streetNumber": "12345",
      "streetInfo": "Main St",
      "city": "Springfield",
      "state": "IL",
      "postalCode": "62701"
    }
  }'

Responses

A successful response, or an error

Bodyapplication/json
streetNumberstring

The street number for the emergency address.

Example:"12345"
streetInfostring

The street name of the emergency location.

Example:"Main St"
locationstring

The location for address.

Example:"Apt 5"
citystring

The city of the emergency location.

Example:"Springfield"
statestring

The state or province of the emergency location.

Example:"IL"
postalCodestring

The postal code of the emergency location.

Example:"62701"
postalCodePlusFourstring

The postal code of the emergency location.

Example:"1234"
Response
{ "streetNumber": "12345", "streetInfo": "Main St", "location": "Apt 5", "city": "Springfield", "state": "IL", "postalCode": "62701", "postalCodePlusFour": "1234" }
We'd love to hear from you!
Rate this content: