Aleph Alpha Collection API

Management of document collections

GitHub OpenAPI
Business capability
Retrieval & Embeddings AE-110.60

Operations 5

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 /collections/{namespace} List document collections in a namespace · List collections in namespace #
Ask an LLM
“Which document collections exist in my namespace?”
“Can I see all collections under one organisation namespace?”
Tell an agent
List all collections in namespace {namespace}.
Show every document collection under {namespace}.
PUT /collections/{namespace}/{collection} Create a document collection · Create a collection #
Ask an LLM
“How do I create a new collection to store documents?”
“Do I have to create a collection before adding documents to it?”
Tell an agent
Create collection {collection} in namespace {namespace}.
Set up a new document collection {collection} for {namespace}.
DELETE /collections/{namespace}/{collection} Delete a document collection · Delete collection #
Ask an LLM
“Can I delete a collection I no longer need?”
“What happens to a collection once it is deleted?”
Tell an agent destructive · confirm first
Delete collection {collection} from namespace {namespace}.
Remove the {collection} collection in {namespace}.
GET /collections/{namespace}/{collection}/progress Count documents waiting to be embedded in a collection · Get count of all documents in a collection that are not yet embedded #
Ask an LLM
“How many documents in my collection still need to be embedded?”
“Is there an upper bound on documents not yet embedded in a collection?”
Tell an agent
Count documents in {namespace}/{collection} that are not yet embedded.
Show how many documents in {collection} of {namespace} still need embedding.
GET /collections/{namespace}/{collection}/transitioning Count documents in a collection not in their target state · Get count of all documents in a collection that are not yet embedded or not yet… #
Ask an LLM
“How many documents in my collection are still transitioning to their target state?”
“Can I see documents that are not yet embedded or archived?”
Tell an agent
Count documents in {namespace}/{collection} that are not in their target state.
Show how many documents in {collection} of {namespace} are transitioning.

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-collection-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-collection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aleph Alpha Document Index Collection 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: Collection
  description: Management of document collections
paths:
  /collections/{namespace}:
    get:
      tags:
      - Collection
      security:
      - token: []
      summary: List collections in namespace
      description: List all collections that exist in the given namespace
      parameters:
      - $ref: '#/components/parameters/namespace'
      responses:
        '200':
          description: A list of collection names
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                - collection_1
                - collection_2
      operationId: getCollectionsByNamespace
      x-operation-id-source: derived
  /collections/{namespace}/{collection}:
    put:
      tags:
      - Collection
      security:
      - token: []
      summary: Create a collection
      description: 'Creates a collection with a path given as namespace/collection.

        Collections need to be created explicitly before documents can be put into a collection.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      responses:
        '200':
          description: Collection successfully created.
      operationId: putCollectionsByNamespaceByCollection
      x-operation-id-source: derived
    delete:
      tags:
      - Collection
      security:
      - token: []
      summary: Delete collection
      description: 'Deletes a collection identified by the namespace/collection.

        If the delete request returns successfully, the collection is deleted, i.e. it cannot be found

        any more neither by collection-path nor through search/lookup. However if the delete request fails

        either deletion failed or the collection will be deleted eventually.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      responses:
        '200':
          description: Collection successfully deleted.
      operationId: deleteCollectionsByNamespaceByCollection
      x-operation-id-source: derived
  /collections/{namespace}/{collection}/progress:
    get:
      tags:
      - Collection
      security:
      - token: []
      summary: Get count of all documents in a collection that are not yet embedded
      description: 'Gets count of all documents in a collection that are saved in the knowledge base, but not embedded for search yet.

        The count is not exact but an upper boundary of the exact number of documents to be embedded.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      responses:
        '200':
          description: Number of unembedded documents
          content:
            application/json:
              schema:
                type: integer
      operationId: getCollectionsByNamespaceByCollectionProgress
      x-operation-id-source: derived
  /collections/{namespace}/{collection}/transitioning:
    get:
      tags:
      - Collection
      security:
      - token: []
      summary: Get count of all documents in a collection that are not yet embedded or not yet…
      description: 'Gets count of all documents in a collection where the target state does not equal the current state.

        The count is not exact but an upper boundary of the exact number of documents to be embedded/archived.'
      parameters:
      - $ref: '#/components/parameters/namespace'
      - $ref: '#/components/parameters/collection'
      responses:
        '200':
          description: Number of unembedded documents
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/transitioningResult'
      operationId: getCollectionsByNamespaceByCollectionTransitioning
      x-operation-id-source: derived
components:
  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
  schemas:
    transitioningResult:
      description: 'The result for a transitioning documents query.

        '
      type: object
      properties:
        currently_embedding:
          type: integer
        currently_archiving:
          type: integer
      required:
      - currently_embedding
      - currently_archiving
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)