Getting Started
Get your first device connected in under 15 minutes.
Prerequisites
Before you begin, you'll need:
- A PunchConnect account ()
- A ZKTeco-protocol biometric device
- Your device's serial number
How It Works
PunchConnect is a REST API. You interact with it using HTTP requests — no SDK required. Use Postman, cURL, or any HTTP client in your language of choice (PHP, Python, Node.js, etc.).
Base URL: https://api.punchconnect.com/api/v2/zk
List Your Devices
Once your devices are registered through the dashboard, use the API to list them and start interacting.
bash
curl https://api.punchconnect.com/api/v2/zk/devices \
-H "X-CLIENT-ID: your_client_id" \
-H "X-CLIENT-SECRET: your_client_secret" \
-H "Accept: application/json"Authentication
All API requests are authenticated using two headers: your client ID and client secret. Get these from the PunchConnect dashboard.
| Header | Description |
|---|---|
X-CLIENT-ID | Your API client ID |
X-CLIENT-SECRET | Your API client secret |
Content-Type | application/json |
Accept | application/json |
Error Codes
PunchConnect uses standard HTTP status codes. All errors return a consistent JSON body.
json
{
"error": {
"code": "device_not_found",
"message": "No device found with serial CZKT2024099",
"status": 404
}
}| Status | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad request — check your parameters |
| 401 | Unauthorized — invalid or missing API key |
| 404 | Not found — resource doesn't exist |
| 429 | Rate limited — slow down requests |
| 500 | Server error — retry or contact support |