Authentication
Generate and configure your Picadabra API key.
Get Your API Key
Sign in to Picadabra
Go to picadabra.ai and sign in or create an account.
Open Dashboard
Click Dashboard in the top-right corner of the page.
Navigate to API Keys
In the sidebar, click API Keys.
Create new key
Click + Create new key to generate a new API key.
Copy your key
Copy the generated key immediately and store it securely.
Never commit your API key to version control or share it publicly. The full key is only shown once.
Using Your API Key
Pass your API key when creating the client:
import { } from '@picadabra/client'
const = ({
: 'your-api-key',
})Environment Variables
For production apps, use environment variables:
const = ({
: ..,
})PICADABRA_API_KEY=your-api-key-hereDynamic Token Retrieval
For apps with user authentication, pass a function to retrieve the token dynamically:
const = ({
: async () => {
return await ()
},
})How is this guide?