The Admin API gives platform administrators the tools to monitor the overall health of Yeti Jobs and manage the relationship between users and companies. The dashboard provides a live count of every major entity in the system; the assign-user endpoint links a job seeker or recruiter to a company so they gain the company-employee role; and two search endpoints let admins quickly look up users and companies by partial name. All endpoints in this group require a validDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tech-dipesh/yeti-Jobs/llms.txt
Use this file to discover all available pages before exploring further.
token cookie issued to an account with the admin role — both authUserMiddleware and isAdminMiddleware are applied at the router level.
GET /api/v1/admin/verify
Verifies that the currently authenticated user holds theadmin role. Returns 200 Success for admins and 401 Unauthorized for all other roles. Use this endpoint to gate admin-only UI sections on the frontend without decoding the JWT client-side.
This route is registered with
router.use (not router.get), so it responds to all HTTP methods. The canonical usage is a GET request. Requires authentication and the admin role.GET /api/v1/admin/dashboard
Returns high-level platform statistics covering users, jobs, companies, applications, saved jobs, and verified email records.Requires authentication and the
admin role.Total number of registered users.
Total number of job listings ever posted.
Total number of registered companies.
Total number of job applications submitted.
Total number of bookmarked jobs across all users.
Total number of accounts with a confirmed email address.
POST /api/v1/admin/assign-user
Assigns an existing user to a company by setting theircompany_id column. Once assigned, the user gains the company-employee role and can access recruiter-only endpoints. A user who already belongs to a company cannot be reassigned without first clearing their company_id.
Requires authentication and the
admin role.UUID of the user to assign.
UUID of the target company.
GET /api/v1/admin/search/users
Searches for users by first name or last name using a case-insensitiveILIKE query. Returns a lightweight result set suitable for the admin user-picker UI.
Requires authentication and the
admin role.Partial first name or last name to search for, e.g.
jane.GET /api/v1/admin/search/company
Searches for companies by name using a case-insensitiveILIKE query.
Requires authentication and the
admin role.Partial company name to search for, e.g.
acme.