Index of every page on this site: llms.txt
All skills
masheev avatar

/masheev-api

@21d3a39
by masheevmasheev/skills1 stars
Run it yourself

Use when calling the Masheev API for contacts, conversations, messages, inboxes, AI agents, knowledge base, or any server-to-server integration. Covers authentication with API keys, the @masheev/client tRPC client, REST endpoints, pagination, rate limiting, and common CRUD operations. Use this skill whenever someone asks to "call the Masheev API", "create contacts", "list conversations", "send messages", "manage inboxes", or integrate Masheev into their backend. Also use when setting up @masheev/client in Node.js, React, Next.js, or React Native.

Use this Skill: https://skilld.dev/gh/masheev/skills/masheev-api

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescontacts.md

≈544 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Contacts API

List Contacts

const result = await apiClient.contacts.list.query({
  search: "jane",          // Optional: search by name, email, phone
  limit: 50,               // Default: 50, max: 200
  cursor: undefined,       // Cursor from previous page
});
// result: { items: Contact[], nextCursor?: string }

Get Contact

const contact = await apiClient.contacts.get.query({ id: "con_..." });

Create Contact

const contact = await apiClient.contacts.create.mutate({
  name: "Jane Doe",
  email: "jane@example.com",
  phone: "+1234567890",
  company: "Acme Inc",
  customAttributes: {
    plan: "pro",
    signupDate: "2026-01-15",
  },
});

Update Contact

await apiClient.contacts.update.mutate({
  id: "con_...",
  name: "Jane Smith",
  customAttributes: {
    plan: "enterprise",
  },
});

Merge Contacts

Merge duplicate contacts. The winner keeps all data; the loser's conversations move to the winner.

await apiClient.contacts.merge.mutate({
  winnerId: "con_...",   // Contact that survives
  loserId: "con_...",    // Contact that gets merged in
});

GDPR Delete

Anonymize a contact and all their data. Irreversible.

await apiClient.contacts.gdpr.delete.mutate({
  contactId: "con_...",
});

This anonymizes:

  • Contact name, email, phone -> [DELETED]
  • All message content from this contact -> [DELETED_USER]
  • Audit log references -> [DELETED_USER]

Contact Schema

interface Contact {
  id: string;                    // "con_..."
  orgId: string;
  name?: string;
  email?: string;
  phone?: string;
  avatar?: string;
  company?: string;
  firstSeenAt: string;           // ISO 8601
  lastSeenAt: string;
  conversationCount: number;
  lifecycleStage?: string;
  tags: string[];
  customAttributes: Record<string, unknown>;
  consent: {
    dataProcessing?: boolean;
    marketing?: boolean;
    channels?: Record<string, "opted_in" | "opted_out" | "not_set">;
  };
  externalIds: Record<string, string>;  // e.g., { stripe: "cus_...", hubspot: "123" }
  createdAt: string;
  updatedAt: string;
}

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning7mo3 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    This skill is a documentation and reference guide for the Masheev API. It provides code examples and integration patterns for managing contacts, conversations, and messages using the @masheev/client library and standard REST endpoints. The skill follows security best practices by using placeholders for sensitive credentials and referencing official vendor-owned resources.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: MEDIUM · 2 issues

Signed by skilld at 21d3a39. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 7 months ago
metadata
{
  "author": "masheev",
  "version": "0.1.0"
}

README badge

README badge for masheev/skills/masheev-api