List-Routes
GET /lists
Returns all lists belonging to the authenticated user for a specific client. Each list includes item counts and a preview item based on the most recently added entry.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| client | number | Yes | — | Client identifier |
| user_lang | string | No | undefined |
Preferred language for localized preview items |
200 OK
Returned when the lists are retrieved successfully.
[
{
"id": "number",
"name": "string",
"slug": "string",
"type": "string",
"last_change": "string",
"last_added": "number",
"item_count": "number",
"preview_item": {
/* Volume preview data */
} | null
}
]
Models used
List Model
Volume Model
404 Not Found
Returned when the authenticated user cannot be found.
{
"data": "User not found",
"code": 404
}
Models used
Response Model
GET /lists/slug/:slug
Returns a specific list belonging to the authenticated user, identified by its slug.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| slug | string | Yes | Slug identifier of the list |
200 OK
Returned when the list is retrieved successfully.
{
"id": "number",
"name": "string",
"user_id": "number",
"last_change": "string",
"slug": "string",
"type": "string",
"client": "number"
}
Models used
List Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user or the requested list cannot be found.
{
"data": "List not found",
"code": 404
}
Models used
Response Model
GET /lists/items/:id
Returns the items of a specific list belonging to the authenticated user. Items are resolved either as volumes or series depending on the list type and are localized based on the requested language.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | number | Yes | Identifier of the list |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| limit | number | No | Number.MAX_SAFE_INTEGER |
Maximum number of items to return |
| offset | number | No | 0 |
Number of items to skip (for pagination) |
| user_lang | string | Yes | — | Preferred language for localized content |
200 OK
Returned when list items are retrieved successfully.
{
"items": [
{
/* Volume or Series object depending on list type */
}
],
"max": "number",
"from": "number",
"to": "number"
}
Models used
Volume Model
Series Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user or the requested list cannot be found.
{
"data": "List not found",
"code": 404
}
Models used
Response Model
POST /lists/reorder/:id
Updates the ordering of items within a user-owned list.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Identifier of the list |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| order | string | Yes | — | Comma-separated list of itemId:order pairs |
Format example:
"12:1,5:2,9:3"
200 OK
Returned when the list is reordered successfully.
{
"data": "List reordered successfully",
"code": 200
}
Models used
Response Model
400 Bad Request
Returned when required parameters are missing or the order format is invalid.
{
"data": "Required parameters missing | Invalid order format",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the list does not exist or when one of the specified items is not part of the list.
{
"data": "List not found | Item with ID <item_id> not found in list <list_id>",
"code": 404
}
Models used
Response Model
500 Internal Server Error
Returned when an unexpected error occurs while reordering the list.
{
"data": "Error reordering list",
"code": 500
}
Models used
Response Model
POST /lists/add
Creates a new list for the authenticated user.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | Name of the new list |
| type | string | Yes | — | Type of the list |
| client | number | Yes | — | Client identifier |
type
volumeseries
200 OK
Returned when the list is created successfully.
{
"data": "List added successfully",
"code": 200
}
Models used
Response Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user cannot be found.
{
"data": "User not found",
"code": 404
}
Models used
Response Model
409 Conflict
Returned when a list with the same name already exists for the user and client.
{
"data": "List with this name already exists",
"code": 409
}
Models used
Response Model
500 Internal Server Error
Returned when an unexpected error occurs while creating the list.
{
"data": "Error adding list",
"code": 500
}
Models used
Response Model
DELETE /lists/items/delete
Removes a specific item from a user-owned list.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| list_id | number | Yes | — | Identifier of the list |
| item_id | number | Yes | — | Identifier of the item to remove |
200 OK
Returned when the item is removed from the list successfully.
{
"data": "Item removed from list successfully",
"code": 200
}
Models used
Response Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the list does not exist or the item is not part of the list.
{
"data": "List not found | Item not found in list",
"code": 404
}
Models used
Response Model
500 Internal Server Error
Returned when an unexpected error occurs while removing the item from the list.
{
"data": "Error removing item from list",
"code": 500
}
Models used
Response Model
DELETE /lists/delete/:id
Deletes a user-owned list and all items contained within it.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Identifier of the list |
200 OK
Returned when the list is deleted successfully.
{
"data": "List deleted successfully",
"code": 200
}
Models used
Response Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user or the specified list cannot be found.
{
"data": "List not found",
"code": 404
}
Models used
Response Model
500 Internal Server Error
Returned when an unexpected error occurs while deleting the list.
{
"data": "Error deleting list",
"code": 500
}
Models used
Response Model
POST /lists/edit/:id
Updates the name and/or type of a user-owned list.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Identifier of the list |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | Updated list name |
| type | string | Yes | — | Updated list type |
type
volumeseries
200 OK
Returned when the list is updated successfully.
{
"data": "List updated successfully",
"code": 200
}
Models used
Response Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user or the specified list cannot be found.
{
"data": "List not found",
"code": 404
}
Models used
Response Model
500 Internal Server Error
Returned when attempting to change the list type while items exist or when an unexpected error occurs.
{
"data": "Cannot change list type when items exist | Error updating list",
"code": 500
}
Models used
Response Model
GET /lists/type/:type/:id
Returns all user-owned lists of a given type and indicates whether a specific item is already present in each list.
This endpoint is typically used to determine which lists an item can be added to and whether it already exists in them.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | List type to filter by |
| id | number | Yes | Identifier of the item (series or volume) |
200 OK
Returned when the lists are retrieved successfully.
[
{
"id": "number",
"name": "string",
"slug": "string",
"in_list": "boolean"
}
]
Models used
List Model
400 Bad Request
Returned when required parameters are missing.
{
"data": "Required parameters missing",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user cannot be found.
{
"data": "User not found",
"code": 404
}
Models used
Response Model
POST /lists/add-item/:type
Adds an item to a user-owned list. The item type must match the list type.
This endpoint requires authentication via a refresh token stored in cookies.
| Cookie Name | Required | Description |
|---|---|---|
| refreshToken | Yes | Refresh token used to authenticate |
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | Type of the item to be added |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| item_id | number | Yes | — | Identifier of the item |
| list_id | number | Yes | — | Identifier of the target list |
200 OK
Returned when the item is added to the list successfully.
{
"data": "Item added to list successfully",
"code": 200
}
Models used
Response Model
400 Bad Request
Returned when required parameters are missing or the item type does not match the list type.
{
"data": "Required parameters missing | Item type does not match list type",
"code": 400
}
Models used
Response Model
404 Not Found
Returned when the authenticated user or the specified list cannot be found.
{
"data": "User not found | List not found",
"code": 404
}
Models used
Response Model
409 Conflict
Returned when the item already exists in the list.
{
"data": "Item already in list",
"code": 409
}
Models used
Response Model
500 Internal Server Error
Returned when an unexpected error occurs while adding the item to the list.
{
"data": "Error adding item to list",
"code": 500
}
Models used
Response Model