Sprixen Maps API

The Maps API from Sprixen — 6 operation(s) for maps.

GitHub OpenAPI

Operations 9

POST /v1/maps Create a new map #
GET /v1/maps List current user's maps #
GET /v1/maps/{id} Get map by ID with layers and tile packs #
PATCH /v1/maps/{id} Update map (layers, name, metadata, tile packs) #
DELETE /v1/maps/{id} Delete map (soft delete) #
POST /v1/maps/{id}/thumbnail Upload rendered thumbnail for a map #
POST /v1/maps/{id}/ai-edit AI edit map with natural language command #
GET /v1/maps/{id}/ai-edit/{generationId} Get AI edit status (poll) #
GET /v1/maps/{id}/export/{format} Export map (tmx, json, godot, unity, gamemaker) #

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/sprixen-com:sprixen-com-maps-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

sprixen-com-maps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sprixen Maps API
  description: Sprixen AI Game Asset Generator, REST API & MCP Server
  version: '1.0'
  contact: {}
servers:
- url: https://api.sprixen.com
  description: Production
- url: http://localhost:8080
  description: Local Development
tags:
- name: Maps
paths:
  /v1/maps:
    post:
      operationId: MapsController_create
      summary: Create a new map
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMapDto'
      responses:
        '201':
          description: Map created
      tags:
      - Maps
      security:
      - bearer: []
    get:
      operationId: MapsController_findAll
      summary: List current user's maps
      parameters: []
      responses:
        '200':
          description: Maps list returned
      tags:
      - Maps
      security:
      - bearer: []
  /v1/maps/{id}:
    get:
      operationId: MapsController_findOne
      summary: Get map by ID with layers and tile packs
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      responses:
        '200':
          description: Map returned
        '403':
          description: Access denied
        '404':
          description: Map not found
      tags:
      - Maps
      security:
      - bearer: []
    patch:
      operationId: MapsController_update
      summary: Update map (layers, name, metadata, tile packs)
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMapDto'
      responses:
        '200':
          description: Map updated
        '403':
          description: Access denied
        '404':
          description: Map not found
      tags:
      - Maps
      security:
      - bearer: []
    delete:
      operationId: MapsController_remove
      summary: Delete map (soft delete)
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      responses:
        '204':
          description: Map deleted
        '403':
          description: Access denied
        '404':
          description: Map not found
      tags:
      - Maps
      security:
      - bearer: []
  /v1/maps/{id}/thumbnail:
    post:
      operationId: MapsController_uploadThumbnail
      summary: Upload rendered thumbnail for a map
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      responses:
        '200':
          description: Thumbnail uploaded
      tags:
      - Maps
      security:
      - bearer: []
  /v1/maps/{id}/ai-edit:
    post:
      operationId: MapsController_aiEdit
      summary: AI edit map with natural language command
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiEditMapDto'
      responses:
        '201':
          description: AI edit job created
      tags:
      - Maps
      security:
      - bearer: []
  /v1/maps/{id}/ai-edit/{generationId}:
    get:
      operationId: MapsController_getAiEditStatus
      summary: Get AI edit status (poll)
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      - name: generationId
        required: true
        in: path
        description: Generation ID
        schema:
          type: string
      responses:
        '200':
          description: AI edit status returned
      tags:
      - Maps
      security:
      - bearer: []
  /v1/maps/{id}/export/{format}:
    get:
      operationId: MapsController_exportMap
      summary: Export map (tmx, json, godot, unity, gamemaker)
      parameters:
      - name: id
        required: true
        in: path
        description: Map ID
        schema:
          type: string
      - name: format
        required: true
        in: path
        description: Export format
        schema:
          type: string
      responses:
        '200':
          description: File download
      tags:
      - Maps
      security:
      - bearer: []
components:
  schemas:
    CreateMapDto:
      type: object
      properties:
        name:
          type: string
          example: My Fantasy Map
        description:
          type: string
        gridWidth:
          type: number
          default: 16
          minimum: 1
          maximum: 64
        gridHeight:
          type: number
          default: 16
          minimum: 1
          maximum: 64
        layers:
          type: object
          description: Initial layer data
        tilePackSlugs:
          description: Tile pack slugs used in this map
          type: array
          items:
            type: string
        projectionType:
          type: string
          enum:
          - isometric
          - top_down
          - side_view
          - world
          default: isometric
          description: Map projection type (locked after creation)
      required:
      - name
      - gridWidth
      - gridHeight
    AiEditMapDto:
      type: object
      properties:
        command:
          type: string
          example: Fill the terrain with grass and add trees at the borders
          description: Natural language command for AI map editing
          maxLength: 6000
      required:
      - command
    UpdateMapDto:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        gridWidth:
          type: number
        gridHeight:
          type: number
        layers:
          type: object
        terrainWeights:
          type: object
          description: 'Terrain weight map. Structure: { cells: [[{grass:1.0, dirt:0.0, ...}, ...], ...], materials: ["grass","dirt","sand","water","stone"] }'
        metadata:
          type: object
        thumbnailUrl:
          type: string
        tilePackSlugs:
          type: array
          items:
            type: string
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Sprixen API key (spx_live_...)
      name: Authorization
      in: header
    cookie:
      type: apiKey
      in: cookie
      name: sprixen_session