Deep linking on OpenPhone: how does it work?

Do you offer a mobile app to your customers? Want to give them the option to easily call or text via OpenPhone right from your app? Deep links can help."

What's deep linking?

Deep links are the types of links that send users directly to specific in-app locations, saving users the time spent locating particular pages themselves.

Say you want to allow your users to navigate from your internal app to make a phone call or send a text message via OpenPhone. Here we'll share how to make it possible and how to set up deep links.

Note: Deep linking is only currently available in mobile apps at this time so you won't be able to add deep links to a web or desktop app.

Who uses deep linking

If you have any sort of mobile app with a communication component to it, your engineering team may want to add deep linking.

Dialing a phone number

openphone://dial?number=

<number> - required parameter. A URL-encoded phone number string.

Examples for formats "4107934326" and "+14107934326":

openphone://dial?number=4107934326 
openphone://dial?number=%2B14107934326

You can also add an optional parameter action=call . When you pass this parameter, the call will be dialed right away. If you don't pass this parameter, users will have to confirm they really want to dial the number.

Here is a sample link that dials the number and starts the call right away:

openphone://dial?number=4107934326&action=call

Drafting a message

openphone://message?number=

<number> - optional. A URL-encoded phone number string.

<text>- optional. A URL-encoded message body
<attachments>- optional. One or more URL-encoded URLs to files on the web, separated with a comma. URLs should terminate with a concrete file extension, such as ".jpg" or ".pdf".

Example 1:

openphone://message?text=Hello,%20buddy

Example 2:

openphone://message?number=4107934326&text=Hello,%20buddy&attachments=https%3A%2F%2Fwww.w3.org%2FWAI%2FER%2Ftests%2Fxhtml%2Ftestfiles%2Fresources%2Fpdf%2Fdummy.pdf,https%3A%2F%2Fopstatics-dev.s3.amazonaws.com%2Fi%2F66f0a31f-b056-491a-a716-06ecfb54af98.png

If your customer taps on a phone number in your app, the OpenPhone mobile app will launch and give them the option to dial the number. If they don't have the OpenPhone app installed, they will be taken to the App Store or Google Play Store to download it.

Need help with deep linking? Looking for more information? Please submit a request here. We're happy to help!

Was this article helpful?
0 out of 0 found this helpful