Aller au contenu

Graphe de détention et de mandats de plusieurs sociétés en un appel, par SIREN

POST
/v1/rpc/tools/get_company_graphs
Fenêtre de terminal
curl -X POST "https://api.insourcia.io/v1/rpc/tools/get_company_graphs" \
-H "Authorization: Bearer isk_VOTRE_CLE" \
-H "Content-Type: application/json" \
-d '{
"sirens": [
"string"
]
}'

Graphe de détention et de mandats de plusieurs sociétés en un appel, par SIREN. 3 sociétés à depth=1 (défaut du lot), 2 à depth=2. Une traversée à froid coûte 3 à 5 secondes par société et ne se parallélise pas : mesure, 3 graphes à depth=1 répondent en 11 s, 5 en 16 s.

object
sirens
obligatoire

SIREN a 9 chiffres. 3 maximum à depth=1, 2 à depth=2

Array<string>
>= 1 items <= 3 items
depth

1 (défaut du lot) ou 2. À depth=2, 2 sociétés maximum

number
include_personnes

Inclure les personnes physiques (défaut true)

boolean
include_sci

Inclure les SCI (défaut true)

boolean
max_nodes

Plafond de nœuds par graphe (défaut 100, max 150)

number

Successful tool invocation

object
success
obligatoire
boolean
data
obligatoire

Tool-specific response payload.

Invalid input (Zod validation failure)

object
success
obligatoire
boolean
error
obligatoire
string
details

Validation issues (only present on 400 from Zod schema parse).

Array<object>
object

Missing or invalid API key

Balance below the call’s maximum cost (insufficient_credits) or the organisation’s spend cap reached (spend_cap_reached). Nothing is debited.

Refused for this account. Nothing is debited.

Unknown tool name or resource not found

Internal error