Authentication
The Color API uses Bearer token authentication. Include your API key in the Authorization header of each request.
Getting Your API Key
Section titled “Getting Your API Key”- Sign up at color.koval.dev/auth/signup
- Email m@koval.dev from the address you signed up with, and we’ll send you a key
A self-serve dashboard for creating and revoking keys is on its way.
Using Your API Key
Section titled “Using Your API Key”Include the API key in the Authorization header:
curl "https://color.koval.dev/v1/convert?value=%23ff0000" \ -H "Authorization: Bearer your_api_key_here"Example Response
Section titled “Example Response”{ "input": "#ff0000", "formats": { "hex": "#FF0000", "rgb": { "r": 255, "g": 0, "b": 0 } }}API Key Security
Section titled “API Key Security”- Never expose your API key in client-side code
- Store keys securely in environment variables
- Rotate keys periodically: email m@koval.dev for a new key and we’ll revoke the old one
OAuth Support
Section titled “OAuth Support”Coming soon: GitHub OAuth sign-in for easier authentication.