canonical: https://jentic.com/apis/sendraven.ai/sendraven

# SendRaven

The SendRaven API sends, receives, and threads email for software that holds conversations, with replies threaded automatically and returned with quoted history removed. It sends single messages or batches of up to 100 from a verified domain, schedules or cancels sends, and lets a key be configured to require approval so its mail is held for a person to approve or reject. Beyond conversations it manages contacts, audiences, segments, topics and preferences, templates with required variables, automations with enrolments, broadcast campaigns with A/B winners, suppressions, sending domains, and webhook endpoints.

## For AI agents

Send and receive threaded email through SendRaven, list conversations awaiting a reply, hold sends for human approval, and manage contacts, audiences, templates, automations, and campaigns.

## Scope

Does not send SMS, place calls, or verify recipient mailboxes before sending. Use for sending, receiving, and managing email conversations and campaigns only.

## Capabilities

- Send one email with an Idempotency-Key, schedule it with scheduled_at, or send up to 100 in a batch
- List conversations awaiting a reply and read each thread with quoted history removed
- Mark a conversation as handled without sending a courtesy reply
- Hold an agent's sends for human approval and approve or reject each held message
- Render a template with variables without sending, and list each template's required variables
- Enrol a contact in an automation or emit an event that triggers one
- Create, preview, and send or schedule a broadcast campaign and decide its A/B winner

## Use cases

### AI agent holding email conversations

An agent that corresponds with customers needs to send, see replies, and know which threads still need an answer. Through Jentic the agent searches for 'list conversations awaiting a reply', loads the SendRaven threads operation, and calls it with awaiting_reply set, using the key injected by your own Jentic One instance. It reads each thread, replies with thread_id so the message stays in the conversation, or marks it handled when no answer is needed.

Example prompt: Call GET `/v1/threads` with awaiting_reply true, read each with GET `/v1/threads/{id}`, then reply with POST `/v1/emails` using thread_id or call POST `/v1/threads/{id}/handled`

### Human approval for agent-sent mail

Developers letting an agent send email often want a person to sign off first. A SendRaven key configured to require approval drafts instead of sending: the send returns status pending_approval with an approval_id, and the held message waits in the approvals list, expiring 72 hours after the send by default. Only a key without guardrails that did not make the draft, or a person in the dashboard, can decide it, so an agent cannot release its own mail.

Example prompt: Call GET `/v1/approvals`, review each held message, and call POST `/v1/approvals/{id}` with decision approve or reject and decided_by set to the reviewer

### Lifecycle automations from product events

Product teams trigger onboarding or win-back email from what users do. SendRaven emits events that automations listen for, enrols a person in an automation directly, and lists an automation's enrolments by status. Automations can be activated or paused, and their exits or reply-to address changed, without rebuilding them.

Example prompt: Call POST `/v1/events` for a signup event, then check GET `/v1/automations/{id}/enrollments` to confirm the user was enrolled

### Broadcast campaigns to an audience

Marketing sends go to an audience or segment rather than one address. SendRaven creates a campaign, previews it with sample data, sends or schedules it, and lists its recipients and clicked links afterwards. Topic preferences let recipients opt out of one kind of mail without unsubscribing from everything.

