List libraries
GET
/api/v1/libraries
const url = 'http://localhost:8080/api/v1/libraries';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/libraries \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every library on the server.
Media typeapplication/json
object
items
required
Array<object>
object
id
required
integer format: int64
name
required
string
kind
required
string
path
required
The folder on the server, for folder libraries.
string | null
source
Where a source library reads from. Present only on source libraries.
object
type
required
string
url
The Komga or Kavita server’s address. Absent for an extension library.
string
extensionId
The extension an extension library runs on.
string
libraryIds
The Komga or Kavita libraries read; absent when every library the account sees is read. Kavita’s numeric ids are returned as strings.
Array<string>
progressUserId
The Chek user whose reading progress is written back to the Komga or Kavita account. Absent when none is.
integer format: int64
scan
required
object
status
required
string
error
required
Why the last scan failed.
string | null
finishedAt
required
When the last scan finished, whether or not it succeeded.
string | null format: date-time
createdAt
required
string format: date-time
Example
{ "items": [ { "kind": "folder", "source": { "type": "komga" }, "scan": { "status": "idle" } } ]}The request has no valid session token.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The server failed; details are in its log.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}