Get Configuration
GET /v1/config
Retrieve your current account configuration.
Response
Models used when none are specified in requests.
Default classification threshold.
URL for webhook notifications (if configured).
Whether result caching is enabled.
Your current plan: free, pro, or enterprise.
curl https://api.tryveri.com/v1/config \
-H "X-API-Key: your-api-key"
{
"customerId": "cust_abc123",
"defaultModels": ["veri_face"],
"defaultThreshold": 0.5,
"webhookUrl": null,
"cacheEnabled": true,
"plan": "pro",
"credits": 4850
}
Update Configuration
PUT /v1/config
Update your account configuration.
Request Body
Set default models for detection requests.
Set default classification threshold (0-1).
Set webhook URL for notifications. Set to null to disable.
Enable or disable result caching.
curl -X PUT https://api.tryveri.com/v1/config \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"defaultThreshold": 0.7,
"webhookUrl": "https://your-app.com/webhooks/veri"
}'
{
"customerId": "cust_abc123",
"defaultModels": ["veri_face"],
"defaultThreshold": 0.7,
"webhookUrl": "https://your-app.com/webhooks/veri",
"cacheEnabled": true,
"plan": "pro",
"credits": 4850
}
Webhooks
When configured, webhooks are sent for:
- Batch job completion
- Credit balance alerts
Webhook Payload
{
"event": "batch.completed",
"timestamp": "2024-01-15T10:32:15Z",
"data": {
"jobId": "batch_xyz789abc",
"status": "completed",
"totalImages": 10,
"successCount": 9,
"failureCount": 1
}
}
Verifying Webhooks
Webhooks include a signature header for verification:
X-Veri-Signature: sha256=abc123...
Verify by computing HMAC-SHA256 of the request body with your webhook secret.