Skip to main content
POST
Ingest traffic events (JSON)

Authorizations

Authorization
string
header
required

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

application/json

One firewall traffic event. Ports are integers; at most 10 tags and 10 notes.

src_ip
string
required
Maximum string length: 15
Pattern: ^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$
dst_ip
string
required
Maximum string length: 15
Pattern: ^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$
src_port
integer<int32>
Required range: 0 <= x <= 65535
dst_port
integer<int32>
Required range: 0 <= x <= 65535
service
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
firewall
string
Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
action
string
Maximum string length: 64
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
request_id
string

Tag used to group/retrieve events.

Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
details
string
Maximum string length: 4000
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
notes
string
Maximum string length: 4000
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
tags
string[]
Maximum array length: 10
Maximum string length: 64
Pattern: ^[A-Za-z0-9_.:\- ]+$
event_id
string

Client event id; the same id is stored once (idempotent).

Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
test
boolean

Test event: processed but not reported to the Alliance.

Response

Event result, or {message: "queued", queued} for arrays.

One firewall traffic event. Ports are integers; at most 10 tags and 10 notes.

src_ip
string
required
Maximum string length: 15
Pattern: ^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$
dst_ip
string
required
Maximum string length: 15
Pattern: ^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$
src_port
integer<int32>
Required range: 0 <= x <= 65535
dst_port
integer<int32>
Required range: 0 <= x <= 65535
service
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
firewall
string
Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
action
string
Maximum string length: 64
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
request_id
string

Tag used to group/retrieve events.

Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
details
string
Maximum string length: 4000
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
notes
string
Maximum string length: 4000
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
tags
string[]
Maximum array length: 10
Maximum string length: 64
Pattern: ^[A-Za-z0-9_.:\- ]+$
event_id
string

Client event id; the same id is stored once (idempotent).

Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
test
boolean

Test event: processed but not reported to the Alliance.

ofa_exist
boolean
ofa_action
enum<string>
Available options:
allow,
block
ofa_risk
enum<string>
Available options:
low,
medium,
high,
critical
ofa
object

Matching OneFirewall rule (score, live_score, ip_info...) when the IP is known.