Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 1.13 KB

README.md

File metadata and controls

54 lines (46 loc) · 1.13 KB

HTTPgrid (cURL)

Getting Started

Usage

POST Application

curl -X 'POST' \
  'https://api.httpgrid.com/api/v1/applications' \
  -H 'Accept: application/json' \ 
  -H 'Authorization: AUTH_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "My Application",
  "uid": "my-application"
}'

POST Endpoint

curl -X 'POST' \
  'https://api.httpgrid.com/api/v1/applications/my-application/endpoints' \
  -H 'Accept: application/json' \
  -H 'Authorization: AUTH_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "channels": [],
  "enabled": true,
  "eventTypes": ["user.created"],
  "headers": {},
  "name": "My Endpoint",
  "uid": "my-endpoint",
  "url": "https://...."
}'

POST Message

curl -X 'POST' \
  'https://api.httpgrid.com/api/v1/applications/my-application/messages' \
  -H 'Accept: application/json' \ 
  -H 'Authorization: AUTH_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "channels": [],
  "eventType": "user.created",
  "uid": "my-message",
  "payload": { "email": "foo.bar@example.com" }
}'