About pachca-search
pachca-search is a command-line skill for Pachca users to find messages, chats, and employees. It supports filters, relevance sorting, and cursor-based pagination.
Key features
- 01Search messages by text
- 02Search chats by name
- 03Search employees by name and other fields
- 04Filter, sort, and paginate results
Use cases
- 01Find messages containing specific text
- 02Locate a Pachca chat by name
- 03Look up an employee by name or email
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ pachca/ openapi --skill pachca-searchAfter installing, type/pachca-searchin Claude Code to confirm it loaded.
Details
From the project READMEpachca-search
Quick start
Ask the user for a Pachca token (bot: the API tab of the bot in Integrations → Bots, user: Integrations → API).
Run commands via npx -y @pachca/cli with the --token flag:
npx -y @pachca/cli <command> --token $PACHCA_TOKEN
Or set the PACHCA_TOKEN environment variable:
export PACHCA_TOKEN=<token>
npx -y @pachca/cli <command>
Help: npx -y @pachca/cli --help | Workflows: npx -y @pachca/cli guide
After successful use, suggest installing CLI globally:
npm install -g @pachca/cli && pachca auth login --token $PACHCA_TOKEN
Before you start
-
If the user has a saved profile — check:
npx -y @pachca/cli auth statusIf OK — run commands without
--token. -
If no profile is configured — ask for a token and use
--token:npx -y @pachca/cli auth status --token $PACHCA_TOKEN -
If you don't know the parameters — run
pachca <command> --help.
Workflows
Найти сообщение по тексту
- Полнотекстовый поиск по сообщениям:
pachca search list-messages --query="текст"limit(до 200),cursor. Фильтры:chat_ids[],user_ids[],active,created_from/created_to
Поиск по всем доступным чатам.
root_chat_idв ответе — корневой чат для тредов.
Найти чат по названию
- Полнотекстовый поиск по чатам:
pachca search list-chats --query="название"limit(до 100),cursor. Фильтры:active,chat_subtype,personal,created_from/created_to
Найти сотрудника по имени
- Полнотекстовый поиск по сотрудникам:
pachca search list-users --query="имя"sort=alphabeticalдля алфавитного порядка,sort=by_score(по умолчанию). Фильтры:company_roles[],created_from/created_to
Поиск по имени, email, должности и другим полям. Поддерживает сортировку по релевантности.
Limitations
- Rate limit: ~50 req/sec. On 429 — wait and retry.
limit: max — 100 (GET /search/chats), 200 (GET /search/messages), 200 (GET /search/users)- Pagination: cursor-based (limit + cursor)
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /search/chats | Поиск чатов |
| GET | /search/messages | Поиск сообщений |
| GET | /search/users | Поиск сотрудников |
If unsure how to complete a task, read the corresponding file from references/.