Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    Authorizing Api Requests

    by Daryna Ivanova

    2

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

    Free

    1 installSecurity scanned

    See it in action

    You say

    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?

    Your agent does

    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

    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.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    1 install

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    • Free to download with an account

    Installs1
    Listed1 month ago

    Creator

    Frequently Asked Questions

    Popular in API Development

    Free