---
title: "Enable emergency for a phone number"
method: POST
path: "/phone_numbers/{id}/actions/enable_emergency"
tags: ["Phone Number Configurations"]
---

# Enable emergency for a phone number

`POST /phone_numbers/{id}/actions/enable_emergency`

## Path parameters

- `id` string, required

## Request body

- PhoneNumberEnableEmergencyRequest
  - `emergency_enabled` boolean, required — Indicates whether to enable emergency services on this number.
  - `emergency_address_id` string, required — Identifies the address to be used with emergency services.

## Response `200`

Phone number emergency enabled.

- object
  - `data` PhoneNumberWithVoiceSettings
    - `id` string — Identifies the type of resource.
    - `record_type` string — Identifies the type of the resource.
    - `phone_number` string — The phone number in +E164 format.
    - `connection_id` string — Identifies the connection associated with this phone number.
    - `customer_reference` string — A customer reference string for customer look ups.
    - `tech_prefix_enabled` boolean — Controls whether a tech prefix is enabled for this phone number.
    - `translated_number` string — This field allows you to rewrite the destination number of an inbound call before the call is routed to you. The value of this field may be any alphanumeric value, and the value will replace the number originally dialed.
    - `call_forwarding` CallForwarding — The call forwarding settings for a phone number.
      - `call_forwarding_enabled` boolean — Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.
      - `forwards_to` string — The phone number to which inbound calls to this number are forwarded. Inbound calls will not be forwarded if this field is left blank. If set, must be a +E.164-formatted phone number.
      - `forwarding_type` 'always' | 'on-failure' — Call forwarding type. 'forwards_to' must be set for this to have an effect.
    - `cnam_listing` CnamListing — The CNAM listing settings for a phone number.
      - `cnam_listing_enabled` boolean — Enables CNAM listings for this number. Requires cnam_listing_details to also be set.
      - `cnam_listing_details` string — The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set to true.
    - `emergency` EmergencySettings — The emergency services settings for a phone number.
      - `emergency_enabled` boolean — Allows you to enable or disable emergency services on the phone number. In order to enable emergency services, you must also set an emergency_address_id.
      - `emergency_address_id` string — Identifies the address to be used with emergency services.
      - `emergency_status` 'disabled' | 'active' | 'provisioning' | 'deprovisioning' | 'provisioning-failed' — Represents the state of the number regarding emergency activation.
    - `usage_payment_method` 'pay-per-minute' | 'channel' — Controls whether a number is billed per minute or uses your concurrent channels.
    - `media_features` MediaFeatures — The media features settings for a phone number.
      - `rtp_auto_adjust_enabled` boolean — When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets.
      - `accept_any_rtp_packets_enabled` boolean — When enabled, Telnyx will accept RTP packets from any customer-side IP address and port, not just those to which Telnyx is sending RTP.
      - `t38_fax_gateway_enabled` boolean — Controls whether Telnyx will accept a T.38 re-INVITE for this phone number. Note that Telnyx will not send a T.38 re-INVITE; this option only controls whether one will be accepted.
    - `call_recording` CallRecording — The call recording settings for a phone number.
      - `inbound_call_recording_enabled` boolean — When enabled, any inbound call to this number will be recorded.
      - `inbound_call_recording_format` 'wav' | 'mp3' — The audio file format for calls being recorded.
      - `inbound_call_recording_channels` 'single' | 'dual' — When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B.
    - `inbound_call_screening` 'disabled' | 'reject_calls' | 'flag_calls' — The inbound_call_screening setting is a phone number configuration option variable that allows users to configure their settings to block or flag fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated with it.

## Other responses

- `202` — Phone number emergency requested.
- `400` — Bad request, the request was unacceptable, often due to missing a required parameter.
- `401` — Unauthorized
- `404` — The requested resource doesn't exist.
- `422` — Unprocessable entity. Check the 'detail' field in response for details.
- `500` — Unexpected error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
