v1.0
Jivox API Documentation

Asset Library

Overview

These APIs allow you to manage assets (files, zip uploads, and folders) within an account. You can get assets, upload files, check upload status, or delete assets/folders from the asset library.

For information on Generating API key, see "Generating API Key" in https://docs.jivox.com/jivox-documentation/generate-api-key

Method NameMethod TypeDescription
Get AssetsGETRetrieves a list of files and folders in the account's asset library.
Upload File/Zip to Asset LibraryPOSTUploads a file or zip to the asset library.
Get Upload Detailed StatusGETRetrieves detailed status of an asset upload queue.
Get Upload StatusGETRetrieves summary status of an upload queue.
Delete Assets/Asset FoldersDELETEDeletes a file or folder in the asset library.

Get Assets

Get assets for a given user account.

End Point

HTTP
Copy

Parameters

NameData TypeRequirementParameter TypeDescription
accountIdIntegerMandatorypathID of the advertiser account created on the platform.
nextKeyStringOptionalqueryPagination key for results
limitIntegerOptionalqueryNumber of items per page
prefixStringOptionalqueryList assets under given prefix/path

Path and filename validations apply

Sample Request

HTTP
Copy

Sample Response

Javascript
Copy

If there is no next page, nextKey would be null.

Upload File/Zip to Asset Library

Upload files or zip to Asset Library.

End Point

HTTP
Copy

Parameters

NameData TypeRequirementParameter TypeDescription
accountIdStringMandatorypathID of the advertiser account created on the platform.

Sample Request

HTTP
Copy

Request Body (Multipart Form)

NameData TypeRequirementExampleDescription
fileFileMandatorytest.png, assets.zipFile or zip to upload
pathStringOptionaltest/uploads/Folder path where file should go

Upload Constraints

  • Maximum file size: 10 MB
  • Only one file per upload request: If multiple files are attached, only the first file is processed
  • Path and filename validations apply

Allowed File Types

CategoryExtensions
Imagesjpg, jpeg, png, gif, webp, svg, bmp, tiff, ico
Documentspdf, doc, docx, xls, xlsx, ppt, pptx, txt, rtf, csv
Mediamp4, avi, mov, wmv, flv, webm, mkv, mp3, wav, ogg, m4a
Web Fileshtml, htm, css, js, json, xml
Fontsttf, otf, woff, woff2
Archiveszip (will be extracted)

Sample Response

Javascript
Copy

Get Upload Detailed Status

End Point

HTTP
Copy

Parameters

NameData TypeRequirementParameter TypeDescription
queueIdStringMandatorypathQueue id received from upload request.

Sample Request

HTTP
Copy

Sample Response

Javascript
Copy

Get Upload Status

End Point

HTTP
Copy

Parameters

NameData TypeRequirementParameter TypeDescription
queueIdStringMandatorypathQueue id received from upload request.

Example/Sample Request

HTTP
Copy

Sample Response

Javascript
Copy

Delete Assets/Asset Folders

End Point

HTTP
Copy

Parameters

NameData TypeRequirementParameter TypeDescription
accountIdIntegerMandatorypathID of the advertiser account created on the platform.
pathStringMandatory(optional for file delete)queryPath of folder or file to delete
commandStringMandatoryquery

Command specifying deletion action

deleteFile/deleteFolder

fileStringMandatory(optional for folder delete)queryFile name if deleting a specific file

Example/Sample Request

Delete File

Optional : path

Mandatory:

HTML
Copy

OR

HTML
Copy
HTTP
Copy

Delete Folder

Mandatory:

HTML
Copy
HTTP
Copy

Sample Response

HTTP
Copy
  1. Deleting a non-existent file is considered a success operation.
  2. If all the files inside a path are deleted, that path would also be removed.

Path and filename Validation Rules

  • Max path length: 512 characters
  • Null byte (\\u0000) and ASCII control chars (0x00–0x1F) not allowed
  • Unicode control chars disallowed: DEL (\\u007F), NEL (\\u0085), Latin-1 Supplement (U+00A0–U+00FF)
  • Paths cannot contain traversal sequences such as ".." or "./"
  • Paths cannot start with / (no absolute paths)
  • Paths cannot contain double slashes "//"
  • File names must not end with /
  • File extension must be in the allowed file types list

Examples of Validation Errors

  • Path contains a null byte (\\u0000).
  • Path exceeds max length of 512 characters.
  • Path contains illegal sequence ".." (directory traversal).
  • File extension 'exe' is not allowed. Allowed: jpg, png, pdf, ...