VPNDetection API keys API
Creating, listing and rotating credentials.
Creating, listing and rotating credentials.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vpndetection-io:vpndetection-io-api-keys-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: VPNDetection API keys API
description: 'The VPNDetection API: classify any IP address, and download the databases
behind the answers.
Lookups need no API key: Unlimited, the free plan, answers any address with
no daily or monthly cap, with a key or without one. Every paid plan answers
every field, and a free account tries them, 100 lookups a day. Unlimited''s
answers may be used commercially, but not redistributed or used in a
competing service (https://vpndetection.io/terms#no-key).
See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io
for the official client libraries.'
contact:
name: VPNDetection Support
email: support@vpndetection.io
url: https://vpndetection.io
termsOfService: https://vpndetection.io/terms
version: 2026.11.14
servers:
- url: https://api.vpndetection.io
description: Production
tags:
- name: API Keys
description: Creating, listing and rotating credentials.
x-displayName: API keys
paths:
/api/v1/iam/apikeys:
get:
operationId: accountListApikeys
tags:
- API Keys
summary: List
description: 'Each key''s metadata. A list never carries a secret, here or in the
console: `reveal` reads one.
`retrievable` says whether the secret could still be read back at all.
A key issued before this product stored secrets recoverably was never
kept, so `reveal` will refuse it permanently; rotating produces one
that can be read.'
security:
- bearerAuth:
- apikeys.read
responses:
'200':
description: The organization's keys, newest first.
content:
application/json:
schema:
$ref: '#/components/schemas/ApikeyList'
'401':
$ref: '#/components/responses/AccountUnauthorized'
'403':
$ref: '#/components/responses/AccountForbidden'
post:
operationId: accountCreateApikey
tags:
- API Keys
summary: Create
description: 'Creates a key and returns its secret.
Store the secret now. Reading it back later takes `reveal` and the
`apikeys.reveal` scope.'
security:
- bearerAuth:
- apikeys.manage
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AccountCreateApikeyRequest'
responses:
'200':
description: The new key, including its secret.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountCreatedApikey'
'400':
$ref: '#/components/responses/AccountInvalid'
'401':
$ref: '#/components/responses/AccountUnauthorized'
'403':
$ref: '#/components/responses/AccountForbidden'
/api/v1/iam/apikeys/{id}/rotate:
post:
operationId: accountRotateApikey
tags:
- API Keys
summary: Rotate
description: 'Replaces the secret behind a key, keeping its ID, name and settings.
The previous secret stops working immediately. The new secret comes
back in the answer, so this needs `apikeys.reveal` as well as
`apikeys.manage`.'
security:
- bearerAuth:
- apikeys.manage
- apikeys.reveal
parameters:
- $ref: '#/components/parameters/ApikeyIdParam'
responses:
'200':
description: The key, with its new secret.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountCreatedApikey'
'401':
$ref: '#/components/responses/AccountUnauthorized'
'403':
$ref: '#/components/responses/AccountForbidden'
'404':
$ref: '#/components/responses/AccountNotFound'
/api/v1/iam/apikeys/{id}/revoke:
post:
operationId: accountRevokeApikey
tags:
- API Keys
summary: Revoke
description: 'Stops the key working. Revocation is soft: the key stays listed with a
`revoked_at`, because the organization still owns whatever it did while
it was alive.'
security:
- bearerAuth:
- apikeys.manage
parameters:
- $ref: '#/components/parameters/ApikeyIdParam'
responses:
'200':
description: Revoked.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRc'
'401':
$ref: '#/components/responses/AccountUnauthorized'
'403':
$ref: '#/components/responses/AccountForbidden'
'404':
$ref: '#/components/responses/AccountNotFound'
/api/v1/iam/apikeys/{id}/reveal:
post:
operationId: accountRevealApikey
tags:
- API Keys
summary: Reveal
description: 'Returns an existing key''s secret.
It needs the `apikeys.reveal` scope, which `apikeys.manage` doesn''t
include.
Refused with `NOT_RETRIEVABLE` for a key issued before we kept secrets.
Rotate that key instead.'
security:
- bearerAuth:
- apikeys.reveal
parameters:
- $ref: '#/components/parameters/ApikeyIdParam'
responses:
'200':
description: The key's secret.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRevealedApikey'
'401':
$ref: '#/components/responses/AccountUnauthorized'
'403':
$ref: '#/components/responses/AccountForbidden'
'404':
description: 'No such key in this organization, or its secret was never stored
recoverably (`NOT_RETRIEVABLE`).
'
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRc'
components:
schemas:
AccountRevealedApikey:
type: object
properties:
rc:
type: string
key:
type: string
description: The secret.
required:
- rc
- key
AccountCreatedApikey:
type: object
properties:
rc:
type: string
id:
type: string
format: uuid
name:
type: string
key:
type: string
description: The secret. Returned once, here, and never again.
key_prefix:
type: string
allowed_cidrs:
type: array
items:
type: string
allowed_scopes:
type: array
items:
type: string
required:
- rc
- id
- key
ApikeyList:
type: object
properties:
rc:
type: string
keys:
type: array
items:
$ref: '#/components/schemas/ApikeyDetail'
required:
- rc
- keys
AccountCreateApikeyRequest:
type: object
properties:
name:
type: string
description: A label you will recognize later. Shown wherever the key is listed.
allowed_scopes:
type: array
items:
type: string
description: What the new key may do. Omit for a key that carries no named scope, which is the safe default.
required:
- name
AccountRc:
type: object
properties:
rc:
type: string
description: The outcome. `SUCCESS` on success; otherwise the reason.
required:
- rc
ApikeyDetail:
description: Key METADATA. Never the key itself.
type: object
properties:
id:
type: string
format: uuid
name:
type: string
key_prefix:
type: string
description: The leading, non-secret part, so a key is recognizable without storing it.
created:
type: string
format: date-time
expires:
type:
- string
- 'null'
format: date-time
last_used_at:
type:
- string
- 'null'
format: date-time
revoked_at:
type:
- string
- 'null'
format: date-time
allowed_cidrs:
type: array
items:
type: string
description: Source-IP allowlist. EMPTY MEANS UNRESTRICTED, not deny-all.
allowed_scopes:
type: array
items:
type: string
retrievable:
type: boolean
description: Whether this key's secret can still be read back. False permanently for a key issued before secrets were stored recoverably.
required:
- id
- name
- key_prefix
- created
responses:
AccountUnauthorized:
description: No credential was presented, or it is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRc'
AccountNotFound:
description: No such key in this organization.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRc'
AccountInvalid:
description: The request body is missing a required field.
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRc'
AccountForbidden:
description: 'The credential does not hold the scope this endpoint requires. The
missing scope is deliberately not named.
'
content:
application/json:
schema:
$ref: '#/components/schemas/AccountRc'
parameters:
ApikeyIdParam:
name: id
in: path
required: true
description: The key's ID, as returned by the list endpoint. Never the key itself.
schema:
type: string
format: uuid
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: '`Authorization: Bearer <key>`.'
apiKeyHeader:
type: apiKey
in: header
name: X-Api-Key
description: '`X-Api-Key: <key>`.'
apiKeyQuery:
type: apiKey
in: query
name: apikey
description: '`?apikey=<key>`. Convenient in a browser; prefer a header elsewhere.'
x-tagGroups:
- name: VPNDetection IP API
tags:
- Lookup
- name: VPNDetection Database API
tags:
- Database
- name: VPNDetection Entitlement API
tags:
- Entitlement
- name: VPNDetection IAM API
tags:
- Account
- Organization
- API keys
- name: VPNDetection Authorization
tags:
- Authorization