# APIs and endpoints

> Model REST methods, paths, schemas, responses, faults, state actions, and response hooks.

- Canonical URL: https://dotmock.com/docs/concepts/apis-endpoints
- 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
- Start with method, path, and intent
- Reuse models instead of copying shapes
- Keep dynamic responses typed
- Put failure cases beside success
- Add state, faults, and hooks intentionally
- Prove both the response and the side effects

## Verified boundaries
- Runtime behavior is limited to methods and response behavior represented by the active definition.

Read the canonical guide for its complete examples and expected results: https://dotmock.com/docs/concepts/apis-endpoints
