Create Text Sharing
Creates a shareable text snippet with a unique URL. Perfect for sharing code, notes, or any text content. Supports plain text, source code (with syntax highlighting), and Markdown formatting.
Header Parameters
Your API key
Request Body
application/json
Text content and settings
The text content you want to share (up to 2MB)
length <= 2097152Your preferred custom slug. If not provided, a random slug will be generated.
length <= 255The domain to use for your text share URL (e.g., "fs.to")
"fs.to"length <= 255Unix timestamp when this text sharing should expire
Optional password to protect this text sharing (3-32 characters)
3 <= length <= 32Array of tag IDs to organize this text (max 5 tags)
0 <= items <= 5Content format: "plain_text" for regular text, "source_code" for code with syntax highlighting, or "markdown" for formatted text
"plain_text" | "source_code" | "markdown"A descriptive title for this text sharing (required)
length <= 255Response Body
application/json
curl -X POST "https://s.ee/api/v1/text" \ -H "Authorization: string" \ -H "Content-Type: application/json" \ -d '{ "content": "string", "title": "string" }'{
"code": 0,
"data": {
"custom_slug": "string",
"short_url": "string",
"slug": "string"
},
"message": "string"
}Create Short URL (Simple Mode) GET
A simplified way to create short URLs using query parameters instead of a JSON body. Ideal for quick integrations, bookmarklets, or when you need a plain text response. Set json=true for JSON response format.
Delete Short URL DELETE
Permanently deletes a short URL. This action cannot be undone. The slug will become available for reuse after deletion.