Skip to content

Morse Code API

This API translates standard text into International Morse Code and vice versa. It handles alphanumeric characters and punctuation, using standard spacing for readability.

POST /api/v1/morse

The following parameters are accepted in the request body:

FieldTypeRequiredDescription
textstringYesThe input string (Text or Morse code).
modestringOptionalencode (Text to Morse) or decode (Morse to Text). Default: encode.
Terminal window
# Encoding to Morse
curl -X POST https://heavstal.com.ng/api/v1/morse \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"text": "HELLO WORLD", "mode": "encode"}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"input": "HELLO WORLD",
"output": ".... . .-.. .-.. --- / .-- --- .-. .-.. -..",
"mode": "encode"
}
}