DNA Nanobots Chat API

The Chat API from DNA Nanobots, for chat.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 17

GET /api/chat Get Chat #
POST /api/chat Save Chat Message #
GET /api/chat/project/{pid} Get Project Chat #
POST /api/chat/project/{pid} Post Project Chat #
GET /api/chat/general Get General Chat #
POST /api/chat/general Post General Chat #
GET /api/chat/dm/{other_user_id} Get Dm Messages #
POST /api/chat/dm/{other_user_id} Send Dm Message #
GET /api/chat/unread Get Unread Counts #
GET /api/chat/rooms Api Chat Rooms #
GET /api/chat/rooms/{room_id}/messages Api Room Messages #
POST /api/chat/rooms/{room_id}/messages Api Room Post #
POST /api/chat/rooms/{room_id}/read Api Room Read #
POST /api/chat/rooms/{room_id}/mute Api Room Mute #
DELETE /api/chat/rooms/{room_id}/mute Api Room Unmute #
POST /api/chat/messages/{mid}/to-task Api Chat Message To Task #
DELETE /api/chat/messages/{mid}/to-task Api Chat Message To Task Undo #

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/dna-nanobots:dna-nanobots-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

dna-nanobots-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Chat API
  version: 0.1.0
tags:
- name: Chat
paths:
  /api/chat:
    get:
      summary: Get Chat
      operationId: get_chat_api_chat_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      tags:
      - Chat
    post:
      summary: Save Chat Message
      operationId: save_chat_message_api_chat_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatMessageIn'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Chat
  /api/chat/project/{pid}:
    get:
      summary: Get Project Chat
      operationId: get_project_chat_api_chat_project__pid__get
      security:
      - HTTPBearer: []
      parameters:
      - name: pid
        in: path
        required: true
        schema:
          type: integer
          title: Pid
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
    post:
      summary: Post Project Chat
      description: REST fallback for posting a project chat message (WS preferred).
      operationId: post_project_chat_api_chat_project__pid__post
      security:
      - HTTPBearer: []
      parameters:
      - name: pid
        in: path
        required: true
        schema:
          type: integer
          title: Pid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatMessageIn2'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
  /api/chat/general:
    get:
      summary: Get General Chat
      operationId: get_general_chat_api_chat_general_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
    post:
      summary: Post General Chat
      description: REST fallback for posting a general chat message (WS preferred).
      operationId: post_general_chat_api_chat_general_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatMessageIn2'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
  /api/chat/dm/{other_user_id}:
    get:
      summary: Get Dm Messages
      description: Last 50 DM messages between current user and other_user_id, marks them read.
      operationId: get_dm_messages_api_chat_dm__other_user_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: other_user_id
        in: path
        required: true
        schema:
          type: integer
          title: Other User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
    post:
      summary: Send Dm Message
      description: REST fallback for sending a DM (WebSocket preferred).
      operationId: send_dm_message_api_chat_dm__other_user_id__post
      security:
      - HTTPBearer: []
      parameters:
      - name: other_user_id
        in: path
        required: true
        schema:
          type: integer
          title: Other User Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatMessageIn2'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
  /api/chat/unread:
    get:
      summary: Get Unread Counts
      description: Returns unread message counts per room for the current user.
      operationId: get_unread_counts_api_chat_unread_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      tags:
      - Chat
  /api/chat/rooms:
    get:
      summary: Api Chat Rooms
      description: 'Phase 3c -- the viewer''s rooms: General, each team they belong to

        (executives and admins also see only their own teams), then their

        DMs, most recent first. Each has last_message, unread (other

        people''s messages since last read), muted and muted_until (null when

        muted forever or not muted). Legacy project rooms are not listed;

        they stay readable at /api/chat/project/{pid}.'
      operationId: api_chat_rooms_api_chat_rooms_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      tags:
      - Chat
  /api/chat/rooms/{room_id}/messages:
    get:
      summary: Api Room Messages
      description: 'Phase 3c -- messages in any room the viewer may read, oldest

        first. `before_id` pages back. Loading the latest page marks the

        room read. 403 for a team room you are not in.'
      operationId: api_room_messages_api_chat_rooms__room_id__messages_get
      security:
      - HTTPBearer: []
      parameters:
      - name: room_id
        in: path
        required: true
        schema:
          type: string
          title: Room Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: before_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Before Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
    post:
      summary: Api Room Post
      description: 'Phase 3c -- REST post to general / team / DM (WebSocket preferred).

        Project rooms are read-only legacy here (409); the classic UI keeps

        posting to them through /api/chat/project/{pid}.'
      operationId: api_room_post_api_chat_rooms__room_id__messages_post
      security:
      - HTTPBearer: []
      parameters:
      - name: room_id
        in: path
        required: true
        schema:
          type: string
          title: Room Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoomMessageIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
  /api/chat/rooms/{room_id}/read:
    post:
      summary: Api Room Read
      description: 'Phase 3c -- mark the room read up to its latest message (for a

        client that received messages over the socket while the room was

        open).'
      operationId: api_room_read_api_chat_rooms__room_id__read_post
      security:
      - HTTPBearer: []
      parameters:
      - name: room_id
        in: path
        required: true
        schema:
          type: string
          title: Room Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
  /api/chat/rooms/{room_id}/mute:
    post:
      summary: Api Room Mute
      description: 'Phase 3c -- body {"for": "1h"|"4h"|"1d"|"forever"}. Replaces any

        existing mute for this room.'
      operationId: api_room_mute_api_chat_rooms__room_id__mute_post
      security:
      - HTTPBearer: []
      parameters:
      - name: room_id
        in: path
        required: true
        schema:
          type: string
          title: Room Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MuteIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
    delete:
      summary: Api Room Unmute
      description: Phase 3c -- unmute. Idempotent.
      operationId: api_room_unmute_api_chat_rooms__room_id__mute_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: room_id
        in: path
        required: true
        schema:
          type: string
          title: Room Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
  /api/chat/messages/{mid}/to-task:
    post:
      summary: Api Chat Message To Task
      description: 'Phase 3c -- make a task from a chat message.


        Optional body {assignee_user_id, due_date}. Anything not given is

        parsed from the message: the first @name and trailing date words

        (quick-add parser). With no assignee, the task goes to the message''s

        sender. owner_user_id = assignee. The task is never private. The

        message gets task_ref_id, and a system line is posted in the room

        ("Made a task for Khalid: run the gel (due Fri)"). Undo with DELETE

        on the same path within 10 minutes.'
      operationId: api_chat_message_to_task_api_chat_messages__mid__to_task_post
      security:
      - HTTPBearer: []
      parameters:
      - name: mid
        in: path
        required: true
        schema:
          type: integer
          title: Mid
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/ChatToTaskIn'
              - type: 'null'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
    delete:
      summary: Api Chat Message To Task Undo
      description: 'Phase 3c -- undo a message-to-task within 10 minutes. Deletes the

        task and the system line, and clears task_ref_id on the message.

        Only the person who made it (or an admin) can undo. The deletion is

        not pushed over the chat socket (the classic UI would render it as

        a blank message); clients drop the system line themselves.'
      operationId: api_chat_message_to_task_undo_api_chat_messages__mid__to_task_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: mid
        in: path
        required: true
        schema:
          type: integer
          title: Mid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Chat
components:
  schemas:
    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
    ChatMessageIn2:
      properties:
        content:
          type: string
          title: Content
      type: object
      required:
      - content
      title: ChatMessageIn2
    ChatToTaskIn:
      properties:
        assignee_user_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Assignee User Id
        due_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Due Date
      type: object
      title: ChatToTaskIn
    ChatMessageIn:
      properties:
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
      type: object
      required:
      - role
      - content
      title: ChatMessageIn
    RoomMessageIn:
      properties:
        content:
          type: string
          title: Content
      type: object
      required:
      - content
      title: RoomMessageIn
    MuteIn:
      properties:
        for:
          type: string
          title: For
      type: object
      required:
      - for
      title: MuteIn
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer