Send your first message
This tutorial walks you through sending your first DM using the Inbox API. You’ll learn the core workflow: authenticate, find an account, locate or create a thread, and send a message.Before starting, make sure you have an API token. See the Authentication
guide to get one.
Prerequisites
Step 1: Verify authentication
Confirm your API token works by fetching your team information:Step 2: List your account links
Account links are X accounts connected to your team. You need one to send messages:Step 3: Find or create a thread
Option A: Lookup an existing thread
If you know the prospect’s X user ID:Option B: Create a new thread
Creating a thread doesn’t send a message. Use the messages
endpoint to send a DM.
Step 4: Send a message
Replying to contacts who have already messaged you works on all plans. Sending the first message to a new contact requires the Outbound Messages addon on a paid plan. See Working with messages for details.