Aller au contenu

Fiches de plusieurs sociétés françaises en un appel, par SIREN (10 maximum)

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

Fiches de plusieurs sociétés françaises en un appel, par SIREN (10 maximum). Même contenu que get_company pour chaque société. Coût identique à des appels un par un : en crédits, 1 par société servie (presse incluse), société relue sous 30 jours : 0 crédit.

object
sirens
obligatoire

SIREN a 9 chiffres, 10 maximum par appel

Array<string>
>= 1 items <= 10 items
include_fields

Champs root/financiers supplémentaires à injecter dans chaque fiche, mêmes noms que sur search_companies et get_company. 5 champs au plus, tous plans. Un nom inconnu est ignoré et listé dans include_fields_unknown.

Array<string>
inclure_estimation

En crédits : true ajoute l’estimation CA/EBE (abonnements, 5).

boolean

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