Skip to main content

Create a Dataset

  • Method: POST
  • Endpoint: https://api.athina.ai/api/v1/dataset_v2
  • Headers:
    • athina-api-key: YOUR_ATHINA_API_KEY
    • Content-Type: application/json
  • Body: See the full list of request body parameters here.
Sample Request Body
Sample Response

Add Rows to a Dataset

First head to https://app.athina.ai/develop and create a dataset. Then, you can use the dataset ID to add rows to the dataset.
  • Method: POST
  • Endpoint: https://api.athina.ai/api/v1/dataset_v2/:dataset_id/add-rows
  • Headers:
    • athina-api-key: YOUR_ATHINA_API_KEY
    • Content-Type: application/json
You can get the dataset_id from the dataset URL in the browser, or from the response of the create request.
Sample Request Body
Sample Response
A dataset can have a maximum of 1000 rows. If the number of rows > 1000, the API will throw a 400 exception.
A dataset row can have any key-value pairs. Support data types for value are:
  • integer
  • string
  • boolean
  • object
  • array
Each field must be of the same type across all rows in the dataset.For example, if one of the fields in a row is called query and is of type string, then all rows with the field query must be of type string.