Aller au contenu

Timeline d'événements de plusieurs sociétés en un appel, par SIREN (10 maximum)

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

Timeline d’événements de plusieurs sociétés en un appel, par SIREN (10 maximum). Rend les 20 événements les plus récents de chaque société, sans pagination, pour la même raison que get_directors_batch.

object
sirens
obligatoire

SIREN a 9 chiffres, 10 maximum par appel

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

Filtre sur le type d’événement, mêmes valeurs que get_events

string
date_min

Date minimum (ISO)

string
date_max

Date maximum (ISO)

string

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