REST API Reference
Complete API documentation for Veriafy integration
Base URL
https://api.veriafy.com/v1For self-hosted deployments, replace with your server URL.
Authentication
All API requests require authentication via API key in the header:
Authorization: Bearer sk-your-api-keyEndpoints
POST
/classifyClassify a file using a Veriafy model.
Request Body
{
"file": "base64-encoded-file-content",
"model": "veriafy/nsfw-classifier",
"threshold": 0.5
}Response
{
"success": true,
"data": {
"vector_id": "v_abc123def456",
"categories": { "safe": 0.98, "explicit": 0.02 },
"confidence": 0.98,
"action": "allow"
}
}POST
/classify/batchClassify multiple files in a single request.
POST
/extractExtract Veriafy Vector without classification.
GET
/modelsList available models.
GET
/healthCheck API health status.
Error Codes
| Code | Description |
|---|---|
| 400 | Bad request - invalid parameters |
| 401 | Unauthorized - invalid API key |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Rate Limits
| Plan | Requests/min |
|---|---|
| Free | 60 |
| Pro | 300 |
| Enterprise | Custom |