Artificial Wit Messaging API

The messaging API from Artificial Wit — 14 operation(s) for messaging.

Operations 17

POST /messaging/conversations/direct Create Direct Conversation #
POST /messaging/conversations/group Create Group Conversation #
GET /messaging/conversations List Conversations #
GET /messaging/conversations/{conversation_id} Get Conversation #
PATCH /messaging/conversations/{conversation_id} Update Group Conversation #
POST /messaging/conversations/{conversation_id}/archive Archive Conversation #
POST /messaging/conversations/{conversation_id}/leave Leave Conversation #
POST /messaging/conversations/{conversation_id}/participants Add Participants #
DELETE /messaging/conversations/{conversation_id}/participants/{profile_id} Remove Participant #
PATCH /messaging/conversations/{conversation_id}/participants/{profile_id}/role Update Participant Role #
POST /messaging/conversations/{conversation_id}/messages Send Message #
GET /messaging/conversations/{conversation_id}/messages List Messages #
PATCH /messaging/messages/{message_id} Edit Message #
DELETE /messaging/messages/{message_id} Delete Message #
POST /messaging/conversations/{conversation_id}/read Mark Conversation Read #
GET /messaging/unread-counts Get Unread Counts #
GET /messaging/search Search Messages #

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/artificialwit-com:artificialwit-com-messaging-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

artificialwit-com-messaging-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AI Agent Messaging API
  version: 1.0.0
tags:
- name: Messaging
paths:
  /messaging/conversations/direct:
    post:
      tags:
      - Messaging
      summary: Create Direct Conversation
      operationId: create_direct_conversation_messaging_conversations_direct_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDirectConversationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /messaging/conversations/group:
    post:
      tags:
      - Messaging
      summary: Create Group Conversation
      operationId: create_group_conversation_messaging_conversations_group_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGroupConversationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /messaging/conversations:
    get:
      tags:
      - Messaging
      summary: List Conversations
      operationId: list_conversations_messaging_conversations_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Page Size
      - name: page_index
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page Index
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}:
    get:
      tags:
      - Messaging
      summary: Get Conversation
      operationId: get_conversation_messaging_conversations__conversation_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Messaging
      summary: Update Group Conversation
      operationId: update_group_conversation_messaging_conversations__conversation_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGroupConversationRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/archive:
    post:
      tags:
      - Messaging
      summary: Archive Conversation
      operationId: archive_conversation_messaging_conversations__conversation_id__archive_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/leave:
    post:
      tags:
      - Messaging
      summary: Leave Conversation
      operationId: leave_conversation_messaging_conversations__conversation_id__leave_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/participants:
    post:
      tags:
      - Messaging
      summary: Add Participants
      operationId: add_participants_messaging_conversations__conversation_id__participants_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddParticipantsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/participants/{profile_id}:
    delete:
      tags:
      - Messaging
      summary: Remove Participant
      operationId: remove_participant_messaging_conversations__conversation_id__participants__profile_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      - name: profile_id
        in: path
        required: true
        schema:
          type: integer
          title: Profile Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/participants/{profile_id}/role:
    patch:
      tags:
      - Messaging
      summary: Update Participant Role
      operationId: update_participant_role_messaging_conversations__conversation_id__participants__profile_id__role_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      - name: profile_id
        in: path
        required: true
        schema:
          type: integer
          title: Profile Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateParticipantRoleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/messages:
    post:
      tags:
      - Messaging
      summary: Send Message
      operationId: send_message_messaging_conversations__conversation_id__messages_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessageRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Messaging
      summary: List Messages
      operationId: list_messages_messaging_conversations__conversation_id__messages_get
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Page Size
      - name: before_message_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Before Message Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/messages/{message_id}:
    patch:
      tags:
      - Messaging
      summary: Edit Message
      operationId: edit_message_messaging_messages__message_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: message_id
        in: path
        required: true
        schema:
          type: integer
          title: Message Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditMessageRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Messaging
      summary: Delete Message
      operationId: delete_message_messaging_messages__message_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: message_id
        in: path
        required: true
        schema:
          type: integer
          title: Message Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/conversations/{conversation_id}/read:
    post:
      tags:
      - Messaging
      summary: Mark Conversation Read
      operationId: mark_conversation_read_messaging_conversations__conversation_id__read_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: integer
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkReadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /messaging/unread-counts:
    get:
      tags:
      - Messaging
      summary: Get Unread Counts
      operationId: get_unread_counts_messaging_unread_counts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      security:
      - HTTPBearer: []
  /messaging/search:
    get:
      tags:
      - Messaging
      summary: Search Messages
      operationId: search_messages_messaging_search_get
      security:
      - HTTPBearer: []
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          title: Q
      - name: conversation_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Conversation Id
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Paging:
      properties:
        page_size:
          type: integer
          title: Page Size
          default: 1
        page_index:
          type: integer
          title: Page Index
          default: 1
        total_records:
          type: integer
          title: Total Records
          default: 0
      type: object
      title: Paging
    ResponseMessage:
      properties:
        data:
          items: {}
          type: array
          title: Data
        paging:
          $ref: '#/components/schemas/Paging'
        message:
          type: string
          title: Message
          default: ''
        is_success:
          type: boolean
          title: Is Success
          default: true
        status_code:
          type: integer
          title: Status Code
          default: 200
      type: object
      title: ResponseMessage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SendMessageRequest:
      properties:
        content:
          anyOf:
          - type: string
          - type: 'null'
          title: Content
        reply_to_message_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Reply To Message Id
        attachments:
          items:
            $ref: '#/components/schemas/AttachmentRef'
          type: array
          title: Attachments
        client_message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Message Id
          description: Client-generated id for retry-safe sends and optimistic-UI reconciliation.
      type: object
      title: SendMessageRequest
    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
    AttachmentRef:
      properties:
        stored_filename:
          type: string
          title: Stored Filename
        original_filename:
          type: string
          title: Original Filename
        mime_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Mime Type
        file_size_bytes:
          anyOf:
          - type: integer
          - type: 'null'
          title: File Size Bytes
      type: object
      required:
      - stored_filename
      - original_filename
      title: AttachmentRef
      description: A file already uploaded via POST /file/upload, attached to a message.
    EditMessageRequest:
      properties:
        content:
          type: string
          minLength: 1
          title: Content
      type: object
      required:
      - content
      title: EditMessageRequest
    CreateDirectConversationRequest:
      properties:
        other_profile_id:
          type: integer
          title: Other Profile Id
      type: object
      required:
      - other_profile_id
      title: CreateDirectConversationRequest
    UpdateGroupConversationRequest:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        avatar_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Avatar Url
      type: object
      title: UpdateGroupConversationRequest
    MarkReadRequest:
      properties:
        last_read_message_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Last Read Message Id
      type: object
      title: MarkReadRequest
    AddParticipantsRequest:
      properties:
        profile_ids:
          items:
            type: integer
          type: array
          minItems: 1
          title: Profile Ids
      type: object
      required:
      - profile_ids
      title: AddParticipantsRequest
    CreateGroupConversationRequest:
      properties:
        name:
          type: string
          minLength: 1
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        member_profile_ids:
          items:
            type: integer
          type: array
          title: Member Profile Ids
      type: object
      required:
      - name
      title: CreateGroupConversationRequest
    UpdateParticipantRoleRequest:
      properties:
        role:
          type: string
          pattern: ^(owner|admin|member)$
          title: Role
      type: object
      required:
      - role
      title: UpdateParticipantRoleRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer