Check phone number activity, carrier details, line type and more.
Kenya SMS Best Practices, Compliance, and Features
Kenya SMS Market Overview
Locale name:
Kenya
ISO code:
KE
Region
Middle East & Africa
Mobile country code (MCC)
639
Dialing Code
+254
Market Conditions: Kenya has a vibrant mobile ecosystem dominated by Safaricom (market leader), followed by Airtel Kenya and Telkom Kenya. SMS remains a crucial communication channel, particularly for business-to-consumer messaging and financial services notifications. While WhatsApp and other OTT apps are popular in urban areas, SMS maintains high penetration rates across both rural and urban populations due to its reliability and universal device compatibility. Android devices dominate the market with over 85% market share, while iOS devices represent a smaller premium segment primarily in urban centers.
Key SMS Features and Capabilities in Kenya
Kenya offers robust SMS capabilities with support for concatenated messages and alphanumeric sender IDs, though two-way messaging functionality is limited.
Two-way SMS Support
Two-way SMS is not supported in Kenya through major aggregators and messaging platforms. Businesses typically use one-way messaging for notifications, alerts, and marketing communications.
Concatenated Messages (Segmented SMS)
Support: Yes, concatenation is supported across all major carriers, though support may vary based on sender ID type. Message length rules: Standard 160 characters per message segment using GSM-7 encoding. Encoding considerations: Messages using GSM-7 encoding can contain up to 160 characters, while UCS-2 encoding (for special characters) reduces this to 70 characters per segment.
MMS Support
MMS messages are automatically converted to SMS with an embedded URL link to the media content. This ensures compatibility across all devices while allowing businesses to share rich media content through a hybrid approach.
Recipient Phone Number Compatibility
Number Portability
Number portability is available in Kenya, allowing users to switch carriers while keeping their phone numbers. This feature doesn't significantly impact SMS delivery or routing as messages are properly routed to the current carrier.
Sending SMS to Landlines
Sending SMS to landline numbers is not supported in Kenya. Attempts to send messages to landline numbers will result in delivery failure, typically with a 400 response error code (21614), and no charges will be incurred.
Compliance and Regulatory Guidelines for SMS in Kenya
The Communications Authority of Kenya (CA) oversees SMS communications, enforcing strict regulations to protect consumers. All SMS marketing must comply with the Kenya Information and Communications (Consumer Protection) Regulations and the Data Protection Act of 2019.
Consent and Opt-In
Explicit Consent Requirements:
Written or electronic confirmation required before sending marketing messages
Clear disclosure of message frequency and purpose during opt-in
Maintenance of detailed consent records including timestamp, source, and scope
Separate consent needed for different types of communications (marketing, transactional, etc.)
HELP/STOP and Other Commands
All marketing messages must include clear opt-out instructions
Standard keywords must be supported:
STOP, ONDOKA, TOKA (Stop in English and Swahili)
HELP, MSAADA (Help in English and Swahili)
Opt-out confirmation messages must be sent in the user's preferred language
Do Not Call / Do Not Disturb Registries
While Kenya doesn't maintain a centralized Do Not Call registry, businesses must:
Maintain their own opt-out databases
Honor opt-out requests within 24 hours
Keep records of opt-out requests for at least 2 years
Regularly clean contact lists against internal opt-out databases
Time Zone Sensitivity
Standard business hours: 8:00 AM to 8:00 PM EAT (UTC+3)
Political messages restricted to 8:00 AM to 6:00 PM
Emergency notifications exempt from time restrictions
Respect religious and cultural observances (e.g., Ramadan)
Phone Numbers Options and SMS Sender Types for Kenya
Alphanumeric Sender ID
Operator network capability: Supported across all major networks Registration requirements: Pre-registration required, takes approximately 4 weeks Sender ID preservation: Yes, displayed as registered across all networks except Safaricom which requires specific registration
Long Codes
Domestic vs. International: Not supported for either domestic or international use Sender ID preservation: N/A Provisioning time: N/A Use cases: Not applicable in Kenya
Short Codes
Support: Not currently supported through major aggregators Provisioning time: N/A Use cases: N/A
Restricted SMS Content, Industries, and Use Cases
Prohibited Content and Industries:
Adult content and services
Gambling and betting
Political messaging without proper authorization
Cryptocurrency and virtual credits
Person-to-person (P2P) messaging
Content Filtering
Carrier Filtering Rules:
Messages containing restricted keywords are automatically blocked
URLs must be from approved domains
Message content screened for compliance with local regulations
Best Practices to Avoid Filtering:
Avoid spam trigger words
Use registered and approved sender IDs
Keep URLs short and from verified domains
Maintain consistent sending patterns
Best Practices for Sending SMS in Kenya
Messaging Strategy
Limit messages to 160 characters when possible
Include clear call-to-action
Personalize messages using recipient's name
Maintain professional tone and language
Sending Frequency and Timing
Maximum 4 marketing messages per month per recipient
Avoid sending during major holidays
Space out messages to prevent recipient fatigue
Monitor engagement metrics to optimize timing
Localization
Support both English and Swahili
Consider local dialects for targeted campaigns
Use culturally appropriate content and references
Format dates and times according to local conventions (DD/MM/YYYY)
Opt-Out Management
Process opt-outs within 24 hours
Send confirmation of opt-out
Maintain separate opt-out lists per campaign type
Regular audit of opt-out compliance
Testing and Monitoring
Test across all major carriers (Safaricom, Airtel, Telkom)
Twilio provides a robust SMS API with comprehensive support for Kenya. Authentication uses account SID and auth token credentials.
import{ Twilio }from'twilio';// Initialize client with your credentialsconst client =newTwilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);// Function to send SMS to KenyaasyncfunctionsendSMSToKenya(to:string, message:string){try{// Ensure number is in E.164 format for Kenya (+254...)const formattedNumber = to.startsWith('+254')? to :`+254${to.substring(1)}`;const response =await client.messages.create({ body: message, from:'YOUR_REGISTERED_SENDER_ID',// Must be pre-registered to: formattedNumber,});console.log(`Message sent successfully! SID: ${response.sid}`);return response;}catch(error){console.error('Error sending message:', error);throw error;}}
Sinch
Sinch offers direct operator connections in Kenya with support for alphanumeric sender IDs.