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.

referencesmessages.md

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

Messages API

List Messages

const result = await apiClient.messages.list.query({
  conversationId: "conv_...",
  limit: 50,                        // Default: 50, max: 200
  before: "msg_...",                // Cursor: messages before this ID
  after: "msg_...",                 // Cursor: messages after this ID
});
// result: { items: Message[], hasMore: boolean }

Get Message

const message = await apiClient.messages.get.query({ id: "msg_..." });

Send Message

const message = await apiClient.messages.create.mutate({
  conversationId: "conv_...",
  role: "agent",                    // "agent" for human agents
  content: "Thanks for reaching out! How can I help?",
  attachments: [                    // Optional
    {
      type: "image",
      name: "screenshot.png",
      url: "https://...",
      mimeType: "image/png",
      size: 102400,
    },
  ],
});

Message Schema

interface Message {
  id: string;                       // "msg_..."
  conversationId: string;
  role: "contact" | "ai" | "agent" | "system";
  senderId?: string;
  senderName?: string;
  content: string;
  contentType: "text" | "attachment" | "system";
  status: "pending" | "sent" | "delivered" | "read" | "failed";
  attachments?: Attachment[];
  aiMetadata?: {
    model?: string;
    provider?: string;
    toolCalls?: ToolCall[];
    usage?: { inputTokens: number; outputTokens: number };
    latencyMs?: number;
    components?: {
      quickReplies?: { label: string; value: string }[];
      card?: { title: string; subtitle?: string; fields?: { label: string; value: string }[] };
    };
  };
  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