Documentation Index
Fetch the complete documentation index at: https://robintail-express-zod-api-69.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Endpoints are created usingEndpointsFactory.build() and represent individual API routes with typed input/output schemas and handler functions.
Configuration Options
method
Type:Method | Method[]
Default: "get"
HTTP method(s) the endpoint handles.
input
Type:ZodObject
Default: z.object({})
Input validation schema.
output
Type:ZodType
Required: Yes
Output validation schema.
handler
Type:Handler<Input, Output, Context>
Required: Yes
Async function that processes the request.
shortDescription
Type:string
Brief summary for OpenAPI documentation (max 50 characters).
description
Type:string
Detailed description for OpenAPI documentation.
operationId
Type:string | ((method: ClientMethod) => string)
Unique operation identifier for documentation.
tag
Type:Tag | Tag[]
Tags for organizing documentation.
scope
Type:string | string[]
OAuth2 scopes required for the endpoint.
deprecated
Type:boolean
Marks the endpoint as deprecated in documentation.
Handler Parameters
The handler function receives an object with:Validated input from request (query, body, params, etc.)
Context accumulated from middleware
Logger instance (child logger if configured)
Express request object
Express response object
Examples
Basic GET Endpoint
POST Endpoint with Authentication
See Also
EndpointsFactory
Create endpoint factories
Routing
Attach endpoints to routes