Back to Tool
📋
Log Share API
Share logs with expiring links for debugging and collaboration
Endpoint
POST
/api/v1/log-shareAuthentication
Include your API key in the request header:
X-API-Key: your_api_key_hereGet your API key from the Dashboard
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| content | string | Yes | Log content to share (max 500,000 characters) |
| title | string | No | Title for the log share |
| expiry | string | No | Expiration time: 1h, 6h, 24h, 7d, 30d, never (default: 24h) |
| format | string | No | Log format: auto, json, text (default: auto) |
| stats | object | No | Log statistics object (errors, warnings, etc.) |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation succeeded |
| id | string | Unique share ID |
| url | string | Share URL path |
| expiresAt | string | Expiration 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"
}'Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com