Create Text Sharing
Creates a text snippet with a unique URL for sharing code, notes, or other text. Supports plain text, source code with syntax highlighting, and Markdown.
Text content and settings
application/json- body
content*stringThe text content you want to share (up to 2MB)
length <= 2097152custom_slug?stringYour preferred custom slug. If not provided, a random slug will be generated.
length <= 255domain?stringThe domain to use for your text sharing URL (e.g., "fs.to")
length <= 255"fs.to"expire_at?integerUnix timestamp when this text sharing should expire
password?stringOptional password to protect this text sharing (3-32 characters)
3 <= length <= 32tag_ids?array<integer>Array of tag IDs to organize this text (max 5 tags)
0 <= items <= 5text_type?stringContent format: "plain_text" for regular text, "source_code" for code with syntax highlighting, or "markdown" for formatted text
"plain_text""source_code""markdown"title*stringA descriptive title for this text sharing (required)
length <= 255OK
application/json- response
code?integerResponse status code (200 indicates success)
data?Text sharing creation response
message?stringHuman-readable status message
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"}Get Link Visit Statistics GET
Retrieves click/visit statistics for a specific short URL. You can get daily, monthly, or all-time statistics by specifying the period parameter.
Update Text Sharing PUT
Updates the content and/or title of an existing text sharing. The domain and slug identify which text to update.