Τα SMS σας στέλνονται από το δικό σας κινητό.Δείτε πώς λειτουργεί
ΠΛΑΤΦΟΡΜAPI-πρώτη αρχιτεκτονικήΑσφαλής ζεύξη συσκευήςΟρατότητα παράδοσηςΈλεγχος πολλαπλών συσκευώνΈκδοση τεκμηρίωσης
κόμβος προγραμματιστή/ SMS API

SMS · 16 τεκμηριωμένες λειτουργίες

SMS API documentation

Send and receive SMS, inspect delivery logs, build conversations and manage connected mobile gateways.

A smartphone connected to SMS and cloud gateway infrastructure
REST base URLhttps://api.smsmobileapi.com

JSON responses · HTTPS required · UTF-8

Connect your API key

Connect once, then test endpoints across SMS, calls, notifications, WhatsApp and email.

Ξεκίνα από εδώ.

Your first request in four steps

1

Create an account and copy the API key from the dashboard.

2

Install the mobile app and confirm that the device is online.

3

Send one test SMS with the /sendsms/ endpoint.

4

Store the returned message ID to correlate logs and delivery status.

WEBHOOK V2 ΓΙΑ ΑΥΤΟ ΤΟ API

Εγγραφείτε μόνο στα γεγονότα κινητού που χρειάζεται η ροή εργασίας σας.

5 τύποι συμβάντων

Ένας προορισμός μπορεί να λαμβάνει τα πάντα, ή μπορείτε να διαχωρίσετε συστήματα παραγωγής, αναλύσεις και επιχειρησιακές ειδοποιήσεις. Κάθε γεγονός έχει ακριβές όνομα ώστε η εφαρμογή σας να το διαχειρίζεται προβλέψιμα.

sms.api.submitted

SMS υποβλήθηκε μέσω API

Ένα αίτημα API δημιούργησε μια εργασία αποστολής SMS. Χρήσιμο για να επιβεβαιώσετε ότι το αίτημα εισήλθε στην πλατφόρμα.

sms.sent

SMS αποστάλθηκε

Το συνδεδεμένο κινητό επιβεβαίωσε την αποστολή SMS.

sms.failed

SMS απέτυχε

Το συνδεδεμένο κινητό επέστρεψε σφάλμα αποστολής SMS.

sms.received

SMS λήφθηκε

Ένα συνδεδεμένο κινητό συγχρόνισε ένα εισερχόμενο SMS.

sms.mobile.sent

SMS αποστέλθηκε από κινητό

Ένα SMS στάλθηκε χειροκίνητα από το συνδεδεμένο κινητό.

Authentication

Keep credentials on your server

Every request accepts an API key through the apikey parameter. OAuth2 client credentials are also available for server-to-server integrations. Never expose a production key in browser code, public repositories or support messages.

Διαχείριση ιστορικού

Καθαρισμός ιστορικού με ασφάλεια: προεπισκόπηση, διαγραφή, παρακολούθηση προόδου

Αυτά τα τελικά σημεία καθαρίζουν το επιλεγμένο ιστορικό του εξυπηρετητή για το πλήκτρο API, όχι μηνύματα σε τηλέφωνα ή εξωτερικές υπηρεσίες. Δεν παρέχουν διαγραφή λογαριασμού. Νέα δραστηριότητα μπορεί να εμφανιστεί μετά τη διαγραφή.

Διαβάστε τον οδηγό request_id και retry
Προστασία της ένταξης

Εξ ορισμού, τα αρχεία που συνδέονται ή επεξεργάζονται παραμένουν ορατά. Χρησιμοποιήστε το include_linked=1 μόνο αν αποδεχτείτε ότι οι ενσωματώσεις ή η συνεχής επεξεργασία μπορεί να σταματήσει να λειτουργεί.

Πώς λειτουργεί το request_id

  1. Προεπισκόπηση των μετρήσεων με action=preview. Δεν χρειάζεται request_id και δεν διαγράφονται εγγραφές.
  2. Δημιουργία ενός μοναδικού request_id για μια νέα διαγραφή, για παράδειγμα ένα UUID. Αποθήκευση πριν από την αποστολή action=delete.
  3. Για τις επαναλήψεις, τα χρονικά όρια ή HTTP 202, επαναχρησιμοποιήστε το ίδιο πλήκτρο API, το τελικό σημείο ιστορικού, request_id και include_linked τιμή. Ποτέ μην δημιουργείτε ένα νέο ID αυτόματα μετά από ένα σφάλμα.
  4. Όταν completed=true, η λειτουργία έχει ολοκληρωθεί. Επαναχρησιμοποιώντας την ταυτότητά του επιστρέφει το ίδιο αποτέλεσμα αντί να διαγράψει τα νεοαφιχθέντα αρχεία. Χρησιμοποιήστε μια νέα ταυτότητα μόνο για μια σκόπιμα νέα εκκαθάριση.

