S2 Dev Locations API

Manage locations

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /locations List storage locations · List locations #
Ask an LLM
“Which storage locations are available for my streams?”
“Can I see all the locations I can write to?”
Tell an agent
List all storage locations.
Show every location available for streams.
GET /locations/default Get the default storage location · Get the default location #
Ask an LLM
“Which location is the default for my streams?”
“What is the current default location?”
Tell an agent
Get the default location.
Show which location streams use by default.
PUT /locations/default Set the default storage location · Set the default location #
Ask an LLM
“How do I make a location the default for my streams?”
“Can I change the default location?”
Tell an agent
Set the default location to this one.
Make this location the default for streams.

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/s2-dev:s2-dev-locations-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

s2-dev-locations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: S2, the durable streams Locations API
  description: Streams as a cloud storage primitive.
  termsOfService: https://s2.dev/terms
  contact:
    email: support@s2.dev
  license:
    name: MIT
  version: 1.0.0
servers:
- url: https://a.s2.dev/v1
security:
- access_token: []
tags:
- name: Locations
  description: Manage locations
paths:
  /locations:
    get:
      tags:
      - Locations
      summary: List locations
      operationId: list_locations
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LocationInfo'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
        '408':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
  /locations/default:
    get:
      tags:
      - Locations
      summary: Get the default location
      operationId: get_default_location
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationInfo'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
        '408':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
    put:
      tags:
      - Locations
      summary: Set the default location
      operationId: set_default_location
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LocationName'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationInfo'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
        '408':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInfo'
components:
  schemas:
    LocationInfo:
      type: object
      required:
      - name
      - is_private
      properties:
        is_private:
          type: boolean
          description: Location represents a private placement, limited by account.
        name:
          $ref: '#/components/schemas/LocationName'
          description: Location name.
    ErrorInfo:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
    LocationName:
      type: string
      maxLength: 64
      minLength: 1
  securitySchemes:
    access_token:
      type: http
      scheme: bearer
      description: Bearer authentication header of the form `Bearer <token>`, where `<token>` is your access token.
x-provenance:
  method: harvested
  publisher: S2 Dev
  source: https://raw.githubusercontent.com/s2-streamstore/s2-specs/main/s2/v1/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)