Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/srift-app:srift-app-transfer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Srift App Transfer API
version: 4.4.0
contact:
email: support@sripto.tech
license:
name: MIT
identifier: MIT
description: 'Operations tagged transfer across 2 of this provider''s published API definitions: openapi.json, srift-app-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
security: []
tags:
- name: Transfer
description: File transfer (P2P with fallback)
paths:
/quick-share:
post:
tags:
- Transfer
summary: 'ZERO-INSTALL delivery: ensure session + register file + return a public relay…'
description: 'Primary entry point for AI agents. If no session is active, creates one, then registers the file for public HTTP download. Returns a `downloadUrl` like `https://srift.app/d/` the recipient can fetch with any HTTP client (browser, `srift get`, wget, curl) — SRIFT install on the recipient side is NOT required. This is a relay link: when it is opened, this daemon streams the bytes on demand through the srift.app relay (pass-through, `Cache-Control: no-store`). Nothing is stored on any server, so the link works only while this daemon (or the process hosting it) runs. `encrypt: true` (or a `password`) makes it end-to-end encrypted with AES-256-GCM; the key is returned in the URL''s `#k=` fragment, which is never sent to a server. Without it the link is protected by TLS in transit only. Optional `maxDownloads` and `ttlMs` enforce sharing limits; failed/cancelled downloads do not count against the cap. Tokens survive transient signaler reconnects. Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — filesystem access to `filePath` is not available on the public https://srift.app host. Several files: pass filePaths for one .tar.gz bundle link (default) or bundle:false for one link per path, created in parallel; the response then has links[] and errors[].'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
filePath:
type: string
description: Absolute path to a file or folder (folders are sent as .tar.gz). Use this OR filePaths.
sessionName:
type: string
description: Optional label
maxDownloads:
type: integer
minimum: 0
description: Cap after N completed downloads. 0 = unlimited.
ttlMs:
type: integer
minimum: 0
description: Auto-expire the link after N milliseconds. 0 = never.
encrypt:
type: boolean
description: 'End-to-end encrypt (AES-256-GCM). The key is carried in the returned URL''s #k= fragment and never sent to a server. Default false (TLS in transit only).'
password:
type: string
description: Optional password the recipient must supply (PBKDF2-SHA256, 100,000 iterations). Implies encrypt.
filePaths:
type: array
items:
type: string
minItems: 1
maxItems: 500
description: Several absolute file/folder paths in one call. Use this OR filePath.
bundle:
type: boolean
default: true
description: 'With filePaths: true = one .tar.gz link containing everything; false = one link per path, created in parallel.'
bundleName:
type: string
description: 'With filePaths + bundle: archive name (.tar.gz is added).'
exclude:
type: array
items:
type: string
description: Extra glob patterns skipped when packing folders (.git and node_modules always skipped).
name:
type: string
description: Recipient-visible file name
mode:
type: string
enum:
- relay
- auto
description: Accepted for older clients. Links are always relay links served by this daemon (nothing is stored on a server).
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/QuickShareResult'
operationId: postQuickShare
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/pubshare:
post:
tags:
- Transfer
summary: Register an additional file for public download in the current session
description: 'Like /quick-share, but requires an already-active session. Use this to mint multiple download links from one daemon session. Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — filesystem access to `filePath` is not available on the public https://srift.app host.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- filePath
properties:
filePath:
type: string
maxDownloads:
type: integer
minimum: 0
ttlMs:
type: integer
minimum: 0
encrypt:
type: boolean
description: 'End-to-end encrypt; the key rides in the #k= fragment'
password:
type: string
description: Password-protect (implies encrypt)
name:
type: string
description: Recipient-visible file name
responses:
'200':
description: OK
'409':
description: No active session
operationId: postPubshare
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/pubshare/list:
get:
tags:
- Transfer
summary: List every active public download link with usage counters
description: 'Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — lists shares registered in that daemon''s in-process session state, which is not available on the public https://srift.app host.'
responses:
'200':
description: OK
operationId: getPubshareList
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/pubshare/revoke:
post:
tags:
- Transfer
summary: Invalidate a download token immediately
description: 'Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — revokes a token registered in that daemon''s in-process session state, which is not available on the public https://srift.app host.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
properties:
token:
type: string
responses:
'200':
description: OK
'404':
description: Unknown token
operationId: postPubshareRevoke
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/d/{token}:
parameters:
- name: token
in: path
required: true
schema:
type: string
description: Issued by POST /quick-share or /pubshare
get:
tags:
- Transfer
summary: Public download tunnel — recipient downloads the file via standard HTTP
description: 'Streams the file as a standard HTTP response from the seeder''s daemon via the signaler. `Content-Disposition: attachment; filename="…"` so browsers and `curl -fLOJ` / `wget --content-disposition` auto-name the file. Supports HTTP Range (`Accept-Ranges: bytes`) for resume. Honours `maxDownloads` and `ttlMs` set at registration time. Concurrent recipients each get an independent parallel stream.'
responses:
'200':
description: Full file
headers:
X-SRIFT-Size:
description: Total file size in bytes (the body may be streamed without Content-Length)
schema:
type: integer
X-SRIFT-Encrypted:
description: 'SRE1 = end-to-end encrypted payload (decrypt with the #k= key), none = plain'
schema:
type: string
enum:
- SRE1
- none
X-SRIFT-Mode:
schema:
type: string
enum:
- relay
'206':
description: Partial content (Range)
'404':
description: Token unknown / expired / sender offline
'410':
description: Token expired or exhausted (max-downloads reached)
'416':
description: Range not satisfiable
'424':
description: The sender's file was deleted or changed after the link was created (permanent)
content:
text/plain:
schema:
type: string
headers:
X-SRIFT-Error:
schema:
type: string
enum:
- sender-file
'502':
description: The sender dropped mid-stream; retry
content:
text/plain:
schema:
type: string
'503':
description: Sender offline
'504':
description: Timed out waiting for first byte from sender
servers:
- url: https://srift.app
operationId: getDByToken
head:
tags:
- Transfer
summary: Metadata probe (size, filename, mime, X-SRIFT-Downloads, X-SRIFT-Expires)
responses:
'200':
description: OK
headers:
X-SRIFT-Size:
description: Total file size in bytes (the body may be streamed without Content-Length)
schema:
type: integer
X-SRIFT-Encrypted:
description: 'SRE1 = end-to-end encrypted payload (decrypt with the #k= key), none = plain'
schema:
type: string
enum:
- SRE1
- none
X-SRIFT-Mode:
schema:
type: string
enum:
- relay
'404':
description: Token unknown
'410':
description: Expired or exhausted
'424':
description: The sender's file was deleted or changed after the link was created (permanent)
content:
text/plain:
schema:
type: string
headers:
X-SRIFT-Error:
schema:
type: string
enum:
- sender-file
'503':
description: Sender offline
servers:
- url: https://srift.app
operationId: headDByToken
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/send:
post:
tags:
- Transfer
summary: Offer a file to joined peers (in-session transfer; for public download links…
description: 'Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — filesystem access to `filePath` is not available on the public https://srift.app host.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- filePath
properties:
filePath:
type: string
protocol:
type: string
enum:
- websocket
- webtorrent
description: 'Transport. Default: the end-to-end sealed relay (''websocket''), which carries every size. ''webtorrent'' is honoured only when the network diagnosis shows peer connections work and SRIFT_DISABLE_WEBTORRENT is not set; otherwise the relay is used.'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
fileId:
type: string
protocol:
type: string
'409':
description: No session / waiting for host approval
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Session connection not ready — retry after retryAfterMs
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postSend
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/receive:
post:
tags:
- Transfer
summary: Accept an inbound file offer
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- fileId
properties:
fileId:
type: string
saveDir:
type: string
responses:
'200':
description: OK
operationId: postReceive
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/transfers:
get:
servers:
- url: http://127.0.0.1:3822
description: Local daemon
tags:
- Transfer
summary: All transfers in this session
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Transfer'
operationId: getTransfers
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
/transfers/{fileId}:
get:
servers:
- url: http://127.0.0.1:3822
description: Local daemon
tags:
- Transfer
summary: One transfer by id
parameters:
- name: fileId
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Transfer'
'404':
description: Unknown fileId
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getTransfersByFileId
servers:
- url: http://127.0.0.1:3822
description: Local daemon (zero-auth, recommended for AI agents)
- url: https://srift.app
description: Public signaling server (browser clients)
components:
schemas:
ErrorResponse:
type: object
properties:
success:
type: boolean
const: false
error:
type: string
retryAfterMs:
type: number
Transfer:
type: object
properties:
fileId:
type: string
name:
type: string
size:
type: number
progress:
type: number
description: 0-100
speedKBps:
type: number
etaSeconds:
type: number
protocol:
type: string
enum:
- websocket
- webtorrent
status:
type: string
enum:
- pending
- uploading
- downloading
- completed
- cancelled
- error
direction:
type: string
enum:
- upload
- download
bytesTransferred:
type: number
QuickShareResult:
type: object
properties:
success:
type: boolean
mode:
type: string
enum:
- relay
sessionId:
type: string
fileId:
type: string
token:
type: string
downloadUrl:
type: string
description: 'Give this to the recipient. Encrypted links include the key after #k='
shareUrl:
type: string
description: Same as downloadUrl (kept for older clients)
fileName:
type: string
fileSize:
type: number
maxDownloads:
type: number
expiresAt:
type:
- number
- 'null'
encrypted:
type: boolean
passwordProtected:
type: boolean
externalDocs:
description: Full agent manual
url: https://srift.app/AGENTS.md
x-refined-from:
- openapi.json
- srift-app-openapi.yml