Skip to content
GET /v1/auxiliary

Auxiliary amount from g/L

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/dye-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/dye-api/v1/auxiliary" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dye-api/v1/auxiliary", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dye-api/v1/auxiliary");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/dye-api/v1/auxiliary",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Auxiliary amount = the bath volume × the dosing concentration in grams per litre — the way salt, soda ash, levelling agent and other auxiliaries are dosed. Salt (50–80 g/L) drives reactive and direct dyes onto cotton; soda ash (10–20 g/L) raises the pH to fix them. Because it is dosed per litre of bath, the same g/L gives the same chemistry at any scale once the bath volume is set from the liquor ratio.",
        "inputs": {
            "bath_volume_l": 5,
            "concentration_g_per_l": 50
        },
        "auxiliary_g": 250
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:56.191Z",
        "request_id": "c8397d10-eeaf-47f9-82db-a9f44cf6b8d5"
    },
    "status": "ok",
    "message": "Auxiliary amount",
    "success": true
}