All API requests require a Bearer token in the Authorization header.
API Key
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.lucid.foundation/v1/passports
SDK Authentication
import { LucidAI } from "raijin-labs-lucid-ai";
const lucid = new LucidAI({
bearerAuth: process.env.LUCID_API_KEY,
});
For passport ownership operations, include the X-Owner-Address header:
// The owner address links passports to a Solana wallet
const passport = await lucid.passports.create({
name: "my-model",
type: "model",
}, {
headers: { "X-Owner-Address": "YOUR_SOLANA_ADDRESS" }
});
Base URL
| Environment | URL |
|---|
| Production | https://api.lucid.foundation |
| Staging | https://staging.api.lucid.foundation |
Never expose your API key in client-side code. Use environment variables or a backend proxy.
Rate Limits
See Rate Limits for detailed information.