S.EE Docs
API Reference

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.

POST
/api/v1/text

Header Parameters

Authorization*string

Your API key

Request Body

application/json

Text content and settings

content*string

The text content you want to share (up to 2MB)

Lengthlength <= 2097152
custom_slug?string

Your preferred custom slug. If not provided, a random slug will be generated.

Lengthlength <= 255
domain?string

The domain to use for your text share URL (e.g., "fs.to")

Default"fs.to"
Lengthlength <= 255
expire_at?integer

Unix timestamp when this text sharing should expire

password?string

Optional password to protect this text sharing (3-32 characters)

Length3 <= length <= 32
tag_ids?array<integer>

Array of tag IDs to organize this text (max 5 tags)

Items0 <= items <= 5
text_type?string

Content format: "plain_text" for regular text, "source_code" for code with syntax highlighting, or "markdown" for formatted text

Value in"plain_text" | "source_code" | "markdown"
title*string

A descriptive title for this text sharing (required)

Lengthlength <= 255

Response 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"
}