Admiral Chat API

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

GitHub OpenAPI

Operations 9

GET /accounts/{account_id}/chat/threads List Threads #
POST /accounts/{account_id}/chat/threads Create Thread #
GET /accounts/{account_id}/chat/threads/{thread_id} Read Thread #
DELETE /accounts/{account_id}/chat/threads/{thread_id} Delete Thread #
POST /accounts/{account_id}/chat/threads/{thread_id}/messages Append Message #
POST /accounts/{account_id}/chat/threads/import Import Threads #
GET /accounts/{account_id}/memory List Memory #
POST /accounts/{account_id}/memory Put Note #
DELETE /accounts/{account_id}/memory Delete Note #

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/meetadmiral-com:meetadmiral-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

meetadmiral-com-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Admiral Chat API
  version: 0.1.0
tags:
- name: Chat
paths:
  /accounts/{account_id}/chat/threads:
    get:
      tags:
      - Chat
      summary: List Threads
      operationId: list_threads_accounts__account_id__chat_threads_get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Chat
      summary: Create Thread
      operationId: create_thread_accounts__account_id__chat_threads_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateThread'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/{account_id}/chat/threads/{thread_id}:
    get:
      tags:
      - Chat
      summary: Read Thread
      operationId: read_thread_accounts__account_id__chat_threads__thread_id__get
      parameters:
      - name: thread_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Thread Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Chat
      summary: Delete Thread
      operationId: delete_thread_accounts__account_id__chat_threads__thread_id__delete
      parameters:
      - name: thread_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Thread Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/{account_id}/chat/threads/{thread_id}/messages:
    post:
      tags:
      - Chat
      summary: Append Message
      description: 'Talk appends what was said and decided OUT LOUD — spoken turns,

        resolved decisions, the call receipt — into the same thread as the

        typed turns, so a conversation survives the panel closing. `content`

        is the plain sentence the model reads as conversation; `meta` is how

        the thread renders the row (kind: spoken | decision | receipt). Typed

        turns are persisted by the model call itself, never through here.


        Trust: a spoken row is the caller''s word, like an imported transcript.

        A receipt row is materialised server-side and an applied decision is

        refused outright (see _materialise and app.chat_attach) — the browser

        cannot claim a change it did not make, relabel one, or attach one twice.'
      operationId: append_message_accounts__account_id__chat_threads__thread_id__messages_post
      parameters:
      - name: thread_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Thread Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppendMessage'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/{account_id}/chat/threads/import:
    post:
      tags:
      - Chat
      summary: Import Threads
      description: One-time migration path for the old localStorage transcripts.
      operationId: import_threads_accounts__account_id__chat_threads_import_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/{account_id}/memory:
    get:
      tags:
      - Chat
      summary: List Memory
      operationId: list_memory_accounts__account_id__memory_get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Chat
      summary: Put Note
      description: Create or replace one note.
      operationId: put_note_accounts__account_id__memory_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/app__routers__chat_memory__NoteBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Chat
      summary: Delete Note
      operationId: delete_note_accounts__account_id__memory_delete
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: path
        in: query
        required: true
        schema:
          type: string
          title: Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ImportMessage:
      properties:
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
        steps:
          items:
            type: string
          type: array
          title: Steps
        error:
          type: boolean
          title: Error
          default: false
      type: object
      required:
      - role
      - content
      title: ImportMessage
    CreateThread:
      properties:
        title:
          type: string
          title: Title
          default: New chat
      type: object
      title: CreateThread
    ImportRequest:
      properties:
        threads:
          items:
            $ref: '#/components/schemas/ImportThread'
          type: array
          title: Threads
      type: object
      required:
      - threads
      title: ImportRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    app__routers__chat_memory__NoteBody:
      properties:
        path:
          type: string
          title: Path
        content:
          type: string
          title: Content
      type: object
      required:
      - path
      - content
      title: NoteBody
    AppendMessage:
      properties:
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
        meta:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Meta
      type: object
      required:
      - role
      - content
      title: AppendMessage
    ImportThread:
      properties:
        title:
          type: string
          title: Title
          default: Imported chat
        messages:
          items:
            $ref: '#/components/schemas/ImportMessage'
          type: array
          title: Messages
      type: object
      title: ImportThread