Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Authorizing Api Requests

    3

    Secure authentication and account resolution for Mailtrap Email Sending, Sandbox, and Account APIs.

    Free

    5 usesSecurity scanned
    authorizing-api-requests

    authorizing-api-requests

    Example session with this skill installed

    I need to make an API call to list my Mailtrap contact lists. How should I set up the auth headers and the account ID in the URL?

    • Read your context and instructions
    • Compiled the authorizing-api-requests

    To list contact lists, use the account-scoped endpoint.

    1. Fetch your ID: export MAILTRAP_ACCOUNT_ID=$(curl -s https://mailtrap.io/api/accounts -H "Authorization: Bearer $MAILTRAP_API_TOKEN" | jq '.[0].id')
    2. Request: GET https://mailtrap.io/api/accounts/$MAILTRAP_ACCOUNT_ID/contacts/lists

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A reference skill for any agent working with the Mailtrap API. Covers the two accepted auth header formats (Bearer and Api-Token), how to scope tokens to the minimum required surface (transactional, bulk, sandbox, account-level), where to store tokens safely across environments (local dev, CI, production), and a one-liner to resolve account_id dynamically so it never gets hardcoded. Includes a common-mistakes table covering the most frequent auth failures.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    • Does not support SMTP AUTH (API only).
    • Token scopes cannot be modified after creation: must delete and recreate.
    • No automatic account switching for multi-org users.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    5 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 months ago

    • Free with an Agensi account

    Accounts
    Mailtrap

    Permissions

    Network Access
    Environment Variables

    Allowed Hosts

    mailtrap.io
    send.api.mailtrap.io
    sandbox.api.mailtrap.io
    Listed5 months ago

    What's inside

    Frequently Asked Questions

    This skill provides a secure framework for managing Mailtrap authentication, including support for both Bearer and Api-Token headers across Transactional, Bulk, Sandbox, and Account APIs. It eliminates hardcoding by offering dynamic account ID resolution and best practices for token scoping.

    The skill is designed as a universal reference module compatible with any LLM-based agent or orchestration framework that supports API interactions via Python, JavaScript, or cURL. It integrates seamlessly into local development, CI/CD pipelines, and production environments.

    You receive an integration guide covering the dual auth formats, a dynamic resolution script for account IDs, a security-first storage strategy, and a 'common mistakes' troubleshooting table. It is designed for immediate drop-in use to harden your agent's email infrastructure.

    The package includes instructions for secure environment variable management (ENVs) and specific guidance on using the principle of least privilege to scope tokens to either specific domains or account-level functions.

    No, this skill features a dynamic resolution method that automatically fetches the required account_id during the handshake process, making your agent's code more portable and less prone to configuration errors.

    New in APIs & Backend

    Free