# Retrieves a paginated list of software packages Fetches software packages with optional filters for platform, search text, and pagination. Returns package metadata including name, size, license type, creator, and creation time. ## Endpoint `GET /dcapi/swDeployment/packages` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/swDeployment/packages` ### Scope `SWDeployment.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` — **Mandatory** - `application/packages.v1+json` ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/swDeployment/packages \ --header 'Accept: application/packages.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP 200 #### Response Body `application/json` - `JSON Object` - **totalCount** `integer` - Total number of packages matching criteria - **has_more_records** `boolean` - true if more records exist beyond the current offset+limit, false otherwise - **packages** `JSON Array` - Array of package summary entries #### Sample Response Paginated package list ```json { "has_more_records": true, "totalCount": 42, "packages": [ { "licenseType": "Non-Commercial", "createdBy": "admin", "packageId": 10001, "createdTime": 1713264000000, "packageName": "7-Zip 23.01 x64", "packageSize": 1523712, "platform": "Windows" } ] } ``` ### HTTP 500 #### Response Body `application/json` - `JSON Object` - **errorCode** `string` - INTERNAL_ERROR for DB query failures, SW_INTERNAL_ERROR for package operation errors - **errorMessage** `string` - Internal server error with details about the package retrieval or execution status failure #### Sample Response Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "INTERNAL_ERROR" } ``` ### Possible Response Codes - **200** — HTTP code - **500** — HTTP code ## Rate Limit ![ ](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.