API v3 documentation

ExciteSMS API

Send SMS, run campaigns and manage contacts from your own software. Every endpoint is documented with copy-paste code — and you can send a real test message right from this page.

Get API key

Base URL

https://gateway.excitesms.com/api/v3
  • Bearer-token auth
  • JSON in, JSON out
  • 17 endpoints
  • HTTPS only

Introduction

The ExciteSMS API is a REST API. Send requests over HTTPS to the base URL below, with a JSON body for POST and PATCH requests. Every response is JSON with the same three fields.

Base URL
https://gateway.excitesms.com/api/v3
Every response
{
  "status": "success | error",
  "message": "Human-readable text or null",
  "data": "{ … }"
}

Good to know

  • • Check the status field, not just the HTTP code — some errors return HTTP 500.
  • • Lists are paginated, 25 items per page. Use ?page=2 for more.
  • • Always send a JSON body with POST requests, even if it's {}.

Authentication

Authenticate every request with your API key in the Authorization header. Get your key by logging in to your ExciteSMS dashboard. No account yet? Sign up free — the free trial includes API access.

Request headers
Authorization: Bearer YOUR_API_KEY
Accept: application/json
Keep your key secret. Anyone with it can send messages on your account. Store it in an environment variable on your server, never in a website's front-end code or a mobile app, and replace it straight away if it leaks.

Quickstart

  1. 1

    Get your API key

    Log in to your ExciteSMS dashboard and copy your API key. Save it as an environment variable called EXCITESMS_API_KEY.

    export EXCITESMS_API_KEY='paste-your-key-here'
  2. 2

    Check your balance

    A quick, free request to confirm your key works.

    curl -X GET 'https://gateway.excitesms.com/api/v3/balance' \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Accept: application/json'
  3. 3

    Send your first SMS

    Change the recipient to your own number and run it. You'll get the message in seconds.

    curl -X POST 'https://gateway.excitesms.com/api/v3/sms/send' \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Accept: application/json' \
      -H 'Content-Type: application/json' \
      -d '{
        "recipient": "260971234567",
        "sender_id": "ExciteSMS",
        "type": "plain",
        "message": "Your order has shipped!"
      }'

API console

Call any endpoint with your own API key and see the live response. Requests go directly from your browser to the ExciteSMS gateway — your key never touches this website's servers.

Your key is sent only to gateway.excitesms.com, straight from your browser.

POST Send a message to one or more phone numbers, now or at a scheduled time.

Phone number in international format without + or spaces. Separate multiple numbers with commas.

Sender name shown on the phone (max 11 characters). Must be approved on your account.

plain for standard text, unicode for emoji and non-Latin characters.

23 characters · 1 SMS part · GSM-7 · 137 left in this part

The text of the message.

Send later instead of now. Format: YYYY-MM-DD HH:MM, in your account's time zone.

Add your API key to run requests.

Request

POST /sms/send
curl -X POST 'https://gateway.excitesms.com/api/v3/sms/send' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "recipient": "260971234567",
    "sender_id": "ExciteSMS",
    "type": "plain",
    "message": "Your order has shipped!"
  }'

Your key is shortened in this preview. Copy it into your own code from an environment variable.

Response

Run a request to see the live response here.
Testing tips: send to your own number first, keep test messages short (one SMS part), and use with the returned uid to check delivery. Read-only endpoints like Check balance are free.

Phone numbers

Send numbers in international format: country code then the number, with no +, spaces or leading zero. For several recipients, separate numbers with commas.

You haveSend this
0971 234 567260971234567
+260 97 123 4567260971234567
Two numbers260971234567,260961234567

Message length & encoding

Long messages are split into parts and joined back together on the phone. You're charged per part. Using emoji or characters outside the standard SMS alphabet switches the whole message to Unicode, which fits fewer characters per part — set type to unicode for these. The console shows a live count as you type.

TypeCharacters in 1 SMSPer part when longerUse for
plain160153English text, numbers, common symbols
unicode7067Emoji, accented or non-Latin characters

The characters ^ { } \ [ ] ~ | € count as two in plain messages.

Errors

When something goes wrong, status is "error" and message explains why. Validation errors also list each problem field in errors. These are real responses from the gateway:

422A required field is missing or invalid

application/json
{
  "status": "error",
  "message": "The recipient field is required. (and 1 more error)",
  "errors": {
    "recipient": [
      "The recipient field is required."
    ],
    "message": [
      "The message field is required."
    ]
  }
}

500The API key is missing or wrong

application/json
{
  "status": "error",
  "message": "Unauthenticated."
}

500The UID you asked for doesn't exist

application/json
{
  "status": "error",
  "message": "No query results for model [App\\Models\\Reports] RPTYZAAQ2C"
}

405Wrong HTTP method for the route

application/json
{
  "status": "error",
  "message": "The POST method is not supported for route api/v3/balance. Supported methods: GET, HEAD."
}

