← All tool references

Communication · not_available

Mailto Link Generator

Build a mailto link from recipient and message fields.

Open public tool

Overview

Category
Communication
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/mailto-link-generator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/mailto-link-generator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

to · string · required
Enter to.
cc · string · optional
Enter cc.
bcc · string · optional
Enter bcc.
subject · string · required
Enter subject.
body · string · required
Enter message body.
{
    "type": "object",
    "properties": {
        "to": {
            "type": "string",
            "description": "Enter to."
        },
        "cc": {
            "type": "string",
            "description": "Enter cc."
        },
        "bcc": {
            "type": "string",
            "description": "Enter bcc."
        },
        "subject": {
            "type": "string",
            "description": "Enter subject."
        },
        "body": {
            "type": "string",
            "description": "Enter message body."
        }
    },
    "required": [
        "to",
        "subject",
        "body"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

mailto_url · string
Mailto URL produced by the tool.
html_link · string
HTML link produced by the tool.
recipient_count · number
Recipients produced by the tool.
{
    "type": "object",
    "properties": {
        "mailto_url": {
            "type": "string",
            "description": "Mailto URL produced by the tool."
        },
        "html_link": {
            "type": "string",
            "description": "HTML link produced by the tool."
        },
        "recipient_count": {
            "type": "number",
            "description": "Recipients produced by the tool."
        }
    },
    "additionalProperties": false
}

Mailto Link Generator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/mailto-link-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "[email protected]",
    "cc": "[email protected]",
    "bcc": "",
    "subject": "UtilityPages tool feedback",
    "body": "I tested the new tool and wanted to share feedback."
}'
{
    "ok": true,
    "data": {
        "slug": "mailto-link-generator",
        "result": {
            "values": {
                "mailto_url": "mailto:[email protected]?cc=team%40example.com&subject=UtilityPages+tool+feedback&body=I+tested+the+new+tool+and+wanted+to+share+feedback.",
                "html_link": "<a href=\"mailto:[email protected]?cc=team%40example.com&amp;subject=UtilityPages+tool+feedback&amp;body=I+tested+the+new+tool+and+wanted+to+share+feedback.\">Send email</a>",
                "recipient_count": 2
            },
            "display": {
                "display": "mailto:[email protected]?cc=team%40example.com&subject=UtilityPages+tool+feedback&body=I+tested+the+new+tool+and+wanted+to+share+feedback."
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.