Postman Collection
Postman Collection
WisPanel ships two Postman collections (schema v2.1.0). Import the one for the API you target.
| Collection | Covers | Base URL var | Auth |
|---|---|---|---|
| WisPanel API v1 | the panel API on your server | base_url = https://YOUR_SERVER:3082 |
collection-level Bearer {{token}} (a wsp_ API key) |
| WisPanel Internal Admin API | the portal admin/CMS at wispanel.com | base_url = https://wispanel.com |
header X-Admin-Key: {{api_key}} |
Both ship in the SDK bundle alongside the PHP SDK.
WisPanel API v1 β structure (verified)
17 folders, 123 requests:
00 - Authentication (13) 09 - File Manager (10)
01 - Session & Audit (4) 10 - Cron Jobs (4)
02 - Users & Resellers (14) 11 - Backup & Restore (5)
03 - Domains (13) 12 - WordPress (4)
04 - DNS (6) 13 - Security (9)
05 - SSL Certificates (5) 14 - System & Services (12)
06 - Databases (5) 15 - Webhooks (5)
07 - Email (7) 16 - SSO (Cross-System Login) (4)
08 - FTP (3)
Variables: base_url, token, username (default john),
domain (default example.com), sso_nonce.
Setup
- Postman β File β Import β drop
wispanel-api.postman_collection.json. - Collection β Variables tab:
base_urlβ your panel, e.g.https://panel.example.com:3082tokenβ a full API key, e.g.wsp_6837c3a0ccf3feb8137516b425aef16bccf85254d76d2d39username/domainβ values the:username/:domainpath params use.
- Auth is set at the collection root (Bearer
{{token}}); every request inherits it. Public ones (login,/sso/consume,/sso/exchange) override to No Auth.
The key's permission scope is enforced (see Authentication). For the full collection to work the key needs
all; a narrowly scoped key returns403 "API key is not scoped for '<resource>' on this request".
Verified working example
GET {{base_url}}/api/v1/auth/me with the variables set returns
200 (live-tested):
{ "username": "admin", "email": "[email protected]",
"role": "admin", "status": "active", "package": "default" }
WisPanel Internal Admin API β structure (verified)
6 folders, 27 requests: Posts (5), Pages (5), Features (5), FAQs (5), Releases β Upsert + File Upload (4), Auth / Error samples (3).
Variables: base_url (default https://wispanel.com), api_key,
post_id, page_id, feature_id, faq_id, release_id.
Setup
- Import
wispanel-internal-admin-api.postman_collection.json. - Variables:
base_url(prodhttps://wispanel.com) andapi_key(your portalADMIN_API_KEYβ set per-environment, never commit). - Auth is the collection-level header
X-Admin-Key: {{api_key}}.
Verified live: GET {{base_url}}/api/v1/admin/pages?type=api_doc
returns 200 with the docs pages.
Idempotency-Key
Add an Idempotency-Key: {{$guid}} header on POST/PUT/PATCH/DELETE
requests to make retries safe (Postman's {{$guid}} generates a fresh
UUID). Replay semantics and the 409 IDEMPOTENCY_KEY_CONFLICT β
see Webhooks, Idempotency & OpenAPI.
Codegen / OpenAPI
GET /openapi.yaml (no auth) returns the OpenAPI 3.0 spec β import it
into Postman or any client generator instead of hand-mapping requests.
Issue an API key β Authentication. Error envelopes β Error Handling.