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

# IdentityDocumentWebPresentmentRawRequest

A struct that defines the type that represents a raw web presentment request.

```
struct IdentityDocumentWebPresentmentRawRequest
```

## Discussion

The system passes this type to the document provider app that the person selects to respond to the request.

## Topics

### Creating an identity document web presentment raw request

[`init(requestType: IdentityDocumentWebPresentmentRawRequest.RequestType, requestData: Data)`](/documentation/IdentityDocumentServices/IdentityDocumentWebPresentmentRawRequest/init(requestType:requestData:))

Initializes a web presentment raw request.

[`var requestData: Data`](/documentation/IdentityDocumentServices/IdentityDocumentWebPresentmentRawRequest/requestData)

The request data blob for the web presentment raw request.

[`var requestType: IdentityDocumentWebPresentmentRawRequest.RequestType`](/documentation/IdentityDocumentServices/IdentityDocumentWebPresentmentRawRequest/requestType-swift.property)

The request type for the current request that the system uses to help the document provider deserialize the request.

### Validating a web presentment raw request

[`struct IdentityDocumentWebPresentmentRawRequestValidator`](/documentation/IdentityDocumentServices/IdentityDocumentWebPresentmentRawRequestValidator)

A type that contains functions for validating the incoming web presentment raw request.

### Enumerations

[`enum RequestType`](/documentation/IdentityDocumentServices/IdentityDocumentWebPresentmentRawRequest/RequestType-swift.enum)

Defines the types of request formats supported by the system.

## Relationships

### Conforms To

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

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

---

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)