# Create new JWT token (Admin) Create a new JWT token for the tenant. Store this token securely - it cannot be retrieved again. JWT tokens are a specialized type of API key for authentication purposes. Endpoint: POST /api-keys Version: 2.0.7 Security: tenantAdminJWT ## Request fields (application/json): - `name` (string, required) name of the key ## Response 200 fields (application/json): - `id` (string, required) Unique identifier for the API key Example: "f47ac10b-58cc-4372-a567-0e02b2c3d479" - `type` (string, required) Type of API key Enum: "TENANT_SYSTEM_JWT", "ADMIN_JWT_ACCESS_TOKEN", "ADMIN_JWT_REFRESH_TOKEN", "USER_JWT_ACCESS_TOKEN", "USER_JWT_REFRESH_TOKEN", "BLOCKCHAIN_WRITER_JWT", "BLOCKCHAIN_READER_JWT", "TENANT_ADMIN_JWT" - `name` (object,null) Human-readable name for the API key Example: "JWT Token (Mainnet) - 2025-11-22" - `createdAt` (string, required) Creation timestamp Example: "2025-11-22T10:30:00.000Z" - `shortenedPrivateKey` (string, required) Token preview for dashboard identification (first 8 + last 4 characters) Example: "eyJhbGci...xMjM" - `expiresAt` (object,null) Expiration timestamp (null = no expiry) Example: "2026-11-22T10:30:00.000Z" - `isRevoked` (boolean, required) Indicates if the API key has been revoked - `lastUsedAt` (object,null) Last time the API key was used for authentication Example: "2025-11-24T14:30:00.000Z" - `privateKey` (string, required) Full private key/token - STORE SECURELY! Only returned once during creation Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"