gRPC Client
Call gRPC Service method.
Calls one unary method of a gRPC service described by a .proto file available to the orchestrator, using host and proto settings from a credential.
How it works
- Resolves the config.
connection_id,serviceandmethodfall back to the same keys of the incoming payload. - Builds the request message: the configured
payloadwhen it is a non-empty object; otherwisepayload.payloadof the incoming data, or the whole incoming data. - Resolves the credential config:
host(host:port),protoPath(a file on the orchestrator file system), optionalpackageNameandsecure. - Loads the proto (field names kept as written, longs and enums as strings, defaults filled), finds
packageNameand thenservice, and opens a TLS channel whensecureis true or a plaintext one otherwise. - Calls
methodwith the message and, when the secret hastoken, the metadataAuthorization: Bearer <token>. The reply leaves throughoutas{ response }.
In a workflow
The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.
{
"node_id": "node-confirm-order",
"label": "Confirm order",
"operator_slug": "io.grpc",
"operator_version": "1.0.0",
"config": {
"connection_id": "pi-credential-xxxx",
"service": "OrderService",
"method": "ConfirmOrder",
"payload": {
"order_id": "{{ $json.order_id }}"
}
}
}{
"ok": true,
"data": {
"response": {
"order_id": "ord_123",
"status": "CONFIRMED",
"total_cents": "25000"
}
},
"port": "out"
}Configuration
-
connection_idstring Required -
Credential for the gRPC endpoint. Accepts credentials of type `certificate` (TLS cert + key for mTLS) or `object` (host + .proto path + advanced config).
-
servicestring Required -
Service Name
-
methodstring Required -
Method Name
-
payloadobject Optional -
Request Message
Behaviour in the code
What the implementation does with these keys beyond what the schema says.
-
connection_id - The credential config must hold
host,protoPath, optionalpackageNameandsecure; onlytokenis read from the secret.certificatecredentials are accepted by the picker, but client certificates are not used: TLS uses the system trust store without a client certificate (no mTLS). -
payload - The request message. An empty object counts as not set, and the incoming data is sent instead.
Output ports
out default The method returned a reply. response is the decoded reply message.
{
"response": {
"order_id": "ord_123",
"status": "CONFIRMED",
"total_cents": "25000"
}
}error The call returned a gRPC status error (data is { error, code } with the numeric gRPC code), or the setup failed (data is { error }).
{
"error": "14 UNAVAILABLE: No connection established",
"code": 14
}In expressions
What a later node can read from this node's output with $("gRPC Client").item.json.<path> (write your node's label instead of gRPC Client). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.
| Expression | Editor | Worker |
|---|---|---|
$("gRPC Client").item.json.responsegRPC Response Message | ||
$("gRPC Client").item.json.response.order_id | — | |
$("gRPC Client").item.json.response.status | — | |
$("gRPC Client").item.json.response.total_cents | — |
— Worker: The worker returns it but the editor does not suggest it: write it by hand. Keys inside objects can depend on your data or configuration (for example one key per label).
Errors
| Message | Port | Cause and fix |
|---|---|---|
protoPath missing in connection config | error | The credential config has no protoPath. Add the path of a .proto file that exists on the orchestrator host. |
Package <packageName> not found in proto | error | packageName does not match a top-level package of the proto. Only a single-segment name is looked up (helloworld, not acme.orders). |
Service <service> not found | error | service is not defined in the selected package. |
Method <method> not found | error | method is not a method of the service. Use the name as written in the proto. |
connection_id is required | error | No credential selected. |
Input contract
-
connection_idstring Required -
servicestring Required -
methodstring Required -
payloadobject Optional
Output contract
-
responseobject Optional -
gRPC Response Message
Contracts (JSON Schema)
The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.
{
"slug": "io.grpc",
"name": "gRPC Client",
"category": "io",
"version": "1.0.0",
"description": "Call gRPC Service method.",
"capabilities": [
"grpc",
"microservices",
"protobuf"
],
"config_schema": {
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"title": "gRPC Credential",
"description": "Credential for the gRPC endpoint. Accepts credentials of type `certificate` (TLS cert + key for mTLS) or `object` (host + .proto path + advanced config).",
"ui_widget": "connection_picker",
"ui_options": {
"credential_types": [
"certificate",
"object"
],
"types": [
"grpc"
]
}
},
"service": {
"type": "string",
"description": "Service Name"
},
"method": {
"type": "string",
"description": "Method Name"
},
"payload": {
"type": "object",
"description": "Request Message"
}
},
"required": [
"connection_id",
"service",
"method"
]
},
"input_contract_schema": {
"type": "object",
"properties": {
"connection_id": {
"type": "string"
},
"service": {
"type": "string"
},
"method": {
"type": "string"
},
"payload": {
"type": "object"
}
},
"required": [
"connection_id",
"service",
"method"
]
},
"output_contract_schema": {
"type": "object",
"properties": {
"response": {
"type": "object",
"description": "gRPC Response Message"
}
}
},
"ports": [
{
"port_id": "out",
"label": "Response",
"description": "gRPC Response Message",
"is_default": true,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "gRPC Error Code",
"is_default": false,
"supports_condition": false
}
],
"execution_mode": "async",
"required_resources": [],
"compatible_worker_pools": [
"standard-io",
"microservices"
],
"tags": [
"grpc",
"rpc"
],
"is_stateful": false,
"publisher": {
"identity": "org_link_loom",
"profile": {
"name": "Link Loom",
"verified": true,
"url": "https://me.veripass.com/link-loom",
"logo_url": null
}
}
}{
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"title": "gRPC Credential",
"description": "Credential for the gRPC endpoint. Accepts credentials of type `certificate` (TLS cert + key for mTLS) or `object` (host + .proto path + advanced config).",
"ui_widget": "connection_picker",
"ui_options": {
"credential_types": [
"certificate",
"object"
],
"types": [
"grpc"
]
}
},
"service": {
"type": "string",
"description": "Service Name"
},
"method": {
"type": "string",
"description": "Method Name"
},
"payload": {
"type": "object",
"description": "Request Message"
}
},
"required": [
"connection_id",
"service",
"method"
]
}{
"type": "object",
"properties": {
"connection_id": {
"type": "string"
},
"service": {
"type": "string"
},
"method": {
"type": "string"
},
"payload": {
"type": "object"
}
},
"required": [
"connection_id",
"service",
"method"
]
}{
"type": "object",
"properties": {
"response": {
"type": "object",
"description": "gRPC Response Message"
}
}
}[
{
"port_id": "out",
"label": "Response",
"description": "gRPC Response Message",
"is_default": true,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "gRPC Error Code",
"is_default": false,
"supports_condition": false
}
]Execution
- Execution
async- Stateful
- No
- Credentials
- Resolved on the server from
connection_id; the secret never reaches the workflow. - Capabilities
grpcmicroservicesprotobuf- Tags
grpcrpc
Notes and limits
- Only unary calls are supported; streaming methods are not handled. No deadline is set on the call, and there are no retries.
- The
.protofile is read from the orchestrator file system on each run; it is not uploaded with the workflow. - 64-bit integers and enums arrive as strings in
response.
Reviewed against the orchestrator code · 31e874b · 2026-11-26