- Home
- Skills
- APIs & Backend
- authorizing-api-requests
Works with the AI Agents you already use
Authorizing Api Requests
Secure authentication and account resolution for Mailtrap Email Sending, Sandbox, and Account APIs.
Free
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.
- 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
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Allowed Hosts