art2xml API Overview

The art2xml API provides a simple and secure way to convert art assets into XML formats for vector and metadata workflows.

Endpoint Prefix

https://api.elnhnh.com/art2xml/v1

Authentication

Bearer Token in Authorization header

Core Endpoints

POST /convert

Convert uploaded art assets to XML format (SVG, JSON, etc).

Request Body
{
  "format": "svg",
  "asset": "base64_encoded_art_data",
  "options": {
    "scale": 1.0,
    "include_metadata": true
  }
}
                        
Response
{
  "converted_data": "xml_data_here",
  "format": "svg",
  "status": "success",
  "metadata": {
    "created_at": "2025-09-13T12:34:56Z",
    "art_type": "digital_illustration"
  }
}
                        

GET /metadata/{id}

Retrieve processing metadata for completed conversions.

Path Parameters
  • id (string): Unique conversion ID

Authentication

Use a Bearer Token from your developer account through API keys:

Add your API Key as a Bearer token in the Authorization header:

Authorization: Bearer {your_api_key}
Create an API Key →

Common Errors

401 Unauthorized

Invalid or missing Bearer token

400 Bad Request

Missing required parameters in request body