Authentication
Jabrod uses two types of authentication depending on what you are trying to do:- Session Authentication: Used for dashboard operations (creating pipelines, adding data sources). This is handled automatically by the web application.
- API Key Authentication: Used exclusively for querying a specific pipeline via the
/api/rag/queryendpoint.
RAG Query API Keys
To query a pipeline from your own application, you must use a RAG API key.Getting an API Key
API keys are scoped to specific pipelines. To get one:Navigate to your Pipeline
Go to agent.jabrod.com, open Pipelines, and select your pipeline.
Using Your API Key
Include your API key in theAuthorization header when calling the query endpoint:
Security Best Practices
Never expose keys in client-side code
Never expose keys in client-side code
API keys should only be used in server-side code (e.g., your backend server, Next.js API routes). Never include them in frontend JavaScript where users can see them.
Use environment variables
Use environment variables
Store API keys in environment variables (
.env), not in your codebase.Key Scoping
Key Scoping
A
rag_ key only grants access to query the specific pipeline it was created for. It cannot be used to modify pipelines, delete data, or query other pipelines.