<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -",
    "macOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServices",
  "identifier" : "/documentation/IdentityDocumentServices/OpenID4VPRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "IdentityDocumentServices"
    ],
    "preciseIdentifier" : "s:24IdentityDocumentServices16OpenID4VPRequestV"
  },
  "title" : "OpenID4VPRequest"
}
-->

# OpenID4VPRequest

A type that represents an incoming OpenID for Verifiable Presentations request.

```
struct OpenID4VPRequest
```

## Topics

### Creating a request

[`init(exchangeProtocol: OpenID4VPExchangeProtocolIdentifier, query: DigitalCredentialsQuery, requestAuthentications: [OpenID4VPRequest.RequestAuthentication])`](/documentation/IdentityDocumentServices/OpenID4VPRequest/init(exchangeProtocol:query:requestAuthentications:))

Initializes an OpenID4VP request.

### Inspecting a request

[`var exchangeProtocol: OpenID4VPExchangeProtocolIdentifier`](/documentation/IdentityDocumentServices/OpenID4VPRequest/exchangeProtocol)

The exchange protocol used for the request.

[`var query: DigitalCredentialsQuery`](/documentation/IdentityDocumentServices/OpenID4VPRequest/query)

The credentials and claims the relying party requests.

### Authenticating the relying party

[`var requestAuthentications: [OpenID4VPRequest.RequestAuthentication]`](/documentation/IdentityDocumentServices/OpenID4VPRequest/requestAuthentications)

An array that contains information about the authentication of the OpenID4VP request.

[`struct RequestAuthentication`](/documentation/IdentityDocumentServices/OpenID4VPRequest/RequestAuthentication)

A relying party identity that a request signature claims.

[`struct ClientIdentifierPrefix`](/documentation/IdentityDocumentServices/OpenID4VPRequest/ClientIdentifierPrefix)

A client identifier prefix that determines the method for establishing a relying party’s identity.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`IdentityDocumentWebPresentmentRequest`](/documentation/IdentityDocumentServices/IdentityDocumentWebPresentmentRequest)

---

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)