request_id προσδιορίζει τη διαγραφή σας λειτουργία, όχι ένα μεμονωμένο SMS. Επιτρεπόμενη μορφή: 16–128 ASCII γράμματα, ψηφία, παύλα ή υποκοριστικά. Ένα UUID που παράγεται με κρυπτο.randomUID () είναι κατάλληλο.

Η διαγραφή γίνεται σε παρτίδες. Με HTTP 202 και continue_required=true, επαναλάβετε το action=delete μετά από 3 δευτερόλεπτα. Δεν εκτελείται cron στο παρασκήνιο. Το action=status διαβάζει μόνο την πρόοδο, χωρίς να συνεχίζει τη διαγραφή, ακόμη και με HTTP 200.

Παραδείγματα διαγραφής και κατάστασης

Αντικαταστήστε το δείγμα request_id με τη δική σας μοναδική αξία πριν ξεκινήσετε. Τα ακόλουθα διαγράψουν τα αιτήματα αλλάζουν πραγματικό ιστορικό λογαριασμού· δεν είναι προεπισκοπήσεις.

POST · πλήκτρο API
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-api/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
POST · OAuth2
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-api/" \
  -H "Authorization: Bearer YOUR_OAUTH_ACCESS_TOKEN" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
GET · κατάσταση
curl -G "https://api.smsmobileapi.com/delete-history-sms-api/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=status" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"

GET δέχεται επίσης action=preview ή action=delete. POST συνιστάται: Οι παράμετροι URL μπορούν να διαρρεύσουν στο ιστορικό του προγράμματος περιήγησης και τα αρχεία καταγραφής του διακομιστή. Ποτέ μην τοποθετείτε ένα URL διαγραφής σε ένα δημόσιο σύνδεσμο, εικόνα ή προεπιλογή.

Για POST, στείλτε όλες τις παραμέτρους στο σώμα μορφή ή ένα αντικείμενο JSON, ποτέ στη συμβολοσειρά ερωτημάτων. Οι άγνωστες παράμετροι απορρίπτονται· δεν υποστηρίζονται η ημερομηνία ή τα κινητά φίλτρα.

Ταυτοποίηση για τα τελικά σημεία ιστορικού

Χρησιμοποιήστε apikey ή Authorization: Bearer πρόσβαση στο σημείο που εκδόθηκε από SMSMobileAPI OAuth2. Μην στείλετε ένα νέο σημείο ή ένα πλήκτρο API ως ένα Bearer. Τα ληγμένα κουπόνια απορρίπτονται.

Όταν τα πεδία είναι ρυθμισμένα, history:read επιτρέπει προεπισκόπηση / κατάσταση και history:delete επιτρέπει επίσης τη διαγραφή. Ισχύουν περιορισμοί τόσο στον πελάτη του ενδεικτικού όσο και στον πελάτη OAuth. Τα σημεία κληροδότησης χωρίς τα πεδία διατηρούν την υπάρχουσα πρόσβαση του λογαριασμού τους.

OAuth2 επιλέγει το μοναδικό πρωτεύον πλήκτρο API. Εάν υπάρχουν αρκετά βασικά κλειδιά, παρέχουν επίσης apikey για να επιλέξετε ένα που ανήκει στο λογαριασμό. Τα δευτερεύοντα κλειδιά δεν επιτρέπουν ποτέ πρόσβαση στο ιστορικό του βασικού κλειδιού.

Διαβάστε την απάντηση πριν συνεχίσετε

count_delete είναι ο σωρευτικός αριθμός που αφαιρείται από αυτή την λειτουργία. selected_at_start είναι η αρχική επιλογή; protected_at_start μετράει αποκλεισμένα αρχεία. Χρησιμοποιήστε preview.linked_or_processing για να μετρήσετε τις συνδεδεμένες εγγραφές ακόμη και όταν include_linked=1.

