REST API

Your logger,
our platform

Already have a logging setup you love? Keep it. Send logs to Loggy via our REST API from any language, framework, or platform.

Any language
Simple HTTP
api-request.sh
curl -X POST \
https://api.loggy.dev/logs \
-H "Authorization: Bearer $TOKEN" \
-d '{"level":"info","message":"Hello from anywhere!"}'
200 OK- Log received
🐍 Python
🦀 Rust
🐹 Go

Works with every language

If it can make HTTP requests, it can use Loggy. Here are some examples.

🐍 Python
import requests

requests.post(
    "https://api.loggy.dev/logs",
    headers={
        "Authorization": f"Bearer {token}"
    },
    json={
        "level": "info",
        "message": "User signed up",
        "metadata": {"userId": 42}
    }
)
🐹 Go
body := []byte(`{"level":"info","message":"Hello"}`)
req, _ := http.NewRequest("POST", 
    "https://api.loggy.dev/logs", 
    bytes.NewBuffer(body))
req.Header.Set("Authorization", 
    "Bearer "+token)
client.Do(req)
💎 Ruby
require 'net/http'
require 'json'

uri = URI('https://api.loggy.dev/logs')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
req = Net::HTTP::Post.new(uri)
req['Authorization'] = "Bearer #{token}"
req.body = { level: 'info' }.to_json
http.request(req)
🐘 PHP
$ch = curl_init('https://api.loggy.dev/logs');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $token,
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 
    json_encode(['level' => 'info']));
curl_exec($ch);

Full API, full control

Everything you need to integrate Loggy into your existing stack

Simple REST API

One endpoint, one POST request. Send logs with level, message, and optional metadata.

Performance Metrics

Send custom metrics alongside logs. Track response times, memory usage, and more.

End-to-End Encryption

Encrypt logs client-side before sending. We can't read your data even if we wanted to.

Tags & Metadata

Attach custom tags and structured metadata. Filter and search by any field.

Batch Uploads

Send multiple logs in a single request. Reduce overhead and improve performance.

Real-time Streaming

Logs appear in your dashboard instantly. No polling, no delays.

Dead simple API

One endpoint. One schema. That's all you need to start sending logs.

POST to /logs with your access token
Include level, message, and optional metadata
Get instant confirmation and dashboard updates
// Request Schema
{
  "level": "info" | "warn" | "error" | "debug",
  "message": "Your log message",
  "metadata": {
    "userId": 123,
    "action": "signup",
    "duration": 45.2
  },
  "tags": ["auth", "user-flow"],
  "timestamp": "2026-01-20T12:00:00Z"
}
Newsletter

Get integration guides & tips

Subscribe for tutorials on integrating Loggy with your favorite languages and frameworks.

No spam, unsubscribe anytime. We respect your privacy.

Ready to integrate?

Get your API key and start sending logs in minutes. No SDK required.