Skip to main content

Curl Example

curl example
curl --request POST \
--url https://api.everylog.io/api/v1/log-entries \
--header 'Authorization: Bearer XXX-YYY-ZZZ' \
--header 'Content-Type: application/json' \
--header 'charset:utf-8' \
--data '{
"projectId":"project-name",
"title":"New subscription",
"summary":"A new user has subscribed to base plan",
"body": "foo@bar.com just subscribed to plan XYZ",
"tags":[
"new subscriber",
"welcome"
],
"groups": [
"first-group",
"second-group"
],
"roles": [
"admin",
"developers"
],
"users": [
"user1@example.com",
"user2@example.com"
],
"externalChannels": [
"channel-code",
"other-channel-code"
],
"properties": [
{"key": "value"},
{"key2": "value2"}
],
"icon": "🤪",
"link": "https://www.example.com",
"push": true
}'