Axis Camera Protocol
VAPIX is an HTTP-based API provided by Axis Communications. The VAPIXClient communicates with cameras over HTTP/HTTPS using standard request/response patterns.
Authenticationβ
Camera communication is authenticated using basic auth credentials:
- Credentials are stored encrypted in the platform's data store
IEncryptionServicedecrypts credentials before each camera interaction- Credentials are passed as HTTP basic auth headers
Custom Headersβ
The VAPIXClient uses custom headers for advanced features:
| Header | Purpose |
|---|---|
X-Axis-ACAP-AWF-PTZF | Request PTZ position data in AWF image response |
AWF vs. Standard APIβ
Axis cameras support two image capture methods:
AWF (Advanced Web Framework)β
- Provides higher-quality images with embedded metadata
- Returns PTZ position data in the response
- Preferred method β used as the primary capture path
- Requires the AWF ACAP application to be installed on the camera
Standard VAPIX APIβ
- Basic JPEG image capture
- Does not include PTZ metadata in the image response
- Used as a fallback when AWF is unavailable or fails
Latency Trackingβ
The VAPIXClient tracks communication latency via Application Insights:
- Each camera interaction records request duration
- Helps identify cameras with poor network connectivity
- Enables performance dashboards and alerting