UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 200 kB
{"openapi":"3.0.0","info":{"description":"Enabling phones, VoIP, and messaging to be embedded into web, desktop, and mobile software.\n","title":"Twilio","version":"2010-04-01","x-apisguru-categories":["telecom","messaging"],"x-logo":{"url":"https://static1.twilio.com/marketing/bundles/marketing/img/logos/wordmark-red.svg"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/twilio.com/2010-04-01/swagger.yaml","version":"2.0"}],"x-providerName":"twilio.com","x-unofficialSpec":true},"externalDocs":{"url":"https://www.twilio.com/api"},"paths":{"/Accounts/{AccountSid}/Applications/{ApplicationSid}{mediaTypeExtension}":{"delete":{"description":"Delete this application.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ApplicationSid","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Application deleted."},"401":{"description":"The supplied credentials, if any, are not sufficient to delete the resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't DELETE the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't delete the resource. Please try again."}}},"get":{"description":"Get application instance resource.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ApplicationSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/application"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Tries to update the application's properties, and returns the updated\nresource representation if successful. The returned response is identical\nto that returned above when making a GET request.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ApplicationSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/application"}}}},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n"},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/Applications{mediaTypeExtension}":{"get":{"description":"Returns a list of Application resource representations, each representing\nan application within your account. The list includes paging information.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/applications"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Creates a new application within your account.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n"},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/application"}}}},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}{mediaTypeExtension}":{"get":{"description":"Get the properties of the authorized application.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ConnectAppSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/authApp"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/AuthorizedConnectApps{mediaTypeExtension}":{"get":{"description":"Returns a list of Connect App resource representations, each representing a\nConnect App you've authorized to access your account. The list includes\npaging information.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/authApps"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/Local{mediaTypeExtension}":{"get":{"description":"Returns a list of local AvailablePhoneNumber resource representations\nthat match the specified filters, each representing a phone number tha\nis currently available for provisioning within your account.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"ISO 3166-1 alpha-2.","in":"path","name":"IsoCountryCode","required":true,"schema":{"type":"string","minLength":2,"maxLength":2}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/availablePhoneNumbers"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/Mobile{mediaTypeExtension}":{"get":{"description":"Returns a list of mobile AvailablePhoneNumber resource representations that match the specified filters, each representing a phone number that is currently available for provisioning within your account.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"ISO 3166-1 alpha-2.","in":"path","name":"IsoCountryCode","required":true,"schema":{"type":"string","minLength":2,"maxLength":2}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/phoneMobileNumbers"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/TollFree{mediaTypeExtension}":{"get":{"description":"Returns a list of toll-free AvailablePhoneNumber elements that match the\nspecified filters, each representing a phone number that is currently\navailable for provisioning within your account. To provision an available\nphone number, POST the number to the IncomingPhoneNumbers resource.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"ISO 3166-1 alpha-2.","in":"path","name":"IsoCountryCode","required":true,"schema":{"type":"string","minLength":2,"maxLength":2}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/phoneTollFreeNumbers"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/AvailablePhoneNumbers{mediaTypeExtension}":{"get":{"description":"Returns a list of all AvailablePhoneNumber subresources for your account by ISO Country. For full information about our phone number support, see our Phone Number CSV (http://www.twilio.com/resources/rates/international-phone-number-rates.csv).","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/availablePhoneNumbers"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/Calls/{CallSid}/Notifications{mediaTypeExtension}":{"get":{"description":"Returns a list of notifications generated for an account. The list includes\npaging information.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/notifications"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/Calls/{CallSid}/Recordings{mediaTypeExtension}":{"get":{"description":"Returns a list of Recording resource representations, each representing a\nrecording generated during the course of a phone call.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/recordings"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/Calls/{CallSid}{mediaTypeExtension}":{"get":{"description":"Returns the single Call resource identified by {CallSid}.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/callInstance"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Modify a phone call.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/callInstance"}}}},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n"},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/Calls{mediaTypeExtension}":{"get":{"description":"Returns a list of phone calls made to and from the account identified by {AccountSid}.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/calls"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"To make a call, make an HTTP POST request. Initiate a new phone call.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n"},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/call"}}}},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}{mediaTypeExtension}":{"delete":{"description":"Kick this participant from the conference.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"ConferenceSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Participant was successfully booted from the conference."},"401":{"description":"The supplied credentials, if any, are not sufficient to delete the resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't DELETE the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't delete the resource. Please try again."}}},"get":{"description":"Returns a representation of this participant.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"ConferenceSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/participant"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Updates the status of a participant.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"ConferenceSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"CallSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/participant"}}}},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n"},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants{mediaTypeExtension}":{"get":{"description":"Returns the list of participants in the conference identified by\n{ConferenceSid}.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"ConferenceSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/participants"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/Conferences/{ConferenceSid}{mediaTypeExtension}":{"get":{"description":"Returns a representation of the conference identified by {ConferenceSid}.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ConferenceSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/conference"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/Conferences{mediaTypeExtension}":{"get":{"description":"Returns a list of conferences within an account. The list includes paging\ninformation.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/conferences"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/ConnectApps/{ConnectAppSid}{mediaTypeExtension}":{"get":{"description":"Get the properties of a Connect App.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ConnectAppSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/connectApp"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Tries to update the Connect App's properties, and returns the updated\nresource representation if successful. The returned response is identical\nto that returned above when making a GET request.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"ConnectAppSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/connectApp"}}}},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n"},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/ConnectApps{mediaTypeExtension}":{"get":{"description":"Returns a list of Connect App resource representations, each representing\na Connect App in your account. The list includes paging information.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/connectApps"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}}},"/Accounts/{AccountSid}/IncomingPhoneNumbers/Local{mediaTypeExtension}":{"get":{"description":"Returns a list of local <IncomingPhoneNumber> elements, each representing a local (not toll-free) phone number given to your account, under an <IncomingPhoneNumbers> list element that includes paging information. Works exactly the same as the IncomingPhoneNumber resource, but filters out toll-free numbers.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"post":{"description":"Adds a new phone number to your account. If a phone number is found for your request, Twilio will add it to your account and bill you for the first month's cost of the phone number. ","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created"},"400":{"description":"If Twilio can't find a phone number to match your request, you will receive an HTTP 400 with Twilio error code 21452."}}}},"/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile{mediaTypeExtension}":{"get":{"description":"Returns a list of local <IncomingPhoneNumber> elements, each representing a mobile phone number given to your account, under an <IncomingPhoneNumbers> list element that includes paging information. Works exactly the same as the IncomingPhoneNumber resource, but filters out local and toll free numbers.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"post":{"description":"Adds a new phone number to your account. If a phone number is found for your request, Twilio will add it to your account and bill you for the first month's cost of the phone number.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created"},"400":{"description":"If Twilio can't find a phone number to match your request, you will receive an HTTP 400 with Twilio error code 21452."}}}},"/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree{mediaTypeExtension}":{"get":{"description":"Returns a list of local <IncomingPhoneNumber> elements, each representing a toll-free phone number given to your account, under an <IncomingPhoneNumbers> list element that includes paging information. Works exactly the same as the IncomingPhoneNumber resource, but filters out all numbers that aren't toll-free.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"post":{"description":"Adds a new phone number to your account. If a phone number is found for your request, Twilio will add it to your account and bill you for the first month's cost of the phone number. ","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created"},"400":{"description":"If Twilio can't find a phone number to match your request, you will receive an HTTP 400 with Twilio error code 21452."}}}},"/Accounts/{AccountSid}/IncomingPhoneNumbers/{IncomingPhoneNumberSid}{mediaTypeExtension}":{"delete":{"description":"Release this phone number from your account. Twilio will no longer answer\ncalls to this number, and you will stop being billed the monthly phone\nnumber fee. The phone number will eventually be recycled and potentially\ngiven to another customer, so use with care. If you make a mistake, contac\nus. We may be able to give you the number back.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"IncomingPhoneNumberSid","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Phone number removed."},"401":{"description":"The supplied credentials, if any, are not sufficient to delete the resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't DELETE the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't delete the resource. Please try again."}}},"get":{"description":"Get info about incoming call's phone number.","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"IncomingPhoneNumberSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/incomingCall"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Tries to update the incoming phone number's properties, and returns the\nupdated resource representation if successful. The returned response is\nidentical to that returned above when making a GET request.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"IncomingPhoneNumberSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/incomingCall"}}}},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n"},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}},"put":{"description":"Tries to update the incoming phone number's properties, and returns the\nupdated resource representation if successful. The returned response is\nidentical to that returned above when making a GET request.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}},{"in":"path","name":"IncomingPhoneNumberSid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request was successful, we updated the resource and the response\nbody contains the representation.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/incomingCall"}}}},"201":{"description":"The request was successful, we created a new resource and the response\nbody contains the representation.\n"},"400":{"description":"The data given in the POST or PUT failed validation. Inspect the response\nbody for details.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to create or update\nthe resource.\n"},"404":{"description":"NOT FOUND."},"405":{"description":"You can't POST or PUT to the resource."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"}}}},"/Accounts/{AccountSid}/IncomingPhoneNumbers{mediaTypeExtension}":{"get":{"description":"Returns a list of IncomingPhoneNumber resource representations, each\nrepresenting a phone number given to your account. The list includes paging\ninformation.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was successful and the response body contains the representation\nrequested.\n","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/incomingCalls"}}}},"302":{"description":"A common redirect response; you can GET the representation at the URI\nin the Location response header.\n"},"304":{"description":"Your client's cached version of the representation is still up to date.\n"},"401":{"description":"The supplied credentials, if any, are not sufficient to access the resource.\n"},"404":{"description":"NOT FOUND."},"429":{"description":"Your application is sending too many simultaneous requests."},"500":{"description":"We couldn't return the representation due to an internal server error.\n"},"503":{"description":"We are temporarily unable to return the representation. Please wait for\na bit and try again.\n"}}},"post":{"description":"Purchases a new phone number for your account. If a phone number is found\nfor your request, Twilio will add it to your account and bill you for the\nfirst month's cost of the phone number.\nTo find an available phone number to POST, use the subresources of the\nAvailablePhoneNumbers list resource.\n","parameters":[{"in":"path","name":"AccountSid","required":true,"schema":{"type":"string"}},{"description":"By default, Twilio's REST API returns XML. You may obtain CSV, JSON or HTML by appending \".csv\", \".json\", or \".html\".\n","in":"path","name":"mediaTypeExtension","required":true,"schema":{"type":"string","enum":[".json",".csv",".html"]}}],"responses":{"200":{"description":"The request was