# Inkbox

> Read and send agent email and monitor incoming and outgoing messages.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/inkbox

## Actions

### Get email message

Read full headers and body. Inkbox marks an unread incoming message as read.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Message (`message_id`, text, required): Message.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "attachment_metadata": null,
    "bcc_addresses": null,
    "body_html": "<p>Hi! Your order #1234 has been confirmed and will ship within 2 business days.</p>",
    "body_text": "Hi! Your order #1234 has been confirmed and will ship within 2 business days.",
    "cc_addresses": null,
    "created_at": "2025-03-01T12:00:00Z",
    "direction": "outbound",
    "first_opened_at": null,
    "from_address": "agent-sales@inkboxmail.com",
    "has_attachments": false,
    "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "import_job_id": null,
    "in_reply_to": null,
    "is_read": true,
    "is_starred": false,
    "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "message_id": "<20250301120000.abc123@inkboxmail.com>",
    "open_count": 0,
    "references": null,
    "reply_to": null,
    "ses_message_id": "0102018abc123def-abcdef01-2345-6789-abcd-ef0123456789-000000",
    "snippet": "Hi! Your order #1234 has been confirmed and will ship within...",
    "status": "sent",
    "subject": "Your order is confirmed",
    "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
    "to_addresses": [
      "customer@example.com"
    ],
    "updated_at": "2025-03-01T12:00:00Z"
  }
}
```

### Get email thread

Read a thread and its messages.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Thread (`thread_id`, text, required): Thread.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "created_at": "2025-03-01T12:00:00Z",
    "folder": "inbox",
    "id": "d4e5f6a7-b8c9-0123-defa-234567890123",
    "last_message_at": "2025-03-02T09:15:00Z",
    "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "message_count": 2,
    "messages": [
      {
        "cc_addresses": null,
        "created_at": "2025-03-01T12:00:00Z",
        "direction": "outbound",
        "from_address": "agent-sales@inkboxmail.com",
        "has_attachments": false,
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "is_read": true,
        "is_starred": false,
        "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "message_id": "<20250301120000.abc123@inkboxmail.com>",
        "snippet": "Hi! Your order #1234 has been confirmed...",
        "status": "sent",
        "subject": "Your order is confirmed",
        "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
        "to_addresses": [
          "customer@example.com"
        ]
      },
      {
        "cc_addresses": null,
        "created_at": "2025-03-02T09:15:00Z",
        "direction": "inbound",
        "from_address": "customer@example.com",
        "has_attachments": false,
        "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
        "is_read": false,
        "is_starred": false,
        "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "message_id": "<20250302091500.def456@example.com>",
        "snippet": "Thanks! When will it arrive?",
        "status": "received",
        "subject": "Re: Your order is confirmed",
        "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
        "to_addresses": [
          "agent-sales@inkboxmail.com"
        ]
      }
    ],
    "subject": "Your order is confirmed"
  }
}
```

### Get mailbox

Read a mailbox address and its storage usage.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "agent_identity_id": "sample_agent_identity_id",
    "created_at": "Example",
    "email_address": "Example",
    "id": "sample_id",
    "sending_domain": "Example",
    "signature_enabled": false,
    "signature_html": "Example",
    "signature_text": "Example",
    "storage_limit_bytes": 1,
    "storage_used_bytes": 1,
    "updated_at": "Example"
  }
}
```

### List email drafts

Read a page of saved drafts, newest update first.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Cursor (`cursor`, text): Cursor from the previous page.
- Limit (`limit`, number): The maximum results to return. From 1 to 100.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "has_more": true,
    "items": [
      {
        "from_address": "draft",
        "generation": 1,
        "id": "draft",
        "send_state": "draft",
        "snippet": "draft",
        "subject": "draft",
        "updated_at": "draft"
      }
    ],
    "next_cursor": "eyJ0cyI6ICIyMDI1LTAzLTAxVDEyOjAwOjAwWiIsICJpZCI6ICJjM2Q0ZTVmNiJ9"
  }
}
```

### List email messages

Read a page of email messages for the selected mailbox.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Cursor (`cursor`, text): Cursor from the previous page.
- Limit (`limit`, number): The maximum results to return. From 1 to 100.
- Direction (`direction`, text): Read incoming or outgoing messages. One of: `inbound`, `outbound`.
- Start datetime (`start_datetime`, date and time): Read messages created on or after this time.
- End datetime (`end_datetime`, date and time): Read messages created on or before this time.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "has_more": true,
    "items": [
      {
        "cc_addresses": null,
        "created_at": "2025-03-01T12:00:00Z",
        "direction": "outbound",
        "first_opened_at": null,
        "from_address": "agent-sales@inkboxmail.com",
        "has_attachments": false,
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "import_job_id": null,
        "is_read": true,
        "is_starred": false,
        "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "message_id": "<20250301120000.abc123@inkboxmail.com>",
        "open_count": 0,
        "reply_to": null,
        "snippet": "Hi! Your order #1234 has been confirmed and will ship within...",
        "status": "sent",
        "subject": "Your order is confirmed",
        "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
        "to_addresses": [
          "customer@example.com"
        ]
      }
    ],
    "next_cursor": "eyJ0cyI6ICIyMDI1LTAzLTAxVDEyOjAwOjAwWiIsICJpZCI6ICJjM2Q0ZTVmNiJ9"
  }
}
```

### List email threads

Read conversations in a mailbox.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Cursor (`cursor`, text): Cursor from the previous page.
- Limit (`limit`, number): The maximum results to return. From 1 to 100.
- Folder (`folder`, text): Filter by mailbox folder. One of: `inbox`, `spam`, `archive`, `blocked`.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "items": [
      {
        "created_at": "Example",
        "folder": "Example",
        "id": "sample_id",
        "last_message_at": "Example",
        "mailbox_id": "sample_mailbox_id",
        "message_count": 1,
        "subject": "Example"
      }
    ],
    "next_cursor": "Example"
  }
}
```

