DocsAPI ReferenceOverview
API Reference Overview
Complete technical reference for all endpoints exposed by the VeriLens REST API.
Base URLs
Choose the appropriate base endpoint based on your deployment environment:
text
Production: https://api.verilens.id/api/v1Development: http://localhost:8080/api/v1
Standard Request Headers
All requests sending a body must include appropriate content-type and authorization headers:
| Header | Required Value | Applicability |
|---|---|---|
| Content-Type | application/json | All POST / PATCH requests |
| Authorization | Bearer <access_token_or_api_key> | All protected endpoints |
System Endpoints Summary
Overview of all active REST routes in the VeriLens platform:
| Category | Method | Endpoint Path | Auth Required |
|---|---|---|---|
| Fact-Check | POST | /api/v1/predict | JWT or API Key |
| Fact-Check | POST | /api/v1/predict/deep | JWT or API Key |
| Fact-Check | GET | /api/v1/predict/deep/:id/status | JWT or API Key |
| History | GET | /api/v1/predictions | JWT or API Key |
| Auth | POST | /api/v1/auth/register | None |
| Auth | POST | /api/v1/auth/verify-otp | None |
| Auth | POST | /api/v1/auth/login | None |
| Auth | POST | /api/v1/auth/refresh | None (Refresh Token) |
| Auth | POST | /api/v1/auth/logout | None (Refresh Token) |
| Auth | GET | /api/v1/auth/me | JWT Only |
| API Keys | POST | /api/v1/api-keys | JWT Only |
| API Keys | GET | /api/v1/api-keys | JWT Only |
| API Keys | DELETE | /api/v1/api-keys/:id | JWT Only |
| Billing | GET | /api/v1/payments/packages | JWT Only |
| Billing | POST | /api/v1/payments/checkout | JWT Only |
| Billing | GET | /api/v1/payments/session/:id | JWT Only |
| Billing | GET | /api/v1/payments/credits | JWT Only |
| System | GET | /health | None |
