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
POSTatriapi.com/recharge
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"
  }'
Response200 OK
{
  "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.

  1. Get your sandbox key

    Request access and receive your API key and test catalog.

  2. Send a request

    Call the endpoint with your key in the x-api-key header.

  3. Handle the webhook

    Receive the final status at your callback URL.

POSTatriapi.com/recharge
# Sandbox credentials arrive by email after your request is approved.
export ATRIA_API_KEY="YOUR_API_KEY"

Example

Request body
FieldTypeDescription
amountnumberAmount to deliver, in the currency below.
phoneNumberstringDestination number in international format, digits only.
skustringProduct identifier from your catalog.
externalIdstringYour unique order reference. Use it to reconcile and to avoid duplicates.
currencystringISO 4217 currency code.
countrystringISO 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/json

Example

  • 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 vs. production
SandboxProduction
PurposeBuild and testLive traffic
CredentialsTest API keyProduction API key
TransactionsSimulatedReal
API contractIdenticalIdentical
WebhooksYesYes
Base URLShared with your credentialshttps://atriapi.com

Webhooks

Know the status of every transaction

We send an HTTP POST to your callback URL every time a transaction changes state.

  1. accepted

    Request received and validated.

  2. processing

    Sent to the operator or provider.

  3. completed

    Delivered successfully.

  4. failed

    Not delivered. Error code included.

POSTyour-domain.com/webhooks/atriatel
{
  "event": "transaction.completed",
  "transactionId": "atr_7f3c9e21",
  "externalId": "order-10293",
  "status": "completed",
  "timestamp": "2026-11-30T14:05:12Z"
}

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.

HTTP status codes
StatusMeaningWhat to do
200Accepted. The request is valid and queued (status: accepted).Wait for the webhook with the final status.
400Malformed request or invalid field.Check the body against the field list.
401Missing or invalid API key.Send a valid key in the x-api-key header.
403Key not allowed for this resource, environment or IP.Check environment, permissions and IP allowlist.
404Resource or product not found.Verify the SKU or transaction identifier.
409Duplicate externalId.Do not retry: look up the original transaction.
422Valid request that cannot be fulfilled, such as an unsupported number or product.Correct the data or choose another product.
429Rate limit exceeded.Back off and retry with exponential delay.
5xxTemporary 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
    Explore the service: Top-up, PINs, Gift Cards & eSIM
  • 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
    Explore the service: International Voice
  • 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
    Explore the service: SMS & RCS
  • 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
    Explore the service: AI Tokens
  • 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
    Explore the service: AtriaCore Platforms

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.

Request lifecycle

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 data
  1. Edge

    • API gateway
    • SBC
    • SMPP servers
  2. Core

    • Routing
    • Rating
    • Billing
  3. Monitoring

    • NOC 24/7
    • Alerting
  4. 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.

Sandbox

Start building today.

Tell us which service you are integrating and we will send sandbox credentials and the API reference.