Authentication
The Florentine.ai API uses an API key to authenticate requests. You can view and manage your API key on your Florentine.ai Dashboard:

Your API key has the prefix florentine-ai-
. When you click on Show
you are able to copy your key once. After copying, you are not able to see your key again, so make sure you store it in a safe and secure place!
This key must be added to the request header as florentine-token
to every request when using the API. When using the Node.js client you add the key when creating an instance of Florentine:
ts
import { Florentine } from "@florentine-ai/api";
const FlorentineAI = new Florentine({
florentineToken: "<FLORENTINE_API_KEY>"
});
bash
curl https://nltm.florentine.ai/ask \
-H "content-type: application/json" \
-H "florentine-token: <FLORENTINE_API_KEY>" \