Agregar al caso una víctima con evidencia o un destino de la estafa
curl --request POST \
--url https://app.blockgence.com/v1/cases/{token}/annotations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"chain": "<string>",
"address": "<string>",
"role": "<string>",
"source": {
"analysis": "<string>",
"subject": "<string>"
},
"evidence": [
{
"kind": "<string>",
"tx": "<string>"
}
],
"offramp_candidate": false,
"label": "<string>",
"summary": "<string>"
}
'import requests
url = "https://app.blockgence.com/v1/cases/{token}/annotations"
payload = {
"chain": "<string>",
"address": "<string>",
"role": "<string>",
"source": {
"analysis": "<string>",
"subject": "<string>"
},
"evidence": [
{
"kind": "<string>",
"tx": "<string>"
}
],
"offramp_candidate": False,
"label": "<string>",
"summary": "<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({
chain: '<string>',
address: '<string>',
role: '<string>',
source: {analysis: '<string>', subject: '<string>'},
evidence: [{kind: '<string>', tx: '<string>'}],
offramp_candidate: false,
label: '<string>',
summary: '<string>'
})
};
fetch('https://app.blockgence.com/v1/cases/{token}/annotations', 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/cases/{token}/annotations",
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([
'chain' => '<string>',
'address' => '<string>',
'role' => '<string>',
'source' => [
'analysis' => '<string>',
'subject' => '<string>'
],
'evidence' => [
[
'kind' => '<string>',
'tx' => '<string>'
]
],
'offramp_candidate' => false,
'label' => '<string>',
'summary' => '<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://app.blockgence.com/v1/cases/{token}/annotations"
payload := strings.NewReader("{\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"role\": \"<string>\",\n \"source\": {\n \"analysis\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"evidence\": [\n {\n \"kind\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ],\n \"offramp_candidate\": false,\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\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://app.blockgence.com/v1/cases/{token}/annotations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"role\": \"<string>\",\n \"source\": {\n \"analysis\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"evidence\": [\n {\n \"kind\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ],\n \"offramp_candidate\": false,\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/cases/{token}/annotations")
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 \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"role\": \"<string>\",\n \"source\": {\n \"analysis\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"evidence\": [\n {\n \"kind\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ],\n \"offramp_candidate\": false,\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n}"
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>"
}Cases
Agregar al caso una víctima con evidencia o un destino de la estafa
Agrega al caso una víctima con evidencia o un destino de la estafa. Pide poder editar el caso; no
cuesta créditos. Volver a agregar la misma address (mismo rol y análisis) la actualiza y conserva su added_at.
Costo: 0 créditos.
POST
/
v1
/
cases
/
{token}
/
annotations
Agregar al caso una víctima con evidencia o un destino de la estafa
curl --request POST \
--url https://app.blockgence.com/v1/cases/{token}/annotations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"chain": "<string>",
"address": "<string>",
"role": "<string>",
"source": {
"analysis": "<string>",
"subject": "<string>"
},
"evidence": [
{
"kind": "<string>",
"tx": "<string>"
}
],
"offramp_candidate": false,
"label": "<string>",
"summary": "<string>"
}
'import requests
url = "https://app.blockgence.com/v1/cases/{token}/annotations"
payload = {
"chain": "<string>",
"address": "<string>",
"role": "<string>",
"source": {
"analysis": "<string>",
"subject": "<string>"
},
"evidence": [
{
"kind": "<string>",
"tx": "<string>"
}
],
"offramp_candidate": False,
"label": "<string>",
"summary": "<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({
chain: '<string>',
address: '<string>',
role: '<string>',
source: {analysis: '<string>', subject: '<string>'},
evidence: [{kind: '<string>', tx: '<string>'}],
offramp_candidate: false,
label: '<string>',
summary: '<string>'
})
};
fetch('https://app.blockgence.com/v1/cases/{token}/annotations', 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/cases/{token}/annotations",
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([
'chain' => '<string>',
'address' => '<string>',
'role' => '<string>',
'source' => [
'analysis' => '<string>',
'subject' => '<string>'
],
'evidence' => [
[
'kind' => '<string>',
'tx' => '<string>'
]
],
'offramp_candidate' => false,
'label' => '<string>',
'summary' => '<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://app.blockgence.com/v1/cases/{token}/annotations"
payload := strings.NewReader("{\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"role\": \"<string>\",\n \"source\": {\n \"analysis\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"evidence\": [\n {\n \"kind\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ],\n \"offramp_candidate\": false,\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\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://app.blockgence.com/v1/cases/{token}/annotations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"role\": \"<string>\",\n \"source\": {\n \"analysis\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"evidence\": [\n {\n \"kind\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ],\n \"offramp_candidate\": false,\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/cases/{token}/annotations")
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 \"chain\": \"<string>\",\n \"address\": \"<string>\",\n \"role\": \"<string>\",\n \"source\": {\n \"analysis\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"evidence\": [\n {\n \"kind\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ],\n \"offramp_candidate\": false,\n \"label\": \"<string>\",\n \"summary\": \"<string>\"\n}"
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
APIKeyHeaderBearerAuth
Encabezados
Caso activo (opcional): el token de un caso que podés ver. La consulta queda en el registro de actividad de ese caso y resuelve también sus labels propias. Un caso que no existe, se borró o ya no está compartido con vos da 400 case_unavailable y la consulta no se hace (sin cobro).
Parámetros de ruta
Cuerpo
application/json
Respuesta
Successful Response