Skip to content

Skills

The Sendivent skill gives your AI coding agent full context for sending notifications, managing contacts, and using templates through the Sendivent API.

Unlike MCP (which gives your agent tool access), skills provide knowledge — your agent understands the API, knows the patterns, and writes production-ready integration code without you explaining anything.

Installation

1. Install the skill

bash
npx skills add appitudeio/sendivent-skills

2. Set your API key

bash
export SENDIVENT_API_KEY=live_your_api_key

3. Verify

Prompt your agent:

"Send a welcome notification to user@example.com using Sendivent"

Your agent should write working code using the Sendivent SDK without any additional guidance.

Supported Platforms

The skill installs as a context file that your AI agent reads automatically.

PlatformSkill file location
Cursor.cursor/rules/sendivent.mdc
Claude Code.claude/rules/sendivent.md
Codex CLIcodex.md or project instructions
Windsurf.windsurf/rules/sendivent.md
GitHub Copilot.github/copilot-instructions.md
Gemini CLI.gemini/rules/sendivent.md

What's Included

The skill teaches your agent:

Authentication

  • Base URL: https://api.sendivent.com (production) / https://api-sandbox.sendivent.com (sandbox)
  • Auth header: Authorization: Bearer YOUR_API_KEY
  • Key prefixes: live_* for production, test_* for sandbox

Sending Notifications

  • POST /v1/send/{event} — Send to one or multiple recipients
  • POST /v1/send/{event}/{channel} — Force a specific channel
  • Flexible to field: email string, phone number, UUID, external ID, or full contact object
  • Payload variables for template personalization

Contact Management

  • POST /v1/contacts — Create or upsert a contact
  • GET /v1/contacts/{identifier} — Get by email, phone, UUID, or external ID
  • PATCH /v1/contacts/{identifier} — Update a contact
  • DELETE /v1/contacts/{identifier} — Hard delete (GDPR)
  • Push token registration and removal

SDK Patterns

javascript
import { Sendivent } from '@sendivent/sdk';

const sendivent = new Sendivent('YOUR_API_KEY');

await sendivent
  .event('order.confirmed')
  .to({ email: 'user@example.com' })
  .payload({
    orderNumber: '#12345',
    total: 49.99
  })
  .send();

Error Handling

StatusCodeDescription
400INVALID_INPUTInvalid request body or missing fields
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDEvent or contact not found
429RATE_LIMIT_EXCEEDEDToo many requests
500INTERNAL_ERRORServer error

Sample Prompts

After installing the skill, try these:

"Send a password reset email to user@example.com with a reset link"

"Create a contact for Alice (alice@example.com, +46701234567) with a premium subscription tier"

"Set up order confirmation notifications that send via email and SMS"

"Look up the contact record for user@example.com and show their delivery history"

Skills + MCP Together

Skills and MCP complement each other:

SkillsMCP
What it providesKnowledge and patternsTool access
Agent canWrite integration codeExecute operations directly
Works offlineYesNo (needs server connection)
SetupOne-time installOAuth connection

Use skills when your agent is writing code. Use MCP when your agent is operating your notification stack directly.

Prerequisites

  1. Create a Sendivent account
  2. Get your API key from the dashboard
  3. Set SENDIVENT_API_KEY in your environment

Next Steps

Released under the MIT License.