# Delx Merge Shallow

> Delx Merge Shallow is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Shallow-merges two JSON objects, with fields from the second object (b) overriding fields from the first (a), and returns the merged result along with its size.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/merge-shallow
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-merge-shallow-4a9a96e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2IEF-IJwxMa9tEcISjDVs

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 delx-merge-shallow-4a9a96e0 -d '<json body>'
```

Example prompt: Shallow-merge these two objects for me — use {"theme": "dark", "lang": "en", "retries": 3} as the base and {"lang": "fr", "timeout": 30} as the overrides, so the override fields win on any conflicts.

## When to prefer this

Choose this endpoint when you need a simple, stateless, one-level shallow merge of two JSON objects and want a hosted, pay-per-call microservice with no infrastructure or key management. Prefer it over writing inline merge logic when you want a reliable, auditable, side-effect-free utility in an agent pipeline. Not suitable for deep/recursive merges or array concatenation strategies.

## Known failure modes

- Missing or malformed 'a' or 'b' fields returns a validation error
- Non-object values for 'a' or 'b' (e.g. arrays or primitives) may be rejected
- Payment failure via x402 on Base halts the request before processing
- Very large objects may hit payload size limits

## How this service works

Shallow-merge two objects (b wins). Call when you overlay agent defaults with overrides. Returns merged object and size for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the shallow-merged JSON object (b's keys overwrite a's on conflict, non-conflicting keys from both are preserved) plus the byte size of the resulting merged object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "object",
   "description": "Input field: a."
  },
  "b": {
   "type": "object",
   "description": "Input field: b."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 2,
  "object": {
   "x": 1,
   "y": 2
  },
  "schema": "delx/util-merge-shallow/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-merge-shallow-4a9a96e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
