Sher2 REST API v1 Documentation
Programmatically upload files and videos, shorten links, create syntax pastes, curate social group gateways, manage list collections, and query your earnings analytics using Personal Access Tokens.
Authentication & Base URL
All REST API v1 requests authenticate via Personal Access Token (PAT) in the Bearer Authorization header.
API Base URL
https://api.sher2.com/v1Authorization Header
Authorization: Bearer sher2_pat_...Token Format
Tokens use the prefix sher2_pat_, are hashed with SHA-256 on the server, and can be scoped per module with optional expiration dates.
Rate Limiting
Global throttling protects API stability at 60 requests per minute per client IP. Monitor HTTP 429 responses and back off cleanly.
Multipart File & Video Uploads
POST /v1/files, POST /v1/files/:id/file, POST /v1/videos, and POST /v1/videos/:id/media accept multipart/form-data. Maximum 500 MB for files/videos and 5 MB for video thumbnails.
Owner Data vs Public Share Pages
Authenticated GET endpoints under /v1/* return your full destination payloads (destination_url, video_url, content, join_url) even when items are password-protected, while public share URLs remain gated.
profile:readprofile:writefiles:readfiles:writevideos:readvideos:writelinks:readlinks:writepastes:readpastes:writegroups:readgroups:writebilling:readbilling:writetickets:readtickets:writeanalytics:readStandard JSON Envelope & Status Codes
Every JSON response wraps data inside a uniform success or error envelope. Raw paste downloads return text/plain.
Success Response
{
"success": true,
"message": "OK",
"data": { "id": "12", "slug": "release-v2" }
}Error Response
{
"success": false,
"message": "Insufficient permissions. Missing required scope(s): files:write"
}HTTP Status Codes
- 200 OK / 201 Created β Request succeeded
- 400 Bad Request β Validation error or invalid multipart payload
- 401 Unauthorized β Missing, invalid, expired, or revoked PAT
- 403 Forbidden β Token is missing a required @RequireScopes permission
- 404 Not Found β Resource does not exist or does not belong to you
- 409 Conflict β Custom slug is already taken
- 429 Too Many Requests β Global rate limit exceeded (60 req/min)
Interactive Endpoint Reference
Inspect required PAT scopes, request parameters, multipart fields, JSON bodies, and ready-to-run code snippets.
Account & Discovery
Inspect authenticated creator profile, self-manage current PAT token, and discover tags or platform upload limits.
Files & File Bundles
Upload downloadable files (up to 500 MB), swap binaries, manage metadata, and curate file folders.
Videos & Playlists
Upload MP4/WebM/MOV/MKV videos or register external stream URLs with custom thumbnails and playlists.
Shortlinks & Link Bundles
Create monetized shortlinks with hidden public destination URLs and organized multi-link bundles.
Pastes & Paste Collections
Store syntax-highlighted code snippets, fetch raw text/plain streams, and organize paste collections.
Social Groups & Collections
Create validated community gateways for WhatsApp, Telegram, Discord, Facebook, Line, Signal, Reddit, and custom invites.
Billing & Payouts
Read creator wallet balance, ledger history, saved payout accounts, and request withdrawals.
Support Tickets
Open support helpdesk tickets, reply to staff threads, and close resolved conversations.
Traffic & Earnings Analytics
Query aggregated earnings summaries and filter individual monetization ledger credits by module and date.