OneSignal Help & Documentation

Welcome to the OneSignal New IA developer hub. You'll find comprehensive guides and documentation to help you start working with OneSignal New IA as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Discussions

Import Phone Numbers

How to add Phone Numbers to use OneSignal SMS feature

🚧

Feature in Beta :hammer:

We are still hard at work on this feature and welcome all feedback!

Import User Options

OneSignal provides the following ways to add phone number records into your account:

Import Option

Details

Dashboard Upload

Best if you have a CSV list of phone numbers and want to upload through the dashboard without code.

Import Phone Numbers via API

Use the Add a device endpoint to set the device_type = 14 and the identifier as the phone number in E.164 format. Any other data you want to add is optional.

Import Phone Numbers via SDK

Coming Soon. Can be used for long-term implementation on the clientside.

Import Phone Numbers through Dashboard

Steps:
Audience > All Users > Actions > Import/Update Users

Select Upload CSV next to "Import Phone Numbers"

Import Phone Number csv must ONLY contain the following fields/columns:

Note: The first row should have the column labels exactly matching the above field names.

Example CSV

You can automatically create a new segment for the imported list. This adds a tag to the newly imported list and auto-creates a segment based on the input value. For example, "SMS_Subscriber_Test_List" in the above image.

Once you Confirm and Import, you will get an email with the results from the CSV Import.

πŸ“˜

You cannot have multiple phone numbers associated with an external_user_id. If the external_user_id exists, then we will replace the old phone number with the new one.

You cannot have the same phone number associated with multiple external_user_id. Only the last provided external_user_id will be linked with the phone number.

Please reach out to OneSignal support if you prefer to have multiple phone numbers for a given external_user_id.

Update User Records

To add or update custom attributes for the Phone Number records, follow these detailed steps on how to update your subscribers.

Create Segment for SMS Subscribers

If you have already imported phone numbers and added data tags to those numbers then Create a New Segment using SMS subscribers before sending a message. You must

  • Add device type filter set to SMS to send to all phone numbers. OR
  • Use Data Tags linked specifically to phone number records

Updated 14 days ago


Import Phone Numbers


How to add Phone Numbers to use OneSignal SMS feature

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.