Buscar Todas as Fotos
AI-generatedOverview
This node integrates with the PhotoRAG system, an AI-powered photo management service. It allows users to fetch all photos with optional filters, retrieve a specific photo by its ID, or validate the API key. It is useful for managing and accessing photo collections programmatically, including scenarios where detailed metadata or public URLs are needed, or when filtering photos by user ID (for Super Admins). For example, a user can retrieve up to a specified limit of photos including their URLs and metadata, or fetch detailed information about a single photo by its unique ID.
Use Case Examples
- Fetch up to 50 photos including URLs and metadata for a specific user (Super Admin).
- Retrieve detailed information and URLs for a single photo by its ID.
- Validate the API key to ensure the connection to the PhotoRAG service is working.
Properties
| Name | Meaning |
|---|---|
| Limite | Número máximo de fotos para retornar (limit) |
| Incluir URLs | Incluir URLs públicas e thumbnails das fotos (includeUrls) |
| Incluir Metadados | Incluir metadados detalhados das fotos (includeMetadata) |
| Filtrar por User ID (Super Admin) | Para Super Admin: filtrar fotos de um usuário específico (targetUserId) |
Output
JSON
json- Photo data or error message returned from the PhotoRAG API
Dependencies
- Requires an API key credential for the PhotoRAG API service
Troubleshooting
- If no credentials are provided, the node throws an error 'No credentials provided'. Ensure the API key credential is configured.
- If the API request fails, the node throws an error with the message from the HTTP request. Check network connectivity and API key validity.
- If an unknown operation is specified, the node throws 'Unknown operation' error. Verify the operation parameter is correct.
Links
- PhotoRAG API Documentation - Official API endpoint used by the node for photo management operations