Evidence API
- skill
hev-evidence- api
/v1/evidence/*
The evidence API is the hosted form of evidence, kit’s
immutable proof packages for screenshots, screen recordings and text artifacts.
In OSS, packages live under ~/.hev/evidence/ on each host; in Pro, hev evidence
streams blobs and manages packages through /v1/evidence.
| Route | Does |
|---|---|
GET /v1/evidence | List evidence packages |
POST /v1/evidence | Create an evidence package (open or sealed) |
GET /v1/evidence/{id} | Read a package manifest and items (returns strong ETag) |
PATCH /v1/evidence/{id} | Edit or seal an open package (owner only, requires If-Match) |
PUT /v1/evidence/{id}/evaluation | Update outcome/evaluation metadata (enrolled evaluator) |
GET /v1/evidence/blobs | Read blob size limits, duration limits and accepted MIME types |
POST /v1/evidence/blobs | Upload a blob directly (up to 10 MiB; text redacted before storage) |
POST /v1/evidence/blobs/uploads | Initiate a staged upload for large videos (10–100 MiB) |
POST /v1/evidence/blobs/uploads/{id} | Verify and finalize a staged upload |
GET /v1/evidence/blobs/{sha256} | Fetch a stored blob by SHA-256 |
Packages
An evidence package carries a title, state (open or sealed), optional links
to an order and session, claims, and up to 64 items. Each item references
a previously uploaded blob by sha256, or supplies inline text (which the
server redacts and stores as a blob).
List packages
curl -s "https://kit.hevmind.com/v1/evidence?limit=20" \
-H "Authorization: Bearer $HEV_API_KEY"
Uses the standard cursor / limit pagination shape.
Create a package
curl -s https://kit.hevmind.com/v1/evidence \
-H "Authorization: Bearer $HEV_API_KEY" \
-H "Idempotency-Key: ev-01example" \
-H "Content-Type: application/json" \
-d '{
"title": "Login redirect check",
"order": "fix-login-redirect",
"state": "sealed",
"items": [
{ "name": "result.txt", "modality": "text", "text": "POST /login -> 302 /billing" }
]
}'
Creates accept an Idempotency-Key header and return 201 Created with a
Location: /v1/evidence/{id} header (replays return 200 OK).
Edit, seal and evaluate
- Edit or seal (
PATCH /v1/evidence/{id}): Open packages can be edited or sealed by their owner. Send the strongETagfromGET /v1/evidence/{id}inIf-Match; a staleETagreturns412 Precondition Failed. - Evaluate (
PUT /v1/evidence/{id}/evaluation): An enrolled evaluator can conditionally attach or update outcome metadata on an open or sealed package without altering its content digest, timestamps or blobs.
Blobs and staged uploads
Check active limits and accepted media types with GET /v1/evidence/blobs:
- Direct upload (
POST /v1/evidence/blobs): Accepts up to 10 MiB (5 MiBfortext/plain, up to60sfor video). Media type is sniffed from the bytes (text/plain,image/png,image/jpeg,image/gif,image/webp,video/mp4,video/webm,video/quicktime). Text is redacted before storage; attach items using the returnedsha256. - Staged video upload (
POST /v1/evidence/blobs/uploads): When staged uploads are enabled, videos over 10 MiB up to 100 MiB stream directly to private object storage using a short-lived presigned grant, then finalize throughPOST /v1/evidence/blobs/uploads/{id}where the API verifies the bytes before attaching. - Download (
GET /v1/evidence/blobs/{sha256}): Streams the verified blob.