curl --request GET \
--url https://app.blockgence.com/v1/audit \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.blockgence.com/v1/audit"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.blockgence.com/v1/audit', 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.blockgence.com/v1/audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.blockgence.com/v1/audit")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}Listar las auditorías de la organización
Devuelve las auditorías de smart contracts que ve su organización.
Respuesta. {demo, note, audits}. Cada auditoría trae:
id,project,repoycommit.level:automated(revisión automática),assisted(revisión asistida) oaudit(auditoría con revisión humana).run: estado de la ejecución, constate,stage,progressy, si falló,cause.stateesqueued,running,waiting_review,completed,partialofailed; en los dos últimos,causedescribe la falla de una etapa, no un riesgo del contrato.counts: hallazgos por severidad (critical,high,medium,low,infoygas) y, dentro de cada una, por grado de validación (G1 a G4).findings_totalyopen_critical_high(hallazgos críticos y altos sin corregir).leads: cantidad de pistas, es decir, hipótesis sin probar. Las pistas no llevan severidad y no entran encounts.cost_runs(costo de cada ejecución) yseal(nullo el estado del sello publicado).
Auditorías de ejemplo. La ejecución de auditorías estará disponible próximamente. Mientras tanto, la lista
incluye auditorías de ejemplo, con datos sintéticos, marcadas demo: true y con la aclaración en note: no son
auditorías reales. El demo de la lista es true solo si todas las filas son de ejemplo; cada fila indica el
suyo.
Acceso. Una auditoría real la ve solo su organización. Las de ejemplo las ve cualquier usuario autenticado.
Una clave de API de organización con permisos acotados necesita el permiso audit; sin él, la respuesta es
403 key_scope.
Errores. Con cuerpo {"error": …, "detail": …}. 503 audit_source_unavailable si no se pudieron leer los
datos: nunca se responde una lista vacía en su lugar.
Costo: sin cargo.
curl --request GET \
--url https://app.blockgence.com/v1/audit \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.blockgence.com/v1/audit"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.blockgence.com/v1/audit', 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.blockgence.com/v1/audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.blockgence.com/v1/audit")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}Autorizaciones
Encabezados
Respuesta
Respuesta correcta.