{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hmcts/main/json-schema/hmcts-hmac-credentials-schema.json",
  "title": "HmacCredentials",
  "description": "HMAC credentials issued at subscription creation for signing outbound callbacks.",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hmcts-crime-hearing-results-document-subscription-openapi.yml#/components/schemas/HmacCredentials",
  "type": "object",
  "properties": {
    "keyId": {
      "type": "string",
      "description": "Identifier for the shared secret used to sign outbound callbacks for this subscription"
    },
    "secret": {
      "type": "string",
      "writeOnly": true,
      "description": "Base64-encoded shared secret used to sign outbound callbacks for this subscription. Returned in the create subscription response. Not returned by subsequent GET operations."
    }
  }
}