List Sms Command

GET {{v1-SmsCommands-Url}}/v1/SmsCommands?Sim=velit eiusmod exercitation&Status=received&Direction=to_sim&PageSize=381

Retrieve a list of SMS Commands from your account.

Request Params

KeyDatatypeRequiredDescription
SimstringThe SID or unique name of the Sim resource that SMS Command was sent to or from.
StatusstringThe status of the SMS Command. Can be: queued, sent, delivered, received or failed. See the SMS Command Status Values for a description of each.
DirectionstringThe direction of the SMS Command. Can be to_sim or from_sim. The value of to_sim is synonymous with the term mobile terminated, and from_sim is synonymous with the term mobile originated.
PageSizenumberHow many resources to return in each list page. The default is 50, and the maximum is 1000.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"sms_commands":[{"sid":"HC3Ae050aB1DFebF0e12AA019Fdb3FaF9f","account_sid":"ACa05181BB490E03EbfDb0c2D81fcABeCf","sim_sid":"HS6D54986D16F12a3cc0CD4abECC54583d","payload":"anim ipsum dolor ut","status":"\u003cstring\u003e","direction":"\u003cstring\u003e","date_created":"1977-04-23T15:42:50.157Z","date_updated":"1963-11-13T01:52:41.966Z","url":"http://RuZpLuTJRx.lwXO.WlANh66lPLnx9ZIBSexQZCCmA9m,OQR7tHDB.dIyaTwnfxGsQHvT7IpP+"},{"sid":"HC7feCAcd105B1dbd8566f3fb3FccF7C85","account_sid":"ACc77ba7c4Bdb56e4BD1f7ca39fEDf3A0C","sim_sid":"HS58EBA8CbD8fDccB3c8F13C1F683F9e2E","payload":"Ut nisi fugiat","status":"\u003cstring\u003e","direction":"\u003cstring\u003e","date_created":"1946-08-27T17:31:43.162Z","date_updated":"2014-07-24T11:11:29.476Z","url":"https://isUGaaNoszNdE.renBS0ohDVabPyalOTWv5D58wMWe6Clg9OtWecT9-sUYjCcza4PUDrq,fq06vQ5SnYpIvDbla"}],"meta":{"first_page_url":"https://PObYBLsAL.ntptY2n4DCy8yITY4uEn5i8LoJUX03I.","next_page_url":"http://qHhXtCep.pmwXWtiUtndtpQQGGXxHc","page":84623268,"page_size":-44848309,"previous_page_url":"http://CiFPjwSZBtsRuvCTDsSQgEfiQgJqYRGW.igiWtecG","url":"https://qvnoBY.mftFAwBTDV2LtCLNdw2hFrzr.Aa8,,kvWTcnKY,RQ3z7iPU+UQwbDB53CSbx","key":"dolor in eiusmod"}}