← 返回
安全合规 Key 中文

Neynar Inbox

Email for AI agents. Create mailboxes, send and receive emails via API. No browser, no OAuth.
面向 AI 代理的邮件:创建邮箱、发送和接收邮件,使用 API,无需浏览器或 OAuth。
rishavmukherji
安全合规 clawhub v1.0.0 1 版本 99924.9 Key: 需要
★ 0
Stars
📥 1,331
下载
💾 17
安装
1
版本
#agents#api#email#latest

概述

Neynar Inbox

Email service built for AI agents. Create a mailbox, get an API key, send and receive real emails - all via REST API.

Quick Start

1. Create a mailbox (no auth needed)

curl -X POST https://neynar-inbox-api.rish-68c.workers.dev/v1/mailboxes \
  -H "Content-Type: application/json" \
  -d '{"displayName": "My Agent", "username": "myagent"}'

Response:

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "address": "myagent@inbox.neynar.ai",
  "apiKey": "fi_abc123...",
  "warning": "Store the apiKey securely - it cannot be retrieved again."
}

CRITICAL: Store the apiKey immediately. It is only returned once and cannot be recovered.

Username is optional (random address if omitted). Must be at least 6 characters, alphanumeric with dots/hyphens/underscores.

2. Send an email

curl -X POST https://neynar-inbox-api.rish-68c.workers.dev/v1/emails \
  -H "Authorization: Bearer fi_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "to": ["recipient@example.com"],
    "subject": "Hello from my agent",
    "text": "This email was sent by an AI agent!"
  }'

3. Check inbox

curl https://neynar-inbox-api.rish-68c.workers.dev/v1/emails?direction=inbound \
  -H "Authorization: Bearer fi_your_api_key"

RECOMMENDED: If you have heartbeat, cron, or scheduling capabilities, set up polling (every 30-60 seconds) right after creating your mailbox to catch replies.

4. Search emails

curl "https://neynar-inbox-api.rish-68c.workers.dev/v1/search?q=invoice" \
  -H "Authorization: Bearer fi_your_api_key"

API Reference

Base URL: https://neynar-inbox-api.rish-68c.workers.dev/v1

Authentication: Authorization: Bearer (all endpoints except mailbox creation)

MethodEndpointDescription
-------------------------------
POST/v1/mailboxesCreate mailbox (no auth, returns apiKey)
GET/v1/mailboxesList your mailbox
DELETE/v1/mailboxes/:idDelete mailbox
POST/v1/mailboxes/:id/rotateRotate API key
POST/v1/emailsSend email
GET/v1/emailsList emails (?limit=50&offset=0&direction=inbound)
GET/v1/emails/:idGet single email
DELETE/v1/emails/:idDelete email
GET/v1/search?q=queryFull-text search
POST/v1/webhooksRegister webhook
GET/v1/webhooksList webhooks
DELETE/v1/webhooks/:idRemove webhook

Email Object

{
  "id": "uuid",
  "direction": "inbound",
  "from": "sender@example.com",
  "to": ["recipient@example.com"],
  "subject": "Email subject",
  "bodyText": "Plain text body",
  "bodyHtml": "<p>HTML body</p>",
  "status": "received",
  "createdAt": "2024-01-15T10:00:00Z"
}

Webhooks

Register a webhook for real-time email notifications:

curl -X POST https://neynar-inbox-api.rish-68c.workers.dev/v1/webhooks \
  -H "Authorization: Bearer fi_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://your-server.com/webhook", "events": ["email.received"]}'

Verify signatures via X-Webhook-Signature header (HMAC-SHA256 of body).

Error Codes

CodeDescription
-------------------
400Bad request
401Unauthorized - missing or invalid API key
403Forbidden
404Not found
409Username already taken
500Server error

Limits

  • 3 mailboxes per account

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 03:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,221 📥 267,129
developer-tools

Farcaster Agent

rishavmukherji
{"answer":"自主创建 Farcaster 账户并发布 Cast。Farcaster 团队官方技能。"}
★ 10 📥 3,250
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,660