Appearance
Postman Collection
Test the CubeConnect API directly from Postman with our official collection.
Download
Download CubeConnect.postman_collection.jsonOr import directly using this URL:
https://docs.cubeconnect.io/CubeConnect.postman_collection.jsonWhat's Included
| Folder | Requests | Description |
|---|---|---|
| Health Check | 1 | Platform health status (no auth) |
| Messages | 3 | Send template (with/without params), Arabic template |
| Conversations | 2 | List and get conversations |
| Customers | 2 | List and get customers |
| Templates | 2 | List and get templates |
| Error Examples | 3 | Test 401, 422 error responses |
Total: 13 requests with saved example responses.
Setup
1. Import the Collection
- Open Postman
- Click Import (top left)
- Drag the downloaded JSON file or paste the URL
- Click Import
2. Set Your API Key
- Click the CubeConnect API collection name
- Go to the Variables tab
- Set
api_keyto your API key from the dashboard - Set
phoneto a valid WhatsApp number (e.g.,+966501234567) - Click Save
| Variable | Default | Description |
|---|---|---|
base_url | https://cubeconnect.io | API base URL |
api_key | YOUR_API_KEY | Your API key |
tenant_id | (empty) | Optional — for multi-tenant accounts |
phone | +966501234567 | Default recipient phone |
3. Start Testing
Click Send on any request. Start with Health Check to verify connectivity.
Quick Test Flow
- Health Check — Verify the platform is running
- Send Template (no params) — Send a simple template (works anytime)
- Send Template (with params) — Send a template with parameters
- List Conversations — View your conversations
- Error Examples — See how errors are returned
Multi-Tenant
If your account uses multi-tenant mode:
- Set the
tenant_idvariable - The collection auto-injects
X-TENANT-IDheader via a pre-request script
Authentication
The collection uses Bearer Token authentication at the collection level. All requests inherit it automatically.
To test with X-API-KEY header instead:
- Set collection auth to No Auth
- Add header
X-API-KEY:to individual requests
Error Testing
The Error Examples folder contains ready-made requests that intentionally trigger errors:
- 401 — Invalid API Key: Uses a fake key
- 401 — No API Key: Sends without authentication
- 422 — Validation Error: Sends empty required fields
Use these to test your error handling logic.