Get all rules
GET/v2/endpoints/:endpoint/rules
Retrieves all mock rules configured for the specified endpoint. Rules define how Beeceptor processes incoming HTTP requests and generates responses.
How Rules Work:
- Rules are evaluated in a top-to-bottom order (first match wins)
- Each rule contains conditions (request matching criteria) and an action (response behavior)
- When a request arrives, Beeceptor evaluates rules sequentially until the first matching rule is found
- Once matched, the rule's action is executed and no further rules are evaluated
- If no rules match, Beeceptor falls back to: Local Tunnel → HTTP Proxy → OpenAPI Spec → Default 200 OK response
Response Format:
- Returns all rules (entire rule set)
- Rules are returned in their execution order (top-to-bottom priority)
Request
Responses
- 200
- 401
- 403
- 404
List of rules
Unauthenticated - API key is missing or invalid.
Unauthorized - You don't have access to this endpoint.
Not Found - The requested resource does not exist.