Skip to main content

Overview

The Jedify REST API lets you query your business data programmatically. Submit natural language questions, and Jedify translates them to SQL, executes them against your data warehouse, and returns structured answers with data. Base URL: https://be.jedify.com/api

Authentication

All API requests require an API key passed in the X-API-Key header.

Getting an API Key

  1. Log in to the Jedify app
  2. Navigate to Settings > API Keys
  3. Click Create API Key and give it a name
  4. Copy the key immediately — it is only shown once

Using the API Key

Include it as a header in every request:

How It Works

The API is asynchronous. You submit a question and it processes in the background (typically 10-30 seconds). There are two ways to get the result: The /result endpoint holds the connection open until the inquiry completes. Simplest approach — one call, one response.
The server polls internally and returns the full result once ready. If the inquiry doesn’t complete within the timeout (default 300s, max 900s), you get a 408 response — retry with a fresh /result call.

Option B: Client-side polling

Poll the /status endpoint yourself. Useful when you need progress updates or want control over retry logic.
Poll every 3-5 seconds. Check status.general — when it’s no longer "processing", the inquiry is complete. See Status Values for all terminal states.

Key concepts

Sessions group related questions together, enabling follow-up queries with shared context. Create a new session for each independent question, or reuse one for follow-ups. Inquiries are individual questions within a session. After submitting, the pipeline runs in the background. The inquiry_id is your handle to track it.

Quick Start

Python

curl

Requires jq for JSON parsing.

JavaScript

Important Notes

  • Answers may contain HTML (e.g., <b>bold</b> tags). Strip HTML if you need plain text.
  • Set your HTTP client timeout to exceed the server timeout parameter on /result. If you request timeout=120, set your client timeout to at least 130 seconds.
  • Sessions created via API key don’t appear in the Jedify UI session history.

Error Handling

All error responses have the shape: