{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-create-service-account-api-key-response-schema.json",
  "title": "create-service-account-api-key-response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-service-accounts-api-openapi.yml#/components/schemas/create-service-account-api-key-response",
  "required": [
    "expires_at",
    "key",
    "public_id"
  ],
  "type": "object",
  "properties": {
    "public_id": {
      "maxLength": 8,
      "type": "string"
    },
    "key": {
      "maxLength": 128,
      "type": "string",
      "description": "The full, plain text key. It is returned exactly once, at creation time, and cannot be retrieved again."
    },
    "expires_at": {
      "description": "When the key expires.",
      "allOf": [
        {
          "$ref": "#/$defs/timestamp"
        }
      ]
    }
  },
  "$defs": {
    "timestamp": {
      "type": "integer",
      "description": "Epoch timestamp in milliseconds since January 1, 1970 UTC.",
      "format": "int64"
    }
  }
}