convex-http-actions

Build secure Convex HTTP endpoints with authentication, CORS, and signature verification.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/cgRGM/rivercitymd --skill convex-http-actions-cgrgm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-http-actions
Source: https://github.com/cgRGM/rivercitymd/tree/main/.cursor/skills/convex-http-actions
Command: npx skills add https://github.com/cgRGM/rivercitymd --skill convex-http-actions-cgrgm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build secure HTTP endpoints in Convex without guessing at routing, request parsing, or integration patterns. It is designed for teams that need reliable webhook handlers, custom API routes, and browser-facing endpoints with proper validation and access control.

Core Features & Use Cases

  • Webhook Processing: Receive and verify events from services like Stripe and Clerk before running downstream database actions.
  • Custom API Routes: Create GET, POST, OPTIONS, and path-prefix endpoints for internal tools, public APIs, and file downloads.
  • Security and Reliability: Handle authentication, CORS, error responses, and safe handoffs to internal queries and mutations.
  • Use Case: A SaaS app can expose a billing webhook, verify the signature, update subscription records, and return clean status responses without leaking internal logic.

Quick Start

Use the convex-http-actions skill to design a secure Convex HTTP endpoint for your webhook or API route and include signature verification, CORS, and error handling.

Frequently Asked Questions about convex-http-actions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build secure webhook receivers in Convex for services like Stripe?

To build secure webhook receivers in Convex, use HTTP actions to parse incoming requests, verify webhook signatures, and safely hand off validated data to internal mutations for downstream database updates.

Can I create custom API routes in Convex that handle CORS for browser requests?

Yes, you can create custom GET, POST, and OPTIONS API routes in Convex. HTTP actions handle request parsing, apply CORS headers, and format clean responses for authenticated browser-facing endpoints.

What is the best way to verify webhook signatures in a Convex HTTP action?

The best way to verify webhook signatures in a Convex HTTP action is to parse the incoming request payload, validate the cryptographic signature against the external service secret, and reject unverified events before running mutations.

Do I need to use Convex HTTP actions to expose custom endpoints for external integrations?

You need Convex HTTP actions to expose custom endpoints for external integrations because they manage request parsing, authentication checks, signature verification, and safe routing to internal queries without leaking application logic.

Why does my Convex API route return errors when calling internal mutations from an external service?

Convex API routes return errors when calling mutations if request validation, authentication checks, or signature verification fail before the handoff, ensuring external service requests are safely parsed and authorized before database execution.