---
title: "Autocomplete lookup by name (exact/prefix/contains ranked)"
method: GET
path: "/api/contexts/by-name"
tags: ["Contexts"]
---

# Autocomplete lookup by name (exact/prefix/contains ranked)

`GET /api/contexts/by-name`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/contexts/by-name`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Query parameters

- `name` string, required
- `limit` integer

## Response `200`

Ranked name matches (id, name, type, description, updatedAt).

- object[]

## Other responses

- `400`: Request body/query failed Zod validation.
- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
