> ## Documentation Index
> Fetch the complete documentation index at: https://docs.athina.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dataset API Reference

You can create a dataset using the Athina API.

The API allows you to create a dataset with the following fields:

### Required Fields

<ParamField body="source" type="string" required>
  Source of the dataset creation. For creation via API, this field must be 'api'
</ParamField>

<ParamField body="name" type="string" required>
  Name of the dataset. Name must be unique. If dataset with the same name
  already exists, API will throw 400
</ParamField>

<ParamField body="description" type="string">
  Description of the dataset
</ParamField>

<ParamField body="dataset_rows" type="array">
  Rows of the dataset.

  <Tip>
    Currently, a dataset can have a maximum of 1000 rows. If the number of rows > 1000, API will throw 400
  </Tip>

  **Fields in a single dataset row**

  A dataset row can have any key-value pairs. Support data types for value are:

  * integer
  * string
  * boolean
  * object
  * array

  <Tip>
    Just make sure a particular key has the same type across all the rows.
    Otherwise API will throw 400 for failed validation. Example, if one of the
    keys is 'query', make sure 'query' has same data type across all the rows.
  </Tip>
</ParamField>
