Encore Framework API
The Encore Framework API is the in-process declarative API surface developers use inside Encore.ts and Encore.go applications. Endpoints are declared with the api() function (TypeScript) or //encore:api annotation (Go), specifying method, path, expose (public vs internal), auth, and optional sensitive flags. Encore parses the source to derive request/response schemas from TypeScript interfaces or Go structs, enforces runtime validation, and wires up service-to-service calls without manual HTTP plumbing. Raw endpoints, fallback routes, path parameters, query, header, and cookie parameters are all first-class.
Documentation
Documentation
https://encore.dev/docs/ts/primitives/defining-apis
Documentation
https://encore.dev/docs/go/primitives/defining-apis
Specifications
Schemas & Data
JSONSchema
https://raw.githubusercontent.com/api-evangelist/encore-dev/refs/heads/main/json-schema/encore-api-endpoint-schema.json
JSONSchema
https://raw.githubusercontent.com/api-evangelist/encore-dev/refs/heads/main/json-schema/encore-service-schema.json