gRPC API Documentation
Document gRPC APIs with services, methods, all four streaming types, proto message definitions, standard gRPC status codes, Google RPC error detail types, interceptor chains, retry and hedging policies, HTTP transcoding, proto import and export, and a published gRPC API browser with streaming flow diagrams.
The gRPC editor documents gRPC APIs alongside your REST, GraphQL, AsyncAPI, Webhook, and MCP documentation. Define services, methods with all four streaming types, proto message schemas, error responses with google.rpc detail types, interceptor chains, retry and hedging policies, and HTTP transcoding rules in a structured format that publishes as a browsable gRPC API reference on your documentation site.
Core Concepts
gRPC API documentation is organised around three entity types with a shared schema layer for proto messages.
Four Streaming Types
Every gRPC method specifies its streaming type, which determines the request and response flow pattern.
| Type | Client Streams | Server Streams | Description |
|---|---|---|---|
| Unary | No | No | Single request, single response. The most common pattern, equivalent to a traditional RPC call. |
| Server Streaming | No | Yes | Single request, stream of responses. Used for real-time feeds, large result sets, and push notifications. |
| Client Streaming | Yes | No | Stream of requests, single response. Used for file uploads, sensor data aggregation, and batch processing. |
| Bidirectional | Yes | Yes | Both sides stream independently. Used for chat, collaborative editing, and multiplexed data exchange. |
Authentication
gRPC authentication separates channel-level credentials from per-call credentials, matching the gRPC security model.
Error Handling
Document error responses with the full google.rpc error model. Each method specifies which standard gRPC status codes it may return, with descriptions and structured error details.
| Category | Status Codes |
|---|---|
| Success | OK |
| Client Errors | CANCELLED, INVALID_ARGUMENT, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNAUTHENTICATED |
| Server Errors | UNKNOWN, DEADLINE_EXCEEDED, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, DATA_LOSS |
Advanced Features
Proto Import and Export
Viewer
The published site includes a gRPC API browser panel with dedicated viewers for API info, services, and methods.
Document REST APIs with full endpoint specifications, OpenAPI import and export, seven HTTP methods, parameters, request and response bodies linked to shared schemas, authentication schemes, and a published API browser. REST is part of the API documentation suite (REST, GraphQL, gRPC, AsyncAPI, Webhooks, MCP) sharing a unified schema layer.
Document GraphQL APIs with queries, mutations, subscriptions, custom scalars, directives, interfaces, and per-operation authentication in NeoArc Studio.
Document event-driven and asynchronous APIs with channels, operations, messages, protocol bindings across a wide range of protocols, security schemes, reusable traits, and AsyncAPI 3.0 export in NeoArc Studio.
Define data structures with field types covering strings, numbers, booleans, objects, arrays and more, type specialisations for fine-grained modelling, and validation rules covering type safety, cardinality, referential integrity and cross-field constraints. Create reusable schemas that stay synchronised across your documentation.