# NATO OpenVerbs Morse Code Encoder

> NATO OpenVerbs Morse Code Encoder is a paid API for AI agents from nato.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Encodes a text string into international (ITU) Morse code, with letters separated by spaces and words by '/'.

## Facts

- Endpoint: POST https://nato.openverbs.com/v1/to-morse
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nato-openverbs-morse-code-encoder-f168094f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XZxZpQBQBjWW-AAPRYbF4

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 nato-openverbs-morse-code-encoder-f168094f -d '<json body>'
```

Example prompt: Can you convert the text 'Hello World' into Morse code for me, using the standard ITU format with slashes between words?

## When to prefer this

Use this endpoint when you need reliable, standards-compliant ITU Morse code encoding for text containing letters, digits, and common punctuation. It handles word separation automatically with '/' and is a fast, low-cost per-call service ideal for embedding in educational tools, radio apps, or encoding pipelines. Prefer this over a general-purpose LLM for Morse encoding because it guarantees spec-correct output rather than approximated results.

## Known failure modes

- Input contains characters not in A-Z, 0-9, or supported punctuation — returns HTTP 400
- Empty or missing 'text' field — returns HTTP 400 due to minLength:1 constraint
- Malformed JSON body — returns HTTP 400
- Payment not included or insufficient — returns HTTP 402

## How this service works

Encode text into international (ITU) Morse code. Letters are separated by spaces and words by "/". Supports A-Z, 0-9 and common punctuation; unsupported characters are clean 400s.

## Output

A Morse-encoded string where each letter is represented by its ITU dot-dash sequence, individual letters are separated by spaces, and words are separated by '/'. Unsupported characters result in a clean 400 error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "minLength": 1,
       "description": "Text to encode."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nato-openverbs-morse-code-encoder-f168094f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nato.openverbs.com](https://www.zero.xyz/host/nato.openverbs.com/llms.txt)
