curl --request POST \
--url https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_id": "<string>",
"filters": [],
"body": "<string>",
"device": "<string>",
"cursor": "<string>"
}
'import requests
url = "https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail"
payload = {
"app_id": "<string>",
"filters": [],
"body": "<string>",
"device": "<string>",
"cursor": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
app_id: '<string>',
filters: [],
body: JSON.stringify('<string>'),
device: '<string>',
cursor: '<string>'
})
};
fetch('https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail', 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://api.apsio.io/v1/projects/{projectId}/explore/logs/tail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'app_id' => '<string>',
'filters' => [
],
'body' => '<string>',
'device' => '<string>',
'cursor' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail"
payload := strings.NewReader("{\n \"app_id\": \"<string>\",\n \"filters\": [],\n \"body\": \"<string>\",\n \"device\": \"<string>\",\n \"cursor\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"app_id\": \"<string>\",\n \"filters\": [],\n \"body\": \"<string>\",\n \"device\": \"<string>\",\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"app_id\": \"<string>\",\n \"filters\": [],\n \"body\": \"<string>\",\n \"device\": \"<string>\",\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"lines": [
{
"id": "<string>",
"app_id": "<string>",
"ts": "2026-10-04T10:15:00.431000000Z",
"event_name": "<string>",
"severity_number": 123,
"severity_text": "<string>",
"body": "<string>",
"session_id": "<string>",
"trace_id": "<string>",
"span_id": "<string>",
"release": "<string>",
"logger": "<string>",
"device_model": "<string>",
"installation_id": "<string>",
"os_name": "<string>",
"os_version": "<string>",
"attributes": {},
"resource": {}
}
],
"next_cursor": "<string>",
"more": true,
"resent": true,
"devices": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}Tail the log records as they arrive
The project’s newest log records matching the same structured query as Explore › Logs (without a time range), oldest first, at most 200 an answer. Poll it about every 2 s with the answer’s next_cursor; when more is true, poll again at once. Without a cursor it returns the last 200 lines of the last 5 minutes. It reads stored records, so a line shows once ingest has stored it (a few to about 30 seconds) and at least 5 s after; a line received more than 1 hour before it is stored (an ingest backlog) is not tailed. A line stored late, behind the cursor, comes in a later answer with resent true, which also sends again the lines of the last 120 s behind the cursor: drop the ids already shown. At most 40 polls a minute per project and caller, apart from Explore’s limit; past it, a 429 with a short Retry-After.
curl --request POST \
--url https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_id": "<string>",
"filters": [],
"body": "<string>",
"device": "<string>",
"cursor": "<string>"
}
'import requests
url = "https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail"
payload = {
"app_id": "<string>",
"filters": [],
"body": "<string>",
"device": "<string>",
"cursor": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
app_id: '<string>',
filters: [],
body: JSON.stringify('<string>'),
device: '<string>',
cursor: '<string>'
})
};
fetch('https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail', 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://api.apsio.io/v1/projects/{projectId}/explore/logs/tail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'app_id' => '<string>',
'filters' => [
],
'body' => '<string>',
'device' => '<string>',
'cursor' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail"
payload := strings.NewReader("{\n \"app_id\": \"<string>\",\n \"filters\": [],\n \"body\": \"<string>\",\n \"device\": \"<string>\",\n \"cursor\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"app_id\": \"<string>\",\n \"filters\": [],\n \"body\": \"<string>\",\n \"device\": \"<string>\",\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/projects/{projectId}/explore/logs/tail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"app_id\": \"<string>\",\n \"filters\": [],\n \"body\": \"<string>\",\n \"device\": \"<string>\",\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"lines": [
{
"id": "<string>",
"app_id": "<string>",
"ts": "2026-10-04T10:15:00.431000000Z",
"event_name": "<string>",
"severity_number": 123,
"severity_text": "<string>",
"body": "<string>",
"session_id": "<string>",
"trace_id": "<string>",
"span_id": "<string>",
"release": "<string>",
"logger": "<string>",
"device_model": "<string>",
"installation_id": "<string>",
"os_name": "<string>",
"os_version": "<string>",
"attributes": {},
"resource": {}
}
],
"next_cursor": "<string>",
"more": true,
"resent": true,
"devices": 123
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"subject": "organization"
}
}Authorizations
Path Parameters
Body
Response
The new lines.