Documentation

API URL


GET /api/v1/calendar/month

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET https://datpaq.com/api/v1/calendar/month?api_key=your-api-key&year=2026&month=8

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "date": "2026-06-29",
    "year": 2026,
    "month": 6,
    "day_name": "Monday"
  },
  "meta": {
    "timezone": "UTC"
  },
  "correlationId": "4a4a0dc0-52ea-4c9f-89c7-3c0c4c6d4f2a"
}

Error Response

Example
Code
400 ValidationError - Invalid query values semantic checks or malformed custom_holidays input: Returns structured validation error with details array
401 AuthenticationError - Gateway rejects missing or invalid API key: Request denied before business handler returns success payload
403 AuthorizationError - Gateway blocks authenticated caller by policy: Request denied by access control policy
404 NotFound - Route not implemented: Returns Endpoint not found response
429 RateLimitExceeded - Limit exceeded on /api/* window: Returns Too many requests with retryAfter
502 UpstreamUnavailable - Public holiday source required and upstream call fails: Returns Holiday source unavailable error
500 InternalError - Unhandled runtime failure in route handler: Returns endpoint specific failure message

Last Updated:  May 4, 2026