Skip to main content
GET
/
api
/
v1
/
date-range
Get Date Range
curl --request GET \
  --url https://api.athenahq.ai/api/v1/date-range \
  --header 'x-api-key: <api-key>'
{
"min_date": "2024-01-15T08:20:17.844Z",
"max_date": "2024-12-01T14:30:45.123Z"
}

Authorizations

x-api-key
string
header
required

API key for authentication. You can create one here.

Query Parameters

website_id
string<uuid>
required

The ID of the website to retrieve the date range for

prompt_status
enum<string>

Filter by prompt status. If omitted, includes all prompts (active and paused).

Available options:
active,
paused

Response

Successful response with date range

min_date
string<date-time> | null
required

The earliest timestamp with available data (UTC)

Example:

"2024-01-15T08:20:17.844Z"

max_date
string<date-time> | null
required

The latest timestamp with available data (UTC)

Example:

"2024-12-01T14:30:45.123Z"