API for managing issues
List Issues
GET
https://www.magloft.com/api/portal/v1/issues/:app_id
This endpoint returns a list of all issues
that belong to the magazine
Path Parameters
Query Parameters
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Retrieve paginated list of issues
GET
https://www.magloft.com/api/portal/v1/issues/:app_id/page/:page
This endpoint returns a page list of all issues
that belong to the magazine
Path Parameters
Query Parameters
{
"total": 1,
"page": 1,
"records": [
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
]
}
Get Issue
GET
https://www.magloft.com/api/portal/v1/issues/:app_id/:id
This endpoint returns a specific issue
by id
Path Parameters
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Download Issue
GET
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/download
This endpoint redirects to a specific issue
HPUB url
Path Parameters
Download a specific issue source
GET
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/source
This endpoint redirects to a specific issue
source file url
Path Parameters
Create an Issue
POST
https://www.magloft.com/api/portal/v1/issues/:app_id
This endpoint creates a new issue
and returns the saved issue
Path Parameters
Request Body
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Update an Issue
PUT
https://www.magloft.com/api/portal/v1/issues/:app_id/:id
This endpoint updates a specific issue
by id
and returns the updated issue
Path Parameters
Request Body
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Clone an Issue
POST
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/clone/:magazine_id
This endpoint creates a new issue
by cloning an existing issue
and returns the saved issue
Path Parameters
Request Body
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Sort Issue Articles
POST
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/sort
This endpoint sorts a set of articles
of an issue
by ids
and returns an empty response
with status 204
Path Parameters
Request Body
Convert Issue
PUT
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/convert
This endpoint converts an issue
from PDF, EPUB or Folio
Path Parameters
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Pack an issue to HPUB
PUT
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/pack
This endpoint pack an issue
to HPUB and returns the issue
Path Parameters
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Export issue to PDF
PUT
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/export_pdf
This endpoint converts a TypeLoft 2 issue
to PDF and returns the issue
Path Parameters
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Generate Web URL
PUT
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/generate_web_url
This endpoint generates a hosted version of an issue
Path Parameters
{
"id": 1234,
"title": "Welcome to MagLoft",
"info": null,
"hpub": null,
"source_file": null,
"source": "typeloft",
"unlock_type": "free",
"hide_locked": false,
"categories": [
"Sports",
"Business",
"Politics"
],
"category_ids": [
1,
2,
3
],
"classifications": [
"Sports",
"Business",
"Politics"
],
"classification_ids": [
1,
2,
3
],
"product_id": "purchase.issue_123456789",
"product_id_apple": null,
"product_id_google": null,
"product_id_amazon": null,
"screen_type": "issue",
"publication_id": null,
"coupon_code": null,
"dirty": false,
"user_id": null,
"custom_stylesheet": null,
"custom_data": null,
"price_tier": null,
"cover": null,
"generator": "pdfix"
}
Process Filename
PUT
https://www.magloft.com/api/portal/v1/issues/:app_id/:id/process_links
This endpoint process an issue
filename links in TypeLoft Pages and returns an empty response
with status 204
Path Parameters
Delete Issue
DELETE
https://www.magloft.com/api/portal/v1/issues/:app_id/:id
This endpoint deletes a specific issue
by id
and returns an empty response
with status 204
Path Parameters