curl -X POST 'https://app.onefirewall.com/api/v1/feedback/logs?agid=OFA-AGENT-7f3k9QxL2mN4pR8s' \
-H "Authorization: Bearer $OFA_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary '[{"level":"error","event":"sync_failed","message":"Firewall not reachable: connection timed out","ts":1795420800}]'import requests
url = "https://app.onefirewall.com/api/v1/feedback/logs"
payload = [
{
"level": "error",
"event": "sync_failed",
"message": "Firewall not reachable: connection timed out",
"ts": 1795420800
}
]
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([
{
level: 'error',
event: 'sync_failed',
message: 'Firewall not reachable: connection timed out',
ts: 1795420800
}
])
};
fetch('https://app.onefirewall.com/api/v1/feedback/logs', 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://app.onefirewall.com/api/v1/feedback/logs",
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([
[
'level' => 'error',
'event' => 'sync_failed',
'message' => 'Firewall not reachable: connection timed out',
'ts' => 1795420800
]
]),
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://app.onefirewall.com/api/v1/feedback/logs"
payload := strings.NewReader("[\n {\n \"level\": \"error\",\n \"event\": \"sync_failed\",\n \"message\": \"Firewall not reachable: connection timed out\",\n \"ts\": 1795420800\n }\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://app.onefirewall.com/api/v1/feedback/logs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"level\": \"error\",\n \"event\": \"sync_failed\",\n \"message\": \"Firewall not reachable: connection timed out\",\n \"ts\": 1795420800\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/feedback/logs")
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 {\n \"level\": \"error\",\n \"event\": \"sync_failed\",\n \"message\": \"Firewall not reachable: connection timed out\",\n \"ts\": 1795420800\n }\n]"
response = http.request(request)
puts response.read_body{
"stored": 1
}<string><string><string><string><string><string><string><string>Send connector logs
Adds troubleshooting logs or events to a connector of the organization. They are shown in Connector Status. The body is one entry, or an array of up to 100. An entry that is not valid refuses the whole request (400), and nothing is stored.
The newest 100 entries of each connector are kept, for up to 30 days. Up to 120 requests every 10 minutes for each connector. Do not send passwords or tokens.
Roles: Super Admin (0), Member (1), Member Admin (10), Member Mobile (20).
curl -X POST 'https://app.onefirewall.com/api/v1/feedback/logs?agid=OFA-AGENT-7f3k9QxL2mN4pR8s' \
-H "Authorization: Bearer $OFA_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary '[{"level":"error","event":"sync_failed","message":"Firewall not reachable: connection timed out","ts":1795420800}]'import requests
url = "https://app.onefirewall.com/api/v1/feedback/logs"
payload = [
{
"level": "error",
"event": "sync_failed",
"message": "Firewall not reachable: connection timed out",
"ts": 1795420800
}
]
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([
{
level: 'error',
event: 'sync_failed',
message: 'Firewall not reachable: connection timed out',
ts: 1795420800
}
])
};
fetch('https://app.onefirewall.com/api/v1/feedback/logs', 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://app.onefirewall.com/api/v1/feedback/logs",
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([
[
'level' => 'error',
'event' => 'sync_failed',
'message' => 'Firewall not reachable: connection timed out',
'ts' => 1795420800
]
]),
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://app.onefirewall.com/api/v1/feedback/logs"
payload := strings.NewReader("[\n {\n \"level\": \"error\",\n \"event\": \"sync_failed\",\n \"message\": \"Firewall not reachable: connection timed out\",\n \"ts\": 1795420800\n }\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://app.onefirewall.com/api/v1/feedback/logs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"level\": \"error\",\n \"event\": \"sync_failed\",\n \"message\": \"Firewall not reachable: connection timed out\",\n \"ts\": 1795420800\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/feedback/logs")
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 {\n \"level\": \"error\",\n \"event\": \"sync_failed\",\n \"message\": \"Firewall not reachable: connection timed out\",\n \"ts\": 1795420800\n }\n]"
response = http.request(request)
puts response.read_body{
"stored": 1
}<string><string><string><string><string><string><string><string>Authorizations
API token (ofa_..., opaque, stored only as a keyed hash, revocable one by one) or legacy JWT signed (HS256) with a per-user server-side secret, revocable per user. JWT handling follows RFC8725 (JWT best current practices): algorithm pinned by the server, no none, claims checked against the live user record. See the API description for the compatibility forms (Basic, query parameter).

