dialogbrain-com Learner API

The learner API from dialogbrain-com — 14 operation(s) for learner.

Operations 18

POST /ai/memory/alias Create Alias #
GET /ai/memory/aliases List Aliases #
GET /ai/memory/alias/{alias} Get Alias #
DELETE /ai/memory/alias/{alias} Delete Alias #
GET /ai/memory/preferences Get Preferences #
PUT /ai/memory/preferences Update Preferences #
GET /ai/memory/approvals Get Approval Patterns #
GET /ai/memory/approvals/{tool} Get Tool Approval Stats #
PUT /ai/memory/approvals/{tool} Set Auto Approve #
GET /ai/memory/approvals/suggestions Get Auto Approve Suggestions #
GET /ai/stats/user Get User Stats #
GET /ai/stats/recipes Get Recipes Stats #
GET /ai/stats/recipe/{recipe_name} Get Recipe Stats #
GET /ai/stats/failures Get Recent Failures #
GET /ai/insights/improvements Get Improvement Suggestions #
GET /style/contact Get Contact Style #
PUT /style/contact Update Contact Style #
GET /style/contacts List Contact Styles #

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/dialogbrain-com:dialogbrain-com-learner-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

dialogbrain-com-learner-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DialogBrain v2 API Gateway Learner API
  description: Clean refactored API gateway with minimal vertical slice
  version: 0.1.0
tags:
- name: learner
paths:
  /ai/memory/alias:
    post:
      tags:
      - learner
      summary: Create Alias
      description: 'Create or update a user alias.


        Example:

        ```json

        {

        "alias": "Bob",

        "data": {

        "full_name": "Robert Smith",

        "thread_id": "telegram:123456"

        }

        }

        ```'
      operationId: create_alias_ai_memory_alias_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AliasRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/memory/aliases:
    get:
      tags:
      - learner
      summary: List Aliases
      description: List all user aliases.
      operationId: list_aliases_ai_memory_aliases_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /ai/memory/alias/{alias}:
    get:
      tags:
      - learner
      summary: Get Alias
      description: Get specific alias.
      operationId: get_alias_ai_memory_alias__alias__get
      parameters:
      - name: alias
        in: path
        required: true
        schema:
          type: string
          title: Alias
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - learner
      summary: Delete Alias
      description: Delete alias.
      operationId: delete_alias_ai_memory_alias__alias__delete
      parameters:
      - name: alias
        in: path
        required: true
        schema:
          type: string
          title: Alias
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/memory/preferences:
    get:
      tags:
      - learner
      summary: Get Preferences
      description: Get user preferences.
      operationId: get_preferences_ai_memory_preferences_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    put:
      tags:
      - learner
      summary: Update Preferences
      description: Update user preferences.
      operationId: update_preferences_ai_memory_preferences_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreferencesRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/memory/approvals:
    get:
      tags:
      - learner
      summary: Get Approval Patterns
      description: Get all approval patterns for user.
      operationId: get_approval_patterns_ai_memory_approvals_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /ai/memory/approvals/{tool}:
    get:
      tags:
      - learner
      summary: Get Tool Approval Stats
      description: Get approval statistics for specific tool.
      operationId: get_tool_approval_stats_ai_memory_approvals__tool__get
      parameters:
      - name: tool
        in: path
        required: true
        schema:
          type: string
          title: Tool
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - learner
      summary: Set Auto Approve
      description: Manually enable/disable auto-approve for a tool.
      operationId: set_auto_approve_ai_memory_approvals__tool__put
      parameters:
      - name: tool
        in: path
        required: true
        schema:
          type: string
          title: Tool
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoApproveRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/memory/approvals/suggestions:
    get:
      tags:
      - learner
      summary: Get Auto Approve Suggestions
      description: Get suggestions for tools that could be auto-approved.
      operationId: get_auto_approve_suggestions_ai_memory_approvals_suggestions_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /ai/stats/user:
    get:
      tags:
      - learner
      summary: Get User Stats
      description: Get comprehensive user statistics.
      operationId: get_user_stats_ai_stats_user_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/stats/recipes:
    get:
      tags:
      - learner
      summary: Get Recipes Stats
      description: Get statistics for all recipes.
      operationId: get_recipes_stats_ai_stats_recipes_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/stats/recipe/{recipe_name}:
    get:
      tags:
      - learner
      summary: Get Recipe Stats
      description: Get detailed statistics for a specific recipe.
      operationId: get_recipe_stats_ai_stats_recipe__recipe_name__get
      parameters:
      - name: recipe_name
        in: path
        required: true
        schema:
          type: string
          title: Recipe Name
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/stats/failures:
    get:
      tags:
      - learner
      summary: Get Recent Failures
      description: Get recent failed executions.
      operationId: get_recent_failures_ai_stats_failures_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ai/insights/improvements:
    get:
      tags:
      - learner
      summary: Get Improvement Suggestions
      description: Get personalized improvement suggestions.
      operationId: get_improvement_suggestions_ai_insights_improvements_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /style/contact:
    get:
      tags:
      - learner
      summary: Get Contact Style
      description: 'Get communication style settings for a contact.


        Can look up by contact_id or thread_id (for DMs).

        Falls back to thread_styles if no contact_style found.'
      operationId: get_contact_style_style_contact_get
      parameters:
      - name: contact_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Contact Id
      - name: thread_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Thread Id
      - name: channel
        in: query
        required: false
        schema:
          type: string
          default: telegram
          title: Channel
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - learner
      summary: Update Contact Style
      description: 'Update communication style settings for a contact.


        Creates or updates contact_style entry.'
      operationId: update_contact_style_style_contact_put
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactStyleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /style/contacts:
    get:
      tags:
      - learner
      summary: List Contact Styles
      description: List all contact styles for current user.
      operationId: list_contact_styles_style_contacts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    PreferencesRequest:
      properties:
        preferences:
          additionalProperties: true
          type: object
          title: Preferences
      type: object
      required:
      - preferences
      title: PreferencesRequest
      description: Request to update preferences.
    AutoApproveRequest:
      properties:
        auto_approve:
          type: boolean
          title: Auto Approve
      type: object
      required:
      - auto_approve
      title: AutoApproveRequest
      description: Request to set auto-approve.
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ContactStyleRequest:
      properties:
        contact_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Contact Id
        thread_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Thread Id
        channel:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel
          default: telegram
        formality:
          anyOf:
          - type: string
          - type: 'null'
          title: Formality
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
        use_emojis:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Use Emojis
        preferred_length:
          anyOf:
          - type: string
          - type: 'null'
          title: Preferred Length
      type: object
      title: ContactStyleRequest
      description: Request to get/set contact style.
    AliasRequest:
      properties:
        alias:
          type: string
          title: Alias
        data:
          additionalProperties: true
          type: object
          title: Data
      type: object
      required:
      - alias
      - data
      title: AliasRequest
      description: Request to create/update alias.