{"_id":"54480ac80319802200fc0761","project":"542dbe0ecb19820800c1f4d7","category":{"_id":"5446952b82bd7e08002768a0","pages":["544695e23168910800744da6","54480ac80319802200fc0761","5446bf6dae0040140035fa42"],"version":"542ecc0a6b0eb6080066ca77","__v":3,"project":"542dbe0ecb19820800c1f4d7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-21T17:17:31.699Z","from_sync":false,"order":3,"slug":"sms","title":"SMS"},"editedParams2":true,"is_link":false,"__v":3,"parentDoc":null,"user":"542dc547cb19820800c1f4f1","version":{"_id":"542ecc0a6b0eb6080066ca77","forked_from":"542dbe0fcb19820800c1f4da","project":"542dbe0ecb19820800c1f4d7","__v":31,"createdAt":"2014-10-03T16:17:14.165Z","releaseDate":"2014-10-03T16:17:14.165Z","categories":["542ecc0a6b0eb6080066ca78","542ef44f6b0eb6080066cb24","543bf3e22a30961a00b66eb3","5446952b82bd7e08002768a0","544821ae8d7af31a00dd41ce","544a7885f1aefa08006efc69","544c758e11845f0e001ed8de","544e5565b80812080035be55","544e558dbd51b9080037f8ca","5450b045a66f020800dba73d","5450eb6aa66f020800dba945","5450f39ea66f020800dba989","5450f877a66f020800dba9cf","54510356a66f020800dbaa17","5451274514af501a00b50c99","54513345a66f020800dbab24","54513cc014af501a00b50d24","54515eec14af501a00b50db9","54519b1d14af501a00b50ea9","54519b2aa66f020800dbacb4","54524f9704160008005b1d27","54538d2308d1800800473d95","54538d420c09721000a06a03","54538e5608d1800800473d9a","5453ea9547c30114004fb375","5453eb12b077c31c00067bcb","5453eb27b077c31c00067bcd","5453ed5db077c31c00067bde","548075cbe291c51a00e7e096","5922fa475c48c70f00f21453","59244fd41e32eb190028ad8d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"editedParams":true,"updates":["5893baf40d6b0c0f00adcdb2"],"next":{"pages":[],"description":""},"createdAt":"2014-10-22T19:51:36.446Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"name":"","code":"{\n    \"api_version\": \"v2\",\n    \"sid\": \"{SmsSid}\",\n    \"account_sid\": \"{AccountSid}\",\n    \"date_created\": \"Tue, 24 Jul 2012 14:08:23 +0000\",\n    \"date_updated\": \"Tue, 24 Jul 2012 14:08:24 +0000\",\n    \"date_sent\": \"Tue, 24 Jul 2012 14:08:24 +0000\",\n    \"to\": \"+17325551234\",\n    \"from\": \"+14245551234\",\n    \"body\": \"Test message sent from Zang!\",\n    \"status\": \"sent\",\n    \"direction\": \"outbound-api\",\n    \"price\": \"0.070000\",\n    \"uri\": \"/v2/Accounts/AC5521767e53d04deeb0a06f660cee50f9/SMS/Messages/{SmsSid}.json\"\n}","language":"json","status":200},{"name":"","code":"{\n    \"status\": 404,\n    \"message\": \"The requested resource was not found: /v2/Accounts/bad/bad_response.json\"\n}","language":"json","status":404}]},"settings":"","basic_auth":true,"try":true,"auth":"required","params":[{"_id":"54480ac80319802200fc0770","ref":"","in":"path","required":true,"desc":"Account SID.","default":"","type":"string","name":"AccountSid"},{"_id":"54480ac80319802200fc076f","ref":"","in":"path","required":true,"desc":"SMS message SID.","default":"","type":"string","name":"SMSMessageSid"}],"url":"/v2/Accounts/:AccountSid/SMS/Messages/:SMSMessageSid.json"},"isReference":false,"order":0,"body":"The Direction parameter returns one of the following:\n\n1. \"outbound-api\" - the SMS was sent from the REST API\n2. \"incoming\" - the SMS was sent from an incoming phone number to Zang\n3. \"outbound-call\" - the SMS was sent from InboundXML initiated by outbound call\n4. \"outbound-reply\" - the SMS was sent from InboundXML initiated by an SMS reply\n\n# **Response Parameters**\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"api_version\",\n    \"1-0\": \"sid\",\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"2-0\": \"account_sid\",\n    \"3-0\": \"date_created\",\n    \"4-0\": \"date_updated\",\n    \"5-0\": \"date_sent\",\n    \"6-0\": \"to\",\n    \"7-0\": \"from\",\n    \"8-0\": \"body\",\n    \"9-0\": \"status\",\n    \"10-0\": \"direction\",\n    \"11-0\": \"price\",\n    \"12-0\": \"uri\",\n    \"1-1\": \"An alphanumeric string identifying this resource.\",\n    \"0-1\": \"The Api Version being used.\",\n    \"2-1\": \"An alphanumeric string identifying the account this call occurred through.\",\n    \"3-1\": \"The date the SMS resource was created.\",\n    \"4-1\": \"The date the SMS resource was last updated.\",\n    \"5-1\": \"The date the SMS was sent.\",\n    \"6-1\": \"The number that received the SMS message.\",\n    \"7-1\": \"The number that sent the SMS message.\",\n    \"8-1\": \"Text of the SMS message sent or received. May be up to 160 characters in length.\",\n    \"9-1\": \"Status of the SMS: sent, sending, queued, or failed.\",\n    \"10-1\": \"Specifies the direction of the SMS: messages from REST API are “outbound-api”, messages from incoming phone numbers to TelAPI are “incoming”, messages from InboundXML initiated during an outbound call are “outbound-call”, and messages from InboundXML initiated via an sms reply are “outbound-reply”.\",\n    \"11-1\": \"Cost of the SMS.\",\n    \"12-1\": \"The Uniform Resource Identifier to this resource.\"\n  },\n  \"cols\": 2,\n  \"rows\": 13\n}\n[/block]\n# **Example cURL**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X GET 'https://api.zang.io/v2/Accounts/{AccountSid}/SMS/Messages/{SmsMessageSid}.json' -u '{AccountSid}:{AuthToken}'\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"shows info on SMS message","slug":"view-sms","type":"endpoint","title":"View SMS"}

