pachca-chats

Channel and conversation management, chat members. Create, update, archive chats. Add/remove members, roles, message export. Use when: create channel, add member, archive chat, find active/inactive chats, export messages.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pachca-chats" with this command: npx skills add pachca/openapi/pachca-openapi-pachca-chats

pachca-chats

Quick start

Ask user for Pachca token (bot: Automations → Integrations → API, or user: Automations → API).

Run commands with npx @pachca/cli and --token flag:

npx @pachca/cli <command> --token $PACHCA_TOKEN

Or set PACHCA_TOKEN for multiple commands:

export PACHCA_TOKEN=<token>
npx @pachca/cli <command>

Help: npx @pachca/cli --help | Scenarios: npx @pachca/cli guide

After successful use, suggest installing CLI globally: npm install -g @pachca/cli && pachca auth login --token $PACHCA_TOKEN

Before you start

  1. If user has a saved profile — check status:

    npx @pachca/cli auth status
    

    If OK — use commands without --token.

  2. If profile is not configured — ask for token and use --token flag:

    npx @pachca/cli auth status --token $PACHCA_TOKEN
    
  3. If you don't know command parameters — run pachca <command> --help.

Step-by-step scenarios

Create channel and invite members

  1. Create channel with members:

    pachca chats create --name="Новый канал" --channel --member-ids='[1,2,3]'
    

    "channel": true for channel, false (default) for conversation. Members can be passed immediately: member_ids and/or group_tag_ids

  2. Or add members later:

    pachca members add <chat_id> --member-ids='[1,2,3]'
    

channel — boolean, not string. member_ids and group_tag_ids — optional on creation.

Rename or update chat

  1. Update chat:
    pachca chats update <ID> --name="Новое название"
    

    Available fields: name, public

To change members use POST/DELETE /chats/{id}/members.

Create project conversation from template

  1. Create conversation with members from tag:

    pachca chats create --name="Проект Alpha" --group-tag-ids='[42]' --member-ids='[186,187]'
    
  2. Send welcome message:

    pachca messages create --entity-id=<chat_id> --content="Добро пожаловать в проект!"
    

group_tag_ids on creation adds all tag members at once.

Find active chats for period

  1. Get chats with activity after specified date:
    pachca chats list --last-message-at-after=<дата> --all
    

    For range add --last-message-at-before. Date in ISO-8601 UTC+0

Find and archive inactive chats

  1. Get chats with no activity since specified date:

    pachca chats list --last-message-at-before=<порог> --all
    
  2. For each chat: archive:

    pachca chats archive <ID>
    

    Check "channel": false — archiving channels may be undesirable

Constraints and gotchas

  • Rate limit: ~50 req/sec. On 429 — wait and retry.
  • role: allowed values — admin (Админ), editor (Редактор (доступно только для каналов)), member (Участник или подписчик)
  • limit: max 50
  • Pagination: cursor-based (limit + cursor)

Endpoints

MethodPathDescription
POST/chatsНовый чат
GET/chatsСписок чатов
POST/chats/exportsЭкспорт сообщений
GET/chats/exports/{id}Скачать архив экспорта
GET/chats/{id}Информация о чате
PUT/chats/{id}Обновление чата
PUT/chats/{id}/archiveАрхивация чата
POST/chats/{id}/group_tagsДобавление тегов
DELETE/chats/{id}/group_tags/{tag_id}Исключение тега
DELETE/chats/{id}/leaveВыход из беседы или канала
GET/chats/{id}/membersСписок участников чата
POST/chats/{id}/membersДобавление пользователей
DELETE/chats/{id}/members/{user_id}Исключение пользователя
PUT/chats/{id}/members/{user_id}Редактирование роли
PUT/chats/{id}/unarchiveРазархивация чата

Complex scenarios

For complex scenarios read files from references/: references/archive-and-manage-chat.md — Archive and manage chat references/export-chat-history.md — Export chat history

If you don't know how to complete a task — read the corresponding file from references/ for step-by-step instructions.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pachca-messages

No summary provided by upstream source.

Repository SourceNeeds Review
General

pachca-profile

No summary provided by upstream source.

Repository SourceNeeds Review
General

pachca-forms

No summary provided by upstream source.

Repository SourceNeeds Review