Best practices

  • Call the API from your server

    Keep the API key out of browsers and apps. Your front-end talks to your server; your server talks to ExciteSMS.

  • Check status, then delivery

    Treat status: "success" as accepted. Use the returned uid with Get a message to confirm Delivered.

  • Use campaigns for big sends

    Sending to a whole list? Add contacts to a group and use Send a campaign instead of thousands of single sends.

  • Respect opt-outs

    Only message people who agreed to hear from you, and include a way to opt out of marketing messages.

API reference

SMS

Send messages and check their delivery status.

Send an SMS

POST/sms/send

Send a message to one or more phone numbers, now or at a scheduled time.

Uses SMS credits

  • Send to several numbers at once by separating them with commas.
  • Messages longer than one SMS are split automatically and charged per part (160 characters per part for plain text, 70 for Unicode).

Parameters

  • recipientstring · bodyrequired

    Phone number in international format without + or spaces. Separate multiple numbers with commas.

  • sender_idstring · bodyoptional

    Sender name shown on the phone (max 11 characters). Must be approved on your account.

  • typestring · bodyoptional

    plain for standard text, unicode for emoji and non-Latin characters.

    One of: plainunicode

  • messagestring · bodyrequired

    The text of the message.

  • schedule_timestring · bodyoptional

    Send later instead of now. Format: YYYY-MM-DD HH:MM, in your account's time zone.

curl -X POST 'https://gateway.excitesms.com/api/v3/sms/send' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "recipient": "260971234567",
    "sender_id": "ExciteSMS",
    "type": "plain",
    "message": "Your order has shipped!"
  }'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "Your message was successfully delivered",
  "data": {
    "uid": "61536aa9cab81",
    "to": "260971234567",
    "from": "ExciteSMS",
    "message": "Your order has shipped!",
    "status": "Delivered",
    "cost": "1"
  }
}

Get a message

GET/sms/{uid}

Look up a single message and its delivery status.

Parameters

  • uidstring · pathrequired

    UID of the message.

curl -X GET 'https://gateway.excitesms.com/api/v3/sms/RPTYZAAQ2C' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json'

Example response

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "uid": "RPTYZAAQ2C",
    "to": "260971234567",
    "from": "ExciteSMS",
    "message": "Your order has shipped!",
    "sms_type": "plain",
    "direction": "outgoing",
    "status": "Delivered",
    "sms_count": 1,
    "cost": "1"
  }
}

List messages

GET/sms

All messages on your account, newest first, 25 per page.

Parameters

  • pageinteger · queryoptional

    Page number.

curl -X GET 'https://gateway.excitesms.com/api/v3/sms?page=1' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json'

Example response

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 257431,
        "uid": "RPTYZAAQ2C",
        "to": "260971234567",
        "from": "ExciteSMS",
        "message": "Your order has shipped!",
        "sms_type": "plain",
        "direction": "outgoing",
        "status": "Delivered",
        "sms_count": 1,
        "cost": "1",
        "sent_at": "2026-11-30 12:50:54"
      }
    ],
    "first_page_url": "https://gateway.excitesms.com/api/v3/sms?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://gateway.excitesms.com/api/v3/sms?page=1",
    "next_page_url": null,
    "path": "https://gateway.excitesms.com/api/v3/sms",
    "per_page": 25,
    "prev_page_url": null,
    "to": 1,
    "total": 1
  }
}

API reference

Campaigns

Send one message to whole contact groups.

Send a campaign

POST/sms/campaign

Send one message to every contact in one or more contact groups.

Uses SMS credits

Parameters

  • contact_list_idstring · bodyrequired

    UID of the contact group. Separate multiple groups with commas.

  • sender_idstring · bodyoptional

    Approved sender name (max 11 characters).

  • typestring · bodyoptional

    plain or unicode.

    One of: plainunicode

  • messagestring · bodyrequired

    The text of the message.

  • schedule_timestring · bodyoptional

    Send later. Format: YYYY-MM-DD HH:MM.

curl -X POST 'https://gateway.excitesms.com/api/v3/sms/campaign' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "contact_list_id": "652fcb92309b9",
    "sender_id": "ExciteSMS",
    "type": "plain",
    "message": "Weekend sale! 20% off everything."
  }'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "Your campaign successfully store and is being produced in the background. Track the process in the Reports -> Campaigns Menu",
  "data": {}
}

Get a campaign

GET/campaign/{uid}/view

Look up a campaign you have sent.

Parameters

  • uidstring · pathrequired

    UID of the campaign.

curl -X GET 'https://gateway.excitesms.com/api/v3/campaign/%7Buid%7D/view' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "uid": "…",
    "campaign_name": "…",
    "status": "…"
  }
}

API reference

Contact groups

Manage the contact groups you send campaigns to.

List contact groups

GET/contacts

All contact groups on your account.

Parameters

  • pageinteger · queryoptional

    Page number.

