8x8
App · 25 actions
Send SMS, WhatsApp and other messaging app messages, verification codes and voice calls with 8x8, look up phone numbers, keep 8x8 contacts and groups, and start workflows when messages arrive, are delivered or fail, or calls end.
Actions
| Action | What it does |
|---|---|
| Add contacts to group | Put contacts in a contact group. |
| Cancel scheduled messaging app message | Cancel a messaging app message scheduled for later that hasn't gone out yet. |
| Cancel scheduled SMS | Cancel a text message scheduled for later that hasn't gone out yet. |
| Cancel scheduled SMS batch | Cancel the messages of a batch scheduled for later that haven't gone out yet. |
| Check verification code | Check the code someone typed against the one sent to them, or see where a verification stands: waiting, verified, failed or expired. |
| Create contact | Add a contact to your 8x8 address book, optionally in groups. |
| Create contact group | Create a group of contacts, such as a list to text. |
| Delete contact | Delete a contact from your 8x8 address book. |
| Delete contact group | Delete a contact group. |
| Get account balance | Get your prepaid 8x8 account's balance and currency. |
| Get contact | Get a contact with its phone number, email, groups and custom fields. |
| Get messaging app message | Get a messaging app message's status on each channel tried, such as WhatsApp and then SMS. |
| Get SMS | Get a text message's delivery status, segments and price. |
| List virtual numbers | List the 8x8 phone numbers your voice subaccount rents, with their country, status and prices. |
| Look up phone number | Find a phone number's country, type (mobile, landline and so on) and international format. |
| Make voice call | Call a phone number and read out a message in the voice you choose, or play a recording, then hang up. |
| Remove contacts from group | Take contacts out of a contact group. |
| Search contact groups | List your contact groups, or find them by name, with how many contacts each has. |
| Search contacts | Find contacts by name, phone number or email, in a group or a country. |
| Send messaging app message | Send a WhatsApp, Viber, LINE or other messaging app message through your subaccount's channels, falling back to SMS if 8x8 has set that up: text, a picture, video, audio or file, or an approved WhatsApp template. |
| Send SMS | Send a text message to one phone number, now or at a time you choose. |
| Send SMS to many numbers | Send the same text message to up to 10,000 phone numbers at once, now or at a time you choose. |
| Send verification code | Send someone a one-time code by SMS, voice call, WhatsApp or Viber, to check the phone number is theirs. |
| Update contact | Change a contact's name, phone number, email, external ID or country. |
| Update contact group | Rename a contact group, change its description, or make it a blacklist or a normal group. |
Add contacts to group
Put contacts in a contact group.
Inputs
- Group
group_idnumberRequired - The contact group.
- Contact IDs
contact_idslistRequired - The contacts' ids, from 'Create contact' or 'Search contacts'.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
}Cancel scheduled messaging app message
Cancel a messaging app message scheduled for later that hasn't gone out yet.
Inputs
- Message ID
umidtextRequired - The message's id (umid), from the step that sent it.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"cancelledCount": 1
}
}Cancel scheduled SMS
Cancel a text message scheduled for later that hasn't gone out yet.
Inputs
- Message ID
umidtextRequired - The message's id (umid), from the step that sent it.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"cancelledCount": 1
}
}Cancel scheduled SMS batch
Cancel the messages of a batch scheduled for later that haven't gone out yet.
Inputs
- Batch ID
batch_idtextRequired - The batch's id, from 'Send SMS to many numbers'.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"cancelledCount": 1
}
}Check verification code
Check the code someone typed against the one sent to them, or see where a verification stands: waiting, verified, failed or expired.
Inputs
- Verification ID
session_idtextRequired - The verification's id, from 'Send verification code'.
- Code
codetext - The code the person typed. Leave empty to only read the status.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"attempt": 1,
"destination": "example",
"expiresAt": "example",
"retryAfter": "example",
"sessionId": "example",
"status": "example",
"verifyUri": "example"
}
}Create contact
Add a contact to your 8x8 address book, optionally in groups. If one already has the same phone number or email, 8x8 updates that contact instead.
Inputs
- First name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Phone number
msisdntext - The contact's mobile number, in international format such as +6591234567. Give a phone number or an email address, or both.
- Email
emailtext - The contact's email address.
- External ID
external_idtext - Your own id for the contact, such as its id in your CRM.
- Country
countrytext - The contact's country.One of:
AD(Andorra),AE(United Arab Emirates),AF(Afghanistan),AG(Antigua & Barbuda),AI(Anguilla),AL(Albania),AM(Armenia),AO(Angola),AQ(Antarctica),AR(Argentina), and 240 more. - Groups
group_idslist - Groups to put the contact in.
- Custom fields
custom_attributesobject - Your own fields and values to keep with the contact.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"addresses": {
"email": "example",
"facebookUserId": "example",
"kakaoTalkId": "example",
"lineId": "example",
"msisdn": "example",
"weChatUserId": "example",
"zaloId": "example"
},
"country": "example",
"createdAt": "example",
"customAttributes": {},
"externalId": "example",
"firstName": "example",
"groups": [
{
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
],
"id": 1,
"lastName": "example"
}
}Create contact group
Create a group of contacts, such as a list to text. A blacklist group holds people who must not be messaged.
Inputs
- Name
nametextRequired - The group's name. No two groups can share one.
- Description
descriptiontext - What the group is for.
- Blacklist
is_blacklisttrue/false - Make this a blacklist: people who must not be messaged.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
}Delete contact
Delete a contact from your 8x8 address book.
Inputs
- Contact ID
contact_idnumberRequired - The contact's id, from 'Create contact' or 'Search contacts'.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {}
}Delete contact group
Delete a contact group. The contacts in it stay in your address book.
Inputs
- Group
group_idnumberRequired - The contact group.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {}
}Get account balance
Get your prepaid 8x8 account's balance and currency. Accounts billed monthly have no balance to read.
Inputs
None.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"balance": 1,
"currency": "example"
}
}Get contact
Get a contact with its phone number, email, groups and custom fields.
Inputs
- Contact ID
contact_idnumberRequired - The contact's id, from 'Create contact' or 'Search contacts'.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"addresses": {
"email": "example",
"facebookUserId": "example",
"kakaoTalkId": "example",
"lineId": "example",
"msisdn": "example",
"weChatUserId": "example",
"zaloId": "example"
},
"country": "example",
"createdAt": "example",
"customAttributes": {},
"externalId": "example",
"firstName": "example",
"groups": [
{
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
],
"id": 1,
"lastName": "example"
}
}Get messaging app message
Get a messaging app message's status on each channel tried, such as WhatsApp and then SMS.
Inputs
- Message ID
umidtextRequired - The message's id (umid), from the step that sent it.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"data": [
{
"batchId": "example",
"channel": "example",
"channelId": "example",
"clientBatchId": "example",
"clientMessageId": "example",
"content": "example",
"contentType": "example",
"country": "example",
"createdAt": "example",
"direction": "example",
"status": {
"detail": "example",
"errorCode": 1,
"errorMessage": "example",
"state": "example",
"timestamp": "example"
},
"step": 1,
"subAccountId": "example",
"umid": "example",
"user": {
"channelUserId": "example",
"msisdn": "example"
}
}
]
}
}Get SMS
Get a text message's delivery status, segments and price. 8x8 hides the text and number unless it has turned that off for your account.
Inputs
- Message ID
umidtextRequired - The message's id (umid), from the step that sent it.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"batchId": "example",
"body": "example",
"clientBatchId": "example",
"clientMessageId": "example",
"country": "example",
"createdAt": "example",
"direction": "example",
"encoding": "example",
"msisdn": "example",
"price": {
"currency": "example",
"perSms": 1,
"total": 1
},
"smsCount": 1,
"source": "example",
"status": {
"detail": "example",
"errorCode": 1,
"errorMessage": "example",
"state": "example",
"timestamp": "example"
},
"subAccountId": "example",
"umid": "example"
}
}List virtual numbers
List the 8x8 phone numbers your voice subaccount rents, with their country, status and prices.
Inputs
None.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"lastUpdatedAt": "example",
"numbers": [
{
"billingCurrency": "example",
"countryCode": "example",
"dateCreated": "example",
"dateUpdated": "example",
"incomingRate": 1,
"msisdn": "example",
"numberHealthCheckEnabled": true,
"numberType": "example",
"operationalStatus": "example",
"rentalPrice": 1
}
],
"totalNumbers": 1
}
}Look up phone number
Find a phone number's country, type (mobile, landline and so on) and international format. Operator and live lookups also give its network, porting and roaming status, at a cost, once 8x8 turns them on.
Inputs
- Phone number
phone_numbertextRequired - The phone number, in international format such as +6591234567.
- Lookup
typetext - How much to find out. Defaults to the free format lookup.One of:
format(Format only (free)),operator(Operator (paid)),live(Live status and roaming (paid)). - Country
countrytext - The number's country, needed only when it isn't in international format.One of:
AD(Andorra),AE(United Arab Emirates),AF(Afghanistan),AG(Antigua & Barbuda),AI(Anguilla),AL(Albania),AM(Armenia),AO(Angola),AQ(Antarctica),AR(Argentina), and 240 more.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"country": "example",
"currentOperator": {
"country": "example",
"mcc": "example",
"mnc": "example",
"operatorName": "example"
},
"originalOperator": {
"country": "example",
"mcc": "example",
"mnc": "example",
"operatorName": "example"
},
"phoneNumber": "example",
"phoneNumberNational": "example",
"phoneType": "example",
"ported": true,
"presence": true,
"requestId": "example",
"roaming": true,
"roamingOperator": {
"country": "example",
"mcc": "example",
"mnc": "example",
"operatorName": "example"
},
"status": {
"detail": "example",
"errorCode": 1,
"errorMessage": "example",
"state": "example",
"timestamp": "example"
}
}
}Make voice call
Call a phone number and read out a message in the voice you choose, or play a recording, then hang up. 8x8 must have approved the number you call from.
Inputs
- To
destinationtextRequired - The phone number to call, in international format such as +6591234567.
- From
sourcetextRequired - The number to call from (your caller ID): one of your 8x8 numbers.
- Play
playstext - Whether to read out a message or play a recording when they answer. Defaults to a message.One of:
message(Read out a message),recording(Play a recording). - Message
messagetext - What to say when they answer, up to 3,000 characters, when the call reads out a message.
- Voice
voice_profiletext - The voice that reads the message: its language, accent and gender.
- Recording link
audio_urltext - A link to an MP3 or WAV recording, up to 5 MB, when the call plays a recording.
- Times to play
repetitionnumber - How many times to say the message or play the recording, 1 to 3.From 1 to 3.
- Speaking speed
speednumber - How fast to read the message, from 0.5 (slow) to 2 (fast). 1 is normal speed.From 0.5 to 2.
- Your reference
client_request_idtext - Your own reference for the call, sent back when it ends.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"callFlowRequestId": "example",
"sessionId": "example",
"sessionStatus": "example",
"statusCode": 1,
"statusMessage": "example",
"validUntil": "example"
}
}Remove contacts from group
Take contacts out of a contact group. They stay in your address book.
Inputs
- Group
group_idnumberRequired - The contact group.
- Contact IDs
contact_idslistRequired - The contacts' ids, from 'Create contact' or 'Search contacts'.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
}Search contact groups
List your contact groups, or find them by name, with how many contacts each has. Gets one page; to see more, run it again with the next page.
Inputs
- Name
nametext - A group name to look for.
- Page size
limitnumber - How many to return, 1 to 500. 8x8's default is 20.From 1 to 500.
- Page
offsetnumber - Which page to return, counting from 0.At least 0.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"hasNextPage": true,
"hasPreviousPage": true,
"items": [
{
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
],
"page": 1,
"totalCount": 1,
"totalFiltered": 1,
"totalPages": 1
}
}Search contacts
Find contacts by name, phone number or email, in a group or a country. Gets one page; to see more, run it again with the next page.
Inputs
- Search for
querytext - A name, phone number or email to look for.
- Group
group_idnumber - Only contacts in this group.At least 0.
- Country
countrytext - Only contacts in this country.One of:
AD(Andorra),AE(United Arab Emirates),AF(Afghanistan),AG(Antigua & Barbuda),AI(Anguilla),AL(Albania),AM(Armenia),AO(Angola),AQ(Antarctica),AR(Argentina), and 240 more. - Page size
limitnumber - How many to return, 1 to 500. 8x8's default is 20.From 1 to 500.
- Page
offsetnumber - Which page to return, counting from 0.At least 0.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"hasNextPage": true,
"hasPreviousPage": true,
"items": [
{
"addresses": {
"email": "example",
"facebookUserId": "example",
"kakaoTalkId": "example",
"lineId": "example",
"msisdn": "example",
"weChatUserId": "example",
"zaloId": "example"
},
"country": "example",
"createdAt": "example",
"customAttributes": {},
"externalId": "example",
"firstName": "example",
"groups": [
{
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
],
"id": 1,
"lastName": "example"
}
],
"page": 1,
"totalCount": 1,
"totalFiltered": 1,
"totalPages": 1
}
}Send messaging app message
Send a WhatsApp, Viber, LINE or other messaging app message through your subaccount's channels, falling back to SMS if 8x8 has set that up: text, a picture, video, audio or file, or an approved WhatsApp template.
Inputs
- To
msisdntextRequired - The person's phone number, in international format such as +6591234567.
- Message type
typetext - What to send. Defaults to text.One of:
text,image,video,audio,file,template(WhatsApp template). - Message
texttext - The message, for a text message, or a caption for media.
- Media link
urltext - A public link to the picture, video, audio or file to send.
- Template name
template_nametext - The approved WhatsApp template's name, for a template message.
- Template language
template_languagetext - The template's language code, such as en_US.
- Template values
template_parameterslist - The values for the template's placeholders, in order: the first fills {{1}}, the next {{2}}.
- SMS fallback text
fallback_texttext - The text to send if 8x8 falls back to SMS. Leave empty to send the message text.
- Send at
scheduleddate and time - When to send it. Leave empty to send it now.
- Give up after
expirydate and time - Don't send it after this time, if it hasn't gone out by then.
- Your reference
client_message_idtext - Your own reference for the message, sent back with its delivery updates.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"clientMessageId": "example",
"status": {
"detail": "example",
"errorCode": 1,
"errorMessage": "example",
"state": "example",
"timestamp": "example"
},
"umid": "example",
"user": {
"channelUserId": "example",
"msisdn": "example"
}
}
}Send SMS
Send a text message to one phone number, now or at a time you choose. To US and Canadian numbers it can carry pictures (MMS).
Inputs
- To
destinationtextRequired - The phone number to text, in international format such as +6591234567.
- Message
texttextRequired - The message.
- From
sourcetext - Who it's from: your sender ID or one of your 8x8 numbers. Leave empty for your subaccount's default.
- Country
countrytext - The phone number's country, needed only when it isn't in international format (with + and the country code).One of:
AD(Andorra),AE(United Arab Emirates),AF(Afghanistan),AG(Antigua & Barbuda),AI(Anguilla),AL(Albania),AM(Armenia),AO(Angola),AQ(Antarctica),AR(Argentina), and 240 more. - Encoding
encodingtext - The character set. Leave empty to have 8x8 work it out from the text.One of:
AUTO(Work it out from the text),GSM7(GSM-7 (plain Latin letters)),UCS2(UCS-2 (any language and emoji)). - Send at
scheduleddate and time - When to send it. Leave empty to send it now.
- Give up after
expirydate and time - Don't send it after this time, if it hasn't gone out by then.
- Media links
media_urlslist - Links (https) to pictures or other media to send as an MMS, up to 10. US and Canadian numbers only.
- Your reference
client_message_idtext - Your own reference for the message, sent back with its delivery updates.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"clientMessageId": "example",
"destination": "example",
"encoding": "example",
"status": {
"code": "example",
"description": "example"
},
"umid": "example"
}
}Send SMS to many numbers
Send the same text message to up to 10,000 phone numbers at once, now or at a time you choose.
Inputs
- To
destinationslistRequired - The phone numbers to text, in international format.
- Message
texttextRequired - The message.
- From
sourcetext - Who it's from: your sender ID or one of your 8x8 numbers. Leave empty for your subaccount's default.
- Encoding
encodingtext - The character set. Leave empty to have 8x8 work it out from the text.One of:
AUTO(Work it out from the text),GSM7(GSM-7 (plain Latin letters)),UCS2(UCS-2 (any language and emoji)). - Send at
scheduleddate and time - When to send it. Leave empty to send it now.
- Give up after
expirydate and time - Don't send it after this time, if it hasn't gone out by then.
- Your reference
client_batch_idtext - Your own reference for the batch, up to 20 characters.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"acceptedCount": 1,
"batchId": "example",
"clientBatchId": "example",
"messages": [
{
"clientMessageId": "example",
"destination": "example",
"encoding": "example",
"status": {
"code": "example",
"description": "example"
},
"umid": "example"
}
],
"rejectedCount": 1
}
}Send verification code
Send someone a one-time code by SMS, voice call, WhatsApp or Viber, to check the phone number is theirs. Check what they type with 'Check verification code'.
Inputs
- Phone number
destinationtextRequired - The phone number to verify, in international format such as +6591234567.
- Send by
channeltext - How to send the code. Defaults to SMS.One of:
sms,call(Voice call),whatsapp,viber. - Brand
brandtext - Your name, put in the message where its text says {brand}.
- Message
templatetext - Your own wording for an SMS or call, with {code} where the code goes, such as: Your code is {code}. Leave empty for 8x8's.
- Code length
code_lengthnumber - How many characters the code has, 3 to 10. Defaults to 4.From 3 to 10.
- Code works for (seconds)
code_validitynumber - How many seconds the code works for, 30 to 7200. Defaults to 300 (five minutes).From 30 to 7200.
- Code type
code_typetext - What the code is made of. Defaults to numbers.One of:
NUMERIC(Numbers (123456)),NUMERIC_WITH_DASH(Numbers with a dash (123-456)),ALPHANUMERIC(Letters and numbers (a1B2c3)),ALPHANUMERIC_CAPITALS(Capital letters and numbers (A1B2C3)),ALPHANUMERIC_EASY(Easy to read letters and numbers). - Call language
languagetext - For a voice call with your own wording: the language to read it in, such as en-US.
- WhatsApp template
whatsapp_templatetext - For WhatsApp: the name of your approved WhatsApp authentication template.
- Country
countrytext - The phone number's country, needed only when it isn't in international format (with + and the country code).One of:
AD(Andorra),AE(United Arab Emirates),AF(Afghanistan),AG(Antigua & Barbuda),AI(Anguilla),AL(Albania),AM(Armenia),AO(Angola),AQ(Antarctica),AR(Argentina), and 240 more.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"attempt": 1,
"destination": "example",
"expiresAt": "example",
"retryAfter": "example",
"sessionId": "example",
"status": "example",
"verifyUri": "example"
}
}Update contact
Change a contact's name, phone number, email, external ID or country. Fields left empty stay as they are.
Inputs
- Contact ID
contact_idnumberRequired - The contact's id, from 'Create contact' or 'Search contacts'.
- First name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Phone number
msisdntext - The contact's mobile number, in international format such as +6591234567.
- Email
emailtext - The contact's email address.
- External ID
external_idtext - Your own id for the contact, such as its id in your CRM.
- Country
countrytext - The contact's country.One of:
AD(Andorra),AE(United Arab Emirates),AF(Afghanistan),AG(Antigua & Barbuda),AI(Anguilla),AL(Albania),AM(Armenia),AO(Angola),AQ(Antarctica),AR(Argentina), and 240 more.
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"addresses": {
"email": "example",
"facebookUserId": "example",
"kakaoTalkId": "example",
"lineId": "example",
"msisdn": "example",
"weChatUserId": "example",
"zaloId": "example"
},
"country": "example",
"createdAt": "example",
"customAttributes": {},
"externalId": "example",
"firstName": "example",
"groups": [
{
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
],
"id": 1,
"lastName": "example"
}
}Update contact group
Rename a contact group, change its description, or make it a blacklist or a normal group.
Inputs
- Group
group_idnumberRequired - The contact group.
- Name
nametext - The group's new name.
- Description
descriptiontext - The group's new description.
- Group type
group_typetext - Make it a blacklist (people who must not be messaged) or a normal group. Leave empty to keep it as it is.One of:
blacklist,normal(Normal group).
Outputs
dataobject- The response from 8x8.
Example output
{
"data": {
"contacts": 1,
"createdAt": "example",
"description": "example",
"id": 1,
"isBlacklist": true,
"name": "example"
}
}