Liner API

Liner API as documented publicly: 21 operations. Contract generated from the documentation by API Evangelist (2026-11-17); not the provider's own document.

GitHub OpenAPI

Operations 21

POST /actions/{actionid}/execute Execute an action #
POST /api/v1/agents/deep-research POST /api/v1/agents/deep-research #
GET /api/v1/agents/quick-answer Make your first request #
POST /api/v1/agents/quick-answer POST /api/v1/agents/quick-answer #
POST /api/v1/agents/search POST /api/v1/agents/search #
POST /api/v1/agents/visual-answer POST /api/v1/agents/visual-answer #
POST /api/v1/chat/completions POST /api/v1/chat/completions #
GET /api/v1/credits/balance Check your balance #
POST /api/v1/credits/balance POST /api/v1/credits/balance #
GET /api/v1/credits/usage GET /api/v1/credits/balance and GET /api/v1/credits/usage share a single limit : 10 requests per second combined. #
POST /api/v1/images/generations Image generation in the Router API ( POST /api/v1/images/generations ) also has a concurrency limit. #
GET /api/v1/platform/users GET /api/v1/platform/users #
POST /api/v1/rerank POST /api/v1/rerank #
POST /api/v1/tools/search/scholar Search API | Liner Developers #
POST /api/v1/tools/search/web POST /api/v1/tools/search/web #
POST /api/v1/tools/visualization POST /api/v1/tools/visualization #
POST /delegated-tokens Create a delegated token #
POST /users Create a user #
POST /v1/images/generations image models with the Images API ( POST /v1/images/generations ) #
GET /v1/models GET /v1/models lists the models you can call. #
POST /v1/videos video models with the Videos API ( POST /v1/videos ) #

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/liner-com:liner-com-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

liner-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Liner API
  version: '2026-11-17'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-17: 21 operation(s) read from 18 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; Liner has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 10
    documentation: 11
    pages-with-code: 14
    pages-read: 18
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-17'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://liner.com/developers/docs/search-api
  - https://liner.com/developers/docs/search-agent-api
  - https://liner.com/developers/docs/visualization-api
  - https://liner.com/developers/docs/quick-answer-agent-api
  - https://liner.com/developers/docs/deep-research-agent-api
  - https://liner.com/developers/docs/visual-answer-agent-api
  - https://liner.com/developers/docs/router-api
  - https://liner.com/developers/docs/llm-gateway
  - https://liner.com/developers/docs/quick-start
  - https://liner.com/developers/docs/rate-limits
  - https://liner.com/developers/docs/llm-gpt-router
  - https://liner.com/developers/docs/llm-mark-router
  - https://liner.com/developers/docs/llm-claude-router
  - https://liner.com/developers/docs/llm-gemini-router
  - https://liner.com/developers/docs/actions-api-overview
  - https://liner.com/developers/docs/actions-api-users-list
  - https://liner.com/developers/docs/liner-model-api-images
  - https://liner.com/developers/docs/liner-model-api-rerank
