# Magicweave API

**Canonical:** https://apis.io/apis/magicweave-xyz/magicweave-xyz-api/  
**Provider:** Magicweave — https://apis.io/providers/magicweave-xyz/  
**Base URL:** https://edge.oasis.magicweave.xyz  
**Documentation:** https://docs.magicweave.xyz/reference/rooms

Magicweave API is one of 2 APIs that [Magicweave](https://apis.io/providers/magicweave-xyz/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

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

## Operations (25)

| Method | Path | Summary |
|---|---|---|
| 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": "<manifest key>"} |
| 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 |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/magicweave-xyz/openapi/_ae-authored/magicweave-xyz-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/magicweave-xyz/json-schema/magicweave-xyz-get-v1-rooms-room-state-key-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/magicweave-xyz/json-schema/magicweave-xyz-post-v1-auth-refresh-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/magicweave-xyz/json-schema/magicweave-xyz-post-v1-auth-code-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/magicweave-xyz/json-schema/magicweave-xyz-post-v1-auth-providers-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/magicweave-xyz/json-schema/magicweave-xyz-post-v1-auth-providers-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/magicweave-xyz/json-schema/magicweave-xyz-put-v1-rooms-room-state-key-request-schema.json

## Other Magicweave APIs (1)

- [Magicweave API](https://apis.io/apis/magicweave-xyz/magicweave-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/magicweave-xyz` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/magicweave-xyz/magicweave-xyz-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/magicweave-xyz/.
