Mailboxes

Get mailbox activity

Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the sends waiting for approval now.

GET
/v1/mailboxes/{id}/agent-activity

Counts the actions proposed and events recorded on a mailbox between after and before (omit both for all time), and the sends waiting for approval now. List the actions and events themselves with GET /v1/mailboxes/{id}/actions and GET /v1/mailboxes/{id}/events.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$

Query Parameters

after?string
before?string

Response Body

MailboxAgentActivity

application/json
  1. response
actions*
events*
pendingApprovals*integer
Range0 <= value <= 9007199254740991
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.mailboxes.getAgentActivity({  "id": "example"});
Example Response
{  "actions": {    "byType": [      {        "type": "sendMessage",        "count": 0      }    ],    "byState": [      {        "state": "proposed",        "count": 0      }    ]  },  "events": {    "byType": [      {        "type": "mailbox.created",        "count": 0      }    ]  },  "pendingApprovals": 0}

Related documentation