---
title: "Get Date Range"
method: GET
path: "/api/v1/date-range"
tags: ["Basics"]
---

# Get Date Range

`GET /api/v1/date-range`

Returns the date range with available data for a website's prompts. Use this to determine the valid date range for other API queries.

## Query parameters

- `website_id` string, uuid, required
- `prompt_status` 'active' | 'paused'

## Response `200`

Successful response with date range

- object
  - `min_date` string, date-time, nullable, required — The earliest timestamp with available data (UTC)
  - `max_date` string, date-time, nullable, required — The latest timestamp with available data (UTC)

## Other responses

- `400` — Bad request - Invalid parameters
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - You don't have access to this website
- `500` — Internal server error

---

[API](https://skmtc.net/athenahq/apis/athenahq-api.md) · [All operations](https://skmtc.net/athenahq/apis/athenahq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/athenahq/athenahq-api/versions/6c5d71622cb9/schema)
