copaw-api-chat

Communicate with a CoPaw instance through its HTTP API. Use when: (1) you need to inspect available CoPaw agents or chats, (2) create a chat or session and send a message via API, (3) understand CoPaw auth, scoping, or SSE behavior before integration work, (4) build wrappers, automations, or skills on top of CoPaw API.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "copaw-api-chat" with this command: npx skills add erview/copaw-api-chat

CoPaw API Chat

Use this skill to work with CoPaw over HTTP API, not through the web UI.

When to use

  • You need to talk to a local CoPaw instance programmatically.
  • You need the correct sequence: create chat/session → send message → read SSE.
  • You need to understand agent scoping, auth layers, or related API groups before building automation.

Workflow

  1. Read references/overview-auth-scoping.md first.
  2. If the task is about chatting with CoPaw, then read references/chats-console-sse.md.
  3. If the task touches agent/model/skill/tool management, read references/agents-models-skills-tools.md.
  4. If the task touches workspace, MCP, or cron, read references/workspace-mcp-cron.md.
  5. If you need ready-to-run examples, read references/practical-recipes.md.

Minimal practical path

  1. Confirm agent id (default unless proven otherwise).
  2. Create a chat with POST /api/chats.
  3. Reuse the returned session_id/user_id/channel context.
  4. Send the message with POST /api/agents/{agentId}/console/chat.
  5. Read the response as SSE.

Important rules

  • Do not assume stateless request/response. CoPaw is chat/session-centric.
  • Distinguish confirmed API behavior from interpretation.
  • Prefer agent-scoped routes (/api/agents/{agentId}/...) or set X-Agent-Id explicitly.
  • In the current deployment, auth may be provided by nginx Basic Auth even if internal CoPaw auth is off.
  • Treat /api/workspace and some /api/agents/*/files/* surfaces as dangerous/admin-level APIs.

References

  • references/overview-auth-scoping.md — API surface, auth, scoping, priorities
  • references/chats-console-sse.md — chat lifecycle, session context, SSE mechanics
  • references/agents-models-skills-tools.md — management surfaces around agents/models/skills/tools
  • references/workspace-mcp-cron.md — workspace, MCP, cron boundaries and risks
  • references/practical-recipes.md — short request examples and file structure examples

Output expectations

When using this skill, answer with:

  • the minimal correct endpoint sequence,
  • the required payload shape,
  • auth/scoping caveats,
  • and only the API groups relevant to the task.

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.

Automation

Harbor Skills

Harbor 镜像仓库综合管理技能。用于 Harbor 日常运维、项目与镜像管理、安全扫描、清理策略、CI/CD 集成、GitOps、复制规则、存储管理、备份恢复、webhook 联动等所有 Harbor 相关操作。当用户提到 Harbor、镜像仓库管理、Docker 镜像、镜像安全扫描、CI/CD 镜像推送/拉...

Registry SourceRecently Updated
Automation

Dynamics Crm

Microsoft Dynamics 365 integration. Manage crm and sales data, records, and workflows. Use when the user wants to interact with Microsoft Dynamics 365 data.

Registry SourceRecently Updated
Automation

Jira

Jira integration. Manage project management and ticketing data, records, and workflows. Use when the user wants to interact with Jira data.

Registry SourceRecently Updated
Automation

Generate Education Ad Creative Brief

Plan campaign visuals and hooks for education promotions. Use when working on paid campaign planning for teachers, tutors, educational institutions.

Registry SourceRecently Updated