API Reference
Every ProxyBox has two base URLs — one for local access and one for remote access. The API works identically on both.
| Access | Base URL |
|---|---|
| Local (same network) | https://pbx-<id>.pbxz.io/api/v1 |
| Remote (anywhere) | https://pbx-<id>.pbxz.cloud/api/v1 |
Replace <id> with your 4-character device ID (found on the sticker on your device). The .cloud URL routes through an encrypted tunnel — no VPN or port forwarding required. See Remote Access for details.
Authentication
Section titled “Authentication”All requests must include your API key in the X-API-Key header. You can find and regenerate your API key on the admin page under Settings.
X-API-Key: YOUR_API_KEYResponse Format
Section titled “Response Format”All endpoints return a standard JSON envelope:
| Field | Type | Description |
|---|---|---|
status | string | "success" or "error". |
statusCode | number | HTTP status code. |
result.module | string | The route that handled the request. |
result.message | string | Human-readable status message. |
result.content | object | null | Response payload (varies by endpoint). |
Error Responses
Section titled “Error Responses”All endpoints may return an error in this format:
{ "status": "error", "statusCode": 400, "result": { "module": "/status", "message": "An error occurred.", "content": "A specific error occurred." }}OpenAPI Specification
Section titled “OpenAPI Specification”The full OpenAPI 3.1 specification is available for programmatic consumers at openapi.json.