Kuantia CRM icon

Kuantia CRM

Interact with Kuantia CRM API

Actions65

Media → Media Controller Get Media Files

AI-generated

Overview

This node operation retrieves media files from the Kuantia CRM system based on various filtering and pagination options. It is useful for scenarios where users need to fetch media files associated with an account or conversation, filter by filename, MIME type, uploader, and control the number of results per page. For example, it can be used to list all images uploaded by a specific user or to paginate through video files in a conversation.

Use Case Examples

  1. Fetch media files scoped to an account with a limit of 20 items per page.
  2. Search for media files with filenames containing a specific keyword.
  3. Filter media files by MIME type such as 'image/' or 'application/pdf'.
  4. Retrieve media files uploaded by a particular user ID.

Properties

Name Meaning
Scope Filter media files by their scope, either 'account' or 'conversation'.
Search Search media files by filename containing the specified string.
Mime Type Filter media files by MIME type prefix, e.g., 'image/', 'video/', or 'application/pdf'.
Page Specify the page number for paginated results, starting at 1.
Limit Specify the number of media items to return per page.
Uploaded By Filter media files by the uploader's user ID.
Request Options Additional request settings such as batching, SSL certificate validation, proxy, and timeout.

Output

JSON

  • mediaFiles - Array of media file objects retrieved based on the applied filters and pagination.

Dependencies

  • Kuantia CRM API key credential

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to access media files.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If filtering by MIME type or uploader ID returns no results, verify the correctness of the filter values.
  • Adjust pagination parameters (page and limit) to avoid empty responses when navigating through large datasets.

Links

Discussion