Quickstart
Let's get started with Logsh!
Generate an API Key
API tokens help Logsh verify your identity
Click the button "+ Create API Key" and generate your first API key.

Create a Project
Logsh lets you make a project for each app you have. You can make as many as you like!
Click the button "+ Create new project" and give your project a name, like "Logsh"

Create a Channel
Channels are like boxes for your events. You could have one for logins, another for payments, and so on.
Click the button "+ Create Channel" and give your channel a name, like "Users"

Send Your First Event
await fetch(
"https://api.logsh.co/api/v1/log",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <API_KEY>"
},
body: JSON.stringify({
project: "logsh",
icon: "🔥",
event: "Subscription created",
channel: "users",
userId: "user@example.com",
description: "New Subscription created",
notify: false,
metadata: {
plan : "premium",
cycle : "monthly",
trial : "false",
mrr : "19.95"
}
}),
}
);
Publish a event in Logsh.co
POST
https://api.logsh.co/api/v1/log
Headers
Content-Type *
application/json
yes
Authorization *
Bearer <token>
yes
Body
project
*
string
Project Name
yes
channel
*
string
Channel Name
yes
event
*
string
Event Name
yes
description
string
Event Description
no
userId
string
User Who Realizes The Event
no
icon
emoji
Event Icon
no
notify
boolean
Notify Event
no
metadata
JSON
key : string
value : string
Custom Fields
no
Response
Last updated