Issuu Drafts API
The drafts API from Issuu, for drafts.
The drafts API from Issuu, for drafts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/issuu:issuu-drafts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Issuu Drafts API
version: 2.0.0
description: 'Operations tagged drafts across 2 of this provider''s published API definitions: issuu-openapi.json, issuu-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.issuu.com/v2
tags:
- name: Drafts
paths:
/drafts:
get:
operationId: getDrafts
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedList_Document_'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateErrorResponse'
examples:
Example 1:
value:
message: Invalid list size provided
fields: {}
description: 'List Drafts
- Retrieves a list of drafts paginated by the given parameters.
- Security: This endpoint is secured with OAuth2 and bearer authentication, requiring ''document:read'' permissions.'
tags:
- Drafts
security:
- oauth2:
- document:read
bearerAuth:
- document:read
parameters:
- description: Determines the number of documents to return per page.
in: query
name: size
required: false
schema:
default: 10
format: double
type: number
- description: Specifies the page number to return.
in: query
name: page
required: false
schema:
default: 1
format: double
type: number
- description: A regular expression that is applied to the titles and descriptions of the drafts and returns only the drafts that match the expression
in: query
name: q
required: false
schema:
type: string
summary: Get drafts
x-summary-source: derived
post:
operationId: createDraft
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentDraft'
description: 'Create a new Draft
- Creates a new draft with the given data.
- Security: This endpoint is secured with OAuth2 and bearer authentication, requiring ''document:read'' and ''document:write'' permissions.'
tags:
- Drafts
security:
- oauth2:
- document:read
- document:write
bearerAuth:
- document:read
- document:write
parameters: []
requestBody:
description: The data to create the draft with.
required: true
content:
application/json:
schema:
properties:
confirmCopyright:
type: boolean
fileUrl:
type: string
info:
$ref: '#/components/schemas/DocumentDraftMetadata'
required:
- info
type: object
description: The data to create the draft with.
summary: Create draft
x-summary-source: derived
servers:
- url: https://api.issuu.com/v2
/drafts/{slug}:
get:
operationId: getDraft
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/Document'
'403':
description: Access Required
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateErrorResponse'
examples:
Example 1:
value:
message: Access Required
fields: {}
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateErrorResponse'
examples:
Example 1:
value:
message: Not Found
fields: {}
description: 'Get Draft by slug
- Retrieves a draft by its slug.
- Security: This endpoint is secured with OAuth2 and bearer authentication, requiring ''document:read'' permissions.'
tags:
- Drafts
security:
- oauth2:
- document:read
bearerAuth:
- document:read
parameters:
- description: 'The unique identifier of the draft to retrieve.
This should be a string that corresponds to the slug of a draft.'
in: path
name: slug
required: true
schema:
type: string
summary: Get draft
x-summary-source: derived
patch:
operationId: updateDraft
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentDraft'
'400':
description: FileUrl or Info not provided
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateErrorResponse'
examples:
Example 1:
value:
message: Provide at least FileUrl or Info
fields:
slug:
message: Provide at least FileUrl or Info
value: abcdef
description: 'Update a Draft by slug
- Updates a draft with the given data based on the slug.
- Security: This endpoint is secured with OAuth2 and bearer authentication, requiring ''document:read'' and ''document:write'' permissions.
- The fields `fileUrl` or `info` must be provided.
- If `fileUrl` is provided, the `confirmCopyright` field must be set to `true`.'
tags:
- Drafts
security:
- oauth2:
- document:read
- document:write
bearerAuth:
- document:read
- document:write
parameters:
- description: 'The unique identifier of the draft to update.
This should be a string that corresponds to the slug of a draft.'
in: path
name: slug
required: true
schema:
type: string
requestBody:
description: The data to update the draft with.
required: true
content:
application/json:
schema:
properties:
confirmCopyright:
type: boolean
fileUrl:
type: string
info:
$ref: '#/components/schemas/DocumentDraftMetadata'
type: object
description: The data to update the draft with.
summary: Update draft
x-summary-source: derived
delete:
operationId: deleteDraft
responses:
'204':
description: No content
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateErrorResponse'
examples:
Example 1:
value:
message: Not Found
fields: {}
description: 'Delete a Draft by slug
- Deletes a draft by its slug.
- Security: This endpoint is secured with OAuth2 and bearer authentication, requiring ''document:read'' and ''document:write'' permissions.'
tags:
- Drafts
security:
- oauth2:
- document:read
- document:write
bearerAuth:
- document:read
- document:write
parameters:
- description: 'The unique identifier of the draft to delete.
This should be a string that corresponds to the slug of a draft.'
in: path
name: slug
required: true
schema:
type: string
summary: Delete draft
x-summary-source: derived
servers:
- url: https://api.issuu.com/v2
/drafts/{slug}/upload:
patch:
operationId: uploadDocument
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentDraft'
description: 'Upload a document for a Draft by slug
- Uploads a document to a draft by its slug.
- Security: This endpoint is secured with OAuth2 and bearer authentication, requiring ''document:read'' and ''document:write'' permissions.'
tags:
- Drafts
security:
- oauth2:
- document:read
- document:write
bearerAuth:
- document:read
- document:write
parameters:
- description: 'The unique identifier of the draft to upload.
This should be a string that corresponds to the slug of a draft.'
in: path
name: slug
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: The file to upload.
confirmCopyright:
type: string
description: 'Confirm that the user has the rights to upload this file.
This is required for all uploads as `true`.'
required:
- file
summary: Upload document
x-summary-source: derived
servers:
- url: https://api.issuu.com/v2
/drafts/{slug}/publish:
post:
operationId: publishDraft
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/PublishResponse'
'400':
description: Publish failed
content:
application/json:
schema:
$ref: '#/components/schemas/PublishValidateErrorResponse'
examples:
Example 1:
value:
publishFailedreason: file_too_big
'422':
description: Could not start publish process
content:
application/json:
schema:
$ref: '#/components/schemas/ValidateErrorResponse'
examples:
Example 1:
value:
message: 'Invalid document state: missing document file'
fields:
slug:
message: Missing document file
value: abcdef
description: 'Publish a Draft by slug
- Creates a new Publication (see /publications)
- If this is the first `publish` for the document, the `desiredName` properties
will be used to hint the final document page URL: `issuu.com/{username}/docs/{desiredName}`.
- If the user already have a document page with such an URL, a random string will be used as
suffix.
- If the document has already been published before, the `desiredName` will be ignored.
- It will also be ignored for team documents.'
tags:
- Drafts
security:
- oauth2:
- document:read
- document:write
bearerAuth:
- document:read
- document:write
parameters:
- description: 'The unique identifier of the draft to publish.
This should be a string that corresponds to the slug of a draft.'
in: path
name: slug
required: true
schema:
type: string
requestBody:
description: The data to publish the draft with.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PublishRequest'
description: The data to publish the draft with.
summary: Publish draft
x-summary-source: derived
servers:
- url: https://api.issuu.com/v2
components:
schemas:
DocumentDraft:
description: A not-yet-published document.
properties:
slug:
type: string
description: The document identifier
owner:
type: string
description: User-/team-name of the document owner
cover:
$ref: '#/components/schemas/DocumentCovers'
description: Covers of the document
fileInfo:
$ref: '#/components/schemas/FileInfo'
description: File info of the uploaded document
state:
type: string
enum:
- DRAFT
description: '`DRAFT`ed documents have not been published yet'
location:
type: string
description: The document edit page URL for the publisher
changes:
$ref: '#/components/schemas/DocumentChanges'
created:
type: string
format: date-time
description: Draft created date
required:
- slug
- owner
- state
- location
type: object
additionalProperties: false
Document:
type: object
properties:
state:
type: string
enum:
- DRAFT
- PUBLISHED
- SCHEDULED
- UNPUBLISHED
- QUARANTINED
discriminator:
propertyName: state
mapping:
DRAFT: '#/components/schemas/DocumentDraft'
PUBLISHED: '#/components/schemas/DocumentPublished'
SCHEDULED: '#/components/schemas/DocumentScheduled'
UNPUBLISHED: '#/components/schemas/DocumentUnpublished'
QUARANTINED: '#/components/schemas/DocumentQuarantined'
description: 'Represents a document.
It is a discriminated union of `DocumentDraft`, `DocumentPublished`, `DocumentScheduled`,
`DocumentUnpublished` and `DocumentQuarantined` structures.
The discriminator is the `state` field.'
DocumentCover:
description: Document cover urls and dimensions
properties:
url:
type: string
description: Location of the cover file
width:
type: number
format: double
height:
type: number
format: double
required:
- url
- width
- height
type: object
additionalProperties: false
DocumentDraftMetadata:
properties:
file:
type: number
format: double
description: The identifier of the file that will be used in the next `publish`
access:
$ref: '#/components/schemas/Access'
title:
type: string
description:
type: string
preview:
type: boolean
description: 'Set it to true to indicate that the document
is a preview of a bigger content.'
type:
$ref: '#/components/schemas/DocumentType'
showDetectedLinks:
type: boolean
description: 'When set to true, the conversion procedure
will search for hypermedia links inside the
document text.'
downloadable:
type: boolean
description: 'When set to true once published the readers
will be allowed to download the original document.'
originalPublishDate:
type:
- string
- 'null'
format: date-time
description: 'Set the original publish date field to
indicate that a document was previously
published, e.g. to import older issues
of your magazine. Set it to null to
clear the backDate.'
scheduledTime:
type:
- string
- 'null'
format: date-time
description: 'This field schedules the date for Publication,
until then the document will be at SCHEDULED state.'
type: object
description: 'Metadata used to create documents in draft state
and update changes that will be reflected on the
next `publish`'
DocumentCovers:
properties:
small:
$ref: '#/components/schemas/DocumentCover'
medium:
$ref: '#/components/schemas/DocumentCover'
large:
$ref: '#/components/schemas/DocumentCover'
required:
- small
- medium
- large
type: object
additionalProperties: false
PublishValidateErrorResponse:
properties:
publishFailedreason:
$ref: '#/components/schemas/PublishValidateError'
required:
- publishFailedreason
type: object
additionalProperties: false
PublishResponse:
properties:
publicLocation:
type: string
description: The document page URL
location:
type: string
description: The document edit page URL for the publisher
required:
- publicLocation
- location
type: object
additionalProperties: false
PaginatedList_Document_:
properties:
results:
items:
$ref: '#/components/schemas/Document'
type: array
links:
properties:
previous:
$ref: '#/components/schemas/Link'
self:
$ref: '#/components/schemas/Link'
next:
$ref: '#/components/schemas/Link'
type: object
count:
type: number
format: double
pageSize:
type: number
format: double
required:
- results
- links
- pageSize
type: object
additionalProperties: false
DocumentChanges:
description: Changes to be apply on the next publish
properties:
file:
type: number
format: double
description: The identifier of the file that will be used in the next `publish`
access:
$ref: '#/components/schemas/Access'
title:
type: string
description:
type: string
preview:
type: boolean
description: 'Set it to true to indicate that the document
is a preview of a bigger content.'
type:
$ref: '#/components/schemas/DocumentType'
showDetectedLinks:
type: boolean
description: 'When set to true, the conversion procedure
will search for hypermedia links inside the
document text.'
downloadable:
type: boolean
description: 'When set to true once published the readers
will be allowed to download the original document.'
originalPublishDate:
type:
- string
- 'null'
format: date-time
description: 'Set the original publish date field to
indicate that a document was previously
published, e.g. to import older issues
of your magazine. Set it to null to
clear the backDate.'
scheduledTime:
type:
- string
- 'null'
format: date-time
description: 'This field schedules the date for Publication,
until then the document will be at SCHEDULED state.'
type: object
additionalProperties: false
ValidateErrorResponse:
properties:
message:
type: string
fields:
properties: {}
additionalProperties: {}
type: object
required:
- message
- fields
type: object
additionalProperties: false
PublishValidateError:
type: string
enum:
- file_too_big
- file_too_many_pages
- file_not_converted
- missing_license_download
- missing_license_scheduled_publishing
- missing_license_detected_links
- unknown
- unlisted_limit_exceeded
- missing_title
- missing_description
- missing_file
- missing_access
- incomplete_draft
- published_documents_limit_exceeded
- file_public_cannot_be_unlisted
description: '- `file_too_big`: the uploaded file exceeds the size (bytes) limit
- `file_too_many_pages`: the uploaded file exceeds the size (pages) limit
- `file_not_converted`: please retry in a short while, the file has not been processed yet
- `missing_license_download`: the document is configured to be downloadable, but the license is missing
- `missing_license_scheduled_publishing`: the document is configured to be scheduled, but the license is missing
- `missing_license_detected_links`: the document is configure to detect links in text, but the license is missing
- `unknown`: we could not publish at this moment. Please retry in a short while
- `unlisted_limit_exceeded`: the document access is configured to be PRIVATE (or scheduled), but there are no available unlisted documents left for the user
- `missing_title`: draft title is empty
- `missing_description`: draft description is empty
- `missing_access`: draft access is empty
- `missing_file`: no file has been uploaded to the draft
- `incomplete_draft`: some required draft field is missing
- `published_documents_limit_exceeded`: the publisher has exceeded its published documents limits'
Link:
properties:
href:
type: string
required:
- href
type: object
additionalProperties: false
PublishRequest:
properties:
desiredName:
type: string
description: 'The desired custom part of the document page url:
`https://issuu.com/<username>/docs/<desiredName>`
If already taken by another document, a random
string is appended. Must be URL-friendly.
<br />
This is ignored for team documents.'
type: object
additionalProperties: false
DocumentType:
type: string
enum:
- editorial
- book
- promotional
- other
FileType:
type: string
enum:
- UNKNOWN
- DOC
- ODP
- ODT
- PDF
- PPT
- RTF
- SXI
- SXW
- WPD
- EPUB
- MOBI
Access:
type: string
enum:
- PUBLIC
- PRIVATE
- INTERNAL
description: 'PUBLIC documents, once published, will be
made searcheable and will appear in streams,
recommendations, etc.<br/>
PRIVATE documents, once published, are only
accessible from users that knows their URL.'
FileInfo:
properties:
name:
type: string
type:
$ref: '#/components/schemas/FileType'
size:
type: number
format: double
pageCount:
type: number
format: double
conversionStatus:
type: string
enum:
- DONE
- CONVERTING
- FAILED
isCopyrightConfirmed:
type: boolean
conversionErrorReason:
type:
- string
- 'null'
required:
- name
- type
- size
- pageCount
- conversionStatus
- isCopyrightConfirmed
type: object
additionalProperties: false
securitySchemes:
oauth2:
type: oauth2
flows:
authorizationCode:
tokenUrl: https://oauth.issuu.com/oauth2/token
authorizationUrl: https://oauth.issuu.com/oauth2/auth
scopes:
openid: Get user profile
offline: Offline
document:read: Read user documents
document:write: Write user documents
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
x-refined-from:
- issuu-openapi.json
- issuu-openapi.yml