Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Mailgun

Scalekit connector
Open markdown

The Mailgun connector lets your AI agent act in each user's Mailgun account. Each user connects their own Mailgun API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 259 tools.

Tools
259
What they doRead · write · destructive
107 · 102 · 50107 read102 write50 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Mailgun connection

    In AgentKit > Connections, create a Mailgun connection. The name you give it is the connection_name your code passes. See Configure connections.

    Console steps with screenshots

    Register your Scalekit environment with the Mailgun connector so Scalekit can authenticate requests on your behalf. The connection name you create will be used to identify and invoke the connection programmatically. Then complete the configuration in your application as follows:

    1. Create an API key

      • Go to Mailgun > Settings > API Keys.

      • Under Mailgun API keys, click Create key. Give it a descriptive name, for example Agent Auth.

        Mailgun API keys

      • Copy the key. Mailgun shows the full key only once at creation — store it securely.

    2. Add the key in Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Find Mailgun and click Create.
      • Paste the API key you copied in step 1.
      • Click Save.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • mailgun_account_get_signing_keyGet the HTTP webhook signing key currently saved on your Mailgun account.Read-only

    Get Webhook Signing Key

    Get the HTTP webhook signing key currently saved on your Mailgun account. This key is used to verify that incoming webhook payloads genuinely originated from Mailgun by checking their signature.

    Inputs

    This tool takes no inputs.

  • mailgun_account_ip_allowlist_listList the IP addresses allowlisted for this Mailgun account.Read-only

    List Account IP Allowlist

    List the IP addresses allowlisted for this Mailgun account. When at least one entry exists, API key and SMTP credential usage is restricted to only these IP addresses — an added security layer so a leaked key/credential can't be used from an unrecognized location. This is a separate, account-security feature from the domain-level sender/recipient allowlist (mailgun_allowlist_* tools, which control suppression bypass for specific addresses).

    Inputs

    This tool takes no inputs.

  • mailgun_account_limits_getRetrieve the current custom sending limit configured on the Mailgun account, including the limit value, how many messages have already been sent in the current period, and the period unit (m=months, d=days, h=hours).Read-only

    Get Custom Sending Limit

    Retrieve the current custom sending limit configured on the Mailgun account, including the limit value, how many messages have already been sent in the current period, and the period unit (m=months, d=days, h=hours). Returns a 404 if no custom limit is set.

    Inputs

    This tool takes no inputs.

  • mailgun_account_list_sandbox_recipientsGet the list of authorized email recipients for your Mailgun sandbox domain, including whether each has activated (accepted the invite) yet.Read-only

    List Sandbox Recipients

    Get the list of authorized email recipients for your Mailgun sandbox domain, including whether each has activated (accepted the invite) yet.

    Inputs

    This tool takes no inputs.

  • mailgun_account_tags_get_limitsGet the account's tag limit and the current number of unique tags in use, so you can tell whether you're approaching the account's tag cap.Read-only

    Get Account Tag Limits

    Get the account's tag limit and the current number of unique tags in use, so you can tell whether you're approaching the account's tag cap.

    Inputs

    This tool takes no inputs.

  • mailgun_account_templates_getRetrieve metadata about a stored account-level template.Read-only

    Get Account Template

    Retrieve metadata about a stored account-level template. If 'active' is set to yes, the content of the active version is included in the response.

    Inputs

    template_namestringrequired
    Account-level template name to fetch.
    activestring
    If set to 'yes', the active version of the template (including its content) is included in the response.
  • mailgun_account_templates_get_versionRetrieve the information and content of a specific version of an account-level template.Read-only

    Get Account Template Version

    Retrieve the information and content of a specific version of an account-level template.

    Inputs

    template_namestringrequired
    Account-level template name the version belongs to.
    version_namestringrequired
    Tag of the version of the template to fetch.