API Docs

List Projects

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

The API uses an API key to authenticate requests. You can view your API key in your team settings. 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://app.athenic.com/api/projects/<project_id>/generate-query

Query an existing project

The API uses an API key to authenticate requests. You can view your API key in your team settings. Projects must be created in the application before querying. This API request will generate a SQL query given an input question.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer {Your API Key}

Body

Name
Type
Description

question

string

Your input question you want answered

Response

Last updated