Aleph Alpha Filter Index API

Management of search filter indexes

GitHub OpenAPI

Operations 7

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

GET /filter_indexes/{namespace} List filter index configurations in a namespace · List of filter index configurations in namespace #
Ask an LLM
“Which filter index configurations exist in my namespace?”
“What filter indexes are defined for a whole namespace?”
Tell an agent
List all filter index configurations in namespace {namespace}.
Show the filter index settings defined for {namespace}.
GET /filter_indexes/{namespace}/{filterIndex} Get a namespace-wide filter index configuration · Get namespace-wide filter index configuration #
Ask an LLM
“What field does a specific filter index in my namespace filter on?”
“Can I check the configuration of one filter index?”
Tell an agent
Get the configuration of filter index {filterIndex} in {namespace}.
Show the field and type used by filter index {filterIndex}.
PUT /filter_indexes/{namespace}/{filterIndex} Define a namespace-wide filter index · Define a namespace-wide filter index configuration #
Ask an LLM
“How do I make a namespace-wide filter index filter on a metadata field?”
“Can I set the field type for a filter index in a namespace?”
Tell an agent
Define filter index {filterIndex} in {namespace} filtering on field {field_name}.
Create a namespace-wide filter index {filterIndex} of type {field_type} on {namespace}.
DELETE /filter_indexes/{namespace}/{filterIndex} Delete a namespace-wide filter index configuration · Delete a namespace-wide filter index configuration #
Ask an LLM
“Can I delete a filter index configuration from a namespace?”
“What happens to searches if I remove a namespace-wide filter index?”
Tell an agent destructive · confirm first
Delete filter index {filterIndex} from {namespace}.
Remove the namespace-wide filter index {filterIndex}.
GET /collections/{namespace}/{collection}/indexes/{index}/filter_indexes List filter indexes assigned to an index · Gets the filter indexes assigned to an assigned (search) index #
Ask an LLM
“Which filter indexes are assigned to a search index?”
“Can I see what I can filter on for a given index?”
Tell an agent
List the filter indexes assigned to index {index} in collection {collection}, namespace {namespace}.
Show which filters are active on search index {index}.
PUT /collections/{namespace}/{collection}/indexes/{index}/filter_indexes/{filterIndex} Assign a filter index to an index · Assign an existing filter index config to an assigned (search) index #
Ask an LLM
“How do I let searches on an index filter on a metadata field?”
“Can I attach an existing filter index config to an index?”
Tell an agent
Assign filter index {filterIndex} to index {index} in collection {collection}, namespace {namespace}.
Enable filter {filterIndex} on search index {index}.
DELETE /collections/{namespace}/{collection}/indexes/{index}/filter_indexes/{filterIndex} Unassign a filter index from an index · Unassigns a filter index config from an assigned (search) index #
Ask an LLM
“Can I stop searches on an index from filtering on a field?”
“What do I do to remove a filter index from an index?”
Tell an agent destructive · confirm first
Unassign filter index {filterIndex} from index {index} in collection {collection}, namespace {namespace}.
Disable filter {filterIndex} on search index {index}.

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/aleph-alpha:aleph-alpha-filter-index-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

aleph-alpha-filter-index-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aleph Alpha Document Index Filter Index API
  version: 0.0.0
  description: 'The Document Index is a service that provides semantic search over your knowledge base. It

    takes care of the chunking and embedding of your documents, and it keeps these embeddings in

    sync when your documents change.'
  contact:
    email: support@aleph-alpha.com
servers:
- url: '{host}/v1/studio/search'
  variables:
    host:
      default: https://api.pharia.example.com
tags:
- name: Filter Index
  description: Management of search filter indexes
