Autocomplete Catalog Revision
Returns the current revision of the autocomplete catalog, so a site can tell whether its saved copy is old without downloading the catalog again.
GET
/v1/autocomplete-catalog/revisionAuthentication
Public key
?key=pk_…Public key in the key query parameter. No OAuth, no secret.
Edge cache: public, max-age=0, s-maxage=15, stale-while-revalidate=15
Query Parameters
keystringThe site's public key (pk_…). It selects the account. Safe to ship to the browser.
Responses
200Success
application/jsonrevisionnumberWhen it differs from your copy's revision, download GET /v1/autocomplete-catalog?v=<revision>.
Errors
401Missing or invalid public key.403The account is not active. The body also has code: "TENANT_INACTIVE".500Internal Server Error.Notes
- It is the same for every account and still needs a valid public key.
Request
curl --request GET \--url "https://api.pandaidx.com/v1/autocomplete-catalog/revision?key={{public_key}}"
Response200 OK
{"revision": 12}