getView SMS

shows info on SMS message

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

AccountSid:
required
string
Account SID.
SMSMessageSid:
required
string
SMS message SID.

Result Format


Documentation

The Direction parameter returns one of the following: 1. "outbound-api" - the SMS was sent from the REST API 2. "incoming" - the SMS was sent from an incoming phone number to Zang 3. "outbound-call" - the SMS was sent from InboundXML initiated by outbound call 4. "outbound-reply" - the SMS was sent from InboundXML initiated by an SMS reply # **Response Parameters** [block:parameters] { "data": { "0-0": "api_version", "1-0": "sid", "h-0": "Parameter", "h-1": "Description", "2-0": "account_sid", "3-0": "date_created", "4-0": "date_updated", "5-0": "date_sent", "6-0": "to", "7-0": "from", "8-0": "body", "9-0": "status", "10-0": "direction", "11-0": "price", "12-0": "uri", "1-1": "An alphanumeric string identifying this resource.", "0-1": "The Api Version being used.", "2-1": "An alphanumeric string identifying the account this call occurred through.", "3-1": "The date the SMS resource was created.", "4-1": "The date the SMS resource was last updated.", "5-1": "The date the SMS was sent.", "6-1": "The number that received the SMS message.", "7-1": "The number that sent the SMS message.", "8-1": "Text of the SMS message sent or received. May be up to 160 characters in length.", "9-1": "Status of the SMS: sent, sending, queued, or failed.", "10-1": "Specifies the direction of the SMS: messages from REST API are “outbound-api”, messages from incoming phone numbers to TelAPI are “incoming”, messages from InboundXML initiated during an outbound call are “outbound-call”, and messages from InboundXML initiated via an sms reply are “outbound-reply”.", "11-1": "Cost of the SMS.", "12-1": "The Uniform Resource Identifier to this resource." }, "cols": 2, "rows": 13 } [/block] # **Example cURL** [block:code] { "codes": [ { "code": "curl -X GET 'https://api.zang.io/v2/Accounts/{AccountSid}/SMS/Messages/{SmsMessageSid}.json' -u '{AccountSid}:{AuthToken}'", "language": "shell" } ] } [/block]