Skip to main content

Backend Integration

Vaultkit isn’t just for user-facing applications. You can also use it for:
  • Internal agents (backend services that act on behalf of users)
  • Scheduled jobs (automated tasks that need to call external APIs)
  • Multi-tenant systems (per-user vault provisioning on the server)
The key difference from user-facing flows is that there’s no UI component layer—you’re managing vaults and connections directly.

Pre-configured vaults (simplest)

If you have a static vault already set up in the Vaultkit dashboard, you can connect directly without any UI. For an introduction to vaults and how they work, see Core Concepts.

Dynamic vault provisioning (per-user)

For multi-tenant systems where each user gets their own vault, use feature mappings:
The first time a user connects, Vaultkit creates a vault from the feature mapping. Subsequent calls reuse the existing vault.

Restricting providers and scopes

You can further limit which providers or permissions a vault has:
This is useful for:
  • Least privilege: Only enable the providers a job actually needs
  • Customer restrictions: Limit what an agent can do for a particular user
  • Testing: Create isolated vaults with limited permissions

Example: Scheduled email automation

Error handling

Backend flows should handle disconnections and retries:

Logging and observability

For backend services, enable detailed logging:

No UI components needed

Backend flows don’t use FeatureSelect, AuthComponent, or VaultkitProvider. Manage everything programmatically with createVaultkitClient directly. For more configuration options, see SDK Configuration.