openapi: 3.1.0 info: contact: email: support@telnyx.com description: Telnyx provides global communications and connectivity APIs for developers — including SIP trunking, programmable voice, SMS, MMS, WhatsApp Business Messaging, Call Control, Fax, Wireless (IoT & eSIM), Phone Numbers (DID provisioning & porting), Emergency Services, and Network APIs for private interconnects and edge connectivity. Build, scale, and manage voice, messaging, and data networks with Telnyx's carrier-grade global infrastructure and API-first platform. title: Telnyx Access Tokens Mobile Number Settings API version: 2.0.0 x-endpoint-cost: light servers: - description: Version 2.0.0 of the Telnyx API url: https://api.telnyx.com/v2 security: - bearerAuth: [] tags: - name: Mobile Number Settings paths: /mobile_phone_numbers/messaging: get: operationId: ListMobilePhoneNumbersWithMessagingSettings parameters: - $ref: '#/components/parameters/PageConsolidated' responses: '200': $ref: '#/components/responses/MobileListPhoneNumbersWithMessagingSettingsResponse' 4XX: $ref: '#/components/responses/messaging_GenericErrorResponse' summary: List mobile phone numbers with messaging settings tags: - Mobile Number Settings x-group-parameters: 'true' x-latency-category: responsive /mobile_phone_numbers/{id}/messaging: get: operationId: GetMobilePhoneNumberMessagingSettings parameters: - description: Identifies the type of resource. in: path name: id required: true schema: type: string responses: '200': $ref: '#/components/responses/MobilePhoneNumberWithMessagingSettingsResponse' 4XX: $ref: '#/components/responses/messaging_GenericErrorResponse' summary: Retrieve a mobile phone number with messaging settings tags: - Mobile Number Settings x-latency-category: responsive components: schemas: MobilePhoneNumberWithMessagingSettings: example: country_code: US created_at: '2019-01-23T18:10:02.574Z' features: sms: domestic_two_way: true international_inbound: true international_outbound: true id: '2126210528794641864' messaging_product: P2P messaging_profile_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 phone_number: ++13127367407 record_type: messaging_settings traffic_type: P2P type: longcode updated_at: '2019-01-23T18:10:02.574Z' properties: country_code: description: ISO 3166-1 alpha-2 country code. example: US pattern: ^[A-Z]{2}$ readOnly: true type: string created_at: description: ISO 8601 formatted date indicating when the resource was created. format: date-time readOnly: true type: string features: properties: sms: $ref: '#/components/schemas/MessagingFeatureSet' readOnly: true type: object id: description: Identifies the type of resource. readOnly: true type: string messaging_product: description: The messaging product that the number is registered to use example: P2P type: string messaging_profile_id: description: Unique identifier for a messaging profile. type: - string - 'null' organization_id: description: The organization that owns this phone number. type: string phone_number: description: +E.164 formatted phone number. readOnly: true type: string x-format: e164 record_type: description: Identifies the type of the resource. enum: - messaging_phone_number - messaging_settings example: messaging_settings readOnly: true type: string tags: description: Tags associated with this phone number. items: type: string type: array traffic_type: description: The messaging traffic or use case for which the number is currently configured. example: P2P readOnly: true type: string type: description: The type of the phone number enum: - longcode readOnly: true type: string updated_at: description: ISO 8601 formatted date indicating when the resource was updated. format: date-time readOnly: true type: string type: object messaging_Errors: properties: errors: items: $ref: '#/components/schemas/messaging_Error' type: array messaging_PaginationMeta: properties: page_number: example: 2 type: integer page_size: example: 25 type: integer total_pages: example: 3 type: integer total_results: example: 55 type: integer required: - total_pages - total_results - page_size - page_number type: object MessagingFeatureSet: description: 'The set of features available for a specific messaging use case (SMS or MMS). Features can vary depending on the characteristics the phone number, as well as its current product configuration. ' example: domestic_two_way: true international_inbound: false international_outbound: true properties: domestic_two_way: description: Send messages to and receive messages from numbers in the same country. type: boolean international_inbound: description: Receive messages from numbers in other countries. type: boolean international_outbound: description: Send messages to numbers in other countries. type: boolean required: - domestic_two_way - international_inbound - international_outbound type: - object - 'null' messaging_Error: properties: code: type: string x-format: integer detail: type: string meta: type: object source: properties: parameter: description: Indicates which query parameter caused the error. type: string pointer: description: JSON pointer (RFC6901) to the offending entity. format: json-pointer type: string type: object title: type: string required: - code - title responses: messaging_GenericErrorResponse: content: application/json: schema: $ref: '#/components/schemas/messaging_Errors' description: Unexpected error MobilePhoneNumberWithMessagingSettingsResponse: content: application/json: schema: properties: data: $ref: '#/components/schemas/MobilePhoneNumberWithMessagingSettings' title: Retrieve Mobile Messaging Settings Response type: object description: Successful response with details about a mobile phone number. MobileListPhoneNumbersWithMessagingSettingsResponse: content: application/json: schema: properties: data: items: $ref: '#/components/schemas/MobilePhoneNumberWithMessagingSettings' type: array meta: $ref: '#/components/schemas/messaging_PaginationMeta' title: List Messaging Settings Response type: object description: Successful response with a list of mobile phone numbers with messaging settings. parameters: PageConsolidated: description: 'Consolidated page parameter (deepObject style). Originally: page[number], page[size]' explode: true in: query name: page schema: properties: number: default: 1 description: The page number to load minimum: 1 type: integer size: default: 20 description: The size of the page maximum: 250 minimum: 1 type: integer type: object style: deepObject securitySchemes: bearerAuth: scheme: bearer type: http branded-calling_bearerAuth: description: API key passed as a Bearer token in the Authorization header scheme: bearer type: http oauthClientAuth: description: OAuth 2.0 authentication for Telnyx API and MCP integrations flows: authorizationCode: authorizationUrl: https://api.telnyx.com/v2/oauth/authorize refreshUrl: https://api.telnyx.com/v2/oauth/token scopes: admin: Administrative access to Telnyx resources tokenUrl: https://api.telnyx.com/v2/oauth/token clientCredentials: scopes: admin: Administrative access to Telnyx resources tokenUrl: https://api.telnyx.com/v2/oauth/token type: oauth2 outbound-voice-profiles_bearerAuth: bearerFormat: JWT scheme: bearer type: http pronunciation-dicts_bearerAuth: description: Telnyx API v2 key. Obtain from https://portal.telnyx.com scheme: bearer type: http stored-payment-transactions_bearerAuth: bearerFormat: JWT scheme: bearer type: http