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 app to make a phone call or send a text message from OpenPhone. Here we'll share how to make it possible and how to set up deep links.

Dialing a phone number

openphone://dial?number=<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>&text=<text>&attachments=<url1>,<url2>

<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

Need help with deep linking? Looking for more information? Get in touch!

Did this answer your question?