API Reference
FridayOS internal API. All authenticated endpoints require a valid operator session. External integrations use webhooks or the public REST surface.
withSecurity() middleware which validates the session token from the Authorization: Bearer <token> header. Webhook endpoints are intentionally unauthenticated — they verify signatures instead.Missions
List all missions. Optionally filter by workspace.
Create a new mission.
{ title, workspaceId, ownerId, goal?, assignedAgents? }Agents
Read conversation turns for an agent + workspace.
Fetch the full workspace view model for an agent: status, transparency feed, confidence.
Send a named action to the agent workspace (e.g. resume, pause, inject).
{ agentId, workspaceId, action: "resume" | "pause" | "inject" }Jobs
List all runtime jobs, or fetch one by ID.
Create a new runtime job.
{ title, agentId, workspaceId, summary? }Activities & Ledger
List activities. Optional single-item lookup by ?id=.
Record a new activity.
{ title, agentId, workspaceId }List ledger items or fetch one by ?id=.
Create a new ledger item.
{ title, agentId, workspaceId, detail? }Artifacts
List all runtime artifacts (not studio artifacts).
Upload a file as a runtime artifact. Accepts multipart/form-data.
multipart/form-data: file (required), name?, kind?, agentId?, workspaceId?, summary?
Studio
Simulate artifact generation (mock). Returns a StudioArtifact with 'completed' status.
{ prompt, type: "image"|"video"|"voice"|"code"|"doc", agentId, workspaceId, preferredProviderId? }Attempt live artifact generation. Falls back to dry-run if gateway unavailable.
{ prompt, type, agentId, workspaceId, preferredProviderId?, size?, quality? }Reviews
List pending and completed reviews.
Create a new review request.
{ missionId, artifactId, reviewerId, verdict: "pending"|"approved"|"rejected"|"needs_changes" }Governance
Evaluate a proposed action against the firewall policy.
{ agentId, workspaceId, action, resource? }Submit an approval decision for a pending review.
{ reviewId, verdict: "approved"|"rejected"|"needs_changes", reviewerId, reason? }Webhooks
Health check for the GitHub webhook endpoint.
Receive GitHub webhook events. Verifies HMAC-SHA256 signature if WEBHOOK_SECRET is set.
Providers
Health and configuration status of all registered providers.
Send a test prompt to a provider and return the response.
{ providerId, model?, prompt, stream? }Runtime
Aggregated runtime stats: jobs, activities, artifacts, adapters, runner.
Usage events aggregated by workspace, day, and provider.