agentleFS
zaphookzaphook/zaphook-agent-skills/skills/zaphook-api/SKILL.md

zaphook-api

Skill0 starsChanged 4 months agoMITView on GitHub

Manage ZapHook infrastructure. Use when user wants to: create/update/delete WhatsApp channels (manual or coexistence), configure webhook destinations, check WABA health status, or run initial setup (configure). Do not use for sending or reading messages. Requires API key configured via 'npx zaphook-skills configure'.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If flags are omitted, falls back to interactive prompts (human use only).

    line 28
  2. Very specific:

    Coexistence: all above + --verify-token (required)

    line 40
  3. Distinctive:

    PUT /api/public/v1/channels/{channel_id}

    line 68
  4. Distinctive:

    DELETE /api/public/v1/channels/{channel_id}

    line 74
  5. Distinctive:

    PUT /api/public/v1/channels/{channel_id}/destinations/{dest_id}

    line 101
  6. Distinctive:

    DELETE /api/public/v1/channels/{channel_id}/destinations/{dest_id}

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ZapHook API

Base URL: https://api.zaphook.cloud Auth: Authorization: Bearer zph_...

Setup

node scripts/configure.mjs --api-key "zph_..." --base-url "https://api.zaphook.cloud"

Non-interactive. Config saved to ~/.zaphook/config.json. If flags are omitted, falls back to interactive prompts (human use only).

Channels

Create Channel

RULE: Before collecting ANY data, first ask the user: manual or coexistence? If the user doesn't understand a term, read references/glossary.md. For channel type comparison and required fields, read references/channel-types.md. If the user needs help finding credentials, read references/how-to-get-credentials.md.

Manual: --name, --waba-id, --phone-number-id, --whatsapp-access-token [--webhook-secret] Coexistence: all above + --verify-token (required)

# Canal Manual (ZapHook como único BSP)
node scripts/create-channel.mjs --type manual --name "Meu Canal" --waba-id "WABAid" --phone-number-id "PhoneID" --whatsapp-access-token "token"

# Canal Coexistência (manter BSP atual + ZapHook)
node scripts/create-channel.mjs --type coexistence --name "Meu Canal" --waba-id "WABAid" --phone-number-id "PhoneID" --whatsapp-access-token "token" --verify-token "vt_xxx"

POST /api/public/v1/channels

List Channels

node scripts/list-channels.mjs [--type standard|coexistence|all] [--active true|false] [--name "search"]

GET /api/public/v1/channels

Get Channel

node scripts/get-channel.mjs --channel-id <uuid>

GET /api/public/v1/channels/{channel_id}

Update Channel

node scripts/update-channel.mjs --channel-id <uuid> [--name "New Name"] [--active true|false] [--webhook-secret "secret"]

PUT /api/public/v1/channels/{channel_id}

Delete Channel

node scripts/delete-channel.mjs --channel-id <uuid>

DELETE /api/public/v1/channels/{channel_id}

Channel Health (WABA Status)

node scripts/channel-status.mjs --channel-id <uuid>

GET /api/public/v1/channels/{channel_id}/status Returns: quality_rating, messaging_limit_tier, status, verified_name, platform_type

Destinations

List Destinations

node scripts/list-destinations.mjs --channel-id <uuid>

GET /api/public/v1/channels/{channel_id}/destinations

Create Destination

node scripts/create-destination.mjs --channel-id <uuid> --name "CRM" --url "https://..." [--method POST] [--timeout 30]

POST /api/public/v1/channels/{channel_id}/destinations

Update Destination

node scripts/update-destination.mjs --channel-id <uuid> --dest-id <uuid> [--name "New"] [--active true|false]

PUT /api/public/v1/channels/{channel_id}/destinations/{dest_id}

Delete Destination

node scripts/delete-destination.mjs --channel-id <uuid> --dest-id <uuid>

DELETE /api/public/v1/channels/{channel_id}/destinations/{dest_id}

Response Format

Success:

{ "data": { ... }, "meta": { "request_id": "uuid", "timestamp": "ISO8601" } }

Error:

{ "error": { "code": "INVALID_API_KEY", "message": "...", "details": null } }

Errors

Common: 401 (invalid key), 404 (not found), 422 (validation), 429 (rate limit). For details and suggestions, read references/error-codes.md.

Related skills

  • whatsapp-messaging — Send messages, templates, media
  • observe-whatsapp — Monitor events, logs, health checks

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.