wapi-nextjs
Installation
SKILL.md
Integrating wapi into a Next.js app
wapi exposes WhatsApp over a plain REST API and is wire-compatible with WasenderAPI.
- Base URL:
https://api.wapi.crafter.run - Per-endpoint reference (generated from the server's own contract):
https://api.wapi.crafter.run/docs - Raw OpenAPI spec:
https://api.wapi.crafter.run/openapi.json - Narrative guide, with worked examples:
https://wapi.crafter.run/docs
Fetch the OpenAPI spec if you need a field this skill does not cover — it is generated from the contract the server validates against, so it cannot drift from the implementation.
Work in this order. Steps 1–3 are always required; 4 and 5 are per-feature.
1. Decide which credential each call needs
Two token types go in the same Authorization: Bearer header and are not interchangeable.
Using the wrong one returns 403, not 401, which is the usual source of a confusing first
failure.