<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityLookup",
  "identifier" : "/documentation/IdentityLookup/ILMessageFilterExtensionContext/deferQueryRequestToNetwork(completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SMS and Call Reporting"
    ],
    "preciseIdentifier" : "c:objc(cs)ILMessageFilterExtensionContext(im)deferQueryRequestToNetworkWithCompletion:"
  },
  "title" : "deferQueryRequestToNetwork(completion:)"
}
-->

# deferQueryRequestToNetwork(completion:)

Tells the system to pass the current query request to the app extension’s associated network service.

```
func deferQueryRequestToNetwork(completion: @escaping @Sendable (ILNetworkResponse?, (any Error)?) -> Void)
```

```
func deferQueryRequestToNetwork() async throws -> ILNetworkResponse
```

## Parameters

`completion`

A completion block that contains either the network response to the HTTPS request or an error.

## Discussion

When your Message Filter app extension calls this method to defer a query to its associated server, the system performs an HTTPS network request to a URL specified in the app extension’s `Info.plist` file. The system returns the response to that request (or an error) asynchronously in an [`ILNetworkResponse`](/documentation/IdentityLookup/ILNetworkResponse) object.

To make a network request on behalf of a Message Filter app extension, the system uses an HTTP `POST` request formatted in JSON, similar to the request shown below.

```
POST /server-endpoint HTTP/1.1
Accept: */*
Content-Type: application/json; charset=utf-8
Content-Length: 148
```

Payload:

```json
{
    "_version": 1,
    "query": {
        "sender": "14085550001",
        "message": {
            "text": "This is a message"
        }
    },
    "app": {
        "version": "1.1"
    }
}
```

---

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)