Authentication
All endpoints require a Bearer token in the Authorization
header. Advanced‑tier customers can generate API keys in My Account → New API Key.
# Example (bash)
export API_KEY="<your-key>"
Pcap AI Advanced REST API
Automate PCAP analysis & PDF report generation
All endpoints require a Bearer token in the Authorization
header. Advanced‑tier customers can generate API keys in My Account → New API Key.
# Example (bash)
export API_KEY="<your-key>"
Upload a .pcap
or .pcapng
file. Returns a UUID you will use to poll job status and download the PDF.
Authorization: Bearer <API_KEY>
multipart/form-data
with field file
curl -X POST \ \
-H "Authorization: Bearer $API_KEY" \ \
-F "file=@capture.pcap" \ \
https://pcapai.com/api/v1/upload
{ "id": "d95f1a35-e923-4e7e-bd9c-3735f4b8b3ac" }
Poll processing status. When your PDF is ready it returns { "status": "done" }
; otherwise you’ll receive 404 Not Found
.
Authorization
id=<UUID>
curl -H "Authorization: Bearer $API_KEY" \
"https://pcapai.com/api/v1/check?id=$UPLOAD_ID"
{ "status": "done" }
Streams the PDF report inline. Default filename is <id>.pdf
. Remember that files are retained for only 60 minutes.
Authorization
id=<UUID>
curl -L -H "Authorization: Bearer $API_KEY" \
-o report.pdf \
"https://pcapai.com/api/v1/download?id=$UPLOAD_ID"
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: inline; filename="<id>.pdf"