SRIFT Transport API

TURN credentials and the HTTPS fallback for the session socket

GitHub OpenAPI

Operations 5

GET /v1/ice Short-lived ICE (STUN/TURN) servers for WebRTC #
POST /v1/stream/http/open Open the session socket over plain HTTPS #
POST /v1/stream/http/tx Send frames on an HTTPS stream #
POST /v1/stream/http/rx Long-poll frames from an HTTPS stream #
POST /v1/stream/http/close Close an HTTPS stream #

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-transport-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-transport-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Srift App Transport API
  version: 4.4.0
  contact:
    email: support@sripto.tech
  license:
    name: MIT
    identifier: MIT
  description: 'Operations tagged transport 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: transport
  description: TURN credentials and the HTTPS fallback for the session socket
paths:
  /v1/ice:
    get:
      tags:
      - transport
      operationId: getIceServers
      servers:
      - url: https://srift.app
        description: SRIFT server
      summary: Short-lived ICE (STUN/TURN) servers for WebRTC
      description: Merged, short-lived TURN credentials from every provider the operator configured (Cloudflare Realtime TURN, own coturn, Metered, static), asked in parallel. An empty list means no TURN is configured; clients then use public STUN, the sealed relay and the HTTPS stream.
      responses:
        '200':
          description: ICE servers
          content:
            application/json:
              schema:
                type: object
                properties:
                  iceServers:
                    type: array
                    items:
                      type: object
                      properties:
                        urls:
                          type: array
                          items:
                            type: string
                        username:
                          type: string
                        credential:
                          type: string
                      required:
                      - urls
                  providers:
                    type: array
                    items:
                      type: string
                  ttl:
                    type: integer
                    description: Seconds the credentials stay valid
                required:
                - iceServers
                - ttl
    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)
  /v1/stream/http/open:
    post:
      tags:
      - transport
      operationId: openHttpStream
      servers:
      - url: https://srift.app
        description: SRIFT server
      parameters:
      - name: s
        in: query
        required: false
        schema:
          type: string
          pattern: ^[A-Z]{3}[0-9]{4}$
        description: Session code; routes the request to the instance that holds the session
      summary: Open the session socket over plain HTTPS
      description: For networks that block WebSockets. The returned stream behaves exactly like the session WebSocket (same messages).
      responses:
        '200':
          description: Stream opened
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  pollMs:
                    type: integer
    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)
  /v1/stream/http/tx:
    post:
      tags:
      - transport
      operationId: sendHttpStream
      servers:
      - url: https://srift.app
        description: SRIFT server
      parameters:
      - name: s
        in: query
        required: false
        schema:
          type: string
          pattern: ^[A-Z]{3}[0-9]{4}$
        description: Session code; routes the request to the instance that holds the session
      summary: Send frames on an HTTPS stream
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                n:
                  type: integer
                  description: Sequence number of m[0]
                m:
                  type: array
                  items:
                    type: string
              required:
              - id
              - n
              - m
      responses:
        '200':
          description: Frames up to n were delivered
          content:
            application/json:
              schema:
                type: object
                properties:
                  n:
                    type: integer
        '404':
          description: 'Unknown stream: reconnect'
        '409':
          description: Resume from expect
        '410':
          description: Stream closed
    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)
  /v1/stream/http/rx:
    post:
      tags:
      - transport
      operationId: receiveHttpStream
      servers:
      - url: https://srift.app
        description: SRIFT server
      parameters:
      - name: s
        in: query
        required: false
        schema:
          type: string
          pattern: ^[A-Z]{3}[0-9]{4}$
        description: Session code; routes the request to the instance that holds the session
      summary: Long-poll frames from an HTTPS stream
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                ack:
                  type: integer
                  description: Highest frame sequence already received
              required:
              - id
      responses:
        '200':
          description: Frames after ack (m) and, once all are delivered, the close code (closed)
          content:
            application/json:
              schema:
                type: object
                properties:
                  m:
                    type: array
                    items:
                      type: object
                      properties:
                        n:
                          type: integer
                        d:
                          type: string
                  closed:
                    type: object
                    properties:
                      code:
                        type: integer
                      reason:
                        type: string
        '404':
          description: 'Unknown stream: reconnect'
    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)
  /v1/stream/http/close:
    post:
      tags:
      - transport
      operationId: closeHttpStream
      servers:
      - url: https://srift.app
        description: SRIFT server
      parameters:
      - name: s
        in: query
        required: false
        schema:
          type: string
          pattern: ^[A-Z]{3}[0-9]{4}$
        description: Session code; routes the request to the instance that holds the session
      summary: Close an HTTPS stream
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                code:
                  type: integer
                reason:
                  type: string
              required:
              - id
      responses:
        '200':
          description: Closed
    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)
externalDocs:
  description: Full agent manual
  url: https://srift.app/AGENTS.md
x-refined-from:
- openapi.json
- srift-app-openapi.yml