Developers
Add voice, SMS, WhatsApp and email to your application
REST APIs with API-key authentication, JSON requests and signed webhooks. Every endpoint is documented in the API reference.
Getting started
- Open an accountOur team sets up your portal account and confirms channels and countries.
- Get an API keyYour main key is under Profile in the portal. Create keys with a limited scope under System → API Keys.
- Send your first requestPost JSON to
https://portal.par-infinity.com/api/v1with the key in theAuthorizationheader. - Verify webhooksCheck the X-Signature-SHA256 header on every payload before you act on it.
Example: send an OTP by SMS
Put #OTP6# (or #OTP4#) in the message and the platform inserts a 6 or 4 digit code.
Replace the API key, sender ID and bind_name with the values for your account. For India domestic traffic, add the DLT fields pe_id and template_id.
curl -X POST 'https://portal.par-infinity.com/api/v1/sms/send/' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"from": "MyBrand",
"to": "14155550123",
"message": "Your code is #OTP6#",
"bind_name": "YOUR_BIND_NAME"
}'
API areas
- Voice APIStart a call from your application. The call is placed from an extension, a ring group or a number on your account, using a pre-authorised caller number. Download the recording of an answered call by its call ID.
- Numbers APIFind available virtual numbers by country, destination and category, see package prices and requirements, place orders against an approved KYC, and route each number.
- SMS APISend one message or a batch campaign from an approved sender ID or number. Put #OTP4# or #OTP6# in the message text to generate a one-time password.
- Account APIRead your balance, create KYC records and attach documents for number orders, and fetch SMS delivery records and voice call records.
- Businesses, numbers, templates, interactive messages, sending and message details. Ask our team
- Send transactional email from the same account. Ask our team
- Webhooks
- Receive replies and status updates, signed with SHA-256. How to verify them
Good practice
- Store API keys in environment variables or a secrets manager.
- Use the message ID in each response to match delivery updates to your records.
- Watch the X-RateLimit-Remaining header and back off when you receive a 429.
- Make webhook handlers idempotent; the same update may arrive more than once.
- Respect local sender ID, template and opt-in rules for each destination.
Need help integrating?
Tell us about your stack and volumes and an engineer will help you plan the integration.
Contact technical salesTell us what you need to call, automate or send
Share your channels, countries and volumes. We will confirm what is available and how to integrate it.