Ask Sage Utilities API

Utility endpoints

Operations 7

POST /tokenizer Count tokens #
GET /tokenizer Count tokens (GET) #
POST /check-link-status Check link status #
POST /get-and-upload-labels Generate and upload labels #
GET /get-learning-videos Get learning videos #
POST /get-learning-videos Get learning videos (POST) #

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/ask-sage-utilities-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

ask-sage-utilities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ask Sage Server Utilities API
  description: Ask Sage is an AI-powered platform providing intelligent completions, knowledge management, and workflow automation.
  version: '2.0'
  contact:
    name: Ask Sage Support
    email: support@asksage.ai
    url: https://asksage.ai
servers:
- url: '{baseUrl}/server'
  description: Ask Sage Server API
  variables:
    baseUrl:
      default: https://api.asksage.ai
      description: API base URL. Use https://api.asksage.ai for production, or your self-hosted instance URL.
security:
- ApiKeyAuth: []
tags:
- name: Utilities
  description: Utility endpoints
paths:
  /tokenizer:
    post:
      summary: Count tokens
      description: Get token count for provided content
      tags:
      - Utilities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - content
              properties:
                content:
                  type: string
                  description: Content to tokenize
                model:
                  type: string
                  default: ada-002
                  description: Model to use for tokenization
                convert_to_asksage:
                  type: boolean
                  default: false
                  description: Convert to Ask Sage token format
                completion_estimate:
                  type: integer
                  default: 0
                  description: Estimated completion tokens
      responses:
        '200':
          description: Token count
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                  status:
                    type: integer
      operationId: postTokenizer
      x-operation-id-source: derived
    get:
      summary: Count tokens (GET)
      description: Get token count for provided content
      tags:
      - Utilities
      responses:
        '200':
          description: Token count
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                  status:
                    type: integer
      operationId: getTokenizer
      x-operation-id-source: derived
  /analyze-all-links:
    post:
      summary: Analyze all links
      description: Analyzes all the links in the user's input and returns the analysis result
      tags:
      - Utilities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - content
              properties:
                content:
                  type: string
                  description: Content containing links to analyze
      responses:
        '200':
          description: Link analysis result
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                  error_count:
                    type: integer
                  status:
                    type: integer
      operationId: postAnalyzeAllLinks
      x-operation-id-source: derived
  /check-link-status:
    post:
      summary: Check link status
      description: Checks the status of a given link and returns the HTTP status code
      tags:
      - Utilities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - link
              properties:
                link:
                  type: string
                  format: uri
                  description: URL to check
      responses:
        '200':
          description: Link status
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                    description: HTTP status code or 'error'
                  status:
                    type: integer
      operationId: postCheckLinkStatus
      x-operation-id-source: derived
  /get-and-upload-labels:
    post:
      summary: Generate and upload labels
      description: Generate AI-powered labels for a chat session message and store them in the database
      tags:
      - Utilities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - session_id
              - message
              properties:
                session_id:
                  type: string
                  description: Chat session ID
                message:
                  type: string
                  description: Message to categorize
      responses:
        '200':
          description: Labels generated and stored
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                  labels:
                    type: array
                    items:
                      type: string
                  session_id:
                    type: string
                  status:
                    type: integer
      operationId: postGetAndUploadLabels
      x-operation-id-source: derived
  /get-learning-videos:
    get:
      summary: Get learning videos
      description: Returns a list of learning videos from a YouTube playlist. Results are cached.
      tags:
      - Utilities
      responses:
        '200':
          description: Learning videos retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: object
                  status:
                    type: integer
                  cached:
                    type: boolean
      operationId: getGetLearningVideos
      x-operation-id-source: derived
    post:
      summary: Get learning videos (POST)
      description: Returns a list of learning videos from a YouTube playlist. Results are cached.
      tags:
      - Utilities
      responses:
        '200':
          description: Learning videos retrieved
      operationId: postGetLearningVideos
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-tokens
      description: JWT authentication token. Obtain a token by calling the User API endpoint `/user/get-token-with-api-key` with your email and API key.