Získat přijaté zprávy podle data
curl --request GET \
--url https://rest-api.smsmngr.com/v1/inbox \
--header 'x-api-key: <api-key>'import requests
url = "https://rest-api.smsmngr.com/v1/inbox"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://rest-api.smsmngr.com/v1/inbox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest-api.smsmngr.com/v1/inbox",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rest-api.smsmngr.com/v1/inbox"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rest-api.smsmngr.com/v1/inbox")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest-api.smsmngr.com/v1/inbox")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"inbox": [
{
"ts_received": "2026-07-30T11:22:33Z",
"body": "STOP",
"from": "420777123456",
"to": "Mojefirma",
"gateway": "sms",
"payload": null,
"original": null,
"media": null
},
{
"ts_received": "2026-07-30T11:25:02Z",
"body": "YES",
"from": "420777654321",
"to": "Mojefirma",
"gateway": "sms",
"payload": {
"order_id": 42
},
"original": {
"message_id": "01J8ZQ2V9K",
"body": "Confirm your order by replying YES.",
"sender": "Mojefirma",
"created": 1785410553
},
"media": null
},
{
"ts_received": "2026-07-30T12:34:56Z",
"body": "photo of the damaged package",
"from": "420777123456",
"to": "420736352552",
"gateway": "whatsapp",
"payload": null,
"original": null,
"media": {
"type": "image",
"url": "https://smsmngr-inbound-media.s3.eu-central-1.amazonaws.com/3f7a1c9b2e4d5f60718293a4b5c6d7e8.jpg",
"mime_type": "image/jpeg",
"caption": "photo of the damaged package",
"size": 245731,
"provider_id": "1234567890123456"
}
}
]
}{
"message": "Missing 'date' or 'xapikey' in request data"
}{
"message": "<string>"
}Přijaté zprávy
Získat přijaté zprávy podle data
Vrací příchozí (přijaté) zprávy pro zadané datum.
GET
/
inbox
Získat přijaté zprávy podle data
curl --request GET \
--url https://rest-api.smsmngr.com/v1/inbox \
--header 'x-api-key: <api-key>'import requests
url = "https://rest-api.smsmngr.com/v1/inbox"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://rest-api.smsmngr.com/v1/inbox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest-api.smsmngr.com/v1/inbox",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rest-api.smsmngr.com/v1/inbox"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rest-api.smsmngr.com/v1/inbox")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest-api.smsmngr.com/v1/inbox")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"inbox": [
{
"ts_received": "2026-07-30T11:22:33Z",
"body": "STOP",
"from": "420777123456",
"to": "Mojefirma",
"gateway": "sms",
"payload": null,
"original": null,
"media": null
},
{
"ts_received": "2026-07-30T11:25:02Z",
"body": "YES",
"from": "420777654321",
"to": "Mojefirma",
"gateway": "sms",
"payload": {
"order_id": 42
},
"original": {
"message_id": "01J8ZQ2V9K",
"body": "Confirm your order by replying YES.",
"sender": "Mojefirma",
"created": 1785410553
},
"media": null
},
{
"ts_received": "2026-07-30T12:34:56Z",
"body": "photo of the damaged package",
"from": "420777123456",
"to": "420736352552",
"gateway": "whatsapp",
"payload": null,
"original": null,
"media": {
"type": "image",
"url": "https://smsmngr-inbound-media.s3.eu-central-1.amazonaws.com/3f7a1c9b2e4d5f60718293a4b5c6d7e8.jpg",
"mime_type": "image/jpeg",
"caption": "photo of the damaged package",
"size": 245731,
"provider_id": "1234567890123456"
}
}
]
}{
"message": "Missing 'date' or 'xapikey' in request data"
}{
"message": "<string>"
}Was this page helpful?