AxeDz

v1.0

  • Overview
  • Quickstart
  • SDK
  • Authentication
  • Payment
  • API Reference
  • Errors

API Reference

Everything you need to integrate AxeDz into your app. All requests require your API key and return a simple JSON response.

Base URL

All API requests go to:

bash
https://api.axedz.com/v1

Authentication

Include your API key in every request:

HeaderRequiredDescription
X-API-KeyYesYour API key from the dashboard
Content-TypeYes (POST)application/json

Response format

Success

JSON
1{
2 "success": true,
3 "data": { }
4}

Error

JSON
1{
2 "success": false,
3 "message": "Detailed error description"
4}

See the Errors guide for a full list of error codes and how to handle them.

Send SMS

Send an SMS to any Algerian phone number. Costs 2 DZD per message in production mode.

POST /sms/send
1POST /v1/sms/send
2 
3{
4 "to": "+213555123456",
5 "message": "Your verification code is 482910"
6}
FieldTypeDescription
tostringRecipient phone number in international format (e.g. +213...)
messagestringThe text message to send
Response
1{
2 "success": true,
3 "data": {
4 "id": "sms_abc123",
5 "status": "queued",
6 "to": "+213555123456",
7 "cost": 2
8 }
9}

Send email

Send a transactional email to your customer. Costs 0.4 DZD per email in production mode.

POST /email/send
1POST /v1/email/send
2 
3{
4 "to": "user@example.com",
5 "subject": "Welcome to AxeDz",
6 "body": "<h1>Hello!</h1><p>Your account is ready.</p>"
7}
FieldTypeDescription
tostringRecipient email address
subjectstringEmail subject line
bodystringEmail content — HTML or plain text

Contacts

Save customer contact details for future messaging campaigns.

POST /contacts
1POST /v1/contacts
2 
3{
4 "name": "Ahmed Benali",
5 "phone": "+213555123456",
6 "email": "ahmed@example.com",
7 "tags": ["customer", "premium"]
8}
GET /contacts
GET /v1/contacts

Wallet

Check your current balance and account mode.

bash
GET /v1/wallet
Response
1{
2 "success": true,
3 "data": {
4 "balance": 12500,
5 "currency": "DZD",
6 "mode": "production"
7 }
8}

Message logs

Review your sent messages, delivery status, and costs.

  • GET /v1/logs/sms — all SMS messages you have sent
  • GET /v1/logs/email — all emails you have sent
  • GET /v1/usage — summary of your usage and spending
FieldDescription
idUnique message ID
statusqueued, sent, delivered, or failed
costAmount charged in DZD
created_atWhen the message was sent

Cloud Storage (coming soon)

Coming soon

Store files and media for your app. Pricing: 50 DZD per GB. Join our waitlist from the dashboard to get early access.

AI Tokens (coming soon)

Coming soon

AI-powered features billed at 0.005 DZD per token. We will announce availability on the dashboard.

Rate limits

To keep the platform fast and fair for everyone, API requests are rate limited. If you send too many requests in a short time, you will receive a 429 error. Wait a moment and try again.