# agent402.tools Text Case Converter

> agent402.tools Text Case Converter 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 input text between eight common programming and typography case styles including camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lower, and UPPER.

## Facts

- Endpoint: POST https://agent402.tools/api/case
- 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-text-case-converter-e628d998
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x_657cWt8ts5YcY_wdZ11

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-text-case-converter-e628d998 -d '<json body>'
```

Example prompt: Convert the text 'hello world example' to camelCase for me.

## When to prefer this

Use this endpoint when you need a reliable, pay-per-call API to programmatically convert identifiers or phrases between standard programming and text case conventions without setting up a local library or string utility.

## Known failure modes

- Missing 'to' field returns an error indicating the target case is required
- Invalid case value (not one of camel, pascal, snake, kebab, constant, title, lower, upper) may return a 400 error
- Missing 'text' field results in an error
- Payment failure (x402) blocks the request
- Empty string input may return an empty string or error

## How this service works

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lower, UPPER.

## Output

The API returns the input text reformatted in the requested case style, e.g. 'hello world example' becomes 'helloWorldExample' for camelCase or 'hello-world-example' for kebab-case.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "camel | pascal | snake | kebab | constant | title | lower | upper"
  },
  "text": {
   "type": "string",
   "description": "Input text"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-text-case-converter-e628d998/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)
