Live Direct Marketing AI API

The AI API from Live Direct Marketing — 8 operation(s) for ai.

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/ai/generate Generate an AI text completion · Generate AI completion via configured provider #
Ask an LLM
“Can I run a text completion through my configured AI provider?”
“Which AI provider is used when I ask for a generation?”
Tell an agent
Generate an AI completion for this prompt.
Run a completion through my configured AI provider.
GET /api/ai/balance Check the balance of an AI provider · Get balance for current or specified AI provider #
Ask an LLM
“How much credit is left on one of my AI providers?”
“Can I check the balance of a specific AI provider?”
Tell an agent
Show the balance for AI provider {provider}.
Check remaining credit on {provider}.
GET /api/ai/balances Check balances across all AI providers · Get balances for all configured AI providers #
Ask an LLM
“What are the balances on all my configured AI providers at once?”
“Is any of my AI providers running low on credit?”
Tell an agent
Show balances for every configured AI provider.
List all AI provider balances.
GET /api/ai/usage Get AI usage statistics · Get AI usage statistics for the given window (days) #
Ask an LLM
“How much AI have I used over the last month?”
“Can I see AI usage stats for a custom number of days?”
Tell an agent
Show AI usage for the last {days} days.
Summarize AI consumption over {days} days.
GET /api/ai/logs Read recent AI usage logs · Get recent AI usage logs #
Ask an LLM
“Where can I see the individual AI calls that were made recently?”
“Can I limit how many recent AI log entries come back?”
Tell an agent
Show the last {limit} AI usage log entries.
List my recent AI calls.
GET /api/ai/providers List AI providers and their status · List available AI providers with status #
Ask an LLM
“Which AI providers are available and are they working?”
“Can I see the status of each AI provider?”
Tell an agent
List available AI providers with status.
Show which AI providers are online.
GET /api/ai/models List AI models per provider · List available AI models per provider (dynamic) #
Ask an LLM
“Which AI models can I choose from for each provider?”
“Is the list of AI models fetched live from the providers?”
Tell an agent
List available AI models per provider.
Show the models each AI provider offers.
POST /api/ai/check-balance Check AI balance against an alert threshold · Check AI balance against threshold (cron/monitoring hook) #
Ask an LLM
“Is there a monitoring hook that checks whether my AI balance fell below a threshold?”
“Can a cron job check AI credit levels automatically?”
Tell an agent
Check AI balances against the low-balance threshold.
Run the AI balance threshold check.

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/live-direct-marketing-online:live-direct-marketing-online-ai-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

live-direct-marketing-online-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LDM v3 AI API
  description: 'Multi-tenant B2B outreach automation platform. Auth: JWT Bearer (15-min) or tenant API key (ldm_*) managed in CRM Settings → API Keys. All tenant-scoped endpoints require the X-Tenant-Id header.'
  version: 1.0.0
  contact: {}
servers:
- url: https://api.live-direct-marketing.online
  description: Production
- url: https://api.dev.live-direct-marketing.online
  description: Development
- url: http://127.0.0.1:3000
  description: Local
tags:
- name: AI
paths:
  /api/ai/generate:
    post:
      operationId: AiController_generate
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '201':
          description: ''
      security:
      - jwt: []
      summary: Generate AI completion via configured provider
      tags:
      - AI
      x-required-scope:
      - ai:generate
  /api/ai/balance:
    get:
      operationId: AiController_getBalance
      parameters:
      - name: provider
        required: true
        in: query
        schema:
          type: string
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '200':
          description: ''
      security:
      - jwt: []
      summary: Get balance for current or specified AI provider
      tags:
      - AI
      x-required-scope:
      - ai:read
  /api/ai/balances:
    get:
      operationId: AiController_getAllBalances
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '200':
          description: ''
      security:
      - jwt: []
      summary: Get balances for all configured AI providers
      tags:
      - AI
      x-required-scope:
      - ai:read
  /api/ai/usage:
    get:
      operationId: AiController_getUsage
      parameters:
      - name: days
        required: true
        in: query
        schema:
          type: string
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '200':
          description: ''
      security:
      - jwt: []
      summary: Get AI usage statistics for the given window (days)
      tags:
      - AI
      x-required-scope:
      - ai:read
  /api/ai/logs:
    get:
      operationId: AiController_getLogs
      parameters:
      - name: limit
        required: true
        in: query
        schema:
          type: string
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '200':
          description: ''
      security:
      - jwt: []
      summary: Get recent AI usage logs
      tags:
      - AI
      x-required-scope:
      - ai:read
  /api/ai/providers:
    get:
      operationId: AiController_getProviders
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '200':
          description: ''
      security:
      - jwt: []
      summary: List available AI providers with status
      tags:
      - AI
      x-required-scope:
      - ai:read
  /api/ai/models:
    get:
      operationId: AiController_getModels
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '200':
          description: ''
      security:
      - jwt: []
      summary: List available AI models per provider (dynamic)
      tags:
      - AI
      x-required-scope:
      - ai:read
  /api/ai/check-balance:
    post:
      operationId: AiController_checkBalance
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          type: string
          format: uuid
        description: Tenant UUID — required for all tenant-scoped endpoints
      responses:
        '201':
          description: ''
      security:
      - jwt: []
      summary: Check AI balance against threshold (cron/monitoring hook)
      tags:
      - AI
      x-required-scope:
      - ai:write
components:
  securitySchemes:
    jwt:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT access token from /auth/login (Bearer <token>)
    tenant-api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Tenant API key (Bearer ldm_*) for MCP/A2A clients. Issued via CRM Settings → API Keys.
    rpa-service:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Dedicated RPA service key. No tenant API-key or query-key authentication.