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

/masheev-webhooks

@21d3a39
by masheevmasheev/skills1 stars
Run it yourself

Use when setting up, verifying, or handling Masheev webhook events in your backend. Covers creating webhook subscriptions, HMAC-SHA256 signature verification with timingSafeEqual, raw body preservation before JSON parsing, idempotent event handling, retry logic, and all 11 event types (conversation.created, message.received, contact.updated, etc.). Use this skill whenever someone asks to "handle Masheev events", "set up webhooks", "verify webhook signatures", or wants real-time notifications from Masheev. Also use when debugging webhook delivery failures or missed events.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesevents.md

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

Webhook Event Payloads

Conversation Events

conversation.created

{
  id: string;
  type: "conversation.created";
  timestamp: number;
  payload: {
    conversationId: string;   // "conv_..."
    contactId: string;        // "con_..."
    inboxId: string;          // "inb_..."
    orgId: string;            // "org_..."
    channel: "voice" | "sms" | "whatsapp" | "chat" | "email" | "instagram" | "google_reviews";
    status: "open";
    assigneeType: "ai" | "agent" | "unassigned";
    assigneeId?: string;
    createdAt: string;        // ISO 8601
  };
}

conversation.updated

{
  id: string;
  type: "conversation.updated";
  timestamp: number;
  payload: {
    conversationId: string;
    status: "open" | "pending" | "snoozed" | "resolved";
    priority?: "low" | "medium" | "high" | "urgent";
    assigneeType?: "ai" | "agent" | "unassigned";
    assigneeId?: string;
    labelIds?: string[];
    updatedAt: string;
  };
}

conversation.closed

{
  id: string;
  type: "conversation.closed";
  timestamp: number;
  payload: {
    conversationId: string;
    contactId: string;
    resolvedAt: string;
    outcome?: string;          // "resolved_by_agent", "auto_resolved", etc.
    outcomeData?: Record<string, unknown>;
  };
}

conversation.assigned

{
  id: string;
  type: "conversation.assigned";
  timestamp: number;
  payload: {
    conversationId: string;
    assigneeType: "ai" | "agent" | "unassigned";
    assigneeId?: string;       // agent or AI agent ID
    previousAssigneeType?: string;
    previousAssigneeId?: string;
  };
}

Message Events

message.received

Fired when a contact sends a message.

{
  id: string;
  type: "message.received";
  timestamp: number;
  payload: {
    messageId: string;         // "msg_..."
    conversationId: string;
    contactId: string;
    role: "contact";
    content: string;
    contentType: "text" | "attachment";
    attachments?: {
      id: string;
      type: "image" | "audio" | "video" | "file";
      name: string;
      mimeType: string;
      size: number;
      url: string;
    }[];
    createdAt: string;
  };
}

message.sent

Fired when an agent or AI sends a message.

{
  id: string;
  type: "message.sent";
  timestamp: number;
  payload: {
    messageId: string;
    conversationId: string;
    role: "ai" | "agent";
    senderId?: string;
    senderName?: string;
    content: string;
    status: "sent" | "delivered";
    createdAt: string;
  };
}

message.failed

{
  id: string;
  type: "message.failed";
  timestamp: number;
  payload: {
    messageId: string;
    conversationId: string;
    status: "failed";
    error?: string;
  };
}

Contact Events

contact.created

{
  id: string;
  type: "contact.created";
  timestamp: number;
  payload: {
    contactId: string;         // "con_..."
    orgId: string;
    name?: string;
    email?: string;
    phone?: string;
    company?: string;
    customAttributes?: Record<string, unknown>;
    firstSeenAt: string;
  };
}

contact.updated

{
  id: string;
  type: "contact.updated";
  timestamp: number;
  payload: {
    contactId: string;
    name?: string;
    email?: string;
    phone?: string;
    company?: string;
    customAttributes?: Record<string, unknown>;
    updatedAt: string;
  };
}

Escalation Events

escalation.created

{
  id: string;
  type: "escalation.created";
  timestamp: number;
  payload: {
    escalationId: string;      // "esc_..."
    conversationId: string;
    reason: string;
    status: "open";
    createdAt: string;
  };
}

escalation.resolved

{
  id: string;
  type: "escalation.resolved";
  timestamp: number;
  payload: {
    escalationId: string;
    conversationId: string;
    status: "resolved";
    resolvedAt: 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

    The skill provides comprehensive and secure instructions for implementing and verifying Masheev webhooks. It correctly emphasizes security best practices, such as using timing-safe comparisons for HMAC signatures and preserving raw request bodies.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: MEDIUM · 1 issue

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-webhooks