[**CameraKit Web SDK v1.15.0**](../README.md)

***

[CameraKit Web SDK](../globals.md) / RemoteApiRequestHandler

# Type Alias: RemoteApiRequestHandler()

> **RemoteApiRequestHandler**: (`reply`) => [`RemoteApiCancelRequestHandler`](RemoteApiCancelRequestHandler.md) \| `void`

Represents a Remote API request handler function.
It is provided with a reply callback that must be invoked to send a response back to the lens.
The reply callback can be invoked multiple times if needed.
Additionally, the handler can return a cancellation callback, which is triggered when the lens cancels the request.

## Parameters

### reply

(`response`) => `void`

## Returns

[`RemoteApiCancelRequestHandler`](RemoteApiCancelRequestHandler.md) \| `void`
