Skip to content
Maua.Culturewire

Mailtrap

Email testing and sending: test inboxes and messages

Developer toolsCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • API tokenSecretRequired

    Where to find them

    1. In Mailtrap open “Settings” → “API Tokens” and create a token with the permissions you need.
    2. Copy it.

    Get credentials (opens in a new tab)

Tools (1)

  • Mailtrap API requestMAILTRAP_SEND_REQUEST

    Authenticated call to the Mailtrap API (https://mailtrap.io/api). Any endpoint of the API is allowed. Examples: GET /accounts, GET /accounts/{accountId}/inboxes, GET /accounts/{accountId}/inboxes/{inboxId}/messages, GET /accounts/{accountId}/inboxes/{inboxId}/messages/{id}/body.html, POST https://send.api.mailtrap.io/api/send {"from": {"email": "…"}, "to": [{"email": "…"}], "subject": "…", "text": "…"} (real send), POST https://sandbox.api.mailtrap.io/api/send/{inboxId} (to a test inbox).

    Required scopes

    No scopes required

    Input

    Mailtrap API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.