
authorizing-api-requests
Secure authentication and account resolution for Mailtrap Email Sending, Sandbox, and Account APIs.
- Securely manage API tokens for production, staging, and sandbox environments.
- Dynamically resolve account_id to prevent hardcoding in multi-tenant setups.
- Identify the correct token scope for Email Sending vs. Email Testing.
Free
Sample input
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?
Sample output
To list contact lists, use the account-scoped endpoint.
- Fetch your ID:
export MAILTRAP_ACCOUNT_ID=$(curl -s https://mailtrap.io/api/accounts -H "Authorization: Bearer $MAILTRAP_API_TOKEN" | jq '.[0].id') - Request:
GET https://mailtrap.io/api/accounts/$MAILTRAP_ACCOUNT_ID/contacts/lists
Secure authentication and account resolution for Mailtrap Email Sending, Sandbox, and Account APIs.
Free
Included in download
- Downloadable skill package
- 2 permissions declared
- Instant install
Sample input
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?
Sample output
To list contact lists, use the account-scoped endpoint.
- Fetch your ID:
export MAILTRAP_ACCOUNT_ID=$(curl -s https://mailtrap.io/api/accounts -H "Authorization: Bearer $MAILTRAP_API_TOKEN" | jq '.[0].id') - 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.
Use Cases
- Securely manage API tokens for production, staging, and sandbox environments.
- Dynamically resolve account_id to prevent hardcoding in multi-tenant setups.
- Identify the correct token scope for Email Sending vs. Email Testing.
- Setting up auth before writing any Mailtrap API call
Known Limitations
- 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 Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/authorizing-api-requests -o /tmp/authorizing-api-requests.zip && unzip -o /tmp/authorizing-api-requests.zip -d ~/.claude/skills && rm /tmp/authorizing-api-requests.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
No special requirements. Works with any SKILL.md-compatible agent.
Creator
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
Multi-Agent Orchestration Master Library
Transform Claude Code into a coordinated multi-agent system. Battle-tested tmux orchestration patterns, YAML task queues, event-driven communication, and parallel worker management for 8+ agents.
subagent-orchestrator (Develop based on the Claude Code sourcemap)
Turn your AI agent into a coordinator that manages parallel subagents for complex coding and research tasks.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.