Guardian API

REST API for VeilNet Guardian—authentication, registration tokens, realms, and Conflux management.

Overview

The VeilNet Guardian API is a REST API that powers the Guardian authentication and management service. Use it to create registration tokens, manage realms, and register Conflux nodes programmatically.

Interactive documentation: https://guardian.veilnet.app/docs

Key Endpoints

Authentication

MethodEndpointDescription
POST/auth/loginUser login (email/password). Returns OAuth2 access token.
GET/auth/profileGet authenticated user profile (requires bearer token).

Registration Tokens

MethodEndpointDescription
POST/auth/create/registration-tokenCreate a registration token (requires OAuth2 bearer token).
GET/auth/list/registration-tokenList your registration tokens.
DELETE/auth/revoke/registration-tokenRevoke a registration token by ID.

Conflux Registration

MethodEndpointDescription
POST/conflux/registerRegister a Conflux node. Send registration token as Authorization: Bearer <token>.
DELETE/conflux/unregisterUnregister a Conflux node (requires registration token).

Typical Flow

  1. LoginPOST /auth/login with email/password to get an access token.
  2. Create registration tokenPOST /auth/create/registration-token with the access token and realm_id.
  3. Register ConfluxPOST /conflux/register with the registration token as Bearer auth.

For full request/response schemas and additional endpoints (realms, conflux list, teams, etc.), see the Guardian API docs.

VeilNet • © 2026 All rights reserved