Honcho Metamessages API

The metamessages API from Honcho — 3 operation(s) for metamessages.

GitHub OpenAPI

Operations 4

POST /v1/apps/{app_id}/users/{user_id}/metamessages Create Metamessage #
POST /v1/apps/{app_id}/users/{user_id}/metamessages/list Get Metamessages #
GET /v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id} Get Metamessage #
PUT /v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id} Update Metamessage #

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/honcho-dev:honcho-dev-metamessages-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

honcho-dev-metamessages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Honcho Metamessages API
  summary: The Identity Layer for the Agentic World
  description: Honcho is a platform for giving agents user-centric memory and social cognition
  contact:
    name: Plastic Labs
    url: https://honcho.dev/
    email: hello@plasticlabs.ai
  version: 1.1.0
servers:
- url: http://localhost:8000
  description: Local Development Server
- url: https://demo.honcho.dev
  description: Demo Server
- url: https://api.honcho.dev
  description: Production SaaS Platform
tags:
- name: metamessages
paths:
  /v1/apps/{app_id}/users/{user_id}/metamessages:
    post:
      tags:
      - metamessages
      summary: Create Metamessage
      description: 'Create a new metamessage associated with a user.

        Optionally link to a session and message by providing those IDs in the request body.'
      operationId: create_metamessage_v1_apps__app_id__users__user_id__metamessages_post
      security:
      - HTTPBearer: []
      - {}
      parameters:
      - name: app_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the app
          title: App Id
        description: ID of the app
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the user
          title: User Id
        description: ID of the user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetamessageCreate'
              description: Metamessage creation parameters
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Metamessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
      - lang: JavaScript
        source: "import Honcho from 'honcho-ai';\n\nconst client = new Honcho({\n  apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted\n});\n\nasync function main() {\n  const metamessage = await client.apps.users.metamessages.create('app_id', 'user_id', {\n    content: 'content',\n    metamessage_type: 'x',\n  });\n\n  console.log(metamessage.id);\n}\n\nmain();"
      - lang: Python
        source: "import os\nfrom honcho import Honcho\n\nclient = Honcho(\n    api_key=os.environ.get(\"HONCHO_API_KEY\"),  # This is the default and can be omitted\n)\nmetamessage = client.apps.users.metamessages.create(\n    user_id=\"user_id\",\n    app_id=\"app_id\",\n    content=\"content\",\n    metamessage_type=\"x\",\n)\nprint(metamessage.id)"
  /v1/apps/{app_id}/users/{user_id}/metamessages/list:
    post:
      tags:
      - metamessages
      summary: Get Metamessages
      description: 'Get metamessages with flexible filtering.


        - Filter by user only: No additional parameters needed

        - Filter by session: Provide session_id

        - Filter by message: Provide message_id (and session_id)

        - Filter by type: Provide label

        - Filter by metadata: Provide filter object'
      operationId: get_metamessages_v1_apps__app_id__users__user_id__metamessages_list_post
      security:
      - HTTPBearer: []
      - {}
      parameters:
      - name: app_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the app
          title: App Id
        description: ID of the app
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the user
          title: User Id
        description: ID of the user
      - name: reverse
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          description: Whether to reverse the order of results
          default: false
          title: Reverse
        description: Whether to reverse the order of results
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Page size
          default: 50
          title: Size
        description: Page size
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/MetamessageGet'
              - type: 'null'
              description: Filtering options for the metamessages list
              title: Options
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Metamessage_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
      - lang: JavaScript
        source: "import Honcho from 'honcho-ai';\n\nconst client = new Honcho({\n  apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted\n});\n\nasync function main() {\n  // Automatically fetches more pages as needed.\n  for await (const metamessage of client.apps.users.metamessages.list('app_id', 'user_id')) {\n    console.log(metamessage.id);\n  }\n}\n\nmain();"
      - lang: Python
        source: "import os\nfrom honcho import Honcho\n\nclient = Honcho(\n    api_key=os.environ.get(\"HONCHO_API_KEY\"),  # This is the default and can be omitted\n)\npage = client.apps.users.metamessages.list(\n    user_id=\"user_id\",\n    app_id=\"app_id\",\n)\npage = page.items[0]\nprint(page.id)"
  /v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id}:
    get:
      tags:
      - metamessages
      summary: Get Metamessage
      description: Get a specific Metamessage by ID
      operationId: get_metamessage_v1_apps__app_id__users__user_id__metamessages__metamessage_id__get
      security:
      - HTTPBearer: []
      - {}
      parameters:
      - name: app_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the app
          title: App Id
        description: ID of the app
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the user
          title: User Id
        description: ID of the user
      - name: metamessage_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the metamessage to retrieve
          title: Metamessage Id
        description: ID of the metamessage to retrieve
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Metamessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
      - lang: JavaScript
        source: "import Honcho from 'honcho-ai';\n\nconst client = new Honcho({\n  apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted\n});\n\nasync function main() {\n  const metamessage = await client.apps.users.metamessages.get('app_id', 'user_id', 'metamessage_id');\n\n  console.log(metamessage.id);\n}\n\nmain();"
      - lang: Python
        source: "import os\nfrom honcho import Honcho\n\nclient = Honcho(\n    api_key=os.environ.get(\"HONCHO_API_KEY\"),  # This is the default and can be omitted\n)\nmetamessage = client.apps.users.metamessages.get(\n    metamessage_id=\"metamessage_id\",\n    app_id=\"app_id\",\n    user_id=\"user_id\",\n)\nprint(metamessage.id)"
    put:
      tags:
      - metamessages
      summary: Update Metamessage
      description: Update a metamessage's metadata, type, or relationships
      operationId: update_metamessage_v1_apps__app_id__users__user_id__metamessages__metamessage_id__put
      security:
      - HTTPBearer: []
      - {}
      parameters:
      - name: app_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the app
          title: App Id
        description: ID of the app
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the user
          title: User Id
        description: ID of the user
      - name: metamessage_id
        in: path
        required: true
        schema:
          type: string
          description: ID of the metamessage to update
          title: Metamessage Id
        description: ID of the metamessage to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetamessageUpdate'
              description: Updated metamessage parameters
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Metamessage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
      - lang: JavaScript
        source: "import Honcho from 'honcho-ai';\n\nconst client = new Honcho({\n  apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted\n});\n\nasync function main() {\n  const metamessage = await client.apps.users.metamessages.update('app_id', 'user_id', 'metamessage_id');\n\n  console.log(metamessage.id);\n}\n\nmain();"
      - lang: Python
        source: "import os\nfrom honcho import Honcho\n\nclient = Honcho(\n    api_key=os.environ.get(\"HONCHO_API_KEY\"),  # This is the default and can be omitted\n)\nmetamessage = client.apps.users.metamessages.update(\n    metamessage_id=\"metamessage_id\",\n    app_id=\"app_id\",\n    user_id=\"user_id\",\n)\nprint(metamessage.id)"
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    MetamessageGet:
      properties:
        metamessage_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Metamessage Type
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Message Id
        filter:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Filter
      type: object
      title: MetamessageGet
    MetamessageCreate:
      properties:
        metamessage_type:
          type: string
          maxLength: 50
          minLength: 1
          title: Metamessage Type
        content:
          type: string
          maxLength: 50000
          minLength: 0
          title: Content
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Message Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          default: {}
      type: object
      required:
      - metamessage_type
      - content
      title: MetamessageCreate
    Metamessage:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        content:
          type: string
          title: Content
        user_id:
          type: string
          title: User Id
        app_id:
          type: string
          title: App Id
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Message Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          default: {}
        created_at:
          type: string
          format: date-time
          title: Created At
        metamessage_type:
          type: string
          title: Metamessage Type
          readOnly: true
      type: object
      required:
      - id
      - label
      - content
      - user_id
      - app_id
      - session_id
      - message_id
      - created_at
      - metamessage_type
      title: Metamessage
    MetamessageUpdate:
      properties:
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        message_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Message Id
        metamessage_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Metamessage Type
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
      type: object
      title: MetamessageUpdate
    Page_Metamessage_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/Metamessage'
          type: array
          title: Items
        total:
          type: integer
          minimum: 0
          title: Total
        page:
          type: integer
          minimum: 1
          title: Page
        size:
          type: integer
          minimum: 1
          title: Size
        pages:
          type: integer
          minimum: 0
          title: Pages
      type: object
      required:
      - items
      - total
      - page
      - size
      title: Page[Metamessage]
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer