Get API Configuration
GET
/api/config
const url = 'https://example.com/api/config';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/configGet public configuration settings. Used by the extension to fetch cache TTL and revocation mode.
Responses
Section titled “ Responses ”Public configuration
Media type application/json
Public configuration
object
cacheTtlMs
Cache TTL in milliseconds (default: 1800000 = 30 minutes)
integer
revocationMode
Revocation check mode
string
Example
{ "cacheTtlMs": 1800000, "revocationMode": "ocsp"}