Quick Start
Get up and running with TXTLINK in 5 minutes. Follow these steps to send your first SMS.
Create account
(2 min)Sign up for a free TXTLINK account. No credit card required.
Generate API key
(1 min)Navigate to Settings → API Keys and create a new API key.
Install SDK
(1 min)Install the TXTLINK SDK for your preferred language.
Send first SMS
(1 min)Use the SDK to send your first SMS message.
Receive delivery report
(optional)Set up webhooks to receive delivery status updates (optional).
Create account
Sign up for a free TXTLINK account. You'll get access to test API keys and can send up to 100 SMS messages for free during development.
Choose Authentication Method
TXTLINK supports two authentication methods. Choose the one that works best for you:
Option A: API Key (Recommended)
RecommendedNavigate to Settings → API Keys and create a new API key. Copy it immediately—you won't be able to see it again.
Best for production
Option B: Username/Password
Use your account email and password. No setup required—just use your login credentials.
Great for testing
Keep credentials secure
Install SDK
Install the TXTLINK SDK for your preferred programming language:
npm install @txtlink/sdkSend first SMS
Send your first SMS using the REST API. Replace the phone number with your own to receive a test message. Examples below show both authentication methods.
// Using API Key (Recommended)
const response = await fetch('https://api.txtlink.com/api/v1/sms/send', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.TXTLINK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: '+254712345678',
message: 'Hello from TXTLINK!',
senderIdName: 'TXTLINK'
})
})
const result = await response.json()
console.log('Message ID:', result.messageId)
console.log('Status:', result.status)You'll receive an SMS instantly
Expected Response
{
"success": true,
"messageId": "507f1f77bcf86cd799439011",
"segments": 1,
"totalCredits": 1,
"totalCostKes": 2.0,
"newBalance": 99,
"status": "queued",
"to": "+254712345678",
"senderId": "TXTLINK"
}Next Steps
- Explore the REST API
Complete API reference with examples for all languages
- Set up webhooks
Receive real-time delivery status updates
- Read the API reference
Complete documentation for all API endpoints