Back to Tool
📋

Log Share API

Share logs with expiring links for debugging and collaboration

Endpoint

POST/api/v1/log-share

Authentication

Include your API key in the request header:

X-API-Key: your_api_key_here

Get your API key from the Dashboard

Request Body

Content-Type: application/json

FieldTypeRequiredDescription
contentstringYesLog content to share (max 500,000 characters)
titlestringNoTitle for the log share
expirystringNoExpiration time: 1h, 6h, 24h, 7d, 30d, never (default: 24h)
formatstringNoLog format: auto, json, text (default: auto)
statsobjectNoLog statistics object (errors, warnings, etc.)

Response

FieldTypeDescription
successbooleanWhether the operation succeeded
idstringUnique share ID
urlstringShare URL path
expiresAtstringExpiration timestamp (ISO 8601)

Code Examples

curl -X POST https://tools.shubhambadgujar.com/api/v1/log-share \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Production Error Logs",
    "content": "2024-01-22 10:15:32 ERROR Connection failed\n2024-01-22 10:15:33 INFO Retrying...",
    "expiry": "24h"
  }'

Pricing

First 50 free, then $0.01 per call

Get API Key

Rate Limits

  • • 100 requests per minute
  • • 10,000 requests per day
  • • Max request size: 10MB

Need Help?

Contact us at support@shubhambadgujar.com