verify.assert_api_response
Calls an API and asserts the response matches expected status code and optional body substrings, confirming correctness.
Instructions
[network][risk:network] Call an API and assert status and optional body substrings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| method | No | ||
| headers | No | ||
| timeoutMs | No | ||
| bodyContains | No | ||
| expectedStatus | No |