Report IPv4
curl --request POST \
--url https://app.onefirewall.com/api/v1/ips \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"confidence": 123,
"source": "<string>",
"notes": "<string>",
"decision": -1,
"ttl": 123
}
'import requests
url = "https://app.onefirewall.com/api/v1/ips"
payload = {
"ip": "<string>",
"confidence": 123,
"source": "<string>",
"notes": "<string>",
"decision": -1,
"ttl": 123
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ip: '<string>',
confidence: 123,
source: '<string>',
notes: '<string>',
decision: -1,
ttl: 123
})
};
fetch('https://app.onefirewall.com/api/v1/ips', 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/ips",
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([
'ip' => '<string>',
'confidence' => 123,
'source' => '<string>',
'notes' => '<string>',
'decision' => -1,
'ttl' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/ips"
payload := strings.NewReader("{\n \"ip\": \"<string>\",\n \"confidence\": 123,\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"decision\": -1,\n \"ttl\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/ips")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ip\": \"<string>\",\n \"confidence\": 123,\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"decision\": -1,\n \"ttl\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/ips")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ip\": \"<string>\",\n \"confidence\": 123,\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"decision\": -1,\n \"ttl\": 123\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.This response has no body data.IPv4 Feeds
Report IPv4
Post information about threat intelligence in relation to a IPv4
POST
/
ips
Report IPv4
curl --request POST \
--url https://app.onefirewall.com/api/v1/ips \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"confidence": 123,
"source": "<string>",
"notes": "<string>",
"decision": -1,
"ttl": 123
}
'import requests
url = "https://app.onefirewall.com/api/v1/ips"
payload = {
"ip": "<string>",
"confidence": 123,
"source": "<string>",
"notes": "<string>",
"decision": -1,
"ttl": 123
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ip: '<string>',
confidence: 123,
source: '<string>',
notes: '<string>',
decision: -1,
ttl: 123
})
};
fetch('https://app.onefirewall.com/api/v1/ips', 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/ips",
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([
'ip' => '<string>',
'confidence' => 123,
'source' => '<string>',
'notes' => '<string>',
'decision' => -1,
'ttl' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/ips"
payload := strings.NewReader("{\n \"ip\": \"<string>\",\n \"confidence\": 123,\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"decision\": -1,\n \"ttl\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/ips")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ip\": \"<string>\",\n \"confidence\": 123,\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"decision\": -1,\n \"ttl\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/ips")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ip\": \"<string>\",\n \"confidence\": 123,\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"decision\": -1,\n \"ttl\": 123\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.This response has no body data.Updated API documentation with live interaction is now available in the product dashboard under API Docs.
Authorizations
Authorization Token
Body
application/json
An IPv4 format for single IP or Network
A confidence value 0.0 to 1.0. A percentace of confidence on the the actor being malicious
The source from where the actor was identified
Notes associated to the actor
-1==no decision (default), 0==whitelist, 1==Block
Required range:
-2 < x < 2Until when the decision is valid (Timestamp in the future)
Response
⌘I

