VPNDetectionVPNDetection

Create

POST
/api/v1/iam/apikeys

Creates a key and returns its secret.

This is the ONLY response that ever carries the secret, and only because this is the moment it comes into existence. Store it now.

Authorization

bearerAuth apikeys.manage
AuthorizationBearer <token>

Authorization: Bearer <key>.

In: header

Scope: apikeys.manage

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.vpndetection.io/api/v1/iam/apikeys" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "rc": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "key": "string",
  "key_prefix": "string",
  "allowed_cidrs": [
    "string"
  ],
  "allowed_scopes": [
    "string"
  ]
}
{
  "rc": "string"
}
{
  "rc": "string"
}
{
  "rc": "string"
}