Soren Coord API

The Coord API from Soren — 5 operation(s) for coord.

GitHub OpenAPI

Operations 8

POST /v1/coord/session Buy a coordination session ($0.05 / $0.25 / $1.00) #
GET /v1/coord/session Remaining operations and expiry (free) #
POST /v1/coord/lock/{name} Acquire a lock or semaphore permit (1 operation) #
GET /v1/coord/lock/{name} Who holds it, without acquiring (1 operation) #
DELETE /v1/coord/lock/{name} Release your permit (free) #
POST /v1/coord/lock/{name}/renew Extend a permit you hold (free) #
POST /v1/coord/quota/{name} Consume from a rate limit shared across the fleet (1 operation) #
POST /v1/coord/sequence/{name} Next unique, strictly increasing number (1 operation) #

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/soren-com:soren-com-coord-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

soren-com-coord-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Soren Free Games Coord API
  version: 1.0.0
  summary: Verified free-to-keep PC games, for autonomous agents.
  description: 'Every PC game currently free to claim and keep permanently, each entry confirmed against the store''s own API before publication. Not scraped, not aggregated.


    WHY THIS EXISTS: an LLM asked ''what games are free right now?'' will invent an answer or repeat a stale post. This feed lets it answer correctly, including the negative case. ''Nothing is free on Steam right now'' is a fact a language model cannot safely generate on its own.


    PROOF THE VERIFICATION MATTERS: while building this, a widely used free-games aggregator listed a title as an active Steam giveaway. Steam''s own API reported the same game at $3.99 with no free-to-keep flag. That entry was discarded here because the store itself disagreed.


    BILLING: you are charged when the data CHANGES, never when you ask. Conditional checks are free, so polling every minute and polling once a day cost the same. Spend is bounded by how often games become free (a handful of times a day), not by your request rate — which makes autonomous spend predictable enough to pre-approve.


    LIFECYCLE: see x-lifecycle below for a worked 402 -> pay -> 304 -> 402 example. An agent that mismodels this will over-pay or stall.


    SELF-VERIFYING: the `version` field is a SHA-256 over the payload''s own content (free_games plus per-store status and count; timestamps excluded). Recompute it to prove the response was not altered in transit. Reference implementation at https://soren.com/verify.js.


    SIGNED: every payload carries an Ed25519 signature over its version string (public key at https://soren.com/signing-key.json), so you can prove origin as well as integrity.


    CONTRACT: within /v1, fields are never removed or retyped and meanings never silently change. Additions may appear without notice — ignore unknown fields. Breaking changes ship at /v2 with 180 days'' notice. Machine-readable in the `contract` block of every response.'
  contact:
    name: Soren
    email: support@soren.com
    url: https://soren.com/contactus
servers:
- url: https://soren.com
tags:
- name: Coord
paths:
  /v1/coord/session:
    post:
      operationId: coordSessionBuy
      summary: Buy a coordination session ($0.05 / $0.25 / $1.00)
      description: 'Buys an operation budget for the coordination primitives. Paid ONCE, because on-chain settlement takes about 1.9 seconds and a lock that slow is not a lock; every primitive call afterwards runs at ordinary HTTP latency (57ms median, measured). Tiers: 100 ops for $0.05 valid 1h, 1000 for $0.25 valid 24h, 5000 for $1.00 valid 7d. The session token is a bearer credential. Names are namespaced to the paying wallet. Renewing and releasing a lock you already hold never costs an operation.'
      parameters:
      - name: ops
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 100
          - 1000
          - 5000
          default: 1000
        description: Which tier to buy.
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Unknown tier.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
    get:
      operationId: coordSessionState
      summary: Remaining operations and expiry (free)
      description: Costs no operations.
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
  /v1/coord/lock/{name}:
    post:
      operationId: coordLockAcquire
      summary: Acquire a lock or semaphore permit (1 operation)
      description: 'limit=1 is a mutex; limit>1 is a semaphore. Returns a strictly increasing fence. IMPORTANT: a TTL lock alone does NOT give mutual exclusion — a holder stalled past its TTL wakes still believing it holds the lock while another agent has legitimately taken it. Carry the fence into the resource you are protecting and reject lower values, or what you have is an advisory lock. A blocked acquire still costs an operation and returns retry_after; you are never charged when Soren itself fails. Re-acquiring as the same holder extends the permit rather than consuming a second one.'
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Your name for this lock/bucket/sequence. Namespaced to your wallet; never persisted.
      - name: ns
        in: query
        required: false
        schema:
          type: string
          default: default
        description: Optional sub-namespace, for running two independent fleets from one wallet.
      - name: holder
        in: query
        required: true
        schema:
          type: string
        description: A stable id for this agent. Identifies who holds the permit so renew and release work.
      - name: ttl
        in: query
        required: false
        schema:
          type: integer
          default: 60
          minimum: 1
          maximum: 3600
        description: Seconds until the permit lapses if not renewed.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 1
          minimum: 1
          maximum: 1000
        description: Concurrent holders allowed. 1 is a mutex.
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Missing holder or name.
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
        '503':
          description: Coordination object unreachable. No operation charged.
      tags:
      - Coord
    get:
      operationId: coordLockPeek
      summary: Who holds it, without acquiring (1 operation)
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Your name for this lock/bucket/sequence. Namespaced to your wallet; never persisted.
      - name: ns
        in: query
        required: false
        schema:
          type: string
          default: default
        description: Optional sub-namespace, for running two independent fleets from one wallet.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 1
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
    delete:
      operationId: coordLockRelease
      summary: Release your permit (free)
      description: 'Costs no operations, deliberately: a fleet that exhausted its budget must still be able to let go of what it holds.'
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Your name for this lock/bucket/sequence. Namespaced to your wallet; never persisted.
      - name: ns
        in: query
        required: false
        schema:
          type: string
          default: default
        description: Optional sub-namespace, for running two independent fleets from one wallet.
      - name: holder
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
  /v1/coord/lock/{name}/renew:
    post:
      operationId: coordLockRenew
      summary: Extend a permit you hold (free)
      description: Costs no operations. A response of renewed=false with reason not_held means your lease lapsed and someone else may hold it — stop what you are doing rather than re-acquiring blindly.
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Your name for this lock/bucket/sequence. Namespaced to your wallet; never persisted.
      - name: ns
        in: query
        required: false
        schema:
          type: string
          default: default
        description: Optional sub-namespace, for running two independent fleets from one wallet.
      - name: holder
        in: query
        required: true
        schema:
          type: string
      - name: ttl
        in: query
        required: false
        schema:
          type: integer
          default: 60
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
  /v1/coord/quota/{name}:
    post:
      operationId: coordQuota
      summary: Consume from a rate limit shared across the fleet (1 operation)
      description: A token bucket every agent in your fleet draws from, so nine agents can share one upstream API quota. Returns granted with the remainder, or retry_after_ms.
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Your name for this lock/bucket/sequence. Namespaced to your wallet; never persisted.
      - name: ns
        in: query
        required: false
        schema:
          type: string
          default: default
        description: Optional sub-namespace, for running two independent fleets from one wallet.
      - name: rate
        in: query
        required: false
        schema:
          type: integer
          default: 60
        description: Tokens refilled per window.
      - name: per
        in: query
        required: false
        schema:
          type: integer
          default: 60
        description: Window length in seconds.
      - name: burst
        in: query
        required: false
        schema:
          type: integer
        description: Bucket capacity. Defaults to rate.
      - name: n
        in: query
        required: false
        schema:
          type: integer
          default: 1
        description: Tokens to take.
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
  /v1/coord/sequence/{name}:
    post:
      operationId: coordSequence
      summary: Next unique, strictly increasing number (1 operation)
      description: Unique and strictly increasing — NOT gapless. A lost response burns a value, so you can legitimately observe a gap; anything needing gapless numbering must reconcile at your end.
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer <session_token> from POST /v1/coord/session.
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: Your name for this lock/bucket/sequence. Namespaced to your wallet; never persisted.
      - name: ns
        in: query
        required: false
        schema:
          type: string
          default: default
        description: Optional sub-namespace, for running two independent fleets from one wallet.
      - name: start
        in: query
        required: false
        schema:
          type: integer
          default: 1
        description: First value, used only when the sequence is created.
      responses:
        '200':
          description: Result.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: No valid session token.
        '402':
          description: Payment required, or the session budget is exhausted.
      tags:
      - Coord
x-lifecycle:
  summary: Worked example of the full request lifecycle. Follow this exactly.
  steps:
  - step: 1
    request: GET /v1/free-games
    response: 402 Payment Required
    body:
      error:
        code: payment_required
      payment:
        amount: '0.02'
        asset: USDC
        recipient: 0x...
        nonce: '...'
    note: No credentials. Not billed. The challenge tells you what to pay.
  - step: 2
    request: 'GET /v1/free-games  with header  X-Payment: <proof>'
    response: 200 OK
    headers:
      ETag: '"733d91c2..."'
      X-Access-Expires: '2026-08-01T15:00:00Z'
    body_excerpt:
      version: 733d91c2...
      free_games:
      - '...'
      stores:
        '...': '...'
      access:
        token: sk_live_...
        expires_at: '2026-08-01T15:00:00Z'
    note: BILLED. Store BOTH the token and the version — you need both for step 3.
  - step: 3
    request: 'GET /v1/free-games  with  Authorization: Bearer <token>  and  If-None-Match: "733d91c2..."'
    response: 304 Not Modified
    body: null
    note: FREE, and this is the common case. Nothing changed. Keep your cached copy. Repeat as often as you like — it costs nothing.
  - step: 4
    request: same as step 3, once the feed has changed
    response: 402 Payment Required
    headers:
      ETag: '"d41d8c..."'
    note: FREE. The feed changed. The response deliberately does not say what changed or which store — pay to see it.
  - step: 5
    request: 'GET /v1/free-games  with  X-Payment: <new proof>'
    response: 200 OK
    note: BILLED. Returns the new data and a FRESH 24h token. The cycle returns to step 3.
  rules:
  - 'Never billed: 304, 402, 429, 4xx, 5xx. Only a 200 carrying data is charged.'
  - Always send If-None-Match. It is free, faster, and the reason your bill stays flat.
  - The token expires 24h after the last payment. X-Access-Expires is on every response — renew before it, do not wait for a 402.
  - If a 200 is lost in transit, retry with the SAME payment proof. Idempotency is keyed on the transaction id, so you will not be charged twice.
  - On 429, wait exactly Retry-After seconds (an integer, not a date).
  - 'free_count: null is NOT zero. status ''ok'' with 0 means verified-nothing-free; ''unavailable'' means we could not check and you must not report it as nothing free.'