Register SMS channel
Changed onCreate an SMS channel. If the channel has not opted in yet (the request did not contain opted_in), Airship creates the channel with opt_in set to false and the user receives a message prompting them to complete the opt-in flow; you can assign tags and organize pending channels before the user has finished the opt-in process, but you cannot send messages to channels until they opt in to your audience.
SMS notifications require a sender - a number that recipients will receive SMS notifications from. Contact Airship Sales or your Account Manager to provision your project for SMS notifications and complete the configuration.
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.
Request body
Response
A channel with this msisdn/sender combination already exists.
Changes
- breaking
added to the response body
oneOflist for the response status - breaking
added to the response body
oneOflist for the response status - info
removed
subschema #1: New channel with opt-insubschema #2: New channel without opt-infrom the response bodyoneOflist for the response status - info
removed
subschema #1: New channel with opt-insubschema #2: New channel without opt-infrom the response bodyoneOflist for the response status
This list may be incomplete.
- breaking
- warning
removed the request property
- info
added the new optional request property
This list may be incomplete.
- warning