ForkFit Docs
ServerAPI

Admin API Reference

API reference for system administration, background runner queues, and system audit logs.

Admin API Reference

Protected admin-only endpoints for managing background tasks and auditing operations. Requires a user session with the admin role.


1. System Jobs

List Background Jobs

GET /api/v1/admin/jobs

Returns status information for active job workers, scheduled notifications, and cache cleanups.


2. Audit Logs

List System Audit Logs

GET /api/v1/admin/audit-logs

Retrieves system action logs (session revokes, role alterations, permission creations) with user correlation details.


3. Raw Food Costs

List Raw Food Costs

GET /api/v1/admin/raw-food-costs

Returns a paginated list of food pricing rules matching a search query (?q=pattern).

Create Raw Food Cost

POST /api/v1/admin/raw-food-costs

Creates a new pricing rule for a pattern and auto-links matching unpriced food items.

Update Raw Food Cost

PUT /api/v1/admin/raw-food-costs/{id}

Updates an existing pricing rule pattern and price.

Delete Raw Food Cost

DELETE /api/v1/admin/raw-food-costs/{id}

Removes a pricing rule.

POST /api/v1/admin/raw-food-costs/link

Manually binds a specific food item to a raw food cost ID.

On this page