{
  "opencollection": "1.0.0",
  "info": {
    "name": "CharlieHR Company Leave / Absences API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://charliehr.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Leave / Absences",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List a team member's leave requests",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://charliehr.com/api/v1/team_members/:id/leave_requests",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the team member."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginated results."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of records to return per page."
              }
            ]
          },
          "docs": "Returns the leave requests for a specific team member."
        },
        {
          "info": {
            "name": "List leave requests",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://charliehr.com/api/v1/leave_requests",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginated results."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of records to return per page."
              }
            ]
          },
          "docs": "Returns all leave requests for the currently authenticated company. Supports pagination via the page and per_page query parameters."
        },
        {
          "info": {
            "name": "Get a leave request",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://charliehr.com/api/v1/leave_requests/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the leave request."
              }
            ]
          },
          "docs": "Returns a single leave request from the authenticated company."
        }
      ]
    }
  ],
  "bundled": true
}