Skip to main content
Use VPNDetection through Corsair: one client, typed API calls, local DB sync, and incoming webhooks. The API answers lookups without a key, so the plugin works with none stored: leave the key unset and each lookup goes out keyless. A key from vpndetection.io (free, made in the console under API > Keys) adds the fields its plan includes, which pass through unchanged, and is needed for everything else. Keyless use is covered by the API’s terms and privacy policy.
  • Scopes. A key carries ip.lookup (the lookups) and db.download (the databases.* routes). The account, organization and apiKeys.* routes need an OAuth scope (account.read, org.read, apikeys.read, apikeys.manage, apikeys.reveal) that an API key cannot hold: with a key they answer 403 FORBIDDEN. Store an OAuth access token from VPNDetection’s authorization server as the key to use them.
  • Plans. ip.batch needs a paid plan; on the free plan a batch of one is answered and anything larger is a 402. A field the plan does not include is absent rather than false, so test for presence.
  • Webhooks. In the console under Database > Delivery, add a webhook destination pointing at your Corsair webhook URL, tick the databases to announce, and give the plugin the destination’s signing secret (whsec_...) as webhookSecret (or store it as the account’s webhook signature). Deliveries are checked to the Standard Webhooks spec and refused when older than five minutes.
What you get:
  • 16 typed API operations
  • 1 synced entity (lookups) for fast .search() / .list()
  • 4 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

Check whether an IP is a VPN
apiKeys.create
See the full list on the API page.

Query synced data

Synced entities support tenant.vpndetection.db.<entity>.search() and .list(): lookups. See Database for filters and operators.

Webhooks

This plugin registers 4 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then use webhookHooks on the plugin factory. See Webhooks for every event path and payload shape, and Webhooks concept for routing.

What’s next

API reference

Every vpndetection.api.* operation with input and output types.

Database

Synced entities, search filters, and operators.

Webhooks

Event paths, payloads, and webhookHooks examples.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.