Response ValidationValidate status, headers, and
Validate status, headers, and
body content
Automatically validate HTTP response status codes, headers, and body content. Ensure your APIs return exactly what you expect with powerful assertion capabilities.
Validate API responses with multiple criteria
response-validation.yaml
requests:
- name: Get User Profile
url: https://api.example.com/users/1
method: GET
expect:
status: 200
headers:
content-type: application/json
body:
id: 1
username: "johndoe"
email: "^[a-z]+@[a-z]+\\.[a-z]+$"
active: trueKey Benefits
Why use Response Validation?
Comprehensive Validation
Validate status codes, headers, and JSON body content with exact, partial, or pattern matching.
Regex Pattern Support
Use powerful regex patterns to validate dynamic values like IDs, timestamps, and tokens.
Clear Failure Reports
Get detailed reports showing exactly what failed and what was expected vs actual.
Use Cases
Perfect for these scenarios
API contract testing and validation
Ensuring response format compliance
Regression testing for API changes
Validating error responses
Ready to try Response Validation?
Get started with curl-runner and unlock powerful response validation capabilities for your API testing workflow.