API Reference

Send logs directly to Logged using our REST API.

Base URL

https://api.logged.dev/v1

Authentication

Authenticate requests using a bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY

Send Logs

POST /logs - Send log entries to Logged for storage and analysis.

curl -X POST https://api.logged.dev/v1/logs \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "level": "error",
    "message": "Something went wrong",
    "service": "my-app",
    "timestamp": "2026-08-28T19:00:00Z"
  }'

Response

{
  "id": "log_123abc",
  "status": "accepted",
  "timestamp": "2026-08-28T19:00:00Z"
}

Error Codes

  • 400 - Bad Request
  • 401 - Unauthorized
  • 429 - Rate Limited
  • 500 - Server Error