Register E911 for a number
curl --request PUT \ --url https://api.sipstack.com/api/v2/numbers/example/e911 \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "callerName": "Acme Inc — Front Desk", "houseNumber": "123", "streetName": "Main St", "city": "Toronto", "stateProvince": "ON", "postalCode": "M5V 2T6", "country": "CA", "locationId": "example", "feeAcknowledged": true }'import requests
url = "https://api.sipstack.com/api/v2/numbers/example/e911"
payload = { "callerName": "Acme Inc — Front Desk", "houseNumber": "123", "streetName": "Main St", "city": "Toronto", "stateProvince": "ON", "postalCode": "M5V 2T6", "country": "CA", "locationId": "example", "feeAcknowledged": True}headers = { "x-api-key": "<x-api-key>", "Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())const url = 'https://api.sipstack.com/api/v2/numbers/example/e911';const options = { method: 'PUT', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"callerName":"Acme Inc — Front Desk","houseNumber":"123","streetName":"Main St","city":"Toronto","stateProvince":"ON","postalCode":"M5V 2T6","country":"CA","locationId":"example","feeAcknowledged":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}import axios from 'axios';
const options = { method: 'PUT', url: 'https://api.sipstack.com/api/v2/numbers/example/e911', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, data: { callerName: 'Acme Inc — Front Desk', houseNumber: '123', streetName: 'Main St', city: 'Toronto', stateProvince: 'ON', postalCode: 'M5V 2T6', country: 'CA', locationId: 'example', feeAcknowledged: true }};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}Sets or updates the E911 registration for one of your numbers — same
address validation, fee acknowledgment, and carrier provisioning as the
Switchboard E911 tab. A single PUT both enables E911 for the first time
(with feeAcknowledged: true) and updates an already-enabled number.
Strictly org-scoped: 404 on a number that isn’t yours. Requires
numbers:write.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The phone-number id from your inventory.
Request Body required
Section titled “Request Body required ”Register or update E911 for a number. Provide a street address
(callerName + address fields) or a locationId to inherit an
existing registered location. Enabling E911 for the first time requires
feeAcknowledged: true (the recurring E911 fee acknowledgment).
object
Example
Acme Inc — Front DeskExample
123Example
Main StExample
TorontoExample
ONExample
M5V 2T6Example
CAInherit an existing registered location instead of supplying an address.
Required true on first-time enable — acknowledges the recurring E911 fee.
Responses
Section titled “ Responses ”E911 registration saved.
object
The saved E911 registration.
object
Example
{ "message": "E911 registration saved"}Missing phone-number id, or an invalid/incomplete address (or missing fee acknowledgment on first enable).
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Missing or invalid API key.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}The key is missing the numbers:write scope, or the account API tier is not on your plan.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Number not found in your organization.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}