API Reference
Backoffice APIs
Hova

Hova API Reference

Overview

The Hova API provides endpoints for image processing and format conversion in the TKM AI Agency Platform. It handles image uploads, processing, thumbnail generation, and HEIC format conversion.

Endpoints

Process Image

POST /process_image

Processes an uploaded image and generates thumbnails.

Request Body (multipart/form-data)

NameTypeRequiredDescription
fileFileYesThe image file to process
user_idstringYesThe user ID
session_idstringYesThe session ID
conversation_idstringYesThe conversation ID
organization_idstringNoThe organization ID (defaults to "tkm_123456")

Response

{
    "success": true,
    "data": {
        "thumbnail_path": "string",
        "original_path": "string",
        "metadata": {
            "dimensions": "string",
            "format": "string",
            "size": "string"
        }
    },
    "normalized_response": "string",
    "metadata": {
        "additional": "data"
    },
    "thumbnail_path": "organization_id/user_id/thumbnails/filename"
}

Convert HEIC

POST /convert_heic

Converts an HEIC image file to JPEG format.

Request Body (multipart/form-data)

NameTypeRequiredDescription
fileFileYesThe HEIC file to convert

Response

  • Content-Type: image/jpeg
  • Body: Binary JPEG image data

Error Responses

500 Internal Server Error

{
    "detail": "Error message"
}

Integration Notes

Image Processing Features

  • Thumbnail generation
  • Metadata extraction
  • Format conversion
  • Organization-based storage

File Management

  • Temporary file handling
  • Secure file cleanup
  • Path organization
  • Storage optimization

Format Support

  • HEIC to JPEG conversion
  • RGB color space handling
  • Quality preservation
  • Multiple format support

Integration with Other Agents

  • Humile: Response normalization
  • Niger: Storage management (optional)
  • Atta: Conversation context