# agent402.tools Slugify

> agent402.tools Slugify is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts arbitrary text into a URL-safe slug by lowercasing, replacing spaces with a separator, and stripping diacritics/special characters.

## Facts

- Endpoint: POST https://agent402.tools/api/slugify
- 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/agent402-tools-slugify-33af30f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_20sRAZeDaMJ-CWgJyKCu4

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 agent402-tools-slugify-33af30f1 -d '<json body>'
```

Example prompt: Can you slugify the title 'Héllo Wörld: Best Práctices & Tips!' using underscores as the separator?

## When to prefer this

Use this endpoint when you need a reliable, diacritic-stripping, URL-safe slug from arbitrary human-readable text — especially when the text may contain accented characters, punctuation, or mixed case that other naive slug functions would handle poorly. Prefer it over rolling your own regex when correctness across international characters matters.

## Known failure modes

- Empty text input returns an empty slug or validation error
- Unsupported separator characters may cause unexpected output
- Very long input strings may be truncated or rejected
- Non-string input types may return a 400 error
- Network or payment failure returns a 402 or 5xx status

## How this service works

Turn any text into a URL-safe slug (lowercase, hyphenated, diacritics stripped).

## Output

Returns a URL-safe slug string derived from the input text, with diacritics stripped, characters lowercased, and words joined by the specified separator (default: hyphen).

## Example request

```json
{
 "text": "Héllo Wörld: Best Práctices & Tips!",
 "separator": "_"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to slugify"
  },
  "separator": {
   "type": "string",
   "description": "Default -"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "hello-world-2024"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-slugify-33af30f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
