TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Taykl12/Classify/llms.txt
Use this file to discover all available pages before exploring further.
/api/calendar/events endpoint exposes two operations on calendar events. A GET request fetches every event associated with projects the authenticated user can access, ordered chronologically by event date. A POST request creates a new event within a specified project by invoking the create_evento_calendario Supabase RPC. Both operations require a valid Bearer token.
Authentication
All requests must include a valid Bearer token in theAuthorization header.
GET /api/calendar/events
Retrieves all calendar events for every project accessible to the authenticated user, sorted byfecha_evento ascending.
Request
Response
Returns a JSON array of event objects ordered bydate ascending.
Response fields
Unique identifier for the calendar event.
Display title of the event.
Optional description of the event.
null when not set.Date of the event in
YYYY-MM-DD format.Display name of the project this event belongs to.
Identifier of the project this event belongs to.
Always
"event". Provided for discriminated-union client-side typing.Optional priority associated with the event (e.g.
"Alta", "Media",
"Baja"). May be undefined when not set.Example response
Code examples
POST /api/calendar/events
Creates a new calendar event within a project by invoking thecreate_evento_calendario Supabase RPC.
Request
Request body
ID of the project to associate the new event with. Accepts both numeric and
UUID string formats.
Title of the event. Must be a non-empty string.
Optional description providing more context about the event.
Priority level for the event. Defaults to
"Media" when omitted.Date of the event in
YYYY-MM-DD format (e.g. "2024-09-10").Example request body
Underlying RPC call
The endpoint invokes thecreate_evento_calendario Supabase RPC, passing projectId, title, description, priority, and eventDate as arguments.
Response
Returns HTTP 201 Created with the newly created event row as returned by Supabase.Example response
Code examples
Error responses
| Status | Meaning |
|---|---|
400 | projectId, title, or eventDate is missing, or title is empty. |
401 | Missing or invalid Authorization header / token. |
500 | Unexpected server error or RPC failure. |