<!--
{
  "availability" : [
    "Retention Messaging API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/JWSDecodedHeader",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "data:retention_messaging:JWSDecodedHeader"
  },
  "title" : "JWSDecodedHeader"
}
-->

# JWSDecodedHeader

A decoded JSON Web Signature (JWS) header.

```
object JWSDecodedHeader
```

## Discussion

The type [`RealtimeRequestBody`](/documentation/RetentionMessaging/RealtimeRequestBody) contains a header that’s a `JWSDecodedHeader` object when decoded. Use the information in the `JWSDecodedHeader` to validate the JWS signature of the request body. For more information about validating signatures, see the JSON Web Signature (JWS) [IETF RFC 7515](https://datatracker.ietf.org/doc/html/rfc7515) specification.

The signature uses the `x5c` certificate chain, in the following order:

1. A certificate that contains the public key that corresponds to the key the App Store uses to digitally sign the JWS. Section 4.11.10 Mac App Store Receipt Signing Certificates of the [Apple Inc. Certificate Practice Statement Worldwide Developer Relations](https://images.apple.com/certificateauthority/pdf/Apple_WWDR_CPS_v1.26.pdf) document defines the custom extensions this certificate uses.
2. An Apple intermediate certificate that contains an extension with the extension ID for `Apple Worldwide Developer Relations (1.2.840.113635.100.6.2.1)`.
3. An Apple root certificate.

For more information, or to download Apple’s root certificate, see [Apple PKI](https://www.apple.com/certificateauthority/).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)