mammoth-io Query Gen API

The QueryGen API from mammoth-io — 1 operation(s) for querygen.

Operations 2

GET /workspaces/{workspace_id}/projects/{project_id}/connectors/{connector_key}/connections/{connection_key}/chat Get status #
POST /workspaces/{workspace_id}/projects/{project_id}/connectors/{connector_key}/connections/{connection_key}/chat Generate query #

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/mammoth-io:mammoth-io-querygen-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

mammoth-io-querygen-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mammoth Io Query Gen API
  version: 0.1.0
  contact:
    name: Mammoth Analytics
    url: https://mammoth.io
    email: support@mammoth.io
  description: 'Operations tagged QueryGen across 2 of this provider''s published API definitions: app.mammoth.io-openapi.json, mammoth-io-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/v2
security:
- bearerAuth: []
- apiKey: []
  apiSecret: []
  workspaceId: []
tags:
- name: QueryGen
paths:
  /workspaces/{workspace_id}/projects/{project_id}/connectors/{connector_key}/connections/{connection_key}/chat:
    get:
      tags:
      - QueryGen
      summary: Get status
      description: Get status on chat generation
      operationId: GetChatStatus
      parameters:
      - name: workspace_id
        in: path
        schema:
          type: integer
          minimum: 1.0
          title: Workspace ID
          description: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
          examples:
          - 4
        description: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
        required: true
        deprecated: false
        examples:
          workspace_id-example-1:
            summary: Sample workspace ID
            value: 4
      - name: project_id
        in: path
        schema:
          type: integer
          minimum: 1.0
          title: Project ID
          description: Project ID of the workspace
          examples:
          - 4
        description: Project ID of the workspace
        required: true
        deprecated: false
        examples:
          project_id-example-1:
            summary: Sample project ID
            value: 4
      - name: connector_key
        in: path
        schema:
          type: string
          title: Encoded Connector key
          description: Encoded key of the Connector to work with
          examples:
          - cG9zdGdyZXM=
        description: Encoded key of the Connector to work with
        required: true
        deprecated: false
        examples:
          connector_key-example-1:
            summary: Sample Connector key
            value: cG9zdGdyZXM=
      - name: connection_key
        in: path
        schema:
          type: string
          maxLength: 100
          minLength: 1
          title: Connection Key
          description: Encoded key of the connection
          examples:
          - kvx3b8lhfe3ilk0wv4xu4fl539njerj0lmcr6wf8
        description: Encoded key of the connection
        required: true
        deprecated: false
        examples:
          connection_key-example-1:
            summary: Sample Connection Key
            value: kvx3b8lhfe3ilk0wv4xu4fl539njerj0lmcr6wf8
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryGenerationStatus'
        '400':
          description: Bad request syntax or unsupported method
          content:
            application/json:
              schema:
                oneOf:
                - properties:
                    status_code:
                      type: integer
                    detail:
                      type: string
                    extra:
                      additionalProperties: {}
                      type:
                      - 'null'
                      - object
                      - array
                  type: object
                  required:
                  - detail
                  - status_code
                  description: Client Error
                  examples:
                  - status_code: 400
                    detail: Bad Request
                    extra: {}
                - properties:
                    status_code:
                      type: integer
                    detail:
                      type: string
                    extra:
                      additionalProperties: {}
                      type:
                      - 'null'
                      - object
                      - array
                  type: object
                  required:
                  - detail
                  - status_code
                  description: Validation Exception
                  examples:
                  - status_code: 400
                    detail: Bad Request
                    extra: {}
        '403':
          description: Request forbidden -- authorization will not help
          content:
            application/json:
              schema:
                properties:
                  status_code:
                    type: integer
                  detail:
                    type: string
                  extra:
                    additionalProperties: {}
                    type:
                    - 'null'
                    - object
                    - array
                type: object
                required:
                - detail
                - status_code
                description: Authorization Exception
                examples:
                - status_code: 403
                  detail: Forbidden
                  extra: {}
      deprecated: false
    post:
      tags:
      - QueryGen
      summary: Generate query
      description: Get query suggestion for the given data
      operationId: GetQuerySuggestion
      parameters:
      - name: workspace_id
        in: path
        schema:
          type: integer
          minimum: 1.0
          title: Workspace ID
          description: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
          examples:
          - 4
        description: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
        required: true
        deprecated: false
        examples:
          workspace_id-example-1:
            summary: Sample workspace ID
            value: 4
      - name: project_id
        in: path
        schema:
          type: integer
          minimum: 1.0
          title: Project ID
          description: Project ID of the workspace
          examples:
          - 4
        description: Project ID of the workspace
        required: true
        deprecated: false
        examples:
          project_id-example-1:
            summary: Sample project ID
            value: 4
      - name: connector_key
        in: path
        schema:
          type: string
          title: Encoded Connector key
          description: Encoded key of the Connector to work with
          examples:
          - cG9zdGdyZXM=
        description: Encoded key of the Connector to work with
        required: true
        deprecated: false
        examples:
          connector_key-example-1:
            summary: Sample Connector key
            value: cG9zdGdyZXM=
      - name: connection_key
        in: path
        schema:
          type: string
          maxLength: 100
          minLength: 1
          title: Connection Key
          description: Encoded key of the connection
          examples:
          - kvx3b8lhfe3ilk0wv4xu4fl539njerj0lmcr6wf8
        description: Encoded key of the connection
        required: true
        deprecated: false
        examples:
          connection_key-example-1:
            summary: Sample Connection Key
            value: kvx3b8lhfe3ilk0wv4xu4fl539njerj0lmcr6wf8
      - name: reset_cache
        in: query
        schema:
          type: boolean
          title: Reset
          description: Force Reset/regenerate cache. This will ignore any query request
          default: false
          examples:
          - true
        description: Force Reset/regenerate cache. This will ignore any query request
        required: false
        deprecated: false
        allowEmptyValue: false
        allowReserved: false
        examples:
          reset_cache-example-1:
            summary: Reset cache
            value: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Intent'
        required: true
      responses:
        '201':
          description: Document created, URL follows
          headers: {}
          content:
            application/json:
              schema: {}
        '400':
          description: Bad request syntax or unsupported method
          content:
            application/json:
              schema:
                oneOf:
                - properties:
                    status_code:
                      type: integer
                    detail:
                      type: string
                    extra:
                      additionalProperties: {}
                      type:
                      - 'null'
                      - object
                      - array
                  type: object
                  required:
                  - detail
                  - status_code
                  description: Client Error
                  examples:
                  - status_code: 400
                    detail: Bad Request
                    extra: {}
                - properties:
                    status_code:
                      type: integer
                    detail:
                      type: string
                    extra:
                      additionalProperties: {}
                      type:
                      - 'null'
                      - object
                      - array
                  type: object
                  required:
                  - detail
                  - status_code
                  description: Validation Exception
                  examples:
                  - status_code: 400
                    detail: Bad Request
                    extra: {}
        '403':
          description: Request forbidden -- authorization will not help
          content:
            application/json:
              schema:
                properties:
                  status_code:
                    type: integer
                  detail:
                    type: string
                  extra:
                    additionalProperties: {}
                    type:
                    - 'null'
                    - object
                    - array
                type: object
                required:
                - detail
                - status_code
                description: Authorization Exception
                examples:
                - status_code: 403
                  detail: Forbidden
                  extra: {}
      deprecated: false
    servers:
    - url: /api/v2
components:
  schemas:
    Intent:
      properties:
        query:
          type: string
          description: Intent
        profile:
          oneOf:
          - type: string
          - type: 'null'
          description: profile
      type: object
      required:
      - query
      title: Intent
      description: Intent
      examples:
      - query: What is the total sales for the month of January?
    QueryGenerationStatus:
      properties:
        cache_exists:
          type: boolean
        cache_being_created:
          type: boolean
      type: object
      required:
      - cache_being_created
      - cache_exists
      title: QueryGenerationStatus
  securitySchemes:
    bearerAuth:
      type: http
      description: 'Primary credential. Authorization: Bearer mm_<token>. The token is issued server-side and shown once at creation.'
      scheme: bearer
    apiKey:
      type: apiKey
      description: Deprecated — use bearerAuth.
      name: X-API-KEY
      in: header
    apiSecret:
      type: apiKey
      description: Deprecated — use bearerAuth.
      name: X-API-SECRET
      in: header
    workspaceId:
      type: apiKey
      description: Required with X-API-KEY and X-API-SECRET. Deprecated with them — use bearerAuth.
      name: X-WORKSPACE-ID
      in: header
x-refined-from:
- app.mammoth.io-openapi.json
- mammoth-io-openapi.json