Email
Register email channel
Changed onCreate a new email channel or update an existing channel. If you provide the email address of an existing channel, the call is treated as a PUT. To update the address of an existing channel, see the Replace Email Channel endpoint.
post/api/channels/email
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
Example request
{
"channel": {
"address": "name@example.com",
"locale_country": "US",
"locale_language": "en",
"timezone": "America/Los_Angeles",
"type": "email"
},
"opt_in_mode": "double",
"properties": {
"interests": "newsletter"
}
}Response
An existing email channel was found matching the address and was updated.
Example response
{
"channel_id": "ef625038-70a3-41f1-826f-57bc11dd625a"
}Changes
- warning
removed the request property
- info
added the new optional request property
This list may be incomplete.
- warning
- breaking
the
/request property format changed from no format todate-time - breaking
the
/request property format changed from no format todate-time - breaking
the
/request property format changed from no format todate-time - breaking
the
/request property format changed from no format todate-time
This list may be incomplete.
- breaking