JSON · HTTP 202
{
    "result": {
        "error": 0,
        "history": "sms-api",
        "action": "delete",
        "request_id": "6d54ac58-41f1-4fbc-9a39-6e6c86089451",
        "status": "processing",
        "completed": false,
        "count_delete": 100,
        "total_before": 250,
        "selected_at_start": 200,
        "protected_at_start": 50,
        "include_linked": 0,
        "continue_required": true,
        "message": "Repeat GET or POST with the same request_id and include_linked to continue. Status requests do not run deletion."
    }
}
  • 200 με completed=true: ολοκληρώθηκε. Μια προεπισκόπηση 200 ή απάντηση κατάστασης από μόνη της δεν αποδεικνύει ολοκλήρωση.
  • 400 INVALID_REQUEST_ID: ελέγξτε τη μορφή. 404 REQUEST_NOT_FOUND: δεν υπάρχει λειτουργία για αυτό το ID, το πλήκτρο API και το ιστορικό.
  • 401: άκυρα ή ληγμένα διαπιστευτήρια. 403: ανεπαρκής εμβέλεια OAuth ή μη εξουσιοδοτημένος λογαριασμός.
  • 409 HISTORY_BUSY: εκτελείται ένας άλλος καθαρισμός, συνεχίστε τον από τον αρχικό πελάτη. 409 INCLUDE_LINKED_CONFLICT: επαναφορά της αρχικής τιμής include_linked.
  • 409 OAUTH_ACCOUNT_AMBIGUOUS: παρέχουν ένα κλειδί API που ανήκει σε αυτόν τον λογαριασμό.
  • 503 ή διακοπή δικτύου: ορισμένες παρτίδες μπορούν ήδη να συμπληρωθούν. Ελέγξτε τις ρυθμίσεις, στη συνέχεια, επανεκκίνηση με το αρχικό request_id. Μη δημιουργία αυτόματης λειτουργίας αντικατάστασης.
POST · GET

Send an SMS

#
ENDPOINThttps://api.smsmobileapi.com/sendsms/

Queues a message on a connected phone. POST is recommended when the message is long or contains special characters.

When to use it

Use this for transactional messages, reminders, alerts and application-generated SMS.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
recipients phone Required Destination number in international format.
message string Required Message body. URL-encode it when using GET.
port 1 | 2 Προαιρετικό SIM port on compatible Android devices; leave empty for automatic selection.
sIdentifiant string Προαιρετικό Specific connected phone SID; leave empty for the first available device.
shorturl 0 | 1 Προαιρετικό Set to 1 to shorten URLs found in the message.
sendsms 0 | 1 Προαιρετικό SMS channel flag. Defaults to 1 when omitted.
sendwa 0 | 1 Προαιρετικό Also request WhatsApp delivery when the account supports it.
encrypt_message yes Προαιρετικό Encrypt the message for recipient-side protected reading.
schedule_timestamp Unix seconds Προαιρετικό UTC time from which the message may be sent.

Request example

cURL
curl -X POST "https://api.smsmobileapi.com/sendsms/" \
  -d "apikey=YOUR_API_KEY" \
  -d "recipients=+1234567890" \
  --data-urlencode "message=Your appointment is confirmed for tomorrow."

Example response

