curl --request POST \
--url https://app.onefirewall.com/api/v1/poc_traffic/direct \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"src_ip": "<string>",
"dst_ip": "<string>",
"src_port": 32767,
"dst_port": 32767,
"service": "<string>",
"firewall": "<string>",
"action": "<string>",
"request_id": "<string>",
"details": "<string>",
"notes": "<string>",
"tags": [
"<string>"
],
"event_id": "<string>",
"test": true
}
'import requests
url = "https://app.onefirewall.com/api/v1/poc_traffic/direct"
payload = {
"src_ip": "<string>",
"dst_ip": "<string>",
"src_port": 32767,
"dst_port": 32767,
"service": "<string>",
"firewall": "<string>",
"action": "<string>",
"request_id": "<string>",
"details": "<string>",
"notes": "<string>",
"tags": ["<string>"],
"event_id": "<string>",
"test": True
}
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({
src_ip: '<string>',
dst_ip: '<string>',
src_port: 32767,
dst_port: 32767,
service: '<string>',
firewall: '<string>',
action: '<string>',
request_id: '<string>',
details: '<string>',
notes: '<string>',
tags: ['<string>'],
event_id: '<string>',
test: true
})
};
fetch('https://app.onefirewall.com/api/v1/poc_traffic/direct', 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/poc_traffic/direct",
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([
'src_ip' => '<string>',
'dst_ip' => '<string>',
'src_port' => 32767,
'dst_port' => 32767,
'service' => '<string>',
'firewall' => '<string>',
'action' => '<string>',
'request_id' => '<string>',
'details' => '<string>',
'notes' => '<string>',
'tags' => [
'<string>'
],
'event_id' => '<string>',
'test' => true
]),
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/poc_traffic/direct"
payload := strings.NewReader("{\n \"src_ip\": \"<string>\",\n \"dst_ip\": \"<string>\",\n \"src_port\": 32767,\n \"dst_port\": 32767,\n \"service\": \"<string>\",\n \"firewall\": \"<string>\",\n \"action\": \"<string>\",\n \"request_id\": \"<string>\",\n \"details\": \"<string>\",\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"event_id\": \"<string>\",\n \"test\": true\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/poc_traffic/direct")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"src_ip\": \"<string>\",\n \"dst_ip\": \"<string>\",\n \"src_port\": 32767,\n \"dst_port\": 32767,\n \"service\": \"<string>\",\n \"firewall\": \"<string>\",\n \"action\": \"<string>\",\n \"request_id\": \"<string>\",\n \"details\": \"<string>\",\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"event_id\": \"<string>\",\n \"test\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/poc_traffic/direct")
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 \"src_ip\": \"<string>\",\n \"dst_ip\": \"<string>\",\n \"src_port\": 32767,\n \"dst_port\": 32767,\n \"service\": \"<string>\",\n \"firewall\": \"<string>\",\n \"action\": \"<string>\",\n \"request_id\": \"<string>\",\n \"details\": \"<string>\",\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"event_id\": \"<string>\",\n \"test\": true\n}"
response = http.request(request)
puts response.read_body{
"src_ip": "<string>",
"dst_ip": "<string>",
"src_port": 32767,
"dst_port": 32767,
"service": "<string>",
"firewall": "<string>",
"action": "<string>",
"request_id": "<string>",
"details": "<string>",
"notes": "<string>",
"tags": [
"<string>"
],
"event_id": "<string>",
"test": true,
"ofa_exist": true,
"ofa_action": "allow",
"ofa_risk": "low",
"ofa": {}
}<string><string><string><string><string><string><string><string><string>Ingest traffic events (JSON)
One event: processed synchronously, the enriched event is returned (404 when both IPs are reserved). An array: queued (durable queue), at most 10 tags and 10 notes per event. Matching IPs above the organization’s score bands are reported to the Alliance when live-traffic contribution is enabled.
Roles: Super Admin (0), Member Admin (10).
curl --request POST \
--url https://app.onefirewall.com/api/v1/poc_traffic/direct \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"src_ip": "<string>",
"dst_ip": "<string>",
"src_port": 32767,
"dst_port": 32767,
"service": "<string>",
"firewall": "<string>",
"action": "<string>",
"request_id": "<string>",
"details": "<string>",
"notes": "<string>",
"tags": [
"<string>"
],
"event_id": "<string>",
"test": true
}
'import requests
url = "https://app.onefirewall.com/api/v1/poc_traffic/direct"
payload = {
"src_ip": "<string>",
"dst_ip": "<string>",
"src_port": 32767,
"dst_port": 32767,
"service": "<string>",
"firewall": "<string>",
"action": "<string>",
"request_id": "<string>",
"details": "<string>",
"notes": "<string>",
"tags": ["<string>"],
"event_id": "<string>",
"test": True
}
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({
src_ip: '<string>',
dst_ip: '<string>',
src_port: 32767,
dst_port: 32767,
service: '<string>',
firewall: '<string>',
action: '<string>',
request_id: '<string>',
details: '<string>',
notes: '<string>',
tags: ['<string>'],
event_id: '<string>',
test: true
})
};
fetch('https://app.onefirewall.com/api/v1/poc_traffic/direct', 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/poc_traffic/direct",
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([
'src_ip' => '<string>',
'dst_ip' => '<string>',
'src_port' => 32767,
'dst_port' => 32767,
'service' => '<string>',
'firewall' => '<string>',
'action' => '<string>',
'request_id' => '<string>',
'details' => '<string>',
'notes' => '<string>',
'tags' => [
'<string>'
],
'event_id' => '<string>',
'test' => true
]),
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/poc_traffic/direct"
payload := strings.NewReader("{\n \"src_ip\": \"<string>\",\n \"dst_ip\": \"<string>\",\n \"src_port\": 32767,\n \"dst_port\": 32767,\n \"service\": \"<string>\",\n \"firewall\": \"<string>\",\n \"action\": \"<string>\",\n \"request_id\": \"<string>\",\n \"details\": \"<string>\",\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"event_id\": \"<string>\",\n \"test\": true\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/poc_traffic/direct")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"src_ip\": \"<string>\",\n \"dst_ip\": \"<string>\",\n \"src_port\": 32767,\n \"dst_port\": 32767,\n \"service\": \"<string>\",\n \"firewall\": \"<string>\",\n \"action\": \"<string>\",\n \"request_id\": \"<string>\",\n \"details\": \"<string>\",\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"event_id\": \"<string>\",\n \"test\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/poc_traffic/direct")
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 \"src_ip\": \"<string>\",\n \"dst_ip\": \"<string>\",\n \"src_port\": 32767,\n \"dst_port\": 32767,\n \"service\": \"<string>\",\n \"firewall\": \"<string>\",\n \"action\": \"<string>\",\n \"request_id\": \"<string>\",\n \"details\": \"<string>\",\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"event_id\": \"<string>\",\n \"test\": true\n}"
response = http.request(request)
puts response.read_body{
"src_ip": "<string>",
"dst_ip": "<string>",
"src_port": 32767,
"dst_port": 32767,
"service": "<string>",
"firewall": "<string>",
"action": "<string>",
"request_id": "<string>",
"details": "<string>",
"notes": "<string>",
"tags": [
"<string>"
],
"event_id": "<string>",
"test": true,
"ofa_exist": true,
"ofa_action": "allow",
"ofa_risk": "low",
"ofa": {}
}<string><string><string><string><string><string><string><string><string>Authorizations
JWT signed (HS256) with a per-user server-side secret; revocable per user. Token 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).
Body
- object
- object[]
One firewall traffic event. Ports are integers; at most 10 tags and 10 notes.
Response
Event result, or {message: "queued", queued} for arrays.
- Option 1
- Option 2
One firewall traffic event. Ports are integers; at most 10 tags and 10 notes.