paths:
  /filter_indexes/{namespace}:
    get:
      tags:
      - Filter Index
      security:
      - token: []
      summary: List of filter index configurations in namespace
      description: List all filter index configurations that exist in the given namespace.
      parameters:
      - $ref: '#/components/parameters/namespace'
      responses:
        '200':
          description: A list of filter index config names
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                - filter-index-config-1
                - filter-index-config-2
      operationId: getFilterIndexesByNamespace
      x-operation-id-source: derived
  /filter_indexes/{namespace}/{filterIndex}:
    get:
      tags:
      - Filter Index
      security:
      - token: []
      summary: Get namespace-wide filter index configuration
      description: Gets the parameters for the given filter index configuration.
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/filterIndex'
      responses:
        '200':
          description: A filter index config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/filterIndexConfig'
              example:
                field_name: a.nested.field
                field_type: string
      operationId: getFilterIndexesByNamespaceByFilterIndex
      x-operation-id-source: derived
    put:
      tags:
      - Filter Index
      security:
      - token: []
      summary: Define a namespace-wide filter index configuration
      description: 'Defines a namespace-wide filter index configuration. Once a configuration is defined it can be assigned

        to indexes that are assigned to a collections of the namespace which then allows to filter searches on this index

        based on the field defined in the configuration.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/filterIndex'
      requestBody:
        required: 'true'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/filterIndexConfig'
            example:
              field_name: a.nested.field
              field_type: string
      responses:
        '200':
          description: No content
      operationId: putFilterIndexesByNamespaceByFilterIndex
      x-operation-id-source: derived
    delete:
      tags:
      - Filter Index
      security:
      - token: []
      summary: Delete a namespace-wide filter index configuration
      description: 'Deletes the filter index configuration for the given namespace. This is not possible if the filter index

        is added to any assigned index.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/filterIndex'
      responses:
        '200':
          description: Filter index configuration successfully deleted.
        '409':
          description: The filter index configuration cannot be deleted because it is used.
      operationId: deleteFilterIndexesByNamespaceByFilterIndex
      x-operation-id-source: derived
  /collections/{namespace}/{collection}/indexes/{index}/filter_indexes:
    get:
      tags:
      - Filter Index
      security:
      - token: []
      summary: Gets the filter indexes assigned to an assigned (search) index
      description: 'Gets the filter indexes assigned to an assigned (search) index. Searches on the assigned

        index can use these filter indexes.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      - $ref: '#/components/parameters/index'
      responses:
        '200':
          description: A list of filter index names
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                - filter_index_1
                - filter_index_2
      operationId: getCollectionsByNamespaceByCollectionIndexesByIndexFilterIndexes
      x-operation-id-source: derived
  /collections/{namespace}/{collection}/indexes/{index}/filter_indexes/{filterIndex}:
    put:
      tags:
      - Filter Index
      security:
      - token: []
      summary: Assign an existing filter index config to an assigned (search) index
      description: 'Assigns a filter index config that exists in the same namespace as the collection to an

        index assigned to the collection. This allows you to filter results from searches over the

        search index.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      - $ref: '#/components/parameters/index'
      - $ref: '#/components/parameters/filterIndex'
      responses:
        '200':
          description: Filter index successfully assigned.
      operationId: putCollectionsByNamespaceByCollectionIndexesByIndexFilterIndexesByFilterIndex
      x-operation-id-source: derived
    delete:
      tags:
      - Filter Index
      security:
      - token: []
      summary: Unassigns a filter index config from an assigned (search) index
      description: 'Unassigns a filter index config from an assigned (search) index. Subsequent searches on the

        index will no longer be able to use the filter.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      - $ref: '#/components/parameters/index'
      - $ref: '#/components/parameters/filterIndex'
      responses:
        '200':
          description: Filter index successfully unassigned.
      operationId: deleteCollectionsByNamespaceByCollectionIndexesByIndexFilterIndexesByFilterIndex
      x-operation-id-source: derived
components:
  schemas:
    metadataFilterField:
      description: 'The metadata field on which to filter search results. Field names must only contain alphanumeric characters,

        dashes and underscores. Nested fields can be specified using dot notation (e.g. ''a.b'').

        Array-valued fields can either use a wildcard specifier (e.g. ''a[].b'') or a specific index (e.g. ''a[1].b'').

        The maximum length of the field name is 1000 characters.

        '
      type: string
      maxLength: '1000'
      pattern: ^([[:alnum:]\-_]+(\[[[:digit:]]{0,5}\])*\.)*[[:alnum:]\-_]+$
    filterIndexConfig:
      description: 'Represents the configuration parameters for a filter index. Filter indexes can be used to filter search

        results based on the metadata field defined in the configuration.

        '
      type: object
      properties:
        field_name:
          $ref: '#/components/schemas/metadataFilterField'
        field_type:
          type: string
          enum:
          - string
          - integer
          - float
          - boolean
          - date_time
  parameters:
    namespace:
      description: 'Namespace for collections of documents. Namespaces support preventing naming conflicts

        for collections. A namespace typically corresponds to an organisation.

        Namespaces may only contain alphanumeric characters (a-z, A-Z, -, . and 0-9) and

        cannot be longer than 100 characters.

        '
      name: namespace
      in: path
      schema:
        type: string
        maxLength: '100'
        pattern: ^[a-zA-Z0-9\-\.]+$
      required: 'true'
      example: aleph-alpha
    collection:
      description: 'Collection containing documents. A search/lookup request always refers to a single collection, i.e.

        only a single collection can be searched with a single search/lookup request. The name of the collection

        must be unique within a namespace.

        Collections may only contain alphanumeric characters (a-z, A-Z, -, . and 0-9) and cannot be longer

        then 100 characters.

        '
      name: collection
      in: path
      schema:
        type: string
        maxLength: '100'
        pattern: ^[a-zA-Z0-9\-\.]+$
      required: 'true'
      example: wikipedia-de
    filterIndex:
      description: 'Filter index for an index assigned to a collection. Filter indexes are used to allow

        filtering of results when searching on documents in a collection. An filter index name

        can only contain alphanumeric characters (a-z, A-Z, -, . and 0-9) and cannot be longer

        than 50 characters.

        '
      name: filterIndex
      in: path
      schema:
        type: string
        maxLength: '50'
        pattern: ^[a-zA-Z0-9\-\.]+$
      required: 'true'
      example: creation-date
    index:
      description: 'Index for a collection. Indexes are used for search operations on documents in collections.

        An index name may only contain alphanumeric characters (a-z, A-Z, -, . and 0-9) and cannot

        be longer than 50 characters.

        '
      name: index
      in: path
      schema:
        type: string
        maxLength: '50'
        pattern: ^[a-zA-Z0-9\-\.]+$
      required: 'true'
      example: asymmetric
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)