Api referenceRoutesClients

Send client RPC

Sends a JSON-RPC-style control or query request to an existing client. Use this for generic query, invoke, subscribe, and unsubscribe flows when the generated API advertises the target shape.

POST
/clients/{id}:rpc

Sends a JSON-RPC-style control or query request to an existing client. Use this for generic query, invoke, subscribe, and unsubscribe flows when the generated API advertises the target shape.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/clients/{id}:rpc" \  -H "Content-Type: application/json" \  -d '{    "method": "invoke"  }'
Empty