Skip to content
Wire2AirWire2Air

Send invitation

Legacy

Invite up to 100 numbers to an existing survey, poll or trivia campaign with the legacy HTTP API (sendinvitation.aspx).

Last updated

POSTGEThttps://mzone.wire2air.com/mserver/api/sendinvitation.aspx
Credential
App key, sent as the APPKEY request parameter
Response
Plain text

Sends the invitation of an existing survey, polling or trivia campaign to a list of numbers.

Parameters

Parameters
ParameterDescription
APPKEY
stringrequired
in body
Your app key. See authentication.
Shortcode
stringrequired
in body
The campaign's short code.
Example: 27126
KEYWORD
stringrequired
in body
The campaign's keyword.
MOBILENUMBER
stringrequired
in body
Comma-separated mobile numbers in international format, country code first. At most 100 per request.
Example: 12123005984,12129089384
DELIVERYDATETIME
stringoptional
in body
When to send, in Eastern Time (not UTC, unlike the other endpoints). Must be now or in the future.
Default: nowExample: 1/1/2014 4:00 pm

Examples

curl "https://mzone.wire2air.com/mserver/api/sendinvitation.aspx" \
  --data-urlencode "APPKEY=YOUR_APPKEY" \
  --data-urlencode "Shortcode=27126" \
  --data-urlencode "KEYWORD=survey" \
  --data-urlencode "MOBILENUMBER=12121234567,12121234568"

Response

Success
OK
ErrorMeaning
Err:300:Invalid User credentialsThe app key is wrong.
Err:700:Missing User APP KeyAPPKEY is missing.
Err:700:Missing ShortcodeShortcode is missing.
Err:700:Missing KeywordKEYWORD is missing.
Err:700:Missing Mobile NumberMOBILENUMBER is missing.
Err:702:Invalid KeywordThe keyword is not one of your campaigns.
Err:721:Cannot send invite to more than 100 numbersSplit the list into requests of 100 or fewer.
Err:722:The Delivery Date Time should be now or in the futureDELIVERYDATETIME is in the past.

700 covers four different problems here, so read the message text, not only the number.