Skip to content

Models

airvpn.web.services.api.models

APIKey

An AirVPN API key belonging to the authenticated user.

Constructed from the key entries returned by the APIManager manifest.

Attributes:

Name Type Description
id str | None

Unique identifier of the key.

color str | None

CSS color assigned to the key for display purposes, as an HSL string (e.g. "hsl(68,80%,87.5%)").

name str | None

Display name of the key.

secret_short str | None

Truncated/masked preview of the key's secret, safe for display.

secret str | None

The key's full secret value.

creation_date datetime

UTC timestamp of when the key was created, converted from the manifest's Unix timestamp.