Skip to main content
Verslay
Connecting Your Stack: A Tour of Verslay's Integration Layer
IntegrationsEngineering

Connecting Your Stack: A Tour of Verslay's Integration Layer

S
Shubham Gupta·March 12, 2026·6 min read

Integrations are where AI agent platforms live or die. A language model that can only read your data is a research tool. One that can act on your data — send the email, create the deal, post the campaign, update the inventory — is a business tool.

Verslay connects to 1,500+ tools across two layers: OAuth and API-key services that agents can act through, and intelligence packages that agents use for ambient data. Here's a complete breakdown of both, plus the engineering decisions behind how we secure them.

Layer 1: OAuth Providers

These are the integrations where Verslay needs a live connection to your account to read and write on your behalf. We support official OAuth 2.0 sign-in for the core stack:

CRM & Sales

Email & Calendar

Social & Advertising

E-Commerce

Productivity & Finance

Each connection takes 15-30 seconds to complete. The OAuth dance happens entirely server-side — the authorization URL is generated by Verslay's API, you complete the provider's consent screen, and the callback exchanges the code for tokens before you ever see a result.

Layer 2: Intelligence Packages (7 always-on)

These packages don't require any connection setup. They're always available to agents that need ambient intelligence:

All 7 packages have free-tier fallbacks. If you provide API keys (optional) for the premium sources, you get higher rate limits and more accurate data — but the packages work without them.

The Token Security Model

Here's where the engineering gets interesting.

When you connect an OAuth provider, Verslay stores the access token and refresh token in an oauth_tokens table in our Supabase database. The critical detail: they're never stored in plaintext.

We use AES-256-GCM encryption with a per-encryption initialization vector. The stored format is:

iv:authTag:encryptedData

Each segment is base64-encoded. The encryption key is a 64-character hex string (TOKEN_ENCRYPTION_KEY) that lives only in our server-side environment — never exposed to the browser, never logged.

When an agent executes and needs to call, say, the Gmail API, the flow is:

  1. The MCP server receives the tool call (send_message)
  2. It decrypts the stored token using the TOKEN_ENCRYPTION_KEY
  3. It makes the API call to Gmail on your behalf
  4. It returns the result to the agent session

Your credentials never leave the Verslay MCP server. The agent session on your claude.ai instance sees only the tool result, not the raw token.

Why this matters for multi-tenant setups: The same encryption model applies to Shopify multi-shop scenarios. If you manage 3 Shopify stores, you have 3 distinct encrypted token records, each with a unique shop_domain. The Shopify tools in your agent session take an optional shop_domain parameter to target the right store.

Token Refresh

OAuth tokens expire. We handle refresh automatically:

This means most users never have to think about token expiry. The hub connections page shows token status — green for active, amber for expired — so you can proactively reconnect if needed.

The OAuth Proxy Architecture

We spent significant time on what we call the "generic handler" pattern.

Rather than writing a bespoke OAuth flow for each of the 13 providers, we built a single handler in apps/web/src/lib/oauth/oauth-handler.ts that reads from a provider configuration file. Each provider's config specifies:

Adding a new OAuth provider is a config entry, not a code change. The CSRF protection (timing-safe token comparison), the state parameter, and the callback validation are all centralized in the handler.

The same pattern applies on the MCP server side — a config-driven token manager that knows how to decrypt and use tokens for each provider type.

What's Coming: API Key Integrations

Beyond OAuth, hundreds of providers connect via API key — Stripe, Razorpay, Notion, ClickUp, Zendesk, and 1,200+ more. Paste the key from your provider dashboard, and it's encrypted on save and never re-displayed. Every tool's exact method — OAuth, API key, or no auth at all — is documented in the connection-guide library.

Connecting Right Now

The fastest way to see the integration value is to connect Gmail and run the Morning Brief or Email Campaign Manager use-cases. Gmail is the integration with the highest cross-use-case leverage — it's used across dozens of use-cases.


See the full integration catalog, including provider-by-provider capability breakdowns and which use-cases each integration unlocks.

Explore all integrations →

Ready to put agents to work?

132 AI agents. 192 pre-built use-cases. 1,500+ integrations. One dashboard — no code, no setup. Start free — no credit card required.