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

project_names: A dictionary of projects by their ID. Projects have a name attribute.

{
    "project_id_example": {
        "name": "My Project",
        "is_owner": true,
        "created_at": "Oct 06, 2023"
    }
}

Request:

import http.client

conn = http.client.HTTPSConnection("api.app.athenic.com")

headers = { 'Authorization': "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrIjoiQjZSU0lpRTkifQ.p54KkQWA0icjiKusC6-Odhuii_Y9vbZeaNsJN5PBbEs" }

conn.request("GET", "/api/projects", "", headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

Last updated