SRIFT Session API

Session lifecycle

GitHub OpenAPI

Operations 11

GET /status Session, transfers, pending join requests and members #
POST /session/start Create a new session (you become host) #
POST /session/join Request to join an existing session #
POST /session/approve Host-only: approve a pending guest #
POST /session/reject Host-only: reject a pending guest #
POST /session/kick Host-only: disconnect a peer #
POST /session/close Close active session and flush keys #
POST /create-session Public signaling: create session (used by browser clients) #
POST /join-session Public signaling: preview a session and reserve a pending join (the host is… #
GET /peers Peers known in the current session #
POST /reset Leave any session and flush keys and state (same as `srift reset`) #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/srift-app:srift-app-session-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

srift-app-session-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Srift App Session API
  version: 4.4.0
  contact:
    email: support@sripto.tech
  license:
    name: MIT
    identifier: MIT
  description: 'Operations tagged session 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: Session
  description: Session lifecycle
paths:
  /status:
    get:
      tags:
      - Session
      summary: Session, transfers, pending join requests and members
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DaemonStatus'
      operationId: getStatus
    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)
  /session/start:
    post:
      tags:
      - Session
      summary: Create a new session (you become host)
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sessionName:
                  type: string
                roomSecret:
                  type: string
                  description: Optional shared secret mixed into every key — never sent to the server. A member who joins with a different secret cannot read chat or files.
                username:
                  type: string
                  description: Display name in the session
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  sessionId:
                    type: string
                  joinUrl:
                    type: string
                    description: Browser join page for this session on the server the daemon uses
      operationId: postSessionStart
    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)
  /session/join:
    post:
      tags:
      - Session
      summary: Request to join an existing session
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - sessionId
              properties:
                sessionId:
                  type: string
                  description: 7-character session ID
                username:
                  type: string
                roomSecret:
                  type: string
      responses:
        '200':
          description: OK
      operationId: postSessionJoin
    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)
  /session/approve:
    post:
      tags:
      - Session
      summary: 'Host-only: approve a pending guest'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - tempUserId
              properties:
                tempUserId:
                  type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  joined:
                    type: boolean
                  userId:
                    type:
                    - string
                    - 'null'
                  username:
                    type: string
        '404':
          description: No such pending request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      description: Returns once the guest is in the room (or after 8 s), so a chat sent next reaches them.
      operationId: postSessionApprove
    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)
  /session/reject:
    post:
      tags:
      - Session
      summary: 'Host-only: reject a pending guest'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - tempUserId
              properties:
                tempUserId:
                  type: string
                reason:
                  type: string
      responses:
        '200':
          description: OK
      operationId: postSessionReject
    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)
  /session/kick:
    post:
      tags:
      - Session
      summary: 'Host-only: disconnect a peer'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - userId
              properties:
                userId:
                  type: string
      responses:
        '200':
          description: OK
      operationId: postSessionKick
    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)
  /session/close:
    post:
      tags:
      - Session
      summary: Close active session and flush keys
      responses:
        '200':
          description: OK
      operationId: postSessionClose
    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)
  /create-session:
    post:
      tags:
      - Session
      summary: 'Public signaling: create session (used by browser clients)'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                username:
                  type: string
                name:
                  type: string
      responses:
        '200':
          description: OK
      operationId: postCreateSession
    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)
  /join-session:
    post:
      tags:
      - Session
      summary: 'Public signaling: preview a session and reserve a pending join (the host is…'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - sessionId
              properties:
                sessionId:
                  type: string
                username:
                  type: string
      responses:
        '200':
          description: OK
      operationId: postJoinSession
    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)
  /peers:
    get:
      servers:
      - url: http://127.0.0.1:3822
        description: Local daemon
      tags:
      - Session
      summary: Peers known in the current session
      responses:
        '200':
          description: This daemon's session connection (empty when there is no session)
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    sessionId:
                      type: string
                    userId:
                      type:
                      - string
                      - 'null'
                    role:
                      type: string
                    connectionState:
                      type: string
                      enum:
                      - CONNECTING
                      - OPEN
                      - CLOSING
                      - CLOSED
                    transport:
                      type: string
                    isConnected:
                      type: boolean
      operationId: getPeers
    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)
  /reset:
    post:
      servers:
      - url: http://127.0.0.1:3822
        description: Local daemon
      tags:
      - Session
      summary: Leave any session and flush keys and state (same as `srift reset`)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
      operationId: postReset
    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:
    PendingJoin:
      type: object
      properties:
        tempUserId:
          type: string
          description: Pass to /session/approve or /session/reject
        username:
          type: string
    DaemonStatus:
      type: object
      properties:
        session:
          type: object
          properties:
            id:
              type:
              - string
              - 'null'
            name:
              type:
              - string
              - 'null'
            role:
              type:
              - string
              - 'null'
              enum:
              - host
              - guest
              - null
            isConnected:
              type: boolean
            userId:
              type:
              - string
              - 'null'
        activeTransfers:
          type: array
          items:
            $ref: '#/components/schemas/Transfer'
        pendingJoins:
          type: array
          items:
            $ref: '#/components/schemas/PendingJoin'
        participants:
          type: array
          items:
            $ref: '#/components/schemas/Participant'
        lastUpdated:
          type: string
    Participant:
      type: object
      description: A session member. Pass userId to /session/kick.
      properties:
        userId:
          type: string
        username:
          type: string
        isHost:
          type: boolean
        online:
          type: boolean
    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
externalDocs:
  description: Full agent manual
  url: https://srift.app/AGENTS.md
x-refined-from:
- openapi.json
- srift-app-openapi.yml