# Delx URL Encode

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

URL-encodes or decodes a text string for use in HTTP requests, query parameters, or other URL contexts.

## Facts

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

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-url-encode-ca37a172 -d '<json body>'
```

Example prompt: Can you URL-encode this string for me so I can safely use it in a query parameter: 'hello world & foo=bar'?

## When to prefer this

Use this endpoint when an agent needs a quick, reliable, pay-per-call URL encoding or decoding operation without managing a local library or runtime. Ideal for serverless or sandboxed agent environments where standard URL utilities are unavailable.

## Known failure modes

- Empty or missing input text returns an error
- Invalid encoding direction parameter may cause unexpected output
- Very large payloads may be rejected or truncated
- Network or service unavailability returns a non-200 response

## How this service works

URL-encode or decode text for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

The endpoint returns the URL-encoded or URL-decoded version of the submitted text string, ready for use in query parameters, paths, or HTTP requests.

## 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-url-encode-ca37a172/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)
