API Reference
TexasVerified implements Next.js route handlers underapps/web/src/app/api. Most are same-origin application routes authenticated by the Auth0 session cookie.
Authentication for native mobile routes uses Auth0 Bearer tokens. The web Worker verifies the JWT’s RS256 signature, issuer, audience, and lifetime before resolving the database-backed principal.
Set APP_ORIGIN to the origin of the deployment you are testing. No production app origin is asserted by this documentation.
Selected route surface
Public certificate lookup
The public lookup trims the certificate number, rejects empty or over-64-character values, and returns 404 when no public member record exists.Upload a Drive file
The upload handler expects multipart fields namedlocationId, section, and file. The section must be one of notice, form, coa, invoice, receipt, compliance_image, certificate, permit, agreement, or other.
The request requires a valid Auth0 session.
Auditor routes
Auditor routes are served fromapp/(audit) and use Auth0 Bearer token or session authentication:
GET /audit/locations— auditor’s requested locations ledgerGET /audit/locations/[grantId]— single-location compliance reviewGET /audit/tasks— auditor task listGET /audit/tasks/[taskId]— auditor single-task detail