- AtriaTel
- Developers
Developers
APIs built for production traffic.
REST APIs for top-up, eSIM, messaging and AI, plus SMPP and SIP for carrier-grade traffic. Same contracts in sandbox and production.
- REST
- Webhooks
- SMPP v3.4
- SIP
- Annual availability
- 99.95%
- Average API response
- < 250 ms
- NOC and engineering support
- 24/7
curl -X POST https://atriapi.com/recharge \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 100,
"phoneNumber": "5215512345678",
"sku": "MX-TELCEL-100",
"externalId": "order-10293",
"currency": "MXN",
"country": "MX"
}'const response = await fetch("https://atriapi.com/recharge", {
method: "POST",
headers: {
"x-api-key": process.env.ATRIA_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 100,
phoneNumber: "5215512345678",
sku: "MX-TELCEL-100",
externalId: "order-10293",
currency: "MXN",
country: "MX",
}),
});
const result = await response.json();import os
import requests
response = requests.post(
"https://atriapi.com/recharge",
headers={"x-api-key": os.environ["ATRIA_API_KEY"]},
json={
"amount": 100,
"phoneNumber": "5215512345678",
"sku": "MX-TELCEL-100",
"externalId": "order-10293",
"currency": "MXN",
"country": "MX",
},
timeout=10,
)
result = response.json()<?php
$ch = curl_init("https://atriapi.com/recharge");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"x-api-key: " . getenv("ATRIA_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"amount" => 100,
"phoneNumber" => "5215512345678",
"sku" => "MX-TELCEL-100",
"externalId" => "order-10293",
"currency" => "MXN",
"country" => "MX",
]),
]);
$result = json_decode(curl_exec($ch), true);{
"status": "accepted",
"transactionId": "atr_7f3c9e21",
"externalId": "order-10293",
"webhook": "pending"
}Example
Quickstart
Your first request in three steps
Everything below runs against the sandbox with the same contract you will use in production.
Get your sandbox key
Request access and receive your API key and test catalog.
Send a request
Call the endpoint with your key in the x-api-key header.
Handle the webhook
Receive the final status at your callback URL.
# Sandbox credentials arrive by email after your request is approved.
export ATRIA_API_KEY="YOUR_API_KEY"const response = await fetch("https://atriapi.com/recharge", {
method: "POST",
headers: {
"x-api-key": process.env.ATRIA_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 100,
phoneNumber: "5215512345678",
sku: "MX-TELCEL-100",
externalId: "order-10293",
currency: "MXN",
country: "MX",
}),
});
const result = await response.json();import express from "express";
const app = express();
app.use(express.json());
app.post("/webhooks/atriatel", async (req, res) => {
const { event, transactionId, externalId, status } = req.body;
// Upsert by transactionId so repeated deliveries are harmless.
await saveTransactionStatus({ event, transactionId, externalId, status });
res.sendStatus(200);
});
app.listen(3000);Example
| Field | Type | Description |
|---|---|---|
| amount | number | Amount to deliver, in the currency below. |
| phoneNumber | string | Destination number in international format, digits only. |
| sku | string | Product identifier from your catalog. |
| externalId | string | Your unique order reference. Use it to reconcile and to avoid duplicates. |
| currency | string | ISO 4217 currency code. |
| country | string | ISO 3166-1 alpha-2 country code. |
Exact formats and the full product catalog are shared with your sandbox credentials.
Authentication
Secure by default
Every request is authenticated with an API key sent in the x-api-key header over TLS. Keys are scoped to an environment and a project.
POST /recharge HTTP/1.1
Host: atriapi.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: application/jsonExample
- API key authentication per environment and project
- IP allowlisting for API, SMPP and SIP
- TLS encryption in transit
- Event auditing and access logs
- Role-based access to dashboards and panels
Environments
Sandbox and production
Build against simulated transactions, then switch keys to go live. Nothing else changes.
| Sandbox | Production | |
|---|---|---|
| Purpose | Build and test | Live traffic |
| Credentials | Test API key | Production API key |
| Transactions | Simulated | Real |
| API contract | Identical | Identical |
| Webhooks | Yes | Yes |
| Base URL | Shared with your credentials | https://atriapi.com |
Webhooks
Know the status of every transaction
We send an HTTP POST to your callback URL every time a transaction changes state.
acceptedRequest received and validated.
processingSent to the operator or provider.
completedDelivered successfully.
failedNot delivered. Error code included.
{
"event": "transaction.completed",
"transactionId": "atr_7f3c9e21",
"externalId": "order-10293",
"status": "completed",
"timestamp": "2026-11-30T14:05:12Z"
}{
"event": "transaction.failed",
"transactionId": "atr_7f3c9e22",
"externalId": "order-10294",
"status": "failed",
"error": {
"code": "INVALID_PHONE_NUMBER",
"message": "phoneNumber is not valid for country MX."
},
"timestamp": "2026-11-30T14:06:40Z"
}Example
Handler checklist
- Answer with a 2xx status as soon as you have stored the event, then process it.
- Make the handler idempotent: use transactionId and externalId to ignore repeats.
- Treat completed and failed as final states for reconciliation.
- Restrict your callback endpoint to the sources we share during onboarding.
Errors
Error codes
The API uses standard HTTP status codes. Errors return a JSON body with a machine-readable code and a human-readable message.
| Status | Meaning | What to do |
|---|---|---|
| 200 | Accepted. The request is valid and queued (status: accepted). | Wait for the webhook with the final status. |
| 400 | Malformed request or invalid field. | Check the body against the field list. |
| 401 | Missing or invalid API key. | Send a valid key in the x-api-key header. |
| 403 | Key not allowed for this resource, environment or IP. | Check environment, permissions and IP allowlist. |
| 404 | Resource or product not found. | Verify the SKU or transaction identifier. |
| 409 | Duplicate externalId. | Do not retry: look up the original transaction. |
| 422 | Valid request that cannot be fulfilled, such as an unsupported number or product. | Correct the data or choose another product. |
| 429 | Rate limit exceeded. | Back off and retry with exponential delay. |
| 5xx | Temporary error on our side. | Retry with the same externalId. Our NOC is already alerted. |
{
"status": "failed",
"externalId": "order-10293",
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid x-api-key header."
}
}Example
Indicative list. The complete catalog of application error codes is included in the API reference you receive with sandbox access.
APIs by product
Pick your integration
One account, one support team. Each line of business uses the protocol its industry expects.
- Status: Live
Top-up, PINs, Gift Cards & eSIM
REST API with webhooks, sandbox and reconciliation exports.
- REST
- JSON
- Webhooks
- Endpoint
POST /recharge
- Status: Available on request
International Voice
SIP or TDM interconnection with IP authentication. CDRs and quality reports included.
- SIP
- TDM
- CDRs
- Endpoint
- Details shared with sandbox access
- Status: Available on request
SMS & RCS
SMPP v3.4 or HTTP API with real-time delivery reports.
- SMPP v3.4
- HTTP API
- DLR
- Endpoint
- Details shared with sandbox access
- Status: Available on request
AI Tokens
Unified REST API for text, voice and image models, with per-key spend controls.
- REST
- JSON
- Endpoint
- Details shared with sandbox access
- Status: Available on request
AtriaCore Platforms
Admin panel plus REST APIs for provisioning, reporting and billing data.
- REST
- Webhooks
- Endpoint
- Details shared with sandbox access
Architecture
How our platform is built
Your traffic enters through dedicated edges for SIP, SMPP and REST, is routed and rated by our core platform, and is monitored around the clock by our NOC. Every layer scales horizontally. AtriaCore customers run on the same foundation.
Your platform sends POST /recharge to the Atria API with an x-api-key header. The routing engine forwards it to the operator or network, and the final status returns to your callback URL as a webhook.
Illustrative dataEdge
- API gateway
- SBC
- SMPP servers
Core
- Routing
- Rating
- Billing
Monitoring
- NOC 24/7
- Alerting
Upstream
- Operators
- Model providers
Limits & SDKs
Built to scale with you
Rate limits
Limits are set per API key and sized to your contracted volume. Requests above the limit return HTTP 429.
Idempotency
externalId must be unique per order. Retrying with the same value never creates a second transaction.
Timeouts
Use a client timeout of around 10 seconds and rely on webhooks for the final status, not on long polling.
Horizontal scaling
Stateless API nodes scale out behind the gateway, so traffic peaks do not change your integration.
SDKs and tooling
- Official SDKsComing soon
- OpenAPI specificationAvailable on request
- Postman collectionAvailable on request
- Any HTTP clientWorks today
Support
Engineers on the other end
Technical support and NOC monitoring 24/7. Integration questions go to engineers, not a generic queue.
- Technical and commercial questionsinfo@atriatel.com
- NOC
Network monitoring 24/7
Sandbox
Start building today.
Tell us which service you are integrating and we will send sandbox credentials and the API reference.