Inizia qui
Your first request in four steps
Create an account and copy the API key from the dashboard.
Install the mobile app and confirm that the device is online.
Send one test SMS with the /sendsms/ endpoint.
Store the returned message ID to correlate logs and delivery status.
WEBHOOK V2 PER QUESTA API
Sottoscrivi solo gli eventi mobili necessari al tuo flusso di lavoro.
Una destinazione può ricevere tutto, oppure puoi separare sistemi di produzione, analisi e avvisi operativi. Ogni evento ha un nome preciso così la tua applicazione può gestirlo in modo prevedibile.
sms.api.submittedSMS inviato tramite API
Una richiesta API ha creato un job di invio SMS. Utile per confermare che la richiesta è entrata nella piattaforma.
sms.sentSMS inviato
Il mobile connesso ha confermato l'operazione di invio di SMS.
sms.failedSMS non riuscito
Il dispositivo mobile connesso ha restituito un errore di invio SMS.
sms.receivedSMS ricevuto
Un dispositivo mobile connesso ha sincronizzato un SMS in arrivo.
sms.mobile.sentSMS inviato dal dispositivo mobile
Un SMS è stato inviato manualmente dal dispositivo mobile connesso.
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.
Gestione della storia
Cancella la storia in modo sicuro: anteprima, eliminare, seguire i progressi
Questi endpoint chiariscono la cronologia dei server selezionata per il tasto API, non messaggi sui telefoni o servizi esterni. Non forniscono la cancellazione del conto. Una nuova attività può apparire dopo la cancellazione.
Leggi la guida request_id e retry
Per impostazione predefinita, i record di connessione o di elaborazione rimangono visibili. Utilizzare solo include_linked=1 se si accetta che le integrazioni o l'elaborazione in corso possono smettere di lavorare.
Come funziona request_id
- Anteprima i conti con action=preview. Non è necessario alcun request_id e non vengono eliminati i record.
- Generare un unico request_id per una nuova cancellazione, ad esempio un UUID. Salvalo prima di inviare action=delete.
- Per i retries, timeout o HTTP 202, riutilizzare lo stesso tasto API, endpoint di storia, request_id e include_linked valore. Non generare mai un nuovo ID automaticamente dopo un errore.
- Quando completed=true, l'operazione è terminata. Riutilizzare il suo ID restituisce lo stesso risultato invece di cancellare i record appena arrivati. Utilizzare un nuovo ID solo per una pulizia deliberatamente nuova.
request_id identifica l'operazione di cancellazione, non un singolo SMS. Formato consentito: 16–128 lettere ASCII, cifre, trattini o sottolineature. È adatto un UUID generato con crypto.randomUUID().
L’eliminazione avviene in lotti. HTTP 202 con continue_required=true richiede di ripetere action=delete dopo 3 secondi. Non è previsto un cron in background. action=status legge solo l’avanzamento senza proseguire l’eliminazione, anche con HTTP 200.
Esempi di cancellazione e stato
Sostituire il campione request_id con il proprio valore unico prima di iniziare. Le seguenti richieste di cancellazione cambiano la cronologia del conto reale; non sono anteprime.
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"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"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 accetta anche action=preview o action=delete. POST è consigliato: i parametri dell'URL possono penetrare nella cronologia del browser e nei registri del server. Non posizionare mai un URL di cancellazione in un link pubblico, immagine o prefetch.
Per POST, inviare tutti i parametri nel corpo del modulo o un oggetto JSON, mai nella stringa di query. I parametri sconosciuti sono rifiutati; i filtri data o mobile non sono supportati.
Autenticazione per i endpoint storici
Utilizzare apikey o un token di accesso Authorization: Bearer rilasciato da SMSMobileAPI OAuth2. Non inviare un token di aggiornamento o una chiave API come un token Bearer. I gettoni scarsi sono rifiutati.
Quando gli ambiti sono impostati, history:read consente l'anteprima/status e history:delete permette anche la cancellazione. Si applicano restrizioni sia sul token che sul client OAuth. I gettoni legacy senza scopi mantengono il loro accesso al conto esistente.
OAuth2 seleziona la chiave API primaria unica. Se esistono diverse chiavi primarie, inoltre, fornire apikey per selezionare una parte dell'account. Le chiavi secondarie non permettono mai l'accesso alla storia principale chiave.
Leggi la risposta prima di continuare
count_delete è il numero cumulativo rimosso da questa operazione. selected_at_start è la selezione iniziale; protected_at_start conta record esclusi. Utilizzare preview.linked_or_processing per contare i record collegati anche quando include_linked=1.
{
"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 con completed=true: finito. Una sola risposta di stato o di anteprima 200 non prova il completamento.
- 400 INVALID_REQUEST_ID: controlla il formato. 404 REQUEST_NOT_FOUND: non esiste alcuna operazione per questo ID, chiave API e storia.
- 401: credenziali non valide o scadute. 403: insufficiente campo OAuth o conto non autorizzato.
- 409 HISTORY_BUSY: un'altra pulizia è in esecuzione; continuare dal client originale. 409 INCLUDE_LINKED_CONFLICT: ripristinare il valore originale include_linked.
- 409 OAUTH_ACCOUNT_AMBIGUOUS: fornire una chiave API appartenente a questo account.
- 503 o interruzione di rete: alcuni lotti possono già essere completati. Controllare la configurazione, quindi riprova con l'originale request_id. Non creare automaticamente un'operazione di sostituzione.
POST · GET
Send an SMS
https://api.smsmobileapi.com/sendsms/Queues a message on a connected phone. POST is recommended when the message is long or contains special characters.
Use this for transactional messages, reminders, alerts and application-generated SMS.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
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 | Facoltativo | SIM port on compatible Android devices; leave empty for automatic selection. |
sIdentifiant |
string | Facoltativo | Specific connected phone SID; leave empty for the first available device. |
shorturl |
0 | 1 | Facoltativo | Set to 1 to shorten URLs found in the message. |
sendsms |
0 | 1 | Facoltativo | SMS channel flag. Defaults to 1 when omitted. |
sendwa |
0 | 1 | Facoltativo | Also request WhatsApp delivery when the account supports it. |
encrypt_message |
yes | Facoltativo | Encrypt the message for recipient-side protected reading. |
schedule_timestamp |
Unix seconds | Facoltativo | UTC time from which the message may be sent. |
Request example
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
{
"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 ↑- 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
https://api.smsmobileapi.com/resend/Retries a message that is currently in an error state.
Use this after checking the sent log and confirming that a failed message is eligible for another attempt.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
guid |
string | Required | The message GUID returned by the send or log endpoint. |
Request example
curl "https://api.smsmobileapi.com/resend/?apikey=YOUR_API_KEY&guid=GUID_OF_THE_MESSAGE"
Example response
{
"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 ↑- Only messages with an error status can be resent.
GET
List SMS sent from the API
https://api.smsmobileapi.com/log/sent/sms/Returns messages submitted through the SMS API with queue, mobile and error information.
Use it for delivery monitoring, support diagnostics and reconciliation.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
guid_message |
string | Facoltativo | Return one message by its unique GUID. |
before |
timestamp or reference | Facoltativo | Return messages before the supplied cursor or timestamp. |
error_api |
0 | 1 | Facoltativo | Set to 1 to return API processing errors only. |
error_mobile |
0 | 1 | Facoltativo | Set to 1 to return mobile sending errors only. |
keyword |
string | Facoltativo | Search the recipient number or message text. |
Request example
curl "https://api.smsmobileapi.com/log/sent/sms/?apikey=YOUR_API_KEY&guid_message=MESSAGE_GUID"
Example response
{
"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
https://api.smsmobileapi.com/log/sent/frommobile/Lists SMS physically sent by a mobile and synchronized with the platform.
Use it when messages may originate on the phone as well as through the API.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
date |
YYYY-MM-DD | Facoltativo | Filter one exact date. |
date_from |
YYYY-MM-DD | Facoltativo | Start of a date range. |
date_to |
YYYY-MM-DD | Facoltativo | End of a date range. |
period |
enum | Facoltativo | today, yesterday, last_24h, last_3days or last_7days. |
number |
phone | Facoltativo | Filter by recipient. |
sIdentifiant |
string | Facoltativo | Filter by connected mobile SID. |
message |
string | Facoltativo | Filter by message content. |
search |
string | Facoltativo | Global search across mobile, number, message and timestamps. |
sort_by |
enum | Facoltativo | sIdentifiant, number, message, mobile_date_ms, mobile_date_formatted or synchro_time. |
sort_order |
ASC | DESC | Facoltativo | Sort direction. |
limit |
integer | Facoltativo | Maximum 200 records. |
Request example
curl "https://api.smsmobileapi.com/log/sent/frommobile/?apikey=YOUR_API_KEY&period=last_7days&limit=200"
Example response
{
"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 ↑- 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
https://api.smsmobileapi.com/getsms/Returns incoming SMS synchronized from connected phones.
Use it to build an inbox, poll for replies or recover messages after a webhook interruption.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
sIdentifiantPhone |
string | Facoltativo | Filter by the phone that received the SMS. |
after_timestamp_unix |
Unix seconds | Facoltativo | Return messages received after this timestamp. |
onlyunread |
yes | Facoltativo | Return only messages not marked as read in API state. |
Request example
curl "https://api.smsmobileapi.com/getsms/?apikey=YOUR_API_KEY&onlyunread=yes"
Example response
{
"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
https://api.smsmobileapi.com/getsms/set-read/Marks one received message as read in SMSMobileAPI API state.
Use this after your application has processed an incoming message.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
guid_message |
string | Required | GUID of the received SMS. |
Request example
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 ↑- This does not change the read state inside the phone messaging application.
POST · GET
Update a received SMS alias
https://api.smsmobileapi.com/getsms/update/Adds, changes or clears the alias associated with a received SMS.
Use aliases to attach a contact name or application label to a message.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
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 "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
https://api.smsmobileapi.com/deletesms/Deletes SMS records from the SMSMobileAPI server log.
Use it for retention workflows or removal of a specific logged message.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
guid_message |
string | Facoltativo | Delete one message by GUID. |
date_start |
YYYY-MM-DD | Facoltativo | Delete records from this date. |
date_end |
YYYY-MM-DD | Facoltativo | With date_start, limits the deletion range. |
Request example
curl "https://api.smsmobileapi.com/deletesms/?apikey=YOUR_API_KEY&guid_message=MESSAGE_GUID"
Example response
{
"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 ↑- 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
https://api.smsmobileapi.com/conversation/sms/list/Groups incoming and outgoing messages into conversations by phone number.
Use it for chat views, recent conversation widgets and support timelines.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
origineConversation |
received | sent | Required | Dataset used to identify the starting conversations. |
numero |
phone | Facoltativo | Return one phone-number conversation. |
date_from |
date or datetime | Facoltativo | Start of the message range. |
date_to |
date or datetime | Facoltativo | End of the message range. |
sort |
ASC | DESC | Facoltativo | Conversation order; default DESC. |
limit |
integer | Facoltativo | Conversation limit when numero is omitted; default 20. |
resume |
0 | 1 | Facoltativo | Set to 1 to return only the latest messages per conversation. |
resume_line_how |
integer | Facoltativo | Number of messages per conversation when resume=1. |
Request example
curl "https://api.smsmobileapi.com/conversation/sms/list/?apikey=YOUR_API_KEY&origineConversation=received&resume=1&resume_line_how=3"
Example response
{
"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
https://api.smsmobileapi.com/gateway/mobile/list/Lists phones connected to the SMS gateway account.
Use it to select a sender, display device status or audit a gateway fleet.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
sid |
string | Facoltativo | Return one exact mobile SID. |
search |
string | Facoltativo | Search SID, date, battery, version, label and related fields. |
Request example
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
https://api.smsmobileapi.com/gateway/mobile/update/Updates the human-readable label or phone number of a connected device.
Use it to keep device labels meaningful in multi-phone installations.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
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 | Facoltativo | New phone-number metadata. |
Request example
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
https://api.smsmobileapi.com/gateway/mobile/delete/Removes a connected mobile and its gateway history rows.
Use only when a phone must be permanently removed from the account.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Required | Your account API key. |
sid |
string | Required | SID of the device to remove. |
Request example
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 ↑- This operation removes device history associated with the SID. Confirm the device before calling it.
INBOUND POST
Receive SMS by webhook
Your HTTPS endpointSMSMobileAPI sends a JSON request to your configured URL whenever an SMS is received.
Use webhooks for real-time processing instead of frequent polling.
Receiver example
<?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
{
"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"
}
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.
- Configure the public HTTPS URL in Dashboard → Webhook Settings.
- Return HTTP 200 quickly and process the event asynchronously.
- Deduplicate retries using guid.
POST · GET
Eliminare la cronologia degli SMS inviati tramite API
https://api.smsmobileapi.com/delete-history-sms-api/Cancella i record di server di SMS inviati tramite API. Non ricorda un messaggio già raccolto da un telefono.
Usa prima l'anteprima, controlla i conti, quindi richiedi esplicitamente la cancellazione. Questo cancella l'intera cronologia selezionata per la chiave API, senza data, telefono o filtri di messaggio.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Facoltativo | Richiesto senza OAuth2. Con OAuth2, seleziona in modo facoltativo una chiave API appartenente allo stesso account. |
action |
preview | delete | status | Facoltativo | preview conta senza eliminare; delete avvia o prosegue l’eliminazione; status consulta l’avanzamento senza proseguire. L’API usa delete come valore predefinito; questo strumento usa preview. |
include_linked |
0 | 1 | Facoltativo | Default 0: mantenere i record di connessione o di elaborazione. Impostare 1 per includerli, con il rischio di rompere le integrazioni. Mantenere questo valore invariato quando si continua a una cancellazione. |
request_id |
string | Facoltativo | Obbligatorio per delete e status, facoltativo per preview. Usare da 16 a 128 lettere ASCII, cifre, trattini (-) o trattini bassi (_). Generare un ID univoco per ogni nuova eliminazione e conservarlo per tutti i tentativi. Non è l’ID di un messaggio né una chiave API. |
Request example
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-api/" \
--data-urlencode "apikey=YOUR_API_KEY" \
-d "action=preview" -d "include_linked=0"
Esempi di cancellazione e stato
Sostituire il campione request_id con il proprio valore unico prima di iniziare. Le seguenti richieste di cancellazione cambiano la cronologia del conto reale; non sono anteprime.
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"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"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
{
"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 ↑- L'esempio sopra è un'anteprima, non una cancellazione. I conti sono illustrativi; la selezione definitiva è fissata quando la cancellazione inizia.
- include_linked=1 può interrompere GHL, Zapier, automazione, unsubscribe link o il monitoraggio della consegna. Non bypassa mai la proprietà dell'account o i controlli di integrità di archiviazione.
POST · GET
Eliminare la cronologia degli SMS inviati dal cellulare
https://api.smsmobileapi.com/delete-history-sms-mobile/Cancella i record sincronizzati di SMS inviati da dispositivi mobili, non i messaggi memorizzati sui telefoni.
Usa prima l'anteprima, controlla i conti, quindi richiedi esplicitamente la cancellazione. Questo cancella l'intera cronologia selezionata per la chiave API, senza data, telefono o filtri di messaggio.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Facoltativo | Richiesto senza OAuth2. Con OAuth2, seleziona in modo facoltativo una chiave API appartenente allo stesso account. |
action |
preview | delete | status | Facoltativo | preview conta senza eliminare; delete avvia o prosegue l’eliminazione; status consulta l’avanzamento senza proseguire. L’API usa delete come valore predefinito; questo strumento usa preview. |
include_linked |
0 | 1 | Facoltativo | Default 0: mantenere i record di connessione o di elaborazione. Impostare 1 per includerli, con il rischio di rompere le integrazioni. Mantenere questo valore invariato quando si continua a una cancellazione. |
request_id |
string | Facoltativo | Obbligatorio per delete e status, facoltativo per preview. Usare da 16 a 128 lettere ASCII, cifre, trattini (-) o trattini bassi (_). Generare un ID univoco per ogni nuova eliminazione e conservarlo per tutti i tentativi. Non è l’ID di un messaggio né una chiave API. |
Request example
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-mobile/" \
--data-urlencode "apikey=YOUR_API_KEY" \
-d "action=preview" -d "include_linked=0"
Esempi di cancellazione e stato
Sostituire il campione request_id con il proprio valore unico prima di iniziare. Le seguenti richieste di cancellazione cambiano la cronologia del conto reale; non sono anteprime.
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"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"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
{
"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 ↑- L'esempio sopra è un'anteprima, non una cancellazione. I conti sono illustrativi; la selezione definitiva è fissata quando la cancellazione inizia.
- include_linked=1 può interrompere GHL, Zapier, automazione, unsubscribe link o il monitoraggio della consegna. Non bypassa mai la proprietà dell'account o i controlli di integrità di archiviazione.
POST · GET
Eliminare la cronologia degli SMS ricevuti
https://api.smsmobileapi.com/delete-history-sms-received/Cancella i record di server di SMS in arrivo. I record di integrazione e automazione sono protetti per impostazione predefinita.
Usa prima l'anteprima, controlla i conti, quindi richiedi esplicitamente la cancellazione. Questo cancella l'intera cronologia selezionata per la chiave API, senza data, telefono o filtri di messaggio.
Parameters
| Nome | Type | Requirement | Description |
|---|---|---|---|
apikey |
string | Facoltativo | Richiesto senza OAuth2. Con OAuth2, seleziona in modo facoltativo una chiave API appartenente allo stesso account. |
action |
preview | delete | status | Facoltativo | preview conta senza eliminare; delete avvia o prosegue l’eliminazione; status consulta l’avanzamento senza proseguire. L’API usa delete come valore predefinito; questo strumento usa preview. |
include_linked |
0 | 1 | Facoltativo | Default 0: mantenere i record di connessione o di elaborazione. Impostare 1 per includerli, con il rischio di rompere le integrazioni. Mantenere questo valore invariato quando si continua a una cancellazione. |
request_id |
string | Facoltativo | Obbligatorio per delete e status, facoltativo per preview. Usare da 16 a 128 lettere ASCII, cifre, trattini (-) o trattini bassi (_). Generare un ID univoco per ogni nuova eliminazione e conservarlo per tutti i tentativi. Non è l’ID di un messaggio né una chiave API. |
Request example
curl -X POST "https://api.smsmobileapi.com/delete-history-sms-received/" \
--data-urlencode "apikey=YOUR_API_KEY" \
-d "action=preview" -d "include_linked=0"
Esempi di cancellazione e stato
Sostituire il campione request_id con il proprio valore unico prima di iniziare. Le seguenti richieste di cancellazione cambiano la cronologia del conto reale; non sono anteprime.
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"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"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
{
"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 ↑- L'esempio sopra è un'anteprima, non una cancellazione. I conti sono illustrativi; la selezione definitiva è fissata quando la cancellazione inizia.
- include_linked=1 può interrompere GHL, Zapier, automazione, unsubscribe link o il monitoraggio della consegna. Non bypassa mai la proprietà dell'account o i controlli di integrità di archiviazione.
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.
| HTTP | Code | What to do |
|---|---|---|
| 400 | missing_parameter | A required parameter is empty or absent. Check the parameter table for the endpoint. |
| 403 | invalid_apikey | The API key is unknown, expired or not authorized for the requested feature. |
| 429 | too_many_requests | Requests are arriving too quickly. Wait, then retry with exponential backoff. |
| 500 | server_error | The service could not complete the request. Keep the response and contact support if it persists. |
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.
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.
- 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


