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

# Sentvia SentFromAI API

The SentFromAI API, listed here under the sentvia.ai domain, runs email for AI agents: it provisions inboxes, delivers outbound mail, and keeps inbound mail organised into threads an agent can read back. Calls go to the api.sentfrom.ai host and cover messages, replies, forwards, scheduled drafts, labels, address allow and block rules, webhooks, attachments behind signed download URLs, and custom or dedicated sending domains with DMARC settings. Its message search runs in keyword, semantic, or hybrid mode.

## For AI agents

Give an agent an inbox, then read threads, answer and forward mail, label messages, fetch attachments, and search the mailbox by keyword or meaning.

## Scope

Does not handle SMS, calendar invites, or newsletter campaigns. Use for agent mailboxes: threads, labels, attachments, and address rules only.

## Capabilities

- Provision an inbox per agent from a local_part, optionally on a custom domain_id
- Read a whole thread with its messages, then answer in place with a text or html reply
- Forward a message to new recipients, optionally from a different from_inbox_id
- Tag messages by assigning or unassigning labels created with a name and color
- Fetch a signed download URL for an attachment by its id
- Allow or block address patterns per direction (inbound, outbound, or both) with list rules
- Read account state, capabilities, and limits before deciding what the agent can send

## Use cases

### AI Agent Mailbox Triage Through Jentic

A triage agent connected through Jentic reads incoming threads, labels each one, and drafts answers for a human to approve. It finds each operation by intent, such as 'read an email thread' or 'label a message', and receives the input schema without anyone hand-wiring bearer auth. Because drafts are separate from sending, the developer can keep the agent on the read, label, and draft side.

Example prompt: Search Jentic for 'read an email thread', call getThread on the newest thread from listThreads, assign the 'needs-review' label to its last message with assignLabel, then createDraft with a suggested reply

### Attachment Handling for Document Workflows

Invoices, quotes, and contracts usually arrive as attachments. After reading a message, the agent requests a signed download URL for each attachment id and hands the file to a parser or storage step. Forwarding the original message to a finance address keeps a human in the loop without re-uploading the file.

Example prompt: Call GET `/messages/{id}` for the quote email, GET `/attachments/{id}` for its PDF attachment to get the signed URL, then POST `/messages/{id}/forward` with to 'finance@example.com'

### Sender Hygiene With Allow and Block Rules

An agent mailbox should not answer spam or write to addresses it should never contact. List rules take a kind of allow or block, a direction of inbound, outbound, or both, and a pattern, so the developer can fence the mailbox at the address level. Custom domains can be verified and given a DMARC policy so outbound mail authenticates.

Example prompt: Call POST /lists with kind 'block', direction 'outbound', and pattern '*@competitor.example', then POST `/domains/{id}/verify` for the custom sending domain

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/threads` | List threads |
| GET | `/threads/{id}` | Get a thread with messages |
| POST | `/messages/{id}/forward` | Forward a message |
| POST | `/labels/{id}/assign` | Assign a label to a message |
| GET | `/attachments/{id}` | Get a signed attachment download URL |
| POST | `/lists` | Create an allow or block rule |
| GET | `/account` | Get account state and limits |

## Key resources

- **Inboxes** — Create, list, and delete agent inboxes
- **Messages and Threads** — Send, search, read, reply to, and forward messages; read threads
- **Labels** — Create labels and assign or unassign them on messages
- **Lists** — Allow and block rules by address pattern and direction
- **Attachments** — Signed download URLs for message attachments
- **Account** — Account state, capabilities, limits, and the claim link

## 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: 73 / 100
  - Developer Experience & Jentic Compatibility: 59 / 100
  - AI-Readiness & Agent Experience: 39 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 35 / 100
- **View full report:** https://jentic.com/apis/sentvia.ai/sentvia/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 this API by hand means adding its bearer token to every call, chaining thread, message, label, and attachment ids between requests, and handling the unauthenticated agent signup path separately. Through Jentic you install once, import it from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Most mailbox targets, such as the sending inbox_id or the message_id being labelled, travel in the request body, so rules bound which operations your agent may call rather than which inbox it touches. Pick read, label, and draft operations and leave sending, inbox deletion, and domain changes out unless you add them.
- **Credential handling:** Your token 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 'label a message' or 'download an email attachment', and Jentic returns the matching operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **SentFromAI API** — The same SentFromAI spec listed under its own sentfrom.ai domain
- **MyAgentMail API** — Email inboxes for AI agents from a different provider
- **Nylas API** — Connects to existing Gmail and Microsoft mailboxes

## FAQ

### Is there a Sentvia MCP server?

You don't need an MCP server to give your agent this API. Jentic connects it directly from the API Directory: import it, store your token once, and your agent finds the thread, label, and attachment operations by intent when it needs them.

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

Yes. For a triage assistant, allow listThreads, getThread, assignLabel, and createDraft. The agent can read mail, tag it, and prepare replies, but sendMessage, sendDraft, and forwardMessage are not in its set, so nothing leaves the mailbox until you send it. Every call it makes is logged by your self-hosted instance.

### How is the sentvia.ai listing related to SentFromAI?

The spec under sentvia.ai is the SentFromAI API: same title, same operations, and the same api.sentfrom.ai server. Either directory entry gives your agent the same mailbox operations.

### What authentication does the SentFromAI API use?

The spec declares HTTP bearer authentication, so each call carries the API key as a Bearer token in the Authorization header. The exception is POST /agent-signups, which the spec marks with no security and which needs an Idempotency-Key header instead. Through Jentic the token is stored encrypted by your own Jentic One instance and added when the call runs.

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

No numeric rate limits appear in the OpenAPI spec. The getAccountStatus operation returns the account's current capabilities and limits, which is the reliable way for an agent to check; see https://sentfrom.ai for plan details.

### How do I read and label an email thread through Jentic?

Search Jentic for 'read an email thread' to get getThread, call it with a thread id from listThreads, then search for 'label a message' to get assignLabel and pass the label id in the path with message_id in the body. To run it on your own infrastructure, install Jentic One from its GitHub repo.
