List the extensions the user can install
const url = 'http://localhost:8080/api/v1/extensions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/extensions \ --header 'Authorization: Bearer <token>'Every extension in the indexes of the repositories that are usable.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The extensions.
object
object
The version the user installed from this repository, if any.
The extension’s reverse-DNS id, such as org.example.comics.
Hosts the extension may reach, such as api.example.org or *.example.org.
BCP 47 tags of the languages the source serves; empty for any.
What the extension needs beyond plain requests. browser means it uses the server’s browser solver, set with CHEK_BROWSER_SOLVER_URL, to get past challenges such as Cloudflare’s. browser-session uses an interactive Chromium session, configured with CHEK_BROWSER_EXECUTABLE. image-transform lets the extension transform fetched images before they are cached and served.
The formats the extension’s chapters come in, so clients know which readers it needs before opening a chapter. Sources from before formats existed read images.
Example
{ "items": [ { "formats": [ "images" ] } ]}The request has no valid session token.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The server failed; details are in its log.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}