# Send Sendook Email (Restricted) to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sendook-openclaw",
    "name": "Sendook Email (Restricted)",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/obaid/sendook-openclaw",
    "canonicalUrl": "https://clawhub.ai/obaid/sendook-openclaw",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/sendook-openclaw",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sendook-openclaw",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "sendook-openclaw",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T07:00:17.222Z",
      "expiresAt": "2026-05-08T07:00:17.222Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sendook-openclaw",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sendook-openclaw",
        "contentDisposition": "attachment; filename=\"sendook-openclaw-1.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "sendook-openclaw"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/sendook-openclaw"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sendook-openclaw",
    "downloadUrl": "https://openagent3.xyz/downloads/sendook-openclaw",
    "agentUrl": "https://openagent3.xyz/skills/sendook-openclaw/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sendook-openclaw/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sendook-openclaw/agent.md"
  }
}
```
## Documentation

### Sendook Email SDK (Restricted)

Read and send emails from an existing Sendook inbox.

Scope Limitations: This skill can ONLY read and send emails from a pre-configured inbox. You CANNOT create or delete inboxes, manage domains, manage webhooks, or manage API keys. Do not attempt these operations — they are not available.

### Installation

Install the skill into your OpenClaw workspace:

clawhub install sendook-openclaw

This adds the skill to your workspace's skills/ directory. OpenClaw will automatically pick it up on the next session start.

### Environment Variables

Set these in your OpenClaw workspace or shell environment:

SENDOOK_API_KEY — Your Sendook API key
SENDOOK_INBOX_ID — The inbox ID this agent is allowed to use

### Setup

Install the SDK (npm | source):

npm install @sendook/node

import Sendook from "@sendook/node";

const client = new Sendook(process.env.SENDOOK_API_KEY);
const INBOX_ID = process.env.SENDOOK_INBOX_ID;

Both environment variables are required. Use a least-privileged API key scoped to the target inbox only.

### List Messages

// List all messages in the inbox
const messages = await client.inbox.message.list(INBOX_ID);

// Search messages (regex-based search across to/from/cc, subject, and body)
const results = await client.inbox.message.list(INBOX_ID, "invoice");

# List all messages
curl https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/messages \\
  -H "Authorization: Bearer $SENDOOK_API_KEY"

# Search messages
curl "https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/messages?query=invoice" \\
  -H "Authorization: Bearer $SENDOOK_API_KEY"

### Get Message

const message = await client.inbox.message.get(INBOX_ID, "msg_def456");

curl https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/messages/msg_def456 \\
  -H "Authorization: Bearer $SENDOOK_API_KEY"

Response:

{
  "id": "msg_def456",
  "from": "sender@example.com",
  "to": ["support@yourdomain.com"],
  "subject": "Question about my order",
  "text": "Hi, I have a question about order #12345...",
  "html": "<p>Hi, I have a question about order #12345...</p>",
  "labels": [],
  "threadId": "thread_ghi789",
  "createdAt": "2025-01-15T10:35:00Z"
}

### List Threads

const threads = await client.inbox.thread.list(INBOX_ID);

curl https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/threads \\
  -H "Authorization: Bearer $SENDOOK_API_KEY"

### Get Thread

Retrieve a full conversation with all messages.

const thread = await client.inbox.thread.get(INBOX_ID, "thread_ghi789");
// thread.messages contains all messages in the conversation

curl https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/threads/thread_ghi789 \\
  -H "Authorization: Bearer $SENDOOK_API_KEY"

### Send Message

await client.inbox.message.send({
  inboxId: INBOX_ID,
  to: ["recipient@example.com"],
  subject: "Hello from Sendook",
  text: "Plain text body",
  html: "<h1>Hello</h1><p>HTML body</p>",
});

curl -X POST https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/messages/send \\
  -H "Authorization: Bearer $SENDOOK_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "to": ["recipient@example.com"],
    "subject": "Hello from Sendook",
    "text": "Plain text body"
  }'

### Send with Attachments

Important: Always confirm with the user before reading any local file to attach. Only attach files the user has explicitly requested. Never read files outside the current working directory or project scope (e.g., no ~/.ssh, ~/.env, /etc, or credential files).

import { readFileSync } from "fs";
import { resolve } from "path";

// Only attach files explicitly provided by the user
const filePath = resolve("./reports/report.pdf");

await client.inbox.message.send({
  inboxId: INBOX_ID,
  to: ["recipient@example.com"],
  subject: "Report attached",
  text: "Please find the report attached.",
  attachments: [
    {
      content: readFileSync(filePath).toString("base64"),
      name: "report.pdf",
      contentType: "application/pdf",
    },
  ],
});

### Reply to Message

await client.inbox.message.reply({
  inboxId: INBOX_ID,
  messageId: "msg_def456",
  text: "Thanks for your email! We'll look into this.",
  html: "<p>Thanks for your email! We'll look into this.</p>",
});

curl -X POST https://api.sendook.com/v1/inboxes/$SENDOOK_INBOX_ID/messages/msg_def456/reply \\
  -H "Authorization: Bearer $SENDOOK_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{"text": "Thanks for your email! We'\\''ll look into this."}'

### Complete Example

List recent emails, read the latest, and reply:

import Sendook from "@sendook/node";

const client = new Sendook(process.env.SENDOOK_API_KEY);
const INBOX_ID = process.env.SENDOOK_INBOX_ID;

// 1. List recent messages
const messages = await client.inbox.message.list(INBOX_ID);

if (messages.length > 0) {
  // 2. Read the latest message
  const latest = await client.inbox.message.get(INBOX_ID, messages[0].id);
  console.log(\`From: ${latest.from}\`);
  console.log(\`Subject: ${latest.subject}\`);
  console.log(\`Body: ${latest.text}\`);

  // 3. Reply to it
  await client.inbox.message.reply({
    inboxId: INBOX_ID,
    messageId: latest.id,
    text: \`Thanks for reaching out! We received your message about "${latest.subject}".\`,
  });
}

// 4. Send a new email
await client.inbox.message.send({
  inboxId: INBOX_ID,
  to: ["team@example.com"],
  subject: "Daily inbox summary",
  text: \`Processed ${messages.length} messages today.\`,
});

### Error Handling

try {
  await client.inbox.message.send({
    inboxId: INBOX_ID,
    to: ["recipient@example.com"],
    subject: "Hello",
    text: "Body",
  });
} catch (error) {
  if (error.response) {
    console.error(error.response.status, error.response.data);
  } else if (error.request) {
    console.error("No response:", error.request);
  } else {
    console.error("Error:", error.message);
  }
}

### Common Errors

StatusMeaning400Bad request — check parameters (missing to, subject, etc.)401Unauthorized — invalid or missing API key404Message or thread not found429Rate limit exceeded — retry with backoff500Internal server error

### API Reference

MethodDescriptionclient.inbox.message.list(inboxId, query?)List or search messagesclient.inbox.message.get(inboxId, messageId)Get a specific messageclient.inbox.message.send(options)Send a new emailclient.inbox.message.reply(options)Reply to a messageclient.inbox.thread.list(inboxId)List conversation threadsclient.inbox.thread.get(inboxId, threadId)Get thread with all messages

No other methods are available in this skill. Do not attempt to create/delete inboxes, manage domains, configure webhooks, or manage API keys.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: obaid
- Version: 1.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T07:00:17.222Z
- Expires at: 2026-05-08T07:00:17.222Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/sendook-openclaw)
- [Send to Agent page](https://openagent3.xyz/skills/sendook-openclaw/agent)
- [JSON manifest](https://openagent3.xyz/skills/sendook-openclaw/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/sendook-openclaw/agent.md)
- [Download page](https://openagent3.xyz/downloads/sendook-openclaw)