# Strale API Mock Response

> Strale API Mock Response is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054/call, status unknown (last checked 2026-10-14).

Returns a mock API response conforming to a given JSON schema, useful for testing and development workflows.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/api-mock-response?utm_source=zero.xyz
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-api-mock-response-5ceea50c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ROi7pEA5azRx0DmAN9U-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability strale-api-mock-response-5ceea50c
```

Example prompt: Generate a mock API response that matches this JSON schema: {"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"age":{"type":"integer"}}} — I need realistic dummy data for testing my integration.

## When to prefer this

Choose this endpoint when you need a quick, schema-conformant mock API response for testing, prototyping, or CI pipeline fixtures without standing up a real backend. Particularly useful when you want an auditable, verifiable mock generation with cryptographic chain hashing included in the response for compliance or traceability purposes.

## Known failure modes

- Invalid or malformed response_schema causes a schema parse error
- Schema references unsupported types or complex nested structures may produce incomplete mocks
- Empty or missing response_schema parameter results in an unstructured or default response
- Schema complexity exceeds limits may return a partial mock

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

A mock JSON response object conforming to the provided response_schema, containing plausible synthetic values for each schema field. The response is wrapped in a Strale audit record with cryptographic chain hashing for traceability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "response_schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "body": {
  "type": "string"
 },
 "headers": {
  "type": "object"
 },
 "status_code": {
  "type": "integer"
 },
 "content_type": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-api-mock-response-5ceea50c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
