Skip to content

Files

Latest commit

92927e7 · Apr 4, 2025

History

History

http

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 20, 2025
Feb 28, 2024
Feb 10, 2023
Apr 18, 2023
Feb 28, 2024
Apr 4, 2025
Oct 10, 2024
May 8, 2024

HTTP Action Example App

This example demonstrates how to use Convex HTTP actions.

Running the App

To run the web app:

npm install
npm run dev

To call the endpoints (e.g. using curl):

export DEPLOYMENT_NAME="tall-sheep-123"
curl "https://$DEPLOYMENT_NAME.convex.site/getMessagesByAuthor?authorNumber=123"
curl -d '{ "author": "User 123", "body": "Hello world" }' \
    -H 'content-type: application/json' "https://$DEPLOYMENT_NAME.convex.site/postMessage"