🚀
Quick Start
Start using the API in minutes with our ready-to-use SDKs.
📚
Available Endpoints
The UNIKHORN API offers two main endpoints:
-
✓
POST /coats/result
Calculates a horse's coat based on its genetics
-
✓
POST /coats/generateChild
Generates coat possibilities for offspring
💻
Quick Example
// JavaScript
import UnikhornSDK from 'unikhorn-sdk';
const client = new UnikhornSDK('your-api-key');
const result = await client.calculateCoat({
base: {
agouti: ['A','A'],
extension: ['E','E']
},
others: {
matp: ['n','n'],
dun: ['D','D']
}
});
console.log(result.translate); // "Chestnut"