Aller au contenu

Score de risque crédit de plusieurs sociétés en un appel, par SIREN (10 maximum)

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

Score de risque crédit de plusieurs sociétés en un appel, par SIREN (10 maximum). Même contenu que get_credit_risk pour chaque société : grade AAA à D, probabilité de défaut du grade à 3/6/12 mois, facteurs, date du score.

object
sirens
obligatoire

SIREN a 9 chiffres, 10 maximum par appel

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

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.

Subscribers only (subscription_required). Nothing is debited.

Unknown tool name or resource not found

Internal error