Skip to main content
Was this helpful?

API Overview

PrimeCal API Reference

The Non-Admin API Map

This reference is built directly from the backend controllers and DTOs. It documents the user-facing and integration-facing API surface and intentionally excludes the admin controllers and admin-only routes.

Base path: /apiJWT, cookie, API key, and agent authCode-backed DTO constraintsAdmin surface excluded

Scope

  • Included: non-admin controllers and non-admin product routes
  • Excluded: /api/admin/* controllers and non-/admin routes that are protected with AdminGuard
  • Source of truth: NestJS controllers, DTOs, and guard behavior in backend-nestjs/src

Base URL and Auth Model

TopicNotes
Base pathAll examples assume /api
Swagger UIGenerated Swagger can be served at /api/docs when enabled
Browser sessionsUse refresh cookies plus CSRF for mutating requests
Bearer authAuthorization: Bearer <token>
User API keysSupported on routes guarded by JwtAuthGuard; send x-api-key or Authorization: ApiKey <token>
Agent keysRequired for MCP runtime; send x-agent-key, x-agent-token, or Authorization: Agent <token>

Product-Area Reference Map

PageProduct areaHighlights
Authentication APIAuthenticationregister, login, onboarding, MFA, OAuth, user API keys
User APIUser and profileprofile settings, language, permissions, user search
Personal Logs APIPersonal logsaudit feed and summary
Compliance APIPrivacy and complianceexports, requests, consents, policy acceptance
Calendar APICalendarcalendars, groups, sharing
Event APIEventsevent CRUD, recurrence, comments
Tasks APITaskstasks, labels, filtering
Automation APIAutomationrules, audit logs, approvals, webhook trigger
External Sync APIExternal syncprovider status, OAuth, mappings, force sync
Agent APIAI agents and MCPagents, scopes, keys, MCP runtime
Notifications APINotificationsinbox, preferences, rules, mutes, threads
Organization APIOrganizationsmembership, roles, color, deletion preview
Resource APIResourcesresource types, resources, public tokens
Booking APIReservations and public bookingreservation calendars, reservations, public booking
Platform APIPlatformhealth, flags, metrics, security reports

Quick Start Examples

Bearer auth

export PRIMECAL_API=https://api.primecal.eu
curl "$PRIMECAL_API/api/calendars" \
-H "Authorization: Bearer $TOKEN"

User API key

curl "$PRIMECAL_API/api/tasks" \
-H "Authorization: ApiKey $USER_API_KEY"

Agent key

curl "$PRIMECAL_API/api/mcp/actions" \
-H "Authorization: Agent $AGENT_KEY"

Best Practices

  • Group client code by product area, not just by controller path.
  • Use the DTO constraints in these pages as your request-contract source of truth.
  • Treat admin-only routes as a separate documentation surface.
  • Build integration UIs from live catalog endpoints where they exist, such as automation smart values or the agent catalog.