Magicweave API

Magicweave API as documented publicly: 25 operations. Contract generated from the documentation by API Evangelist (2026-11-17); not the provider's own document.

GitHub OpenAPI

Operations 25

GET /healthz GET /healthz is an auth-free liveness check #
POST /v1/auth/code Email a one-time sign-in code #
POST /v1/auth/providers What this environment lets a player sign in with #
POST /v1/auth/refresh Rotate a refresh token #
POST /v1/auth/token POST /v1/auth/token #
GET /v1/currencies Read back the currencies – GET /v1/currencies #
POST /v1/entries Charge an entry cost – POST /v1/entries with an entry_id you generate #
POST /v1/entries/{entryId}/refund Refund an entry cost – POST /v1/entries/{entry_id}/refund if the player backs out before playing #
POST /v1/environments/{envid}/realtime/ticket Rooms — Magicweave Docs #
GET /v1/environments/{envid}/rooms Rooms — Magicweave Docs #
GET /v1/environments/{envid}/rooms/{room}/state Rooms — Magicweave Docs #
POST /v1/events Send a client‑sent event – POST /v1/events (sync rules return effects in the same response) #
GET /v1/me/profile Create/fetch the profile – GET /v1/me/profile #
PUT /v1/me/profile Create/fetch the profile – PUT /v1/me/profile #
GET /v1/rooms/{room}/state Rooms — Magicweave Docs #
DELETE /v1/rooms/{room}/state/{key} Rooms — Magicweave Docs #
GET /v1/rooms/{room}/state/{key} Rooms — Magicweave Docs #
PUT /v1/rooms/{room}/state/{key} Rooms — Magicweave Docs #
POST /v1/sessions Start a session – POST /v1/sessions with Idempotency-Key header and body {"game": ""} #
GET /v1/sessions/active Read the currently active session – GET /v1/sessions/active #
POST /v1/sessions/{id}/abandon Abandon an active session without an outcome #
POST /v1/sessions/{id}/finish Finish a session – POST /v1/sessions/{id}/finish with outcome payload #
POST /v1/shops/{shop}/listings/{listing}/purchases Spending happens through the ordinary shop purchase, POST /v1/shops/{shop}/listings/{listing}/purchases #
GET /v1/stats Read back the stats – GET /v1/stats #
GET /v1/wallet Read back the wallet – GET /v1/wallet #

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/magicweave-xyz:magicweave-xyz-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

magicweave-xyz-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Magicweave API
  version: '2026-11-17'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-17: 25 operation(s) read from 8 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Magicweave has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 24
    pages-with-code: 2
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-17'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.magicweave.xyz/reference/rooms
  - https://docs.magicweave.xyz/content/reference/rooms.md
  - https://docs.magicweave.xyz/getting-started
  - https://docs.magicweave.xyz/auth
  - https://docs.magicweave.xyz/content/getting-started.md
  - https://docs.magicweave.xyz/magic-coins
  - https://docs.magicweave.xyz/connect
  - https://docs.magicweave.xyz/integration-guide
