Ping!
Let’s get started sending text messages via the OpenPhone API. Have you completed Carrier Registration? If you plan to send text messages to US numbers via the API, you will also need to complete US Carrier Registration. Learn more here.
1. Get phone numbers (optional)
Make a call to theGET Phone Numbers
endpoint to retrieve userId
and from
for the desired number (the phone number from which you’d like to send a text message). This step is optional if you already know the userId
and from
for the desired sending number.
2. Specify user ID (optional)
If you’d like to send the text message as a particular OpenPhone member in your workspace, make sure to include thisuserId
in your request body. If userId
is not specified, the sender will default to the phone number owner.
3. Send your message
You are now ready to send your first text message! Once you send your text message, you will receive a 202 Success Message via the API. Nice!Be sure to format phone numbers in E.164 format (+1234567890).