API keys allow your applications to authenticate with Adaline’s API and SDK to access projects, prompts, send logs, run evaluations, and more.
Creating an API Key
- Click on Settings in the sidebar
- Click on API keys
- Click on Create API key
- Enter a descriptive name for the key
- Click on the generated API key to copy and paste in a secure location. It will not be visible again.
- Click Create key
Copy your API key immediately after creation. For security reasons, the full key is only shown once.
Using API Keys
In the SDK
import { Adaline } from "@adaline/sdk";
const adaline = new Adaline({
apiKey: "your-api-key"
});
In API Requests
Include the API key in the Authorization header:
curl -H "Authorization: Bearer your-api-key" \
https://api.adaline.ai/v2/prompts