### List mailboxes

Read the mailboxes accessible to this API key.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Inkbox.

**Example output**

```json
{
  "data": [
    {
      "agent_identity_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "created_at": "2025-03-01T12:00:00Z",
      "email_address": "sales-agent@inkboxmail.com",
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "sending_domain": "inkboxmail.com",
      "signature_enabled": false,
      "signature_html": null,
      "signature_text": null,
      "storage_limit_bytes": 2147483648,
      "storage_used_bytes": 184320,
      "updated_at": "2025-03-01T12:00:00Z"
    },
    {
      "agent_identity_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "created_at": "2025-02-15T09:30:00Z",
      "email_address": "support-bot@inkboxmail.com",
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "sending_domain": "inkboxmail.com",
      "signature_enabled": false,
      "signature_html": null,
      "signature_text": null,
      "storage_limit_bytes": 2147483648,
      "storage_used_bytes": 5242880,
      "updated_at": "2025-02-15T09:30:00Z"
    }
  ]
}
```

### List populated mailbox folders

Read the folders that currently contain visible threads.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.

**Outputs**

- `data` (list): The response from Inkbox.

**Example output**

```json
{
  "data": [
    "archive",
    "inbox"
  ]
}
```

### Move an email thread

Move a thread to Inbox, Spam or Archive.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Thread (`thread_id`, text, required): Thread.
- Folder (`folder`, text, required): Choose the destination folder. One of: `inbox`, `spam`, `archive`.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "created_at": "Example",
    "folder": "Example",
    "id": "sample_id",
    "last_message_at": "Example",
    "mailbox_id": "sample_mailbox_id",
    "message_count": 1,
    "subject": "Example"
  }
}
```

### Search a mailbox

Find matching email in a mailbox.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Q (`q`, text, required): Words or text to search for.
- Limit (`limit`, number): The maximum results to return. From 1 to 100.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "items": [
      {
        "cc_addresses": null,
        "created_at": "2025-03-01T12:00:00Z",
        "direction": "outbound",
        "from_address": "agent-sales@inkboxmail.com",
        "has_attachments": false,
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "is_read": true,
        "is_starred": false,
        "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "message_id": "<20250301120000.abc123@inkboxmail.com>",
        "snippet": "Hi! Your order #1234 has been confirmed and will ship within...",
        "status": "sent",
        "subject": "Your order is confirmed",
        "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
        "to_addresses": [
          "customer@example.com"
        ]
      }
    ],
    "next_cursor": null
  }
}
```

### Search all mailboxes

Find email you can access across the organization.

**Inputs**

- Q (`q`, text, required): Words or text to search for.
- Limit (`limit`, number): The maximum results to return. From 1 to 100.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "items": [
      {
        "cc_addresses": null,
        "created_at": "2025-03-01T12:00:00Z",
        "direction": "outbound",
        "from_address": "agent-sales@inkboxmail.com",
        "has_attachments": false,
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "is_read": true,
        "is_starred": false,
        "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "message_id": "<20250301120000.abc123@inkboxmail.com>",
        "snippet": "Hi! Your order #1234 has been confirmed and will ship within...",
        "status": "sent",
        "subject": "Your order is confirmed",
        "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
        "to_addresses": [
          "customer@example.com"
        ]
      }
    ],
    "next_cursor": null
  }
}
```

### Send email

Send an email from the selected mailbox.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- To (`to`, list, required): Email addresses to send to.
- Cc (`cc`, list): Email addresses to copy.
- Bcc (`bcc`, list): Email addresses to blind copy.
- Subject (`subject`, text, required): Email subject line.
- Body text (`body_text`, text): Plain text of your message.
- Body html (`body_html`, text): HTML of your message.
- Reply to (`reply_to`, text): Address to receive replies.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "id": "sample_id",
    "message_id": "sample_message_id",
    "status": "Example"
  }
}
```

### Update email flags

Mark an email as read or unread, or star or unstar it.

**Inputs**

- Mailbox (`email_address`, text, required): Mailbox.
- Message (`message_id`, text, required): Message.
- Is read (`is_read`, true/false): Choose read or unread.
- Is starred (`is_starred`, true/false): Choose starred or unstarred.

**Outputs**

- `data` (object): The response from Inkbox.

**Example output**

```json
{
  "data": {
    "attachment_metadata": null,
    "bcc_addresses": null,
    "body_html": "<p>Hi! Your order #1234 has been confirmed and will ship within 2 business days.</p>",
    "body_text": "Hi! Your order #1234 has been confirmed and will ship within 2 business days.",
    "cc_addresses": null,
    "created_at": "2025-03-01T12:00:00Z",
    "direction": "outbound",
    "first_opened_at": null,
    "from_address": "agent-sales@inkboxmail.com",
    "has_attachments": false,
    "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "import_job_id": null,
    "in_reply_to": null,
    "is_read": true,
    "is_starred": false,
    "mailbox_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "message_id": "<20250301120000.abc123@inkboxmail.com>",
    "open_count": 0,
    "references": null,
    "reply_to": null,
    "ses_message_id": "0102018abc123def-abcdef01-2345-6789-abcd-ef0123456789-000000",
    "snippet": "Hi! Your order #1234 has been confirmed and will ship within...",
    "status": "sent",
    "subject": "Your order is confirmed",
    "thread_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
    "to_addresses": [
      "customer@example.com"
    ],
    "updated_at": "2025-03-01T12:00:00Z"
  }
}
```
