{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mongodb/main/json-schema/mongodb-service-account-secret-schema.json",
  "title": "ServiceAccountSecret",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mongodb-service-accounts-api-openapi.yml#/components/schemas/ServiceAccountSecret",
  "properties": {
    "createdAt": {
      "description": "The date that the secret was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "expiresAt": {
      "description": "The date for the expiration of the secret. This parameter expresses its value in the ISO 8601 timestamp format in UTC.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "id": {
      "description": "Unique 24-hexadecimal digit string that identifies the secret.",
      "pattern": "^([a-f0-9]{24})$",
      "readOnly": true,
      "type": "string"
    },
    "lastUsedAt": {
      "description": "The last time the secret was used. This parameter expresses its value in the ISO 8601 timestamp format in UTC.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "maskedSecretValue": {
      "description": "The masked Service Account secret.",
      "readOnly": true,
      "type": "string"
    },
    "secret": {
      "description": "The secret for the Service Account. It will be returned only the first time after creation.",
      "readOnly": true,
      "type": "string"
    }
  },
  "required": [
    "createdAt",
    "expiresAt",
    "id"
  ],
  "type": "object"
}