{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-minted-db-credential-schema.json",
  "title": "MintedDbCredential",
  "description": "A freshly minted short-lived database credential.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-dynamic-db-credentials-api-openapi.yml#/components/schemas/MintedDbCredential",
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "description": "The minted database username."
    },
    "password": {
      "type": "string",
      "description": "**Returned only in this response — it cannot be retrieved again.**"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the lease auto-expires and the user is dropped."
    },
    "lease_id": {
      "type": "integer",
      "description": "Lease ID (integer) — use it to revoke early."
    },
    "connection_name": {
      "type": "string"
    },
    "role_name": {
      "type": "string"
    }
  }
}