servers:
- url: https://edge.oasis.magicweave.xyz
paths:
  /healthz:
    get:
      operationId: get_healthz
      tags:
      - Healthz
      summary: GET /healthz is an auth-free liveness check
      description: Returns {"status":"ok"} to confirm the base URL is reachable.
      x-source: https://docs.magicweave.xyz/connect
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetHealthzResponse'
      x-evidence:
        kind: documentation
  /v1/auth/code:
    post:
      operationId: post_v1_auth_code
      tags:
      - Auth
      summary: Email a one-time sign-in code
      x-source: https://docs.magicweave.xyz/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AuthCodeRequest'
      responses:
        '202':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1AuthCodeResponse'
      x-evidence:
        kind: documentation
  /v1/auth/providers:
    post:
      operationId: post_v1_auth_providers
      tags:
      - Auth
      summary: What this environment lets a player sign in with
      x-source: https://docs.magicweave.xyz/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AuthProvidersRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1AuthProvidersResponse'
      x-evidence:
        kind: documentation
  /v1/auth/refresh:
    post:
      operationId: post_v1_auth_refresh
      tags:
      - Auth
      summary: Rotate a refresh token
      x-source: https://docs.magicweave.xyz/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AuthRefreshRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1AuthRefreshResponse'
      x-evidence:
        kind: documentation
  /v1/auth/token:
    post:
      operationId: post_v1_auth_token
      tags:
      - Auth
      summary: POST /v1/auth/token
      x-source: https://docs.magicweave.xyz/getting-started
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST \"https://edge.oasis.magicweave.xyz/v1/auth/token\"  -H \"Content-Type: application/json\"  -d '{\n \"client_id\"\
          : \"'\"$CLIENT_ID\"'\",\n \"client_secret\": \"'\"$CLIENT_SECRET\"'\",\n \"provider\": \"guest\",\n \"identifier\": \"some-stable-per-install-device-id\"\
          \n }'\n {\n \"access_token\": \"<JWT — short-lived>\",\n \"refresh_token\": \"<opaque token — long-lived>\",\n \"token_type\": \"Bearer\"\
          ,\n \"expires_in\": 3600,\n \"play"
  /v1/currencies:
    get:
      operationId: get_v1_currencies
      tags:
      - Currencies
      summary: Read back the currencies – GET /v1/currencies
      x-source: https://docs.magicweave.xyz/integration-guide
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1CurrenciesResponse'
      x-evidence:
        kind: documentation
  /v1/entries:
    post:
      operationId: post_v1_entries
      tags:
      - Entries
      summary: Charge an entry cost – POST /v1/entries with an entry_id you generate
      x-source: https://docs.magicweave.xyz/integration-guide
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1EntriesRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1EntriesResponse'
      x-evidence:
        kind: documentation
  /v1/entries/{entryId}/refund:
    post:
      operationId: post_v1_entries_entryId_refund
      tags:
      - Entries
      summary: Refund an entry cost – POST /v1/entries/{entry_id}/refund if the player backs out before playing
      x-source: https://docs.magicweave.xyz/integration-guide
      parameters:
      - name: entryId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1EntriesEntryidRefundResponse'
      x-evidence:
        kind: documentation
  /v1/environments/{envid}/realtime/ticket:
    post:
      operationId: post_v1_environments_envid_realtime_ticket
      tags:
      - Environments
      summary: Rooms — Magicweave Docs
      description: A ticket for the console's own socket, watching the whole environment rather than one player's events.
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: envid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/environments/{envid}/rooms:
    get:
      operationId: get_v1_environments_envid_rooms
      tags:
      - Environments
      summary: Rooms — Magicweave Docs
      description: The union of presence and persisted state — fifty most recently written rooms, unpaged on the live half.
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: envid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/environments/{envid}/rooms/{room}/state:
    get:
      operationId: get_v1_environments_envid_rooms_room_state
      tags:
      - Environments
      summary: Rooms — Magicweave Docs
      description: Every key a room holds, each entry also carrying tier and created_at.
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: envid
        in: path
        required: true
        schema:
          type: string
      - name: room
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1EnvironmentsEnvidRoomsRoomStateResponse'
      x-evidence:
        kind: documentation
  /v1/events:
    post:
      operationId: post_v1_events
      tags:
      - Events
      summary: Send a client‑sent event – POST /v1/events (sync rules return effects in the same response)
      x-source: https://docs.magicweave.xyz/integration-guide
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1EventsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1EventsResponse'
      x-evidence:
        kind: documentation
  /v1/me/profile:
    get:
      operationId: get_v1_me_profile
      tags:
      - Me
      summary: Create/fetch the profile – GET /v1/me/profile
      x-source: https://docs.magicweave.xyz/integration-guide
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1MeProfileResponse'
      x-evidence:
        kind: documentation
    put:
      operationId: put_v1_me_profile
      tags:
      - Me
      summary: Create/fetch the profile – PUT /v1/me/profile
      x-source: https://docs.magicweave.xyz/integration-guide
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutV1MeProfileRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutV1MeProfileResponse'
      x-evidence:
        kind: documentation
  /v1/rooms/{room}/state:
    get:
      operationId: get_v1_rooms_room_state
      tags:
      - Rooms
      summary: Rooms — Magicweave Docs
      description: 'Every key the room holds, as { "entries": [RoomEntry, …] }. Never paged.'
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: room
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1RoomsRoomStateResponse'
      x-evidence:
        kind: documentation
  /v1/rooms/{room}/state/{key}:
    delete:
      operationId: delete_v1_rooms_room_state_key
      tags:
      - Rooms
      summary: Rooms — Magicweave Docs
      description: Delete a key. 204 whether or not it was there.
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: room
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_v1_rooms_room_state_key
      tags:
      - Rooms
      summary: Rooms — Magicweave Docs
      description: One key, or 404 if it has never been written.
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: room
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1RoomsRoomStateKeyResponse'
      x-evidence:
        kind: documentation
    put:
      operationId: put_v1_rooms_room_state_key
      tags:
      - Rooms
      summary: Rooms — Magicweave Docs
      description: Write a key whole.
      x-source: https://docs.magicweave.xyz/reference/rooms
      parameters:
      - name: room
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutV1RoomsRoomStateKeyRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/sessions:
    post:
      operationId: post_v1_sessions
      tags:
      - Sessions
      summary: 'Start a session – POST /v1/sessions with Idempotency-Key header and body {"game": "<manifest key>"}'
      x-source: https://docs.magicweave.xyz/integration-guide
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1SessionsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SessionsResponse'
      x-evidence:
        kind: documentation
  /v1/sessions/active:
    get:
      operationId: get_v1_sessions_active
      tags:
      - Sessions
      summary: Read the currently active session – GET /v1/sessions/active
      x-source: https://docs.magicweave.xyz/integration-guide
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1SessionsActiveResponse'
      x-evidence:
        kind: documentation
  /v1/sessions/{id}/abandon:
    post:
      operationId: post_v1_sessions_id_abandon
      tags:
      - Sessions
      summary: Abandon an active session without an outcome
      x-source: https://docs.magicweave.xyz/integration-guide
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/sessions/{id}/finish:
    post:
      operationId: post_v1_sessions_id_finish
      tags:
      - Sessions
      summary: Finish a session – POST /v1/sessions/{id}/finish with outcome payload
      x-source: https://docs.magicweave.xyz/integration-guide
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1SessionsIdFinishRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SessionsIdFinishResponse'
      x-evidence:
        kind: documentation
  /v1/shops/{shop}/listings/{listing}/purchases:
    post:
      operationId: post_v1_shops_shop_listings_listing_purchases
      tags:
      - Shops
      summary: Spending happens through the ordinary shop purchase, POST /v1/shops/{shop}/listings/{listing}/purchases
      x-source: https://docs.magicweave.xyz/magic-coins
      parameters:
      - name: shop
        in: path
        required: true
        schema:
          type: string
      - name: listing
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/stats:
    get:
      operationId: get_v1_stats
      tags:
      - Stats
      summary: Read back the stats – GET /v1/stats
      x-source: https://docs.magicweave.xyz/integration-guide
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1StatsResponse'
      x-evidence:
        kind: documentation
  /v1/wallet:
    get:
      operationId: get_v1_wallet
      tags:
      - Wallet
      summary: Read back the wallet – GET /v1/wallet
      x-source: https://docs.magicweave.xyz/integration-guide
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1WalletResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetHealthzResponse:
      type: object
      properties:
        status:
          type: string
          description: Health status, always "ok"
    PostV1AuthCodeRequest:
      type: object
      properties:
        client_id:
          type: string
          description: Your environment's public client id.
        client_secret:
          type: string
          description: Your environment's client secret.
        email:
          type: string
          description: The address to send the code to.
      required:
      - client_id
      - client_secret
      - email
    PostV1AuthCodeResponse:
      type: object
      properties:
        status:
          type: string
          description: Status of the request.
    PostV1AuthProvidersRequest:
      type: object
      properties:
        client_id:
          type: string
          description: Your environment's public client id.
        client_secret:
          type: string
          description: Your environment's client secret.
      required:
      - client_id
      - client_secret
    PostV1AuthProvidersResponse:
      type: object
      properties:
        providers:
          type: array
          description: List of provider objects.
        provider:
          type: string
          description: Provider name.
        anonymous:
          type: boolean
          description: True only for guest.
        audiences:
          type: array
          description: Audiences to pass to the provider's SDK.
    PostV1AuthRefreshRequest:
      type: object
      properties:
        refresh_token:
          type: string
          description: The refresh token from a previous /v1/auth/token or /v1/auth/refresh response.
      required:
      - refresh_token
    PostV1AuthRefreshResponse:
      type: object
      properties:
        access_token:
          type: string
          description: JWT — short-lived.
        refresh_token:
          type: string
          description: New opaque refresh token.
        token_type:
          type: string
          description: Bearer.
        expires_in:
          type: integer
          description: Seconds until expiration.
        player_id:
          type: string
          description: Player UUID.
    GetV1CurrenciesResponse:
      type: object
      properties:
        currencies:
          type: array
    PostV1EntriesRequest:
      type: object
      properties:
        entry_id:
          type: string
      required:
      - entry_id
    PostV1EntriesResponse:
      type: object
      properties:
        entry:
          type: object
    PostV1EntriesEntryidRefundResponse:
      type: object
      properties:
        refund:
          type: object
    GetV1EnvironmentsEnvidRoomsRoomStateResponse:
      type: object
      properties:
        entries:
          type: array
          description: Array of entries, each also carrying tier and created_at.
    PostV1EventsRequest:
      type: object
      properties:
        event_type:
          type: string
        payload:
          type: object
      required:
      - event_type
      - payload
    PostV1EventsResponse:
      type: object
      properties:
        result:
          type: object
    GetV1MeProfileResponse:
      type: object
      properties:
        profile:
          type: object
    PutV1MeProfileRequest:
      type: object
      properties:
        display_name:
          type: string
        avatar_url:
          type: string
    PutV1MeProfileResponse:
      type: object
      properties:
        profile:
          type: object
    GetV1RoomsRoomStateResponse:
      type: object
      properties:
        entries:
          type: array
          description: Array of RoomEntry objects.
    GetV1RoomsRoomStateKeyResponse:
      type: object
      properties:
        room:
          type: string
          description: Exactly what you wrote.
        key:
          type: string
          description: Exactly what you wrote.
        value:
          type: string
          description: Any JSON value.
        size:
          type: integer
          description: Bytes as the writer sent them.
        version:
          type: integer
          description: Increments on every accepted write.
        last_writer:
          type: string
          description: Player id of the writer, absent if account erased.
        updated_at:
          type: string
          description: When this key was last written.
    PutV1RoomsRoomStateKeyRequest:
      type: object
      properties:
        value:
          type: string
          description: Any JSON value.
        expected_version:
          type: integer
          description: Expected version (≥ -1).
      required:
      - value
      - expected_version
    PostV1SessionsRequest:
      type: object
      properties:
        game:
          type: string
      required:
      - game
    PostV1SessionsResponse:
      type: object
      properties:
        session:
          type: object
    GetV1SessionsActiveResponse:
      type: object
      properties:
        session:
          type: object
    PostV1SessionsIdFinishRequest:
      type: object
      properties:
        outcome:
          type: object
      required:
      - outcome
    PostV1SessionsIdFinishResponse:
      type: object
      properties:
        outcome:
          type: object
        standings:
          type: object
    GetV1StatsResponse:
      type: object
      properties:
        stats:
          type: array
    GetV1WalletResponse:
      type: object
      properties:
        balances:
          type: array
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      x-source: https://docs.magicweave.xyz/auth/
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://mcp.magicweave.xyz/mcp
          scopes: &id001 {}
        authorizationCode:
          authorizationUrl: https://mcp.magicweave.xyz/mcp
          tokenUrl: https://mcp.magicweave.xyz/mcp
          scopes: *id001
      x-source: https://docs.magicweave.xyz/auth/
tags:
- name: Auth
- name: Currencies
- name: Entries
- name: Environments
- name: Events
- name: Healthz
- name: Me
- name: Rooms
- name: Sessions
- name: Shops
- name: Stats
- name: Wallet
security:
- Bearer: []
- OAuth2: []