JSON
{
  "result": {
    "error": 0,
    "sent": "1",
    "id": "c319d3b35e8f8712cde20dae39ac3c19f86eda25",
    "note": "sent by mobile",
    "datetime": "2026-03-20T21:07:44Z",
    "port": null,
    "send_with_whatsapp": "0"
  }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • A successful API response means the message was accepted by the platform; keep the returned id for later tracking.
  • Carrier delivery and mobile processing can happen after the HTTP response.
POST · GET

Resend an unsent SMS

#
ENDPOINThttps://api.smsmobileapi.com/resend/

Retries a message that is currently in an error state.

When to use it

Use this after checking the sent log and confirming that a failed message is eligible for another attempt.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
guid string Required The message GUID returned by the send or log endpoint.

Request example

cURL
curl "https://api.smsmobileapi.com/resend/?apikey=YOUR_API_KEY&guid=GUID_OF_THE_MESSAGE"

Example response

JSON
{
  "result": {
    "error": "0",
    "sms": "resent with successfully",
    "attempt": 1
  }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • Only messages with an error status can be resent.
GET

List SMS sent from the API

#
ENDPOINThttps://api.smsmobileapi.com/log/sent/sms/

Returns messages submitted through the SMS API with queue, mobile and error information.

When to use it

Use it for delivery monitoring, support diagnostics and reconciliation.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
guid_message string Προαιρετικό Return one message by its unique GUID.
before timestamp or reference Προαιρετικό Return messages before the supplied cursor or timestamp.
error_api 0 | 1 Προαιρετικό Set to 1 to return API processing errors only.
error_mobile 0 | 1 Προαιρετικό Set to 1 to return mobile sending errors only.
keyword string Προαιρετικό Search the recipient number or message text.

Request example

cURL
curl "https://api.smsmobileapi.com/log/sent/sms/?apikey=YOUR_API_KEY&guid_message=MESSAGE_GUID"

Example response

JSON
{
  "result": {
    "error": "0",
    "sms": [{
      "sIdentifiantPhone": "508b004b4aadacc4",
      "recipients": "+1234567890",
      "sms": "Test message",
      "guid_message": "MESSAGE_GUID",
      "send_from_mobile": 1,
      "error_api": "",
      "send_from_mobile_erreur": ""
    }]
  }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
GET

List SMS synchronized from a phone

#
ENDPOINThttps://api.smsmobileapi.com/log/sent/frommobile/

Lists SMS physically sent by a mobile and synchronized with the platform.

When to use it

Use it when messages may originate on the phone as well as through the API.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
date YYYY-MM-DD Προαιρετικό Filter one exact date.
date_from YYYY-MM-DD Προαιρετικό Start of a date range.
date_to YYYY-MM-DD Προαιρετικό End of a date range.
period enum Προαιρετικό today, yesterday, last_24h, last_3days or last_7days.
number phone Προαιρετικό Filter by recipient.
sIdentifiant string Προαιρετικό Filter by connected mobile SID.
message string Προαιρετικό Filter by message content.
search string Προαιρετικό Global search across mobile, number, message and timestamps.
sort_by enum Προαιρετικό sIdentifiant, number, message, mobile_date_ms, mobile_date_formatted or synchro_time.
sort_order ASC | DESC Προαιρετικό Sort direction.
limit integer Προαιρετικό Maximum 200 records.

Request example

cURL
curl "https://api.smsmobileapi.com/log/sent/frommobile/?apikey=YOUR_API_KEY&period=last_7days&limit=200"

Example response

JSON
{
  "result": {
    "error": "0",
    "count": 1,
    "history_limit_days": 7,
    "sms": [{
      "sIdentifiant": "508b004b4aadacc4",
      "number": "+15551234567",
      "message": "Appointment confirmed.",
      "mobile_date_ms": 1774041004692,
      "synchro_time": "2026-03-20 21:10:05"
    }]
  }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • Requires Android app 4.1.20 or newer and must be enabled in the app.
  • This endpoint returns a maximum of seven days of synchronized history.
GET

List received SMS

#
ENDPOINThttps://api.smsmobileapi.com/getsms/

Returns incoming SMS synchronized from connected phones.

When to use it

Use it to build an inbox, poll for replies or recover messages after a webhook interruption.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
sIdentifiantPhone string Προαιρετικό Filter by the phone that received the SMS.
after_timestamp_unix Unix seconds Προαιρετικό Return messages received after this timestamp.
onlyunread yes Προαιρετικό Return only messages not marked as read in API state.

Request example

cURL
curl "https://api.smsmobileapi.com/getsms/?apikey=YOUR_API_KEY&onlyunread=yes"

Example response

JSON
{
  "result": {
    "error": "",
    "sms": [{
      "id": 466340,
      "sIdentifiantPhone": "508b004b4aadacc4",
      "timestamp_unix": 1774041814,
      "message": "Please call us back.",
      "number": "+15551234567",
      "guid": "6BFD7DC7-3492-422D-8D02-4AF4E614F122",
      "alias": null
    }]
  }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
POST · GET

Mark a received SMS as read

#
ENDPOINThttps://api.smsmobileapi.com/getsms/set-read/

Marks one received message as read in SMSMobileAPI API state.

When to use it

Use this after your application has processed an incoming message.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
guid_message string Required GUID of the received SMS.

Request example

cURL
curl "https://api.smsmobileapi.com/getsms/set-read/?apikey=YOUR_API_KEY&guid_message=MESSAGE_GUID"

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • This does not change the read state inside the phone messaging application.
POST · GET

Update a received SMS alias

#
ENDPOINThttps://api.smsmobileapi.com/getsms/update/

Adds, changes or clears the alias associated with a received SMS.

When to use it

Use aliases to attach a contact name or application label to a message.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
guid string Required GUID of the received SMS.
alias string Required New alias. Send an empty value to clear it.

Request example

cURL
curl "https://api.smsmobileapi.com/getsms/update/?apikey=YOUR_API_KEY&guid=MESSAGE_GUID&alias=John%20Doe"

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
POST · GET

Delete SMS server logs

#
ENDPOINThttps://api.smsmobileapi.com/deletesms/

Deletes SMS records from the SMSMobileAPI server log.

When to use it

Use it for retention workflows or removal of a specific logged message.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
guid_message string Προαιρετικό Delete one message by GUID.
date_start YYYY-MM-DD Προαιρετικό Delete records from this date.
date_end YYYY-MM-DD Προαιρετικό With date_start, limits the deletion range.

Request example

cURL
curl "https://api.smsmobileapi.com/deletesms/?apikey=YOUR_API_KEY&guid_message=MESSAGE_GUID"

Example response

JSON
{
  "result": {
    "error": null,
    "count_delete": 1
  }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • This deletes server log entries only. It does not delete messages stored on the mobile device.
  • Treat this operation as destructive and verify filters before calling it.
GET

List SMS conversations

#
ENDPOINThttps://api.smsmobileapi.com/conversation/sms/list/

Groups incoming and outgoing messages into conversations by phone number.

When to use it

Use it for chat views, recent conversation widgets and support timelines.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
origineConversation received | sent Required Dataset used to identify the starting conversations.
numero phone Προαιρετικό Return one phone-number conversation.
date_from date or datetime Προαιρετικό Start of the message range.
date_to date or datetime Προαιρετικό End of the message range.
sort ASC | DESC Προαιρετικό Conversation order; default DESC.
limit integer Προαιρετικό Conversation limit when numero is omitted; default 20.
resume 0 | 1 Προαιρετικό Set to 1 to return only the latest messages per conversation.
resume_line_how integer Προαιρετικό Number of messages per conversation when resume=1.

Request example

cURL
curl "https://api.smsmobileapi.com/conversation/sms/list/?apikey=YOUR_API_KEY&origineConversation=received&resume=1&resume_line_how=3"

Example response

JSON
{
  "success": true,
  "origineConversation": "received",
  "conversations": [{
    "phone_number": "+15551234567",
    "contact_alias": "John Doe",
    "messages": [{
      "direction": "incoming",
      "message_id": "msg_1001",
      "timestamp_utc": "2026-03-13T08:45:12Z",
      "message": "I need more information.",
      "status": "received",
      "mobile_sid": "device_sid_1"
    }]
  }]
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
GET

List connected mobiles

#
ENDPOINThttps://api.smsmobileapi.com/gateway/mobile/list/

Lists phones connected to the SMS gateway account.

When to use it

Use it to select a sender, display device status or audit a gateway fleet.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
sid string Προαιρετικό Return one exact mobile SID.
search string Προαιρετικό Search SID, date, battery, version, label and related fields.

Request example

cURL
curl "https://api.smsmobileapi.com/gateway/mobile/list/?apikey=YOUR_API_KEY"

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
POST · GET

Update a connected mobile

#
ENDPOINThttps://api.smsmobileapi.com/gateway/mobile/update/

Updates the human-readable label or phone number of a connected device.

When to use it

Use it to keep device labels meaningful in multi-phone installations.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
sid string Required The device SID.
label string Required New label; it may be intentionally empty.
phone_number phone Προαιρετικό New phone-number metadata.

Request example

cURL
curl "https://api.smsmobileapi.com/gateway/mobile/update/?apikey=YOUR_API_KEY&sid=DEVICE_SID&label=OfficePhone"

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
POST · GET

Delete a connected mobile

#
ENDPOINThttps://api.smsmobileapi.com/gateway/mobile/delete/

Removes a connected mobile and its gateway history rows.

When to use it

Use only when a phone must be permanently removed from the account.

Parameters

ΌνομαTypeRequirementDescription
apikey string Required Your account API key.
sid string Required SID of the device to remove.

Request example

cURL
curl "https://api.smsmobileapi.com/gateway/mobile/delete/?apikey=YOUR_API_KEY&sid=DEVICE_SID"

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • This operation removes device history associated with the SID. Confirm the device before calling it.
INBOUND POST

Receive SMS by webhook

#
DESTINATIONYour HTTPS endpoint

SMSMobileAPI sends a JSON request to your configured URL whenever an SMS is received.

When to use it

Use webhooks for real-time processing instead of frequent polling.

Receiver example

PHP 8
<?php
$payload = json_decode(file_get_contents('php://input'), true);
if (!is_array($payload) || empty($payload['guid'])) {
    http_response_code(400);
    exit('Invalid payload');
}
// Queue the event, then acknowledge quickly.
http_response_code(200);
echo 'OK';

Example response

JSON
{
  "date": "2026-03-20",
  "hour": "10:15:00",
  "time_received": "2026-03-20 10:14:50",
  "message": "Hello, this is a test.",
  "number": "+123456789",
  "guid": "abcde12345"
}
Inbound endpoint

This endpoint receives events at your own HTTPS URL. Use the receiver example above, then send an SMS to your connected phone to test it.

Good to know
  • Configure the public HTTPS URL in Dashboard → Webhook Settings.
  • Return HTTP 200 quickly and process the event asynchronously.
  • Deduplicate retries using guid.
POST · GET

Διαγραφή ιστορικού SMS μέσω API

#
ENDPOINThttps://api.smsmobileapi.com/delete-history-sms-api/

Καθαρίζει τα αρχεία του εξυπηρετητή SMS που υποβάλλονται μέσω του API. Δεν θυμάται ένα μήνυμα που έχει ήδη συλλεχθεί από ένα τηλέφωνο.

When to use it

Χρησιμοποιήστε πρώτα την προεπισκόπηση, ελέγξτε τα νούμερα, και στη συνέχεια ρητά να ζητήσετε διαγραφή. Αυτό καθαρίζει ολόκληρο το επιλεγμένο ιστορικό για το πλήκτρο API, χωρίς ημερομηνία, τηλέφωνο ή φίλτρα μηνυμάτων.

Parameters

ΌνομαTypeRequirementDescription
apikey string Προαιρετικό Απαιτούνται χωρίς OAuth2. Με OAuth2, επιλέξτε προαιρετικά ένα πλήκτρο API που ανήκει στον ίδιο λογαριασμό.
action preview | delete | status Προαιρετικό Το preview μετρά χωρίς διαγραφή· το delete ξεκινά ή συνεχίζει τη διαγραφή· το status εμφανίζει μόνο την πρόοδο. Η προεπιλογή του API είναι delete, ενώ του δοκιμαστή είναι preview.
include_linked 0 | 1 Προαιρετικό Προκαθορισμένο 0: κρατήστε τα αρχεία σύνδεσης ή επεξεργασίας. Ρυθμίστε 1 να τα συμπεριλάβει, με κίνδυνο να σπάσει τις ενοποιήσεις. Διατήρηση της τιμής αυτής αμετάβλητης κατά τη συνέχιση της διαγραφής.
request_id string Προαιρετικό Υποχρεωτικό για delete και status, προαιρετικό για preview. Χρησιμοποιήστε 16–128 γράμματα ASCII, ψηφία, παύλες (-) ή κάτω παύλες (_). Δημιουργήστε ένα μοναδικό ID για κάθε νέα διαγραφή και κρατήστε το σε όλες τις επαναλήψεις. Δεν είναι ID μηνύματος ούτε κλειδί API.

Request example

cURL
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-api/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=preview" -d "include_linked=0"
Παραδείγματα διαγραφής και κατάστασης

Αντικαταστήστε το δείγμα request_id με τη δική σας μοναδική αξία πριν ξεκινήσετε. Τα ακόλουθα διαγράψουν τα αιτήματα αλλάζουν πραγματικό ιστορικό λογαριασμού· δεν είναι προεπισκοπήσεις.

POST · πλήκτρο API
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-api/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
POST · OAuth2
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-api/" \
  -H "Authorization: Bearer YOUR_OAUTH_ACCESS_TOKEN" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
GET · κατάσταση
curl -G "https://api.smsmobileapi.com/delete-history-sms-api/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=status" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"

Example response

JSON
{
    "result": {
        "error": 0,
        "history": "sms-api",
        "action": "preview",
        "total": 120,
        "simple": 100,
        "linked_or_processing": 20,
        "selected": 100,
        "include_linked": 0,
        "operation_in_progress": false,
        "active_include_linked": null
    }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • Το παραπάνω παράδειγμα είναι μια προεπισκόπηση, όχι μια διαγραφή. Οι μετρήσεις είναι ενδεικτικές· η οριστική επιλογή καθορίζεται όταν αρχίζει η διαγραφή.
  • include_linked=1 μπορεί να διαταράξει GHL, Zapier, αυτοματισμούς, διαγραφείτε συνδέσμους ή την παρακολούθηση παράδοσης. Ποτέ δεν παρακάμπτει την ιδιοκτησία του λογαριασμού ή τους ελέγχους ακεραιότητας αποθήκευσης.
POST · GET

Διαγραφή ιστορικού SMS από το κινητό

#
ENDPOINThttps://api.smsmobileapi.com/delete-history-sms-mobile/

Καθαρίζει συγχρονισμένα αρχεία SMS που αποστέλλονται από κινητά, όχι τα μηνύματα που αποθηκεύονται στα τηλέφωνα.

When to use it

Χρησιμοποιήστε πρώτα την προεπισκόπηση, ελέγξτε τα νούμερα, και στη συνέχεια ρητά να ζητήσετε διαγραφή. Αυτό καθαρίζει ολόκληρο το επιλεγμένο ιστορικό για το πλήκτρο API, χωρίς ημερομηνία, τηλέφωνο ή φίλτρα μηνυμάτων.

Parameters

ΌνομαTypeRequirementDescription
apikey string Προαιρετικό Απαιτούνται χωρίς OAuth2. Με OAuth2, επιλέξτε προαιρετικά ένα πλήκτρο API που ανήκει στον ίδιο λογαριασμό.
action preview | delete | status Προαιρετικό Το preview μετρά χωρίς διαγραφή· το delete ξεκινά ή συνεχίζει τη διαγραφή· το status εμφανίζει μόνο την πρόοδο. Η προεπιλογή του API είναι delete, ενώ του δοκιμαστή είναι preview.
include_linked 0 | 1 Προαιρετικό Προκαθορισμένο 0: κρατήστε τα αρχεία σύνδεσης ή επεξεργασίας. Ρυθμίστε 1 να τα συμπεριλάβει, με κίνδυνο να σπάσει τις ενοποιήσεις. Διατήρηση της τιμής αυτής αμετάβλητης κατά τη συνέχιση της διαγραφής.
request_id string Προαιρετικό Υποχρεωτικό για delete και status, προαιρετικό για preview. Χρησιμοποιήστε 16–128 γράμματα ASCII, ψηφία, παύλες (-) ή κάτω παύλες (_). Δημιουργήστε ένα μοναδικό ID για κάθε νέα διαγραφή και κρατήστε το σε όλες τις επαναλήψεις. Δεν είναι ID μηνύματος ούτε κλειδί API.

Request example

cURL
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-mobile/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=preview" -d "include_linked=0"
Παραδείγματα διαγραφής και κατάστασης

Αντικαταστήστε το δείγμα request_id με τη δική σας μοναδική αξία πριν ξεκινήσετε. Τα ακόλουθα διαγράψουν τα αιτήματα αλλάζουν πραγματικό ιστορικό λογαριασμού· δεν είναι προεπισκοπήσεις.

POST · πλήκτρο API
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-mobile/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
POST · OAuth2
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-mobile/" \
  -H "Authorization: Bearer YOUR_OAUTH_ACCESS_TOKEN" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
GET · κατάσταση
curl -G "https://api.smsmobileapi.com/delete-history-sms-mobile/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=status" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"

Example response

JSON
{
    "result": {
        "error": 0,
        "history": "sms-mobile",
        "action": "preview",
        "total": 120,
        "simple": 100,
        "linked_or_processing": 20,
        "selected": 100,
        "include_linked": 0,
        "operation_in_progress": false,
        "active_include_linked": null
    }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • Το παραπάνω παράδειγμα είναι μια προεπισκόπηση, όχι μια διαγραφή. Οι μετρήσεις είναι ενδεικτικές· η οριστική επιλογή καθορίζεται όταν αρχίζει η διαγραφή.
  • include_linked=1 μπορεί να διαταράξει GHL, Zapier, αυτοματισμούς, διαγραφείτε συνδέσμους ή την παρακολούθηση παράδοσης. Ποτέ δεν παρακάμπτει την ιδιοκτησία του λογαριασμού ή τους ελέγχους ακεραιότητας αποθήκευσης.
POST · GET

Διαγραφή ιστορικού εισερχόμενων SMS

#
ENDPOINThttps://api.smsmobileapi.com/delete-history-sms-received/

Καθαρίζει τα αρχεία του διακομιστή των εισερχόμενων SMS. Τα αρχεία ολοκλήρωσης και αυτοματοποίησης προστατεύονται από προεπιλογή.

When to use it

Χρησιμοποιήστε πρώτα την προεπισκόπηση, ελέγξτε τα νούμερα, και στη συνέχεια ρητά να ζητήσετε διαγραφή. Αυτό καθαρίζει ολόκληρο το επιλεγμένο ιστορικό για το πλήκτρο API, χωρίς ημερομηνία, τηλέφωνο ή φίλτρα μηνυμάτων.

Parameters

ΌνομαTypeRequirementDescription
apikey string Προαιρετικό Απαιτούνται χωρίς OAuth2. Με OAuth2, επιλέξτε προαιρετικά ένα πλήκτρο API που ανήκει στον ίδιο λογαριασμό.
action preview | delete | status Προαιρετικό Το preview μετρά χωρίς διαγραφή· το delete ξεκινά ή συνεχίζει τη διαγραφή· το status εμφανίζει μόνο την πρόοδο. Η προεπιλογή του API είναι delete, ενώ του δοκιμαστή είναι preview.
include_linked 0 | 1 Προαιρετικό Προκαθορισμένο 0: κρατήστε τα αρχεία σύνδεσης ή επεξεργασίας. Ρυθμίστε 1 να τα συμπεριλάβει, με κίνδυνο να σπάσει τις ενοποιήσεις. Διατήρηση της τιμής αυτής αμετάβλητης κατά τη συνέχιση της διαγραφής.
request_id string Προαιρετικό Υποχρεωτικό για delete και status, προαιρετικό για preview. Χρησιμοποιήστε 16–128 γράμματα ASCII, ψηφία, παύλες (-) ή κάτω παύλες (_). Δημιουργήστε ένα μοναδικό ID για κάθε νέα διαγραφή και κρατήστε το σε όλες τις επαναλήψεις. Δεν είναι ID μηνύματος ούτε κλειδί API.

Request example

cURL
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-received/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=preview" -d "include_linked=0"
Παραδείγματα διαγραφής και κατάστασης

Αντικαταστήστε το δείγμα request_id με τη δική σας μοναδική αξία πριν ξεκινήσετε. Τα ακόλουθα διαγράψουν τα αιτήματα αλλάζουν πραγματικό ιστορικό λογαριασμού· δεν είναι προεπισκοπήσεις.

POST · πλήκτρο API
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-received/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
POST · OAuth2
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-received/" \
  -H "Authorization: Bearer YOUR_OAUTH_ACCESS_TOKEN" \
  -d "action=delete" -d "include_linked=0" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"
GET · κατάσταση
curl -G "https://api.smsmobileapi.com/delete-history-sms-received/" \
  --data-urlencode "apikey=YOUR_API_KEY" \
  -d "action=status" \
  -d "request_id=6d54ac58-41f1-4fbc-9a39-6e6c86089451"

Example response

JSON
{
    "result": {
        "error": 0,
        "history": "sms-received",
        "action": "preview",
        "total": 120,
        "simple": 100,
        "linked_or_processing": 20,
        "selected": 100,
        "include_linked": 0,
        "operation_in_progress": false,
        "active_include_linked": null
    }
}

Want to run this request? Connect your API key at the top of the page to unlock the interactive tester.

Connect key ↑
Good to know
  • Το παραπάνω παράδειγμα είναι μια προεπισκόπηση, όχι μια διαγραφή. Οι μετρήσεις είναι ενδεικτικές· η οριστική επιλογή καθορίζεται όταν αρχίζει η διαγραφή.
  • include_linked=1 μπορεί να διαταράξει GHL, Zapier, αυτοματισμούς, διαγραφείτε συνδέσμους ή την παρακολούθηση παράδοσης. Ποτέ δεν παρακάμπτει την ιδιοκτησία του λογαριασμού ή τους ελέγχους ακεραιότητας αποθήκευσης.

Troubleshooting

Errors and safe retries

Read the HTTP status and the JSON error field before retrying. Do not retry validation or authentication failures without correcting the request first.

HTTPCodeWhat to do
400missing_parameterA required parameter is empty or absent. Check the parameter table for the endpoint.
403invalid_apikeyThe API key is unknown, expired or not authorized for the requested feature.
429too_many_requestsRequests are arriving too quickly. Wait, then retry with exponential backoff.
500server_errorThe service could not complete the request. Keep the response and contact support if it persists.
Retry ruleRetry only transient 429 and 5xx responses. Start after 1 second, then back off to 2, 4 and 8 seconds.

Need help?

Bring the request context—not your secrets.

Share the endpoint, timestamp, HTTP status and sanitized response. Never include API keys, tokens or private message content.

Contact API support →
The secure SMSMobileAPI mobile app connecting a phone to the web dashboard and REST API for SMS and call operations
Encrypted mobile-to-platform connection

Official mobile application

The secure bridge between your phone, dashboard and API.

SMS and call operations pass through the official SMSMobileAPI app installed on your connected phone. The app securely pairs the device with your account, synchronizes authorized events and links the mobile network to the dashboard and REST API.

1Mobile appPairs the phone and its SIM 2Encrypted linkAuthenticates and protects data in transit 3Dashboard & APIControls workflows and activity
  • Signed releases distributed through the official Google Play and Apple App Store listings
  • Google and Apple platform review, signing and distribution controls
  • Secure device pairing, HTTPS transport and authenticated API access
  • Only the permissions required for the mobile features you enable
Get the official SMSMobileAPI app on Google Play Download the official SMSMobileAPI app on the Apple App Store
Capabilities depend on the permissions and background access allowed by Android or iOS.