{ "components": { "schemas": { "pricing.v1.messaging": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "url": { "type": "string", "format": "uri", "nullable": true }, "links": { "type": "object", "format": "uri-map", "nullable": true } } }, "pricing.v1.messaging.messaging_country": { "type": "object", "properties": { "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } }, "pricing.v1.messaging.messaging_country-instance": { "type": "object", "properties": { "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code" }, "outbound_sms_prices": { "type": "array", "items": { "type": "object", "format": "outbound-sms-price", "properties": { "carrier": { "type": "string" }, "mcc": { "type": "string" }, "mnc": { "type": "string" }, "prices": { "type": "array", "items": { "type": "object", "properties": { "base_price": { "type": "number" }, "current_price": { "type": "number" }, "number_type": { "type": "string" } } } } } }, "nullable": true, "description": "The list of OutboundSMSPrice records" }, "inbound_sms_prices": { "type": "array", "items": { "type": "object", "format": "inbound-sms-price", "properties": { "base_price": { "type": "number" }, "current_price": { "type": "number" }, "number_type": { "type": "string" } } }, "nullable": true, "description": "The list of InboundPrice records" }, "price_unit": { "type": "string", "format": "currency", "nullable": true, "description": "The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } }, "pricing.v1.phone_number": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "url": { "type": "string", "format": "uri", "nullable": true }, "links": { "type": "object", "format": "uri-map", "nullable": true } } }, "pricing.v1.phone_number.phone_number_country": { "type": "object", "properties": { "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code " }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } }, "pricing.v1.phone_number.phone_number_country-instance": { "type": "object", "properties": { "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code " }, "phone_number_prices": { "type": "array", "items": { "type": "object", "format": "phone-number-price", "properties": { "base_price": { "type": "number" }, "current_price": { "type": "number" }, "number_type": { "type": "string" } } }, "nullable": true, "description": "The list of PhoneNumberPrices records" }, "price_unit": { "type": "string", "format": "currency", "nullable": true, "description": "The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } }, "pricing.v1.voice": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "url": { "type": "string", "format": "uri", "nullable": true }, "links": { "type": "object", "format": "uri-map", "nullable": true } } }, "pricing.v1.voice.voice_country": { "type": "object", "properties": { "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } }, "pricing.v1.voice.voice_country-instance": { "type": "object", "properties": { "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code" }, "outbound_prefix_prices": { "type": "array", "items": { "type": "object", "format": "outbound-prefix-price", "properties": { "prefixes": { "type": "array", "items": { "type": "string" } }, "base_price": { "type": "number" }, "current_price": { "type": "number" }, "friendly_name": { "type": "string" } } }, "nullable": true, "description": "The list of OutboundPrefixPrice records" }, "inbound_call_prices": { "type": "array", "items": { "type": "object", "format": "inbound-call-price", "properties": { "base_price": { "type": "number" }, "current_price": { "type": "number" }, "number_type": { "type": "string" } } }, "nullable": true, "description": "The list of InboundCallPrice records" }, "price_unit": { "type": "string", "format": "currency", "nullable": true, "description": "The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } }, "pricing.v1.voice.voice_number": { "type": "object", "properties": { "number": { "type": "string", "format": "phone-number", "nullable": true, "description": "The phone number" }, "country": { "type": "string", "nullable": true, "description": "The name of the country" }, "iso_country": { "type": "string", "format": "iso-country-code", "nullable": true, "description": "The ISO country code" }, "outbound_call_price": { "type": "object", "format": "outbound-call-price", "properties": { "base_price": { "type": "number" }, "current_price": { "type": "number" } }, "nullable": true, "description": "The OutboundCallPrice record" }, "inbound_call_price": { "type": "object", "format": "inbound-call-price", "properties": { "base_price": { "type": "number" }, "current_price": { "type": "number" }, "number_type": { "type": "string" } }, "nullable": true, "description": "The InboundCallPrice record" }, "price_unit": { "type": "string", "format": "currency", "nullable": true, "description": "The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)" }, "url": { "type": "string", "format": "uri", "nullable": true, "description": "The absolute URL of the resource" } } } }, "securitySchemes": { "accountSid_authToken": { "type": "http", "scheme": "basic" } } }, "info": { "title": "Twilio - Pricing", "description": "This is the public Twilio REST API.", "termsOfService": "https://www.twilio.com/legal/tos", "contact": { "name": "Twilio Support", "url": "https://support.twilio.com", "email": "support@twilio.com" }, "license": { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.38.2" }, "openapi": "3.0.1", "paths": { "/v1/Messaging": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "TODO: Resource-level docs", "x-twilio": { "defaultOutputProperties": [ "name" ], "pathType": "instance" } }, "/v1/Messaging/Countries": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Messaging pricing by country", "x-twilio": { "defaultOutputProperties": [ "country", "outbound_sms_prices", "inbound_sms_prices", "price_unit" ], "pathType": "list", "parent": "/Messaging" }, "get": { "description": "", "parameters": [ { "name": "PageSize", "in": "query", "description": "How many resources to return in each list page. The default is 50, and the maximum is 1000.", "schema": { "type": "integer", "minimum": 1, "maximum": 1000 } } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "title": "ListMessagingCountryResponse", "properties": { "countries": { "type": "array", "items": { "$ref": "#/components/schemas/pricing.v1.messaging.messaging_country" } }, "meta": { "type": "object", "properties": { "first_page_url": { "type": "string", "format": "uri" }, "next_page_url": { "type": "string", "format": "uri", "nullable": true }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "previous_page_url": { "type": "string", "format": "uri", "nullable": true }, "url": { "type": "string", "format": "uri" }, "key": { "type": "string" } } } } } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "ListMessagingCountry", "x-maturity": [ "GA" ] } }, "/v1/Messaging/Countries/{IsoCountry}": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Messaging pricing by country", "x-twilio": { "defaultOutputProperties": [ "country", "outbound_sms_prices", "inbound_sms_prices", "price_unit" ], "pathType": "instance", "parent": "/Messaging" }, "get": { "description": "", "parameters": [ { "name": "IsoCountry", "in": "path", "description": "The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch.", "schema": { "type": "string", "format": "iso-country-code" }, "required": true } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/pricing.v1.messaging.messaging_country-instance" } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "FetchMessagingCountry", "x-maturity": [ "GA" ] } }, "/v1/PhoneNumbers": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "TODO: Resource-level docs", "x-twilio": { "defaultOutputProperties": [ "name" ], "pathType": "list" } }, "/v1/PhoneNumbers/Countries": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Phone number pricing by country", "x-twilio": { "defaultOutputProperties": [ "country", "price_unit" ], "pathType": "list", "parent": "/PhoneNumbers" }, "get": { "description": "", "parameters": [ { "name": "PageSize", "in": "query", "description": "How many resources to return in each list page. The default is 50, and the maximum is 1000.", "schema": { "type": "integer", "minimum": 1, "maximum": 1000 } } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "title": "ListPhoneNumberCountryResponse", "properties": { "countries": { "type": "array", "items": { "$ref": "#/components/schemas/pricing.v1.phone_number.phone_number_country" } }, "meta": { "type": "object", "properties": { "first_page_url": { "type": "string", "format": "uri" }, "next_page_url": { "type": "string", "format": "uri", "nullable": true }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "previous_page_url": { "type": "string", "format": "uri", "nullable": true }, "url": { "type": "string", "format": "uri" }, "key": { "type": "string" } } } } } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "ListPhoneNumberCountry", "x-maturity": [ "GA" ] } }, "/v1/PhoneNumbers/Countries/{IsoCountry}": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Phone number pricing by country", "x-twilio": { "defaultOutputProperties": [ "country", "price_unit" ], "pathType": "instance", "parent": "/PhoneNumbers" }, "get": { "description": "", "parameters": [ { "name": "IsoCountry", "in": "path", "description": "The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch.", "schema": { "type": "string", "format": "iso-country-code" }, "required": true } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/pricing.v1.phone_number.phone_number_country-instance" } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "FetchPhoneNumberCountry", "x-maturity": [ "GA" ] } }, "/v1/Voice": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "TODO: Resource-level docs", "x-twilio": { "defaultOutputProperties": [ "name" ], "pathType": "instance" } }, "/v1/Voice/Countries": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Voice pricing by country", "x-twilio": { "defaultOutputProperties": [ "country", "price_unit" ], "pathType": "list", "parent": "/Voice" }, "get": { "description": "", "parameters": [ { "name": "PageSize", "in": "query", "description": "How many resources to return in each list page. The default is 50, and the maximum is 1000.", "schema": { "type": "integer", "minimum": 1, "maximum": 1000 } } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "object", "title": "ListVoiceCountryResponse", "properties": { "countries": { "type": "array", "items": { "$ref": "#/components/schemas/pricing.v1.voice.voice_country" } }, "meta": { "type": "object", "properties": { "first_page_url": { "type": "string", "format": "uri" }, "next_page_url": { "type": "string", "format": "uri", "nullable": true }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "previous_page_url": { "type": "string", "format": "uri", "nullable": true }, "url": { "type": "string", "format": "uri" }, "key": { "type": "string" } } } } } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "ListVoiceCountry", "x-maturity": [ "GA" ] } }, "/v1/Voice/Countries/{IsoCountry}": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Voice pricing by country", "x-twilio": { "defaultOutputProperties": [ "country", "price_unit" ], "pathType": "instance", "parent": "/Voice" }, "get": { "description": "", "parameters": [ { "name": "IsoCountry", "in": "path", "description": "The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch.", "schema": { "type": "string", "format": "iso-country-code" }, "required": true } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/pricing.v1.voice.voice_country-instance" } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "FetchVoiceCountry", "x-maturity": [ "GA" ] } }, "/v1/Voice/Numbers/{Number}": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Voice pricing for a specific phone number", "x-twilio": { "defaultOutputProperties": [ "country", "outbound_call_price", "inbound_call_price", "price_unit" ], "pathType": "instance", "parent": "/Voice" }, "get": { "description": "", "parameters": [ { "name": "Number", "in": "path", "description": "The phone number to fetch.", "schema": { "type": "string", "format": "phone-number" }, "required": true } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/pricing.v1.voice.voice_number" } } }, "description": "OK" } }, "security": [ { "accountSid_authToken": [] } ], "operationId": "FetchVoiceNumber", "x-maturity": [ "GA" ] } }, "/v1/Voice/Numbers": { "servers": [ { "url": "https://pricing.twilio.com" } ], "description": "Voice pricing for a specific phone number", "x-twilio": { "defaultOutputProperties": [ "country", "outbound_call_price", "inbound_call_price", "price_unit" ], "pathType": "list", "parent": "/Voice" } } }, "servers": [ { "url": "https://pricing.twilio.com" } ], "x-maturity": [ { "name": "GA", "description": "This product is Generally Available." } ] }