<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServicesUI",
  "identifier" : "/documentation/IdentityDocumentServicesUI/OpenID4VPRawRequestContext/exchangeProtocol",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "IdentityDocumentServicesUI"
    ],
    "preciseIdentifier" : "s:26IdentityDocumentServicesUI26OpenID4VPRawRequestContextV16exchangeProtocol0abC00ef10VPExchangeK10IdentifierOvp"
  },
  "title" : "exchangeProtocol"
}
-->

# exchangeProtocol

The protocol identifier that determines the format of the request and response data.

```
let exchangeProtocol: OpenID4VPExchangeProtocolIdentifier
```

## Discussion

This value determines how the system encodes [`requestData`](/documentation/IdentityDocumentServicesUI/OpenID4VPRawRequestContext/requestData) and how you format the data in your [`OpenID4VPRawRequestContext.Response`](/documentation/IdentityDocumentServicesUI/OpenID4VPRawRequestContext/Response).

---

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)