# Templates and expressions

> Render typed values from request scopes, deterministic helpers, and shared state.

- Canonical URL: https://dotmock.com/docs/reference/templates
- Capability status: Available
- Last verified: 2026-07-24

## Prerequisites
- A DotMock workspace you can access
- The API ID in $API_ID and its published runtime URL in $MOCK_URL when the example calls the mock

## In this guide
- Exact and embedded expressions behave differently
- REST request helpers
- GraphQL request helpers
- gRPC request helpers
- SOAP request helpers
- Conditions use one visible expression language
- Read state with dynamic keys and fallbacks
- Use atomic mutation helpers
- Know the runtime boundary

## Verified boundaries
- Helpers are scoped to the active protocol runtime; unsupported helper names fail validation rather than executing arbitrary code.

Read the canonical guide for its complete examples and expected results: https://dotmock.com/docs/reference/templates
