Athenic AI Docs
  • Getting Started
    • How to Get Started with Athenic AI
    • Connect a Data Source
    • New Project and Project Settings
    • Configure Data Source and Data Preparation
  • Getting Insights
    • Asking Questions
      • Question Tips
    • Using Projects
      • Suggested Questions
      • Key Terms
      • Follow-up Questions
      • Saving Tables and Charts to a Project
      • Modifying a Chart
        • Chart Basics
        • Advance Visualization Capabilities
      • Using the Dashboard
        • Editing a Dashboard
        • Using Dashboard Filters
        • Scheduling a Report
        • Share Dashboard
        • Viewing the Charts
      • Datasets
      • AI Training
  • Integrations & Application Connectors
    • SQL Databases
    • Data Warehouses
    • Files and Sheets
  • Collaboration and Management
    • Managing Projects
    • Managing Teams and Accounts
      • General Team Settings
      • Adding a New Team Member
      • Upgrade Subscription Plan
  • Developer Reference Materials
    • API Docs
Powered by GitBook
On this page
  • List Projects
  • Query Projects
  1. Developer Reference Materials

API Docs

List Projects

GET https://api.app.athenic.com/api/projects

The Athenic AI API uses API keys to authenticate requests. You can view your API keys in the Athenic AI dashboard. Projects must be created in the application. This API request will retrieve IDs and names for all projects owned by your team. You can then use any project_id to query that project.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer {Your API Key}

Response

{
    "projects": [{
                "project_id": project_id,
                "project_name": project_name,
                "created_at_date": created_at_date,
            }]
}

Query Projects

POST https://api.app.athenic.com/api/query/project-question

Query an existing project

The Athenic AI API uses API keys to authenticate requests. You can view your API keys on your teams settings page. Projects must be created in the application before querying. This API request will generate valid SQL given an input question / phrase, and the ID of the project to use.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer {Your API Key}

Body

Name
Type
Description

question

string

Your input question you want answered

project_id

string

An ID for which project we are querying

Response


{
        "query_id": "example_query_id",
        "question": question,
        "query_string": query_string, -- Query generated using datasets
        "full_query": full_query, -- Query with full SQL to create datasets
        "explanation": explanation, -- Explanation of what your query is doing
        "run_status": run_status, -- "success", "error", "empty"
        "warning": warning, -- Optional warning string for issue with query
}
PreviousUpgrade Subscription Plan

Last updated 1 year ago