Trigv home

Search docs

Getting started
  • Overview
  • How Trigv works
Help
  • Send test
  • API keys
  • Channels
  • Image attachments
Guides
  • All guides
  • cURL
  • Laravel
  • AI coding agents
  • Cursor
  • Claude Code
  • OpenAI Codex
  • Other agents
SDKs
  • All SDKs
  • JavaScript
  • Python
  • PHP
  • Go
  • Ruby
  • CLI
API reference
  • API overview
  • POST /api/v1/events
  • Errors & rate limits
  • API security
More
  • OpenAPI spec
Open in ChatGPT ↗ Ask questions about this page Open in Claude ↗ Ask questions about this page Open Markdown https://trigv.com/docs-md/learn/curl.md

cURL

Send a test alert from your terminal — handy if you’re comfortable with the command line and want to verify Trigv before wiring Zapier or a script.

Before you start

  1. Install Trigv for iOS from the App Store and sign in on your phone (Android coming soon).
  2. Create an API key at app.trigv.com → API Keys (guide).
  3. Or try Send test first if you prefer no terminal.

Step 1 — Run this command

Replace trgv_YOUR_KEY_HERE with your key:

Code
curl -X POST https://api.trigv.com/api/v1/events \
	-H "Content-Type: application/json" \
	-H "Accept: application/json" \
	-H "Authorization: Bearer trgv_YOUR_KEY_HERE" \
	-d '{"channel":"general","title":"Hello from curl"}'

Step 2 — Check the result

  • HTTP 202 — event accepted and queued. Check your phone.
  • HTTP 200 — duplicate idempotency_key (same event returned).
  • 401 — wrong or missing API key.
  • 404 — channel slug doesn’t exist in your workspace.
  • See errors & rate limits for the full list.

Richer example

Code
curl -X POST https://api.trigv.com/api/v1/events \
	-H "Content-Type: application/json" \
	-H "Accept: application/json" \
	-H "Authorization: Bearer trgv_YOUR_KEY_HERE" \
	-d '{
		"channel": "general",
		"title": "Deploy finished",
		"description": "Build completed successfully",
		"level": "success"
	}'

Common mistakes

  • Putting the API key in the JSON body — use the Authorization header only.
  • Wrong channel slug — must match a channel in your workspace exactly.
  • Phone not subscribed to the channel — event sends but no device receives it.

Full API reference →

Previous All guides Next Laravel

On this page

    Native push alerts for developers. Send alerts from webhooks, cron jobs, and scripts. We deliver alerts to your devices, but don't keep the message or notification history on our servers.

    Follow @trigvapp →

    Built by Harish Chouhan

    Product

    • Features
    • How it works
    • Pricing
    • Docs
    • Integrations
    • SDKs
    • API
    • Full LLMs text

    Company

    • About
    • Support
    • Changelog

    Legal

    • Terms & Conditions
    • Privacy Policy
    • Cookie Policy
    • API Security
    All systems ok. Get back to coding.

    © 2026 Webtions OU (dba Trigv)