Getting Started with TelcoAPI¶
This guide will help you get started with TelcoAPI integration. We'll cover setup, authentication, and basic usage examples.
Prerequisites¶
- Node.js (v18 or higher)
- API Key from TelcoAPI Dashboard
- Basic understanding of telecommunications protocols
Quick Start¶
- Install the TelcoAPI client:
- Initialize the client:
import { TelcoAPI } from '@telcoapi/client';
const client = new TelcoAPI({
apiKey: 'your-api-key',
environment: 'sandbox' // or 'production'
});
Authentication¶
We use API keys for authentication. Get your API key from the TelcoAPI Dashboard.
API Key Security
Never expose your API key in client-side code or public repositories.
Basic Examples¶
SS7 Message Handling¶
// Send an SS7 TCAP message
const response = await client.ss7.sendTCAP({
pointCode: '1-1-1',
message: {
type: 'BEGIN',
components: [/* ... */]
}
});
SIP Call Setup¶
// Initiate a SIP call
const call = await client.sip.initiateCall({
from: 'sip:user@domain.com',
to: 'sip:recipient@domain.com',
mediaOptions: {
audio: true,
video: false
}
});
Environment Setup¶
Sandbox Environment¶
Use our sandbox environment for testing:
Production Environment¶
For production deployment:
Protocol Selection¶
Choose the appropriate protocol based on your needs:
| Use Case | Protocol | Package |
|---|---|---|
| Traditional Voice | SS7 | @telcoapi/ss7 |
| 4G/5G Auth | Diameter | @telcoapi/diameter |
| VoIP | SIP | @telcoapi/sip |
| Global Roaming | IPX/GRx | @telcoapi/ipx |
Next Steps¶
- Explore our protocol documentation
- Check out the API Reference
- Review best practices
- Join our Discord community
Troubleshooting¶
If you encounter any issues:
- Check our FAQ
- Review the error codes
- Contact support
Development Support
Our support team is available 24/7 to help with integration issues.