<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServicesUI",
  "identifier" : "/documentation/IdentityDocumentServicesUI/OpenID4VPRawRequestContext/sendResponse(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IdentityDocumentServicesUI"
    ],
    "preciseIdentifier" : "s:26IdentityDocumentServicesUI26OpenID4VPRawRequestContextV12sendResponseyyAC0K0VF"
  },
  "title" : "sendResponse(_:)"
}
-->

# sendResponse(_:)

Sends an OpenID4VP response to the relying party.

```
func sendResponse(_ response: OpenID4VPRawRequestContext.Response)
```

## Parameters

`response`

An [`OpenID4VPRawRequestContext.Response`](/documentation/IdentityDocumentServicesUI/OpenID4VPRawRequestContext/Response) that contains the OpenID4VP authorization response to send to the relying party.

## Discussion

Call this method after the person using your app authorizes the release of the requested credentials. To decline the request, call [`cancel()`](/documentation/IdentityDocumentServicesUI/OpenID4VPRawRequestContext/cancel()).

---

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)