SMS
SMS channel lookup
Changed onLookup an SMS channel by msisdn and sender.
get/api/channels/sms/{msisdn}/{sender}
Request
- Base URLhttps://go.urbanairship.com
- Auth
- HTTP basic
- or HTTP bearer
- or OAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopeschn
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
msisdninteger required
The mobile phone number you want to look up a channel for. 15 digits maximum; may not contain leading zeroes.
senderinteger required
A long or short code the app is configured to send from.
Response
Returns an SMS channel object. An SMS channel object includes tag groups for ua_channel_type, ua_sender_id, and ua_opt_in.
Example response
{
"channel": {
"address": "email@example.com",
"channel_id": "9c36e8c7-5a73-47c0-9716-99fd3d4197d5",
"email_address": "name@example.com",
"ios": {
"quiettime": {
"end": "07:30",
"start": "21:30"
},
"tz": "America/Los_Angeles"
},
"msisdn": "15035556789",
"named_user_id": "john_doe",
"open": {
"identifiers": {
"slack-handle": "slackinator"
},
"open_platform_name": "Slack"
},
"opt_in_date": "2022-07-07T03:23:13",
"opt_out_date": "2022-07-08T03:23:13",
"push_address": "FE66489F304DC75B8D6E8200DFF8A456E8DAEACEC428B427E9518741C92C6660",
"subscription_lists": [
{
"action": {
"list_id": "90s_rap_videos"
},
"list_id": "90s_rap_videos"
}
],
"tags": [
"Federer fan",
"Messi fan"
]
}
}Changes
- breaking
added
subschema #1: Channel subscription list actionto the///response propertyoneOflist for the response status
This list may be incomplete.
- breaking
- warning
removed the optional property
/from the response with the status
This list may be incomplete.
- warning