curl --request POST \
--url https://api.eddy.engineer/v1/earthing.report \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"documents": {
"results": [
"<unknown>"
],
"risk": "<unknown>",
"soil": "<unknown>",
"survey": "<unknown>",
"system": "<unknown>",
"vectors": [
"<unknown>"
]
},
"test_plan": {
"current_probe_m": 123,
"fop_bearings_deg": [
123
],
"injection_current_a": 123,
"points": [
[
123
]
],
"return_electrode": [
123
],
"traverse": "<array>"
},
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<string>"
}
}
'import requests
url = "https://api.eddy.engineer/v1/earthing.report"
payload = {
"documents": {
"results": ["<unknown>"],
"risk": "<unknown>",
"soil": "<unknown>",
"survey": "<unknown>",
"system": "<unknown>",
"vectors": ["<unknown>"]
},
"test_plan": {
"current_probe_m": 123,
"fop_bearings_deg": [123],
"injection_current_a": 123,
"points": [[123]],
"return_electrode": [123],
"traverse": "<array>"
},
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<string>"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documents: {
results: ['<unknown>'],
risk: '<unknown>',
soil: '<unknown>',
survey: '<unknown>',
system: '<unknown>',
vectors: ['<unknown>']
},
test_plan: {
current_probe_m: 123,
fop_bearings_deg: [123],
injection_current_a: 123,
points: [[123]],
return_electrode: [123],
traverse: '<array>'
},
titles: {
checked_by: '<string>',
client: '<string>',
date: '<string>',
drawn_by: '<string>',
project: '<string>',
revision: '<string>'
}
})
};
fetch('https://api.eddy.engineer/v1/earthing.report', 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.eddy.engineer/v1/earthing.report",
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([
'documents' => [
'results' => [
'<unknown>'
],
'risk' => '<unknown>',
'soil' => '<unknown>',
'survey' => '<unknown>',
'system' => '<unknown>',
'vectors' => [
'<unknown>'
]
],
'test_plan' => [
'current_probe_m' => 123,
'fop_bearings_deg' => [
123
],
'injection_current_a' => 123,
'points' => [
[
123
]
],
'return_electrode' => [
123
],
'traverse' => '<array>'
],
'titles' => [
'checked_by' => '<string>',
'client' => '<string>',
'date' => '<string>',
'drawn_by' => '<string>',
'project' => '<string>',
'revision' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.eddy.engineer/v1/earthing.report"
payload := strings.NewReader("{\n \"documents\": {\n \"results\": [\n \"<unknown>\"\n ],\n \"risk\": \"<unknown>\",\n \"soil\": \"<unknown>\",\n \"survey\": \"<unknown>\",\n \"system\": \"<unknown>\",\n \"vectors\": [\n \"<unknown>\"\n ]\n },\n \"test_plan\": {\n \"current_probe_m\": 123,\n \"fop_bearings_deg\": [\n 123\n ],\n \"injection_current_a\": 123,\n \"points\": [\n [\n 123\n ]\n ],\n \"return_electrode\": [\n 123\n ],\n \"traverse\": \"<array>\"\n },\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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://api.eddy.engineer/v1/earthing.report")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"documents\": {\n \"results\": [\n \"<unknown>\"\n ],\n \"risk\": \"<unknown>\",\n \"soil\": \"<unknown>\",\n \"survey\": \"<unknown>\",\n \"system\": \"<unknown>\",\n \"vectors\": [\n \"<unknown>\"\n ]\n },\n \"test_plan\": {\n \"current_probe_m\": 123,\n \"fop_bearings_deg\": [\n 123\n ],\n \"injection_current_a\": 123,\n \"points\": [\n [\n 123\n ]\n ],\n \"return_electrode\": [\n 123\n ],\n \"traverse\": \"<array>\"\n },\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/earthing.report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documents\": {\n \"results\": [\n \"<unknown>\"\n ],\n \"risk\": \"<unknown>\",\n \"soil\": \"<unknown>\",\n \"survey\": \"<unknown>\",\n \"system\": \"<unknown>\",\n \"vectors\": [\n \"<unknown>\"\n ]\n },\n \"test_plan\": {\n \"current_probe_m\": 123,\n \"fop_bearings_deg\": [\n 123\n ],\n \"injection_current_a\": 123,\n \"points\": [\n [\n 123\n ]\n ],\n \"return_electrode\": [\n 123\n ],\n \"traverse\": \"<array>\"\n },\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}An earthing report: the soil report, the design report, the risk assessment or the commissioning test plan (`ss.earthing.report/1`), with HTML and PDF
Lays the earthing track’s documents out as one report of nine sections: summary; inputs (each setting marked default or as requested); method, with what it is cited to (a standard is named by its number only, never quoted); the value tables and data cited; the results as tables; the findings, with the documents’ own checks; what was not studied and why; the record (every document read, by key); and the references. soil: the traverses and readings, the fitted model, the fit’s quality and the inversion’s notes (equivalence, outliers, layer counts tried). design: the system, grid resistance and rise from each result beside its method, touch and step against their cited criteria, the fault current split, transferred potentials and the services crossing the hazard zones, the proposals. risk: the EG-0 method’s faults, places and contact scenarios, coincidence and fibrillation, individual risk against the cited targets, the ALARP table and the interpolation used. test_plan: fall-of-potential traverses with what the instrument should read and where the 61.8 % rule holds, a current-injection traverse, and touch and step check points at the safety assessment’s worst places, each with what the model predicts. Every table of a report ends with the references it stands on (publications by author, the engine’s methods, the documents by key, and a value table’s entries by table, key, standard and edition); a value from a customer’s value table is cited, never printed bare, and a paid table’s contents are never listed. Nothing is calculated except the test plan’s predictions, which are EG12’s: a cell is a member of a document at five significant figures in the unit the document holds it in. Deterministic: the same documents and titles give the same bytes, and verify_result on the answer’s key makes it again from the stored documents. Refused by name: EARTHING_REQUEST (400: the body, an unknown member, a key that is not b3: and 64 hex digits, titles that do not read or cannot be printed, a format that is not the route’s), EARTHING_DOCUMENT_NOT_FOUND (404: nothing stored under a key), EARTHING_DOCUMENT_INVALID (422: a document that does not read as what it is given as, or a key whose bytes are not that document’s canonical form), EARTHING_REPORT_INVALID (422: documents that do not belong together, a document twice, a report its documents cannot make, a test plan EG12 cannot make).
curl --request POST \
--url https://api.eddy.engineer/v1/earthing.report \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"documents": {
"results": [
"<unknown>"
],
"risk": "<unknown>",
"soil": "<unknown>",
"survey": "<unknown>",
"system": "<unknown>",
"vectors": [
"<unknown>"
]
},
"test_plan": {
"current_probe_m": 123,
"fop_bearings_deg": [
123
],
"injection_current_a": 123,
"points": [
[
123
]
],
"return_electrode": [
123
],
"traverse": "<array>"
},
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<string>"
}
}
'import requests
url = "https://api.eddy.engineer/v1/earthing.report"
payload = {
"documents": {
"results": ["<unknown>"],
"risk": "<unknown>",
"soil": "<unknown>",
"survey": "<unknown>",
"system": "<unknown>",
"vectors": ["<unknown>"]
},
"test_plan": {
"current_probe_m": 123,
"fop_bearings_deg": [123],
"injection_current_a": 123,
"points": [[123]],
"return_electrode": [123],
"traverse": "<array>"
},
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<string>"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documents: {
results: ['<unknown>'],
risk: '<unknown>',
soil: '<unknown>',
survey: '<unknown>',
system: '<unknown>',
vectors: ['<unknown>']
},
test_plan: {
current_probe_m: 123,
fop_bearings_deg: [123],
injection_current_a: 123,
points: [[123]],
return_electrode: [123],
traverse: '<array>'
},
titles: {
checked_by: '<string>',
client: '<string>',
date: '<string>',
drawn_by: '<string>',
project: '<string>',
revision: '<string>'
}
})
};
fetch('https://api.eddy.engineer/v1/earthing.report', 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.eddy.engineer/v1/earthing.report",
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([
'documents' => [
'results' => [
'<unknown>'
],
'risk' => '<unknown>',
'soil' => '<unknown>',
'survey' => '<unknown>',
'system' => '<unknown>',
'vectors' => [
'<unknown>'
]
],
'test_plan' => [
'current_probe_m' => 123,
'fop_bearings_deg' => [
123
],
'injection_current_a' => 123,
'points' => [
[
123
]
],
'return_electrode' => [
123
],
'traverse' => '<array>'
],
'titles' => [
'checked_by' => '<string>',
'client' => '<string>',
'date' => '<string>',
'drawn_by' => '<string>',
'project' => '<string>',
'revision' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.eddy.engineer/v1/earthing.report"
payload := strings.NewReader("{\n \"documents\": {\n \"results\": [\n \"<unknown>\"\n ],\n \"risk\": \"<unknown>\",\n \"soil\": \"<unknown>\",\n \"survey\": \"<unknown>\",\n \"system\": \"<unknown>\",\n \"vectors\": [\n \"<unknown>\"\n ]\n },\n \"test_plan\": {\n \"current_probe_m\": 123,\n \"fop_bearings_deg\": [\n 123\n ],\n \"injection_current_a\": 123,\n \"points\": [\n [\n 123\n ]\n ],\n \"return_electrode\": [\n 123\n ],\n \"traverse\": \"<array>\"\n },\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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://api.eddy.engineer/v1/earthing.report")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"documents\": {\n \"results\": [\n \"<unknown>\"\n ],\n \"risk\": \"<unknown>\",\n \"soil\": \"<unknown>\",\n \"survey\": \"<unknown>\",\n \"system\": \"<unknown>\",\n \"vectors\": [\n \"<unknown>\"\n ]\n },\n \"test_plan\": {\n \"current_probe_m\": 123,\n \"fop_bearings_deg\": [\n 123\n ],\n \"injection_current_a\": 123,\n \"points\": [\n [\n 123\n ]\n ],\n \"return_electrode\": [\n 123\n ],\n \"traverse\": \"<array>\"\n },\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/earthing.report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documents\": {\n \"results\": [\n \"<unknown>\"\n ],\n \"risk\": \"<unknown>\",\n \"soil\": \"<unknown>\",\n \"survey\": \"<unknown>\",\n \"system\": \"<unknown>\",\n \"vectors\": [\n \"<unknown>\"\n ]\n },\n \"test_plan\": {\n \"current_probe_m\": 123,\n \"fop_bearings_deg\": [\n 123\n ],\n \"injection_current_a\": 123,\n \"points\": [\n [\n 123\n ]\n ],\n \"return_electrode\": [\n 123\n ],\n \"traverse\": \"<array>\"\n },\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
kind (report), report, schema (ss.earthing.report/1), title, result_key (BLAKE3 of the report's canonical bytes), blob_uri, report_uri, request_key, documents (every document by key, inline ones as stored), titles, files (the HTML, the PDF and the document, each with name, title, kind, media_type, key, blob_uri, bytes), notes, and document: the report
The response is of type object.