Authentication

All requests to NotDatabase are scoped to a specific database. You authenticate with an API key tied to that database.

Keep your API keys secret! Never expose them in client-side code or public repositories.

Getting your API key

You can generate and manage API keys from your NotDatabase dashboard. Go to Dashboard > Databases > API Keys to create a new key or view existing ones.

Using your API key in the SDK

Pass your API key to the SDK when creating your client:

import { createClient } from "notdb";
      
const db = createClient({
  apiKey: "api_key",
  schema: { /* ... */ },
});

All requests made with this client will be authenticated using your API key.