curl -X GET 'https://gateway.excitesms.com/api/v3/contacts?page=1' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json'

Example response

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "current_page": 1,
    "data": [
      {
        "uid": "652fcb92309b9",
        "name": "Customers"
      }
    ],
    "first_page_url": "https://gateway.excitesms.com/api/v3/contacts?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://gateway.excitesms.com/api/v3/contacts?page=1",
    "next_page_url": null,
    "path": "https://gateway.excitesms.com/api/v3/contacts",
    "per_page": 25,
    "prev_page_url": null,
    "to": 1,
    "total": 1
  }
}

Create a contact group

POST/contacts

Create a new, empty contact group.

Changes data in your account

Parameters

  • namestring · bodyrequired

    Name of the group.

curl -X POST 'https://gateway.excitesms.com/api/v3/contacts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Newsletter"
  }'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "…",
  "data": {
    "uid": "…",
    "name": "Newsletter"
  }
}

Get a contact group

POST/contacts/{group_id}/show

Look up one contact group.

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

curl -X POST 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/show' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'

Example response

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "uid": "652fcb92309b9",
    "name": "Customers"
  }
}

Rename a contact group

PATCH/contacts/{group_id}

Change the name of a contact group.

Changes data in your account

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

  • namestring · bodyrequired

    New name.

curl -X PATCH 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "VIP customers"
  }'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "…",
  "data": {
    "uid": "652fcb92309b9",
    "name": "VIP customers"
  }
}

Delete a contact group

DELETE/contacts/{group_id}

Permanently delete a contact group and its contacts.

Changes data in your account

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

curl -X DELETE 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "…"
}

API reference

Contacts

Manage individual contacts inside a group.

List contacts in a group

POST/contacts/{group_id}/all

All contacts in a group, 25 per page.

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

  • pageinteger · queryoptional

    Page number.

curl -X POST 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/all?page=1' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "current_page": 1,
    "data": [
      {
        "uid": "6531a0c2d8e1f",
        "phone": "260971234567"
      }
    ],
    "first_page_url": "https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/all?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/all?page=1",
    "next_page_url": null,
    "path": "https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/all",
    "per_page": 25,
    "prev_page_url": null,
    "to": 1,
    "total": 1
  }
}

Add a contact

POST/contacts/{group_id}/store

Add a phone number to a contact group.

Changes data in your account

  • Field names are in capitals. Any extra fields defined on the group (for example FIRST_NAME) can be sent as additional keys.

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

  • PHONEstring · bodyrequired

    Phone number in international format.

curl -X POST 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/store' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "PHONE": "260971234567"
  }'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "…",
  "data": {
    "uid": "…",
    "phone": "260971234567"
  }
}

Get a contact

POST/contacts/{group_id}/search/{uid}

Look up one contact in a group.

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

  • uidstring · pathrequired

    UID of the contact.

curl -X POST 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/search/6531a0c2d8e1f' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "uid": "6531a0c2d8e1f",
    "phone": "260971234567"
  }
}

Update a contact

PATCH/contacts/{group_id}/update/{uid}

Change a contact's details.

Changes data in your account

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

  • uidstring · pathrequired

    UID of the contact.

  • PHONEstring · bodyrequired

    Phone number in international format.

curl -X PATCH 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/update/6531a0c2d8e1f' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "PHONE": "260971234567"
  }'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "…",
  "data": {
    "uid": "6531a0c2d8e1f",
    "phone": "260971234567"
  }
}

Delete a contact

DELETE/contacts/{group_id}/delete/{uid}

Remove a contact from a group.

Changes data in your account

Parameters

  • group_idstring · pathrequired

    UID of the contact group (from List contact groups).

  • uidstring · pathrequired

    UID of the contact.

curl -X DELETE 'https://gateway.excitesms.com/api/v3/contacts/652fcb92309b9/delete/6531a0c2d8e1f' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'

Example response · illustrative

200 OK
{
  "status": "success",
  "message": "…"
}

API reference

Account

Read your profile and remaining balance.

Check balance

GET/balance

Your remaining SMS balance and when it expires.

No parameters.

curl -X GET 'https://gateway.excitesms.com/api/v3/balance' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json'

Example response

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "remaining_balance": "K6,195.75",
    "expired_on": "14th Mar 35, 10:09 AM"
  }
}

Get your profile

GET/me

Details of the account the API key belongs to.

No parameters.

curl -X GET 'https://gateway.excitesms.com/api/v3/me' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json'

Example response

200 OK
{
  "status": "success",
  "message": null,
  "data": {
    "uid": "6523f7fc716ce",
    "api_token": "…",
    "first_name": "Jane",
    "last_name": "Banda",
    "email": "jane@example.com",
    "locale": "en",
    "timezone": "Africa/Lusaka",
    "last_access_at": "2026-12-03T12:00:29.000000Z"
  }
}

Need help integrating?

Our team can help with sender IDs, volumes and technical questions.

Contact support