Skip to content

IAV-256/feat: bulk UserIntegration lookup by UIDs + first AgentIntegration by UserIntegration

salaheddine zidani a demandé de fusionner feature/IAV-256 vers develop

feat(integrations): add bulk user integration lookup and deterministic first-agent-integration retrieval

Adds two new read endpoints:

  • Bulk fetchGET /user-integrations/by-uids?uids=... to retrieve multiple user integrations in a single call instead of N individual requests.
  • First by user integrationGET /agent-integrations/user-integration/{uid}/first to get the primary agent integration linked to a user integration. Selection is deterministic via ORDER BY createdAt ASC, replacing the previous arbitrary get(0) pattern.

Both endpoints follow the existing enrichment pattern (credential info + secondary credentials). No schema changes, no breaking changes.

Related Issues

IAV-256

Rapports de requête de fusion