Searchcraft Documents API

The Documents API from Searchcraft — 4 operation(s) for documents.

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/searchcraft-documents-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 email required.

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

OpenAPI Specification

searchcraft-documents-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Searchcraft Authentication Documents API
  description: REST API for the Searchcraft developer search engine. Manage indexes and their schemas, ingest and delete documents, run fuzzy/exact full-text and federated search, and manage synonyms, stopwords, federations, access keys, and usage measurement. Available as the managed Searchcraft Cloud service and the self-hosted Searchcraft Core engine.
  termsOfService: https://www.searchcraft.io/
  contact:
    name: Searchcraft
    url: https://www.searchcraft.io/
  version: '1.0'
servers:
- url: https://your-cluster.searchcraft.io
  description: Searchcraft Cloud cluster endpoint. Each Searchcraft Cloud account is provisioned a unique cluster host; replace "your-cluster" with your cluster subdomain. Self-hosted Searchcraft Core instances use their own host.
security:
- SearchcraftKey: []
tags:
- name: Documents
paths:
  /index/{index}/documents:
    parameters:
    - $ref: '#/components/parameters/IndexName'
    post:
      operationId: addDocuments
      tags:
      - Documents
      summary: Adds one or several documents to an index.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - type: object
              - type: array
                items:
                  type: object
      responses:
        '200':
          description: The documents were added.
    delete:
      operationId: deleteDocumentsByField
      tags:
      - Documents
      summary: Deletes documents matching a field term.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: The matching documents were deleted.
  /index/{index}/documents/all:
    parameters:
    - $ref: '#/components/parameters/IndexName'
    delete:
      operationId: deleteAllDocuments
      tags:
      - Documents
      summary: Deletes all documents from an index, preserving the index structure.
      responses:
        '200':
          description: All documents were deleted.
  /index/{index}/documents/query:
    parameters:
    - $ref: '#/components/parameters/IndexName'
    delete:
      operationId: deleteDocumentsByQuery
      tags:
      - Documents
      summary: Deletes documents matching a query condition.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: The matching documents were deleted.
  /index/{index}/documents/{document_id}:
    parameters:
    - $ref: '#/components/parameters/IndexName'
    - name: document_id
      in: path
      required: true
      description: The internal Searchcraft document id.
      schema:
        type: string
    get:
      operationId: getDocument
      tags:
      - Documents
      summary: Retrieves a single document by its internal Searchcraft id.
      responses:
        '200':
          description: The document.
    delete:
      operationId: deleteDocument
      tags:
      - Documents
      summary: Deletes a specific document by its internal id.
      responses:
        '200':
          description: The document was deleted.
components:
  parameters:
    IndexName:
      name: index
      in: path
      required: true
      description: The name of the index.
      schema:
        type: string
  schemas:
    SearchRequest:
      type: object
      required:
      - query
      properties:
        query:
          description: A query object, or an array of query objects, expressed in fuzzy, exact, or dynamic mode.
          oneOf:
          - type: object
          - type: array
            items:
              type: object
        limit:
          type: integer
          default: 20
          description: Maximum number of results to return.
        offset:
          type: integer
          default: 0
          description: Number of results to skip for paging.
        order_by:
          type: string
          description: Field name to order results by.
        sort:
          type: string
          enum:
          - asc
          - desc
          default: desc
        occur:
          type: string
          enum:
          - should
          - must
          description: Boolean occurrence behavior for the query clause.
        minimum_number_should_match:
          type: integer
          minimum: 0
  securitySchemes:
    SearchcraftKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Searchcraft access key passed directly in the Authorization header (no "Bearer" prefix). Keys are tiered by permission: read (search), ingest (document, synonym, stopword, transaction, and measure writes), and admin (index, federation, and key management). Keys may be scoped to specific indexes via allowed_indexes.'