Sprixen Chat API

The chat API from Sprixen — 5 operation(s) for chat.

GitHub OpenAPI

Operations 8

POST /v1/chat/debug/code-agent [DEBUG] Test code agent directly #
POST /v1/chat/conversations Create a new conversation #
GET /v1/chat/conversations List current user's conversations #
GET /v1/chat/conversations/{id} Get a conversation with messages #
DELETE /v1/chat/conversations/{id} Delete a conversation (soft delete) #
POST /v1/chat/conversations/{id}/messages Send a message to the chat assistant #
GET /v1/chat/conversations/{id}/messages Get paginated message history #
POST /v1/chat/conversations/{id}/messages/stream Stream assistant response via SSE #

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-chat-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-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sprixen Chat 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: Chat
paths:
  /v1/chat/debug/code-agent:
    post:
      operationId: ChatController_debugCodeAgent
      summary: '[DEBUG] Test code agent directly'
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Chat
      security:
      - bearer: []
  /v1/chat/conversations:
    post:
      operationId: ChatController_createConversation
      summary: Create a new conversation
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateConversationDto'
      responses:
        '201':
          description: Conversation created
      tags:
      - Chat
      security:
      - bearer: []
    get:
      operationId: ChatController_findAllConversations
      summary: List current user's conversations
      parameters: []
      responses:
        '200':
          description: List of conversations
      tags:
      - Chat
      security:
      - bearer: []
  /v1/chat/conversations/{id}:
    get:
      operationId: ChatController_findConversation
      summary: Get a conversation with messages
      parameters:
      - name: id
        required: true
        in: path
        description: Conversation ID
        schema:
          type: string
      responses:
        '200':
          description: Conversation with messages
        '403':
          description: Access denied
        '404':
          description: Conversation not found
      tags:
      - Chat
      security:
      - bearer: []
    delete:
      operationId: ChatController_deleteConversation
      summary: Delete a conversation (soft delete)
      parameters:
      - name: id
        required: true
        in: path
        description: Conversation ID
        schema:
          type: string
      responses:
        '200':
          description: Conversation deleted
        '403':
          description: Access denied
        '404':
          description: Conversation not found
      tags:
      - Chat
      security:
      - bearer: []
  /v1/chat/conversations/{id}/messages:
    post:
      operationId: ChatController_sendMessage
      summary: Send a message to the chat assistant
      description: Sends a user message (text and/or image) to Gemini, executes any tool calls, and returns the assistant response. Accepts multipart/form-data or JSON (text-only). May take several seconds.
      parameters:
      - name: id
        required: true
        in: path
        description: Conversation ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: Message text (optional when image is provided)
                image:
                  type: string
                  format: binary
                  description: Optional image attachment (PNG/JPEG/WebP/GIF, max 5 MB)
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: Message text (optional when image is provided)
                image:
                  type: string
                  format: binary
                  description: Optional image attachment (PNG/JPEG/WebP/GIF, max 5 MB)
      responses:
        '201':
          description: Assistant message returned
        '400':
          description: No text or image provided
        '403':
          description: Access denied
        '404':
          description: Conversation not found
      tags:
      - Chat
      security:
      - bearer: []
    get:
      operationId: ChatController_getMessages
      summary: Get paginated message history
      parameters:
      - name: id
        required: true
        in: path
        description: Conversation ID
        schema:
          type: string
      - name: page
        required: false
        in: query
        schema:
          example: 1
          type: number
      responses:
        '200':
          description: Paginated messages
        '403':
          description: Access denied
        '404':
          description: Conversation not found
      tags:
      - Chat
      security:
      - bearer: []
  /v1/chat/conversations/{id}/messages/stream:
    post:
      operationId: ChatController_sendMessageStream
      summary: Stream assistant response via SSE
      description: 'Sends a user message and streams SSE events for each step of the agentic loop. Events: message_saved, thinking, tool_start, tool_complete, text, done, error, ping. Does not support image uploads.'
      parameters:
      - name: id
        required: true
        in: path
        description: Conversation ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: Message text
              required:
              - content
      responses:
        '200':
          description: SSE stream of assistant events
        '400':
          description: No text provided
        '403':
          description: Access denied
        '404':
          description: Conversation not found
      tags:
      - Chat
      security:
      - bearer: []
components:
  schemas:
    CreateConversationDto:
      type: object
      properties:
        title:
          type: string
          example: Fantasy RPG assets
          description: Optional title for the conversation
        context:
          type: string
          example: game-creator
          description: Conversation context (null for regular chat, "game-creator" for game creation)
        gameProjectId:
          type: string
          example: clx1234abcd
          description: Optional game project ID to link this conversation to
  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