LogSnag provides a single API endpoint for publishing your events and logs to your account.

Table of contents

Authentication

The LogSnag API uses API tokens to authenticate requests. You can find, generate or revoke your API tokens from the API page under settings.

Untitled

Authentication to the API is performed via the Authorization header. All requests are required to provide a valid API token in the following format:

"Authorization: Bearer f1c4c8f0e3fe4d4afa52f8c075c6e8fd"

Log Route

Route: https://api.logsnag.com/v1/log

Method: POST

Body

Notes:

  1. The project and channel values should be lowercased! Alphabet characters, digits, and dashes "-" are accepted. Validation Regex: ^[a-z0-9_-]+$
  2. New channels will automatically populate within the app