Gagarin API

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

GitHub OpenAPI

Operations 4

POST / POST / #
POST /ask POST /ask with {"question": "...", "limit": 3} returns the closest ones. #
GET /healthz GET /healthz does not require authorization. #
POST /ingest POST /ingest with {"texts": [...]} embeds and stores up to 256 passages. #

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/gagarin-cloud:gagarin-cloud-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

gagarin-cloud-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Gagarin API
  version: '2026-11-09'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-09: 4 operation(s) read from 2 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Gagarin has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 3
    pages-with-code: 2
    pages-read: 2
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-09'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://gagarin.cloud/recipes/rag-api-qdrant/index.md
  - https://api.gagarin.cloud
paths:
  /:
    post:
      operationId: post
      tags:
      - Api
      summary: POST /
      x-source: https://gagarin.cloud/recipes/rag-api-qdrant/index.md
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -H "Authorization: Bearer <token>" -H ''content-type: application/json''  -d ''{"texts":["Paris is the capital of France."]}''
          https://<address>/ingest'
  /ask:
    post:
      operationId: post_ask
      tags:
      - Ask
      summary: 'POST /ask with {"question": "...", "limit": 3} returns the closest ones.'
      x-source: https://gagarin.cloud/recipes/rag-api-qdrant/index.md
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer token required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAskRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /healthz:
    get:
      operationId: get_healthz
      tags:
      - Healthz
      summary: GET /healthz does not require authorization.
      x-source: https://gagarin.cloud/recipes/rag-api-qdrant/index.md
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /ingest:
    post:
      operationId: post_ingest
      tags:
      - Ingest
      summary: 'POST /ingest with {"texts": [...]} embeds and stores up to 256 passages.'
      x-source: https://gagarin.cloud/recipes/rag-api-qdrant/index.md
      parameters:
      - name: Authorization
        in: header
        required: true
        schema:
          type: string
        description: Bearer token required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostIngestRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostRequest:
      type: object
      properties:
        texts:
          type: array
          items:
            type: string
    PostAskRequest:
      type: object
      properties:
        question:
          type: string
          description: The question to ask
        limit:
          type: integer
          description: Maximum number of passages to return
      required:
      - question
    PostIngestRequest:
      type: object
      properties:
        texts:
          type: array
          description: Array of passage strings
      required:
      - texts
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Ask
- name: Healthz
- name: Ingest