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.
Pending carrier orders. PUT /numbers/:id/e911 and the portal E911 save routes return an uncoded 202 (accepted, still processing) while the carrier order is processing; do not treat 202 as confirmed.
Only a 200 means the registration is saved. After a 202, E911 is
not active at the new address yet; you do not need to save again —
read the number back later. While that order is still in progress,
another save for the same number answers 409 with E911-302 (a save
for this number is already in progress).
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"}Accepted, NOT confirmed. The carrier order is still processing (not an error, no error code). Do not treat 202 as confirmed: E911 is not active at this address yet.
object
Customer-facing “accepted, still processing” text (uncoded).
object
Example
{ "success": true, "message": "Your E911 address was accepted but is still being processed. E911 is not active at this address yet.", "data": { "registration": "pending" }}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"}A save for this number is already in progress (coded E911-302). Wait for it to finish, then try again.
Or code: E911_CARRIER_UNAVAILABLE: E911 registration is temporarily
unavailable. Nothing was saved or charged and existing 911 service is
not affected. Retry in about an hour.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}