Graphe de détention et de mandats de plusieurs sociétés en un appel, par SIREN
POST /v1/rpc/tools/get_company_graphs
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" ]}'import requests
r = requests.post( "https://api.insourcia.io/v1/rpc/tools/get_company_graphs", headers={"Authorization": "Bearer isk_VOTRE_CLE"}, json={ "sirens": [ "string" ] },)print(r.json())const r = await fetch("https://api.insourcia.io/v1/rpc/tools/get_company_graphs", { method: "POST", headers: { Authorization: "Bearer isk_VOTRE_CLE", "Content-Type": "application/json", }, body: JSON.stringify({ "sirens": [ "string" ] }),});console.log(await r.json());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.
Autorisations
Section intitulée « Autorisations »Corps de la requête required
Section intitulée « Corps de la requête required »object
SIREN a 9 chiffres. 3 maximum à depth=1, 2 à depth=2
1 (défaut du lot) ou 2. À depth=2, 2 sociétés maximum
Inclure les personnes physiques (défaut true)
Inclure les SCI (défaut true)
Plafond de nœuds par graphe (défaut 100, max 150)
Réponses
Section intitulée « Réponses »Successful tool invocation
object
Tool-specific response payload.
Invalid input (Zod validation failure)
object
Validation issues (only present on 400 from Zod schema parse).
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