# Get All Time Requests Retrieve all time requests for a specific workspace. Requires workspace_id as query parameter. Endpoint: GET /time-requests Version: 2.0.0 Security: oauth2, apiKey ## Query parameters: - `workspace_id` (integer, required) Workspace ID (required) Example: 1 - `status` (string) Filter by status. Must be one of: pending, approved, rejected Enum: "pending", "approved", "rejected" - `user_id` (integer) Filter by user ID - `project_id` (integer) Filter by project ID - `date_from` (string, required) Start date for filtering time requests (required). Format: YYYY-MM-DD. Must be before or equal to date_to. - `date_to` (string, required) End date for filtering time requests (required). Format: YYYY-MM-DD. Must be after or equal to date_from. - `id` (string) Filter by encrypted time request ID - `page` (integer) Page number for pagination - `per_page` (integer) Number of results per page (max 100) ## Response 200 fields (application/json): - `success` (boolean) Example: true - `data` (object) - `message` (string) - `meta` (object) - `meta.api_version` (string) Example: "2.0.0" - `meta.timestamp` (string) ## Response 400 fields (application/json): - `success` (boolean, required) - `message` (string, required) Error message describing what went wrong Example: "An error occurred" - `error` (string,null) Optional additional error details Example: "Internal Server Error" - `meta` (object, required) - `meta.api_version` (string) Example: "2.0.0" - `meta.timestamp` (string) ## Response 401 fields (application/json): - `success` (boolean, required) - `message` (string, required) Error message describing what went wrong Example: "An error occurred" - `error` (string,null) Optional additional error details Example: "Internal Server Error" - `meta` (object, required) - `meta.api_version` (string) Example: "2.0.0" - `meta.timestamp` (string) ## Response 500 fields (application/json): - `success` (boolean, required) - `message` (string, required) Error message describing what went wrong Example: "An error occurred" - `error` (string,null) Optional additional error details Example: "Internal Server Error" - `meta` (object, required) - `meta.api_version` (string) Example: "2.0.0" - `meta.timestamp` (string)