Back to Tool
📤
Text Share API
Create shareable text snippets with expiring links via API
Endpoint
POST
/api/v1/text-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 |
|---|---|---|---|
| text | string | Yes | Text content to share (max 100,000 characters) |
| title | string | No | Title for the share (max 100 characters) |
| expiry | string | No | Expiry time: "1h", "24h", "7d", "30d", "never" (default: "24h") |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation was successful |
| id | string | Unique share ID |
| url | string | Relative URL to the share |
| fullUrl | string | Full URL to the share |
| expiresAt | string | ISO timestamp when the share expires (null if never) |
Code Examples
curl -X POST https://tools.shubhambadgujar.com/api/v1/text-share \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, this is my shared text!",
"title": "My Note",
"expiry": "7d"
}'Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com