LogSnag

Event tracking made easy!

Go to site
Explore
/
Apps
/
LogSnag

LogSnag API Integrations

Build and run workflows using the LogSnag API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    logsnag: {
      type: "app",
      app: "logsnag",
    }
  },
  async run({steps, $}) {
    const data = {
      "project": `[project_name]`,
      "channel": `[channel]`,
      "event": `Test request`,
      "description": `Making a test request on LogSnag`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.logsnag.com/v1/log`,
      headers: {
        Authorization: `Bearer ${this.logsnag.$auth.api_token}`,
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Authentication

LogSnag uses API keys for authentication. When you connect your LogSnag account, Pipedream securely stores the keys so you can easily authenticate to LogSnag APIs in both code and no-code steps.

To retrieve your API Token,

  • Navigate to your LogSnag account and sign in
  • Click the Settings menu on the bottom left
  • Go to “API”