ghl_affiliate_list_media
List and retrieve affiliate media files and folders for a GoHighLevel location, with pagination and filters for name, type, parent folder, campaign, and sort order.
Instructions
List affiliate media Retrieve media files and folders for a location. Endpoint: GET /affiliate-manager/{locationId}/media (Version header: v3; source: v3/affiliate-manager-v3.json) Requires a Sub-Account (location) token. OAuth scopes: affiliate-manager.readonly Pagination params: skip, limit — pass them to page through full result sets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of records to skip | |
| limit | No | Maximum number of records to return. Maximum allowed value is 100. | |
| query | No | Search media by name | |
| parentId | No | Filter media by parent folder | |
| mediaType | No | Filter by media type | |
| campaignId | No | Filter media by campaign | |
| locationId | Yes | Location Id | |
| showGlobal | No | Show image set for global campaign | |
| sortByType | No | Sort order for returned media | updatedAt-newest |