Skip to main content
import { createClient } from "@mailsai/sdk";

const client = createClient(); // reads MAILS_API_KEY

const result = await client.reputation.get();
console.log(result);
{
  "workspace_id": "wsk_01JZX8K3M9Q4P7VN2YB6RTDC0E",
  "reputation": 0,
  "agents_count": 0,
  "last_computed_at": "<last_computed_at>"
}

Get reputation

Workspace-wide reputation when called without agent_id, or per-agent stats when an agent id/name is supplied.
GET/v1/reputationscope · read
import { createClient } from "@mailsai/sdk";

const client = createClient(); // reads MAILS_API_KEY

const result = await client.reputation.get();
console.log(result);
{
  "workspace_id": "wsk_01JZX8K3M9Q4P7VN2YB6RTDC0E",
  "reputation": 0,
  "agents_count": 0,
  "last_computed_at": "<last_computed_at>"
}

Query Parameters

agent_idstring

Agent id or name. Omit for the workspace aggregate.

Was this page helpful?