The refresh endpoint asks for stored award results on one route to be rechecked, and reports where each recheck stands. It is one idempotent call: the first call queues the rechecks, and repeating it only reports status and your remaining quota. Read Data freshness first for what stored and live results mean.
POST /agent/refresh
Ask for stored results on one route to be rechecked and see where each recheck stands. Repeating the call only reports status.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
departure_code |
body | string | Yes | Origin airport, 3-letter IATA code. |
arrival_code |
body | string | Yes | Destination airport, 3-letter IATA code. |
date |
body | string | Yes | Travel date, YYYY-MM-DD. Use dates, comma-separated, for up to 3 dates. |
airlines |
body | string | No | Comma-separated airline slugs to recheck. Defaults to every airline with a stored result for the route and date. |
wait |
body | boolean | No | True waits up to 45 seconds for the rechecks to finish before answering. |
A search is specific when it has one departure airport, one arrival airport and one to three dates. Rechecks do not use your monthly API call allowance.
curl -X POST "https://awardtravelfinder.com/api/v1/agent/refresh" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"departure_code":"JFK","arrival_code":"LHR","date":"2027-02-15"}'
const response = await fetch("https://awardtravelfinder.com/api/v1/agent/refresh", {
method: "POST",
headers: {
"X-API-Key": process.env.ATF_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({"departure_code":"JFK","arrival_code":"LHR","date":"2027-02-15"})
});
const result = await response.json();
import os
import requests
response = requests.post("https://awardtravelfinder.com/api/v1/agent/refresh", headers={"X-API-Key": os.environ["ATF_API_KEY"], "Content-Type": "application/json"}, json={"departure_code":"JFK","arrival_code":"LHR","date":"2027-02-15"})
result = response.json()
Response
{
"success": true,
"data": {
"route": "LHR -> JFK",
"dates": ["2027-02-14"],
"refresh": {
"status": "refreshing",
"check_back_seconds": 20,
"airlines": [
{
"airline": "british_airways",
"date": "2027-02-14",
"status": "refreshing",
"check_back_seconds": 20,
"checked_at": "2026-11-28T09:14:00Z",
"minutes_old": 4320
}
]
},
"quota": {
"limit": 100,
"used": 3,
"remaining": 97,
"resets_at": "2026-12-02T00:00:00Z"
},
"waited": false
}
}
Status values
status |
Meaning |
|---|---|
queued |
A recheck was accepted and has not started. |
refreshing |
A recheck is running. |
fresh |
The stored result is within its freshness window, or a recheck has just finished. |
unavailable |
No recheck will run. The reason says why: broad_search, sign_in_required, not_refreshable, limit_reached, busy or recently_checked. |
refresh.status is the most pending of the airline statuses. check_back_seconds says when to call again. waited is true when wait was set and the call held open for up to 45 seconds.
Polling pattern
- Call the endpoint. If
refresh.statusisqueuedorrefreshing, waitcheck_back_seconds. - Call it again with the same body. It only reports status and does not use more quota.
- When
refresh.statusisfresh, read the new results from the availability endpoint.
To wait in one request instead, send wait=true, or add refresh=true to an availability call on a narrow search.
OpenAPI
"/api/v1/agent/refresh":
post:
tags:
- Agent API
summary: Ask for stored results on one route to be rechecked and see where each
recheck stands. Repeating the call only reports status.
operationId: post_agent_refresh
parameters: []
responses:
'200':
description: 'Success. JSON with `success: true` and a `data` object.'
content:
application/json:
schema:
type: object
'401':
description: Missing or invalid API key.
'429':
description: Rate, concurrency or monthly limit reached. Rate and concurrency
limits send a Retry-After header.
'400':
description: 'Missing or invalid parameter. JSON with `success: false` and
an `error` message.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
departure_code:
type: string
description: Origin airport, 3-letter IATA code.
arrival_code:
type: string
description: Destination airport, 3-letter IATA code.
date:
type: string
description: Travel date, YYYY-MM-DD. Use dates, comma-separated,
for up to 3 dates.
airlines:
type: string
description: Comma-separated airline slugs to recheck. Defaults to
every airline with a stored result for the route and date.
wait:
type: boolean
description: True waits up to 45 seconds for the rechecks to finish
before answering.
required:
- departure_code
- arrival_code
- date