Skip to Content
S.EE Docs
API Reference

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.

POST
/api/v1/text

Header Parameters

Authorization*string

Your API key

Request Body

Text content and settings

application/json
  1. body
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 sharing URL (e.g., "fs.to")

Lengthlength <= 255
Default"fs.to"
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

OK

application/json
  1. response
code?integer

Response status code (200 indicates success)

data?

Text sharing creation response

message?string

Human-readable status message

Example Request
curl -X POST 'https://s.ee/api/v1/text' \  -H 'Authorization: string' \  -H 'Content-Type: application/json' \  -d '{  "content": "string",  "title": "string"}'
Example Response200
{  "code": 0,  "data": {    "custom_slug": "string",    "short_url": "string",    "slug": "string"  },  "message": "string"}