Skip to content

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

  1. Install the TelcoAPI client:
npm install @telcoapi/client
  1. 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:

const sandboxClient = new TelcoAPI({
  apiKey: 'sandbox-key',
  environment: 'sandbox'
});

Production Environment

For production deployment:

const productionClient = new TelcoAPI({
  apiKey: 'production-key',
  environment: 'production'
});

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

  1. Explore our protocol documentation
  2. Check out the API Reference
  3. Review best practices
  4. Join our Discord community

Troubleshooting

If you encounter any issues:

  1. Check our FAQ
  2. Review the error codes
  3. Contact support

Development Support

Our support team is available 24/7 to help with integration issues.