Example prompt: Call POST `/v1/broadcasts` for an audience, check GET `/v1/broadcasts/{id}/preview`, then POST `/v1/broadcasts/{id}/send` and later read GET `/v1/broadcasts/{id}/links/clicked`

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/v1/emails` | Send an email |
| GET | `/v1/threads` | List conversations |
| GET | `/v1/threads/{id}` | Read a conversation |
| POST | `/v1/threads/{id}/handled` | Mark a conversation handled |
| GET | `/v1/approvals` | List held messages |
| POST | `/v1/approvals/{id}` | Approve or reject a held message |
| POST | `/v1/automations/{id}/enroll` | Enrol someone in an automation |
| POST | `/v1/broadcasts/{id}/send` | Send or schedule a campaign |

## Key resources

- **Emails** — Send, batch, schedule, cancel, list, and read emails with their event timeline and metrics
- **Threads and inbound** — Conversations awaiting a reply, thread reads, handled marking, and inbound attachments
- **Approvals** — Messages held for human approval and the approve or reject decision
- **Contacts, audiences, segments, and topics** — Contact records, tags, custom properties, audience membership, segment counts, and topic preferences
- **Templates, automations, and broadcasts** — Templates with required variables, event-driven automations, and campaigns with previews and A/B winners
- **Domains, suppressions, and webhooks** — Sending domain verification, suppressed addresses, and webhook endpoints with delivery attempts

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 54 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 86 / 100
  - Developer Experience & Jentic Compatibility: 69 / 100
  - AI-Readiness & Agent Experience: 29 / 100
  - Agent Usability: 88 / 100
  - Security: 60 / 100
  - AI Discoverability: 65 / 100
- **View full report:** https://jentic.com/apis/sendraven.ai/sendraven/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring SendRaven by hand means choosing between an sk_live_ key and an OAuth token, matching each operation to its required scope, and sending an Idempotency-Key on every write. Through Jentic you install once, import SendRaven from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** SendRaven puts thread, audience, and automation ids in the URL path (`/v1/threads/{id}`, `/v1/audiences/{id}/contacts`), so a rule can pin your agent to one conversation or one audience plus the operations you pick. You choose the operations it may call, so ones like POST `/v1/broadcasts/{id}/send` or DELETE `/v1/audiences/{id}` are not included unless you add them.
- **Credential handling:** Your SendRaven API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'list conversations awaiting a reply' or 'send an email in a thread', and Jentic returns the matching SendRaven operation with its input schema so the agent calls the right endpoint.

## Related APIs

- **SendHQ** — Send and receive email with inboxes, labels, and hosted templates
- **Resend** — Developer-focused transactional email API with domains and audiences
- **Sendbridge** — Email address verification, mail testing, and DMARC reports

## FAQ

### What authentication does the SendRaven API use?

SendRaven authenticates with a bearer token per its OpenAPI spec: either an API key of the form sk_live_ created in the developer settings, or an OAuth access token beginning srv_oat_. The spec notes an OAuth token carries its grant's scopes but none of an API key's guardrails and cannot decide approvals. Each operation names the scope it needs, such as emails:send. Through Jentic the key is stored by your own instance and injected at call time.

### Can SendRaven hold my agent's emails for human approval?

Yes. A key configured with requires_approval drafts instead of sending: POST `/v1/emails` answers 202 with status pending_approval and an approval_id. GET `/v1/approvals` lists pending approvals oldest first, and POST `/v1/approvals/{id}` takes a decision of approve or reject plus decided_by. The key that made the draft, any guardrailed key, and OAuth tokens are refused, so the agent cannot approve its own mail.

### What are the rate limits for the SendRaven API?

The OpenAPI spec does not publish request rate limits. It does document send limits: at most 50 recipients across to, cc, and bcc per message, batches of 1 to 100 entries, and an optional daily_send_limit guardrail on a key. GET `/v1/usage` reports plan usage, and current plan limits are at https://sendraven.ai.

### Is there a SendRaven MCP server?

You don't need an MCP server to give your agent SendRaven. Jentic connects it directly from the API Directory: import it, store your API key once, and your agent finds the send, thread, and approval operations it needs on demand.

### How do I reply inside an existing SendRaven thread through Jentic?

Search Jentic for 'reply to an email conversation', load POST `/v1/emails`, and execute it with from, to, your html or text, and the thread_id from GET `/v1/threads/{id}`, plus an Idempotency-Key so a retry returns the original result. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the SendRaven API?

Yes. For a support agent, allow GET `/v1/threads`, GET `/v1/threads/{id}`, POST `/v1/threads/{id}/handled`, and POST `/v1/emails`, so it can read conversations, reply, and clear threads but cannot send broadcasts, delete audiences, or decide approvals. Every call it makes is logged, and SendRaven's own key guardrails such as allowed_recipients add a second check.
