This page documents all available API endpoints in the Kokos Laravel application. Endpoints are organized into two categories:
REST API Endpoints
External API routes under /api/* for integrations, webhooks,
and programmatic access. Authentication varies per group.
Internal Web API Endpoints
JSON/HTMX endpoints within web routes that return data for frontend components. Require session authentication.
Authentication Methods
| Method | Header | Description |
|---|---|---|
| AI Workflows Token | Authorization: Bearer {token} |
Bearer token for AI/automation integrations. Set via AI_WORKFLOWS_API_TOKEN env var. |
| DMCA Token | X-DMCA-Token: {token} |
DMCA-specific token for content takedown API. Set via DMCA_TOKEN_SECRET env var. |
| Webhook Signature | Varies by provider | HMAC signature verification for GitHub, UpDown.io webhooks. |
| Session | Cookie-based | Google OAuth session via RouteAccessMiddleware. Used by internal web API endpoints. |
| None | - | Public endpoint, no authentication required. |
Base URL
All API routes are prefixed with /api.
The base URL depends on the environment:
Production: https://kokos.xyz/api Development: https://dev.kokos.xyz/api Local: http://localhost:8000/api