List Recent Report Exports
GET
/reports/history
curl -X GET https://api.astroway.info/v1/reports/history \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json"const res = await fetch('https://api.astroway.info/v1/reports/history', { method: 'GET', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', },});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.get( 'https://api.astroway.info/v1/reports/history', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'},)result = r.json()if not result['ok']: raise RuntimeError(result['error']['message'])print(result['data'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->get('reports/history', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);List the calling key’s most recently generated PDF reports — type, byte size, page count, language, created/expiry timestamps and a url. Re-fetch a report link within its 24h validity window, or surface recent exports in a dashboard. PDFs are purged after 24h, so older items return expired: true with a now-dead URL. Free to call. Query ?limit= (1–50, default 10).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful calculation
Media type application/json
object
ok
boolean
data
object
items
Array<object>
object
id
number
report_type
string
storage_key
string
url
string
byte_length
number
page_count
number
language
string
created_at
string
expires_at
string
expired
boolean
count
number
Example
{ "ok": true, "data": { "items": [ { "id": 42, "report_type": "natal", "storage_key": "reports/abc-natal.pdf", "url": "https://api.astroway.info/reports/abc-natal.pdf", "byte_length": 124350, "page_count": 1, "language": "uk", "created_at": "2026-06-10T16:00:00Z", "expires_at": "2026-06-11T16:00:00Z", "expired": false } ], "count": 1 }}Validation error
Media type application/json
Example
{ "ok": false, "error": { "code": "INVALID_INPUT", "message": "Validation failed: date: Date must be YYYY-MM-DD", "details": [ { "path": "date", "message": "Date must be YYYY-MM-DD" } ] }}Missing or invalid API key
Media type application/json
Example
{ "ok": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }} Корисно?
Дякуємо за фідбек.