# Delx Commerce — URL-Safe Encode

> Delx Commerce — URL-Safe Encode 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 a text string into a URL-safe percent-encoded format, escaping special characters like spaces and ampersands.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-encode-safe?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-safe-encode-40ddd2fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SIx-CEYIyUHXDSJC_NEqf

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-safe-encode-40ddd2fb -d '<json body>'
```

Example prompt: Can you URL-encode the string 'hello delx & agents' so it's safe to use in a web request?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use, no-signup URL-safe percent-encoding utility within an agent workflow, especially when already using the Delx Commerce x402 payment rail on Base or Solana. It is ideal for lightweight automation where spinning up a custom encoding library is overkill, or when operating in a sandboxed environment without access to native URL encoding functions.

## Known failure modes

- Missing or empty 'text' field returns an error response
- Extremely long input strings may be rejected or truncated
- Network timeouts if the service is temporarily unavailable
- Payment failure via x402 if USDC balance is insufficient

## 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 percent-encoded version of the input text (e.g. spaces become %20, ampersands become %26) plus a schema identifier string ('delx/util-url-encode-safe/v1') confirming the encoding standard used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "hello%20delx%20%26%20agents",
  "schema": "delx/util-url-encode-safe/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-safe-encode-40ddd2fb/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)
