GoodMemGoodMem
ReferenceAPIREST APIRerankers

List rerankers

GET /v1/rerankers: Retrieves a list of reranker configurations accessible to the caller, with optional filtering.

Retrieves a list of reranker configurations accessible to the caller, with optional filtering.

IMPORTANT: Pagination is NOT supported - all matching results are returned. Results are ordered by created_at descending. Stored credentials are never included in list responses.

LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).

AUTHORIZATION: Requires LIST_RERANKER on the GoodMem instance. Each returned reranker must also be visible through READ_RERANKER; unauthorized rerankers are filtered in PostgreSQL. The ownerId parameter filters that already-authorized result set and does not grant additional visibility.

GET
/v1/rerankers
x-api-key<token>

In: header

Query Parameters

ownerId?string

Filter the already-authorized result set by owner principal UUID. Omitting this parameter does not bypass per-reranker READ_RERANKER filtering.

providerType?string

Filter rerankers by provider type. Allowed values match the ProviderType schema.

Value in"OPENAI" | "VLLM" | "TEI" | "LLAMA_CPP" | "VOYAGE" | "COHERE" | "JINA"
label?object

Filter by label key-value pairs. Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).

Example{"environment":"production","team":"nlp"}

Empty Object

Response Body

curl -X GET "https://your-goodmem-server.example.com/v1/rerankers?ownerId=550e8400-e29b-41d4-a716-446655440000&providerType=TEI&label%5Benvironment%5D=production&label%5Bteam%5D=nlp"
{
  "rerankers": [
    {
      "rerankerId": "550e8400-e29b-41d4-a716-446655440000",
      "displayName": "BGE Cross-Encoder Reranker",
      "description": "BAAI BGE reranker for cross-encoder semantic ranking",
      "providerType": "TEI",
      "endpointUrl": "http://bge.reranker.goodmem.ai:8010",
      "apiPath": "/rerank",
      "modelIdentifier": "BAAI/bge-reranker-base",
      "credentials": {
        "apiKey": {
          "inlineSecret": "sk-1234567890abcdef",
          "secretRef": {
            "uri": "vault://path/to/secret"
          },
          "headerName": "Authorization",
          "prefix": "Bearer "
        },
        "gcpAdc": {
          "scopes": [
            "https://www.googleapis.com/auth/cloud-platform"
          ],
          "quotaProjectId": "my-quota-project"
        }
      },
      "version": "1.0.0",
      "monitoringEndpoint": "https://monitoring.example.com/rerankers/status",
      "ownerId": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": 1617293472000,
      "updatedAt": 1617293472000,
      "createdById": "550e8400-e29b-41d4-a716-446655440000",
      "updatedById": "550e8400-e29b-41d4-a716-446655440000"
    }
  ]
}
Empty
Empty
Empty