servers:
- url: https://platform.liner.com
paths:
  /actions/{actionid}/execute:
    post:
      operationId: post_actions_actionid_execute
      tags:
      - Actions
      summary: Execute an action
      x-source: https://liner.com/developers/docs/actions-api-overview
      parameters:
      - name: actionid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agents/deep-research:
    post:
      operationId: post_api_v1_agents_deep_research
      tags:
      - Api
      summary: POST /api/v1/agents/deep-research
      x-source: https://liner.com/developers/docs/deep-research-agent-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AgentsDeepResearchRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -N https://platform.liner.com/api/v1/agents/deep-research  -H \"x-api-key: $LINER_API_KEY \"  -H \"Content-Type: application/json\"\
          \  -H \"Accept: text/event-stream\"  -d '{ \n \"messages\": [{ \n \"role\": \"user\", \n \"content\": \"Compare the effectiveness of\
          \ mRNA vs protein subunit COVID vaccines\" \n }] \n }' \n TypeScript Copy const res = await fetch ( 'https://platform.liner.com/api/v1/agents/deep-research'"
  /api/v1/agents/quick-answer:
    get:
      operationId: get_api_v1_agents_quick_answer
      tags:
      - Api
      summary: Make your first request
      description: Quick Answer Agent API delivers short, fast, and source‑grounded answers for a real‑time Q&A experience.
      x-source: https://liner.com/developers/docs/quick-start
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_agents_quick_answer
      tags:
      - Api
      summary: POST /api/v1/agents/quick-answer
      x-source: https://liner.com/developers/docs/quick-answer-agent-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AgentsQuickAnswerRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -N https://platform.liner.com/api/v1/agents/quick-answer  -H \"x-api-key: $LINER_API_KEY \"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"messages\": [{ \"role\": \"user\", \"content\": \"What is the capital of France?\" }] \n }' \n TypeScript Copy const res\
          \ = await fetch ( 'https://platform.liner.com/api/v1/agents/quick-answer' , { \n method: 'POST' , \n headers: { \n 'x-api-key' : process.env.\
          \ LINER_API_K"
  /api/v1/agents/search:
    post:
      operationId: post_api_v1_agents_search
      tags:
      - Api
      summary: POST /api/v1/agents/search
      x-source: https://liner.com/developers/docs/search-agent-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AgentsSearchRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -N https://platform.liner.com/api/v1/agents/search  -H \"x-api-key: $LINER_API_KEY \"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"messages\": [{ \"role\": \"user\", \"content\": \"What are the latest developments in quantum computing?\" }], \n \"mode\"\
          : \"general\" \n }' \n TypeScript Copy const res = await fetch ( 'https://platform.liner.com/api/v1/agents/search' , { \n method: 'POST'\
          \ , \n headers: { \n 'x-ap"
  /api/v1/agents/visual-answer:
    post:
      operationId: post_api_v1_agents_visual_answer
      tags:
      - Api
      summary: POST /api/v1/agents/visual-answer
      x-source: https://liner.com/developers/docs/visual-answer-agent-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AgentsVisualAnswerRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -N -X POST https://platform.liner.com/api/v1/agents/visual-answer  -H \"x-api-key: $LINER_API_KEY \"  -H \"Content-Type:\
          \ application/json\"  -d '{ \"messages\": [ { \"role\": \"user\", \"content\": \"Apple vs Microsoft 2024 revenue comparison\" } ] }'\
          \ \n TypeScript Copy const res = await fetch ( 'https://platform.liner.com/api/v1/agents/visual-answer' , { \n method: 'POST' , \n headers:\
          \ { \n 'x-api-key' : proc"
  /api/v1/chat/completions:
    post:
      operationId: post_api_v1_chat_completions
      tags:
      - Api
      summary: POST /api/v1/chat/completions
      x-source: https://liner.com/developers/docs/llm-gpt-router
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ChatCompletionsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://platform.liner.com/api/v1/chat/completions  -H \"Authorization: Bearer $LINER_API_KEY \"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"model\": \"liner-gpt-router\", \n \"routing_strategy\": \"balanced\", \n \"messages\": [ \n { \n \"role\": \"user\", \n\
          \ \"content\": \"Hello\" \n } \n ] \n }' \n Response model and pricing \n The response model field shows the name of the model that\
          \ answered, such as gpt-6-luna ."
  /api/v1/credits/balance:
    get:
      operationId: get_api_v1_credits_balance
      tags:
      - Api
      summary: Check your balance
      description: Reading your balance is free, and a success response also shows your remaining credits.
      x-source: https://liner.com/developers/docs/quick-start
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1CreditsBalanceResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_credits_balance
      tags:
      - Api
      summary: POST /api/v1/credits/balance
      x-source: https://liner.com/developers/docs/quick-start
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1CreditsBalanceRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://platform.liner.com/api/v1/credits/balance  -H \"X-API-KEY: $LINER_API_KEY \" \n This portal covers 7 APIs. Each\
          \ is optimized for a distinct integration need. \n Step 2. Find the right API for you \n LLM API \n Need Use Lower LLM costs on your\
          \ GPT, Claude, or Gemini models GPT, Claude, or Gemini Router Call a specific model from OpenAI, Anthropic, Google, and others with\
          \ one key Gateway \n To"
  /api/v1/credits/usage:
    get:
      operationId: get_api_v1_credits_usage
      tags:
      - Api
      summary: 'GET /api/v1/credits/balance and GET /api/v1/credits/usage share a single limit : 10 requests per second combined.'
      description: Returns credit usage information; shared rate limit with the balance endpoint.
      x-source: https://liner.com/developers/docs/rate-limits
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/images/generations:
    post:
      operationId: post_api_v1_images_generations
      tags:
      - Api
      summary: Image generation in the Router API ( POST /api/v1/images/generations ) also has a concurrency limit.
      description: Each account can have up to 5 image generations in progress at a time; exceeding this returns HTTP 429 with code concurrency_limit_exceeded.
      x-source: https://liner.com/developers/docs/rate-limits
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/platform/users:
    get:
      operationId: get_api_v1_platform_users
      tags:
      - Api
      summary: GET /api/v1/platform/users
      x-source: https://liner.com/developers/docs/actions-api-users-list
      parameters:
      - name: externalUserIdPrefix
        in: query
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl \"https://actions.liner.com/api/v1/platform/users?externalUserIdPrefix=customer&limit=1\"  -H \"x-api-key: $LINER_ENV_API_KEY\
          \ \" \n TypeScript Copy const BASE = 'https://actions.liner.com/api/v1/platform' ; \n const headers = { 'x-api-key' : process.env. LINER_ENV_API_KEY\
          \ ! }; \n const filter = 'externalUserIdPrefix=customer&limit=1' ; \n let url = `${BASE}/users?${filter}` ; \n for (;;) { \n const res"
  /api/v1/rerank:
    post:
      operationId: post_api_v1_rerank
      tags:
      - Api
      summary: POST /api/v1/rerank
      x-source: https://liner.com/developers/docs/liner-model-api-rerank
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1RerankRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1RerankResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://platform.liner.com/api/v1/rerank  -H \"Authorization: Bearer $LINER_API_KEY \"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"model\": \"cohere/rerank-v3.5\", \n \"query\": \"What is the capital of France?\", \n \"documents\": [ \n \"Berlin is\
          \ the capital of Germany.\", \n \"Paris is the capital of France.\", \n \"France is known for its wine.\" \n ], \n \"top_n\": 2 \n }'\
          \ \n Rerank models are the models in GET "
  /api/v1/tools/search/scholar:
    post:
      operationId: post_api_v1_tools_search_scholar
      tags:
      - Api
      summary: Search API | Liner Developers
      x-source: https://liner.com/developers/docs/search-api
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
        description: Your API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ToolsSearchScholarRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1ToolsSearchScholarResponse'
      x-evidence:
        kind: documentation
  /api/v1/tools/search/web:
    post:
      operationId: post_api_v1_tools_search_web
      tags:
      - Api
      summary: POST /api/v1/tools/search/web
      x-source: https://liner.com/developers/docs/search-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ToolsSearchWebRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://platform.liner.com/api/v1/tools/search/web  -H \"x-api-key: $LINER_API_KEY \"  -H \"Content-Type: application/json\"\
          \  -d '{ \"query\": \"recent AI regulation updates\", \"max_results\": 10 }' \n TypeScript Copy const res = await fetch ( 'https://platform.liner.com/api/v1/tools/search/web'\
          \ , { \n method: 'POST' , \n headers: { \n 'x-api-key' : process.env. LINER_API_KEY ! , \n 'Content-Type' "
  /api/v1/tools/visualization:
    post:
      operationId: post_api_v1_tools_visualization
      tags:
      - Api
      summary: POST /api/v1/tools/visualization
      x-source: https://liner.com/developers/docs/visualization-api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ToolsVisualizationRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -N -X POST https://platform.liner.com/api/v1/tools/visualization  -H \"x-api-key: $LINER_API_KEY \"  -H \"Content-Type:\
          \ application/json\"  -d '{ \"query\": \"Apple vs Microsoft 2024 revenue comparison\", \"is_search_context\": true }' \n TypeScript\
          \ Copy const res = await fetch ( 'https://platform.liner.com/api/v1/tools/visualization' , { \n method: 'POST' , \n headers: { \n 'x-api-key'\
          \ : process.env. LINE"
  /delegated-tokens:
    post:
      operationId: post_delegated_tokens
      tags:
      - Delegated Tokens
      summary: Create a delegated token
      x-source: https://liner.com/developers/docs/actions-api-overview
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /users:
    post:
      operationId: post_users
      tags:
      - Users
      summary: Create a user
      x-source: https://liner.com/developers/docs/actions-api-overview
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/images/generations:
    post:
      operationId: post_v1_images_generations
      tags:
      - Images
      summary: image models with the Images API ( POST /v1/images/generations )
      description: Used to generate images via the Images API.
      x-source: https://liner.com/developers/docs/router-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/models:
    get:
      operationId: get_v1_models
      tags:
      - Models
      summary: GET /v1/models lists the models you can call.
      description: Retrieves a list of available models.
      x-source: https://liner.com/developers/docs/router-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/videos:
    post:
      operationId: post_v1_videos
      tags:
      - Videos
      summary: video models with the Videos API ( POST /v1/videos )
      description: Used to generate videos via the Videos API.
      x-source: https://liner.com/developers/docs/router-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiV1AgentsDeepResearchRequest:
      type: object
      properties:
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
    PostApiV1AgentsQuickAnswerRequest:
      type: object
      properties:
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
    PostApiV1AgentsSearchRequest:
      type: object
      properties:
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
        mode:
          type: string
    PostApiV1AgentsVisualAnswerRequest:
      type: object
      properties:
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
    PostApiV1ChatCompletionsRequest:
      type: object
      properties:
        model:
          type: string
        routing_strategy:
          type: string
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
    GetApiV1CreditsBalanceResponse:
      type: object
      properties:
        billing_type:
          type: string
          description: type of billing (e.g., prepaid)
        balance:
          type: integer
          description: balance in millionths of a dollar
        balance_usd:
          type: string
          description: balance formatted as dollars
        currency:
          type: string
          description: currency code
    PostApiV1CreditsBalanceRequest:
      type: object
      properties:
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
    PostApiV1RerankRequest:
      type: object
      properties:
        model:
          type: string
        query:
          type: string
        documents:
          type: array
          items:
            type: string
        top_n:
          type: integer
    PostApiV1RerankResponse:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              relevance_score:
                type: number
        model:
          type: string
        usage:
          type: object
          properties:
            search_units:
              type: integer
            cost:
              type: number
    PostApiV1ToolsSearchScholarRequest:
      type: object
      properties:
        query:
          type: string
          description: The search query string.
        lang:
          type: string
          description: Language code (e.g. en, ko, ja).
        date_range:
          type: string
          description: One of past_day, past_week, past_month, past_year.
        max_results:
          type: integer
          description: 1–20, default 10.
      required:
      - query
    PostApiV1ToolsSearchScholarResponse:
      type: object
      properties:
        requestId:
          type: string
        results:
          type: array
          description: List of result objects each containing title, url, hostname, faviconUrl, description, date, citationCount, authors, journal.
        totalCount:
          type: integer
    PostApiV1ToolsSearchWebRequest:
      type: object
      properties:
        query:
          type: string
        max_results:
          type: integer
    PostApiV1ToolsVisualizationRequest:
      type: object
      properties:
        query:
          type: string
        is_search_context:
          type: boolean
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
security:
- apiKey: []
tags:
- name: Actions
- name: Api
- name: Delegated Tokens
- name: Images
- name: Models
- name: Users
- name: Videos