# Delx Commerce URL Encode API

> Delx Commerce URL Encode API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Encodes HTTP request bodies (JSON, form-data, or text) into a URL-safe encoded format for use in agent workflows

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-url-encode-api-5c977226
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LyeoGqLt2ztneibQwut97

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-commerce-url-encode-api-5c977226 -d '<json body>'
```

Example prompt: Encode this JSON body as a URL-safe string for a POST request: {"name": "Alice", "email": "alice@example.com", "plan": "premium"} — the body type is JSON and I expect the output back as JSON.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call URL encoding utility without requiring API keys or signup. It is ideal for AI agents that need to dynamically prepare HTTP request bodies in URL-safe format on demand, especially in x402-compatible micropayment workflows on Base or Solana. Prefer this over self-hosted solutions when you want verifiable delivery and exact pricing per operation.

## Known failure modes

- Missing required fields (input or output) returns a validation error
- Invalid bodyType enum value (must be json, form-data, or text) causes rejection
- Malformed body object that cannot be serialized may result in encoding failure
- Payment failure via x402 protocol results in 402 response and no encoding performed
- Unsupported HTTP method (only POST, PUT, PATCH allowed) causes request rejection

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the URL-encoded representation of the submitted HTTP request body. The exact structure of the response follows the output example provided in the request, adapted to reflect the encoded content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-encode-api-5c977226/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
