DislifyDislify

Command Palette

Search for a command to run...

Developer guide

One workflow for every file tool.

Store sources, submit typed operations, and retrieve generated Files with lineage. The same model serves PDF workflows, Office conversions, spreadsheets, photos, and video audio extraction.

What this guide covers

The file, the job, and the handoff.

Dislify keeps the developer model intentionally small: store a File, run an operation, retrieve generated Files, then poll or continue from an event.

Files

Durable sources + outputs

Jobs

Typed async operations

Events

Signed completion hooks

Saved multi-operation workflows

extract_text creates a durable UTF-8 TXT File from PDF/JPG/PNG. Existing meaningful PDF text is reused; other pages use local English OCR. The operation is terminal in workflows. Output is bounded to 2 MiB, with LF/no BOM and form-feed page separators. Download generated Files to read text; Jobs and signed events contain metadata only.

Compose up to five compatible steps such as Office to PDF then compression. POST /api/v1/workflows creates a definition; POST /api/v1/workflows/:id/runs accepts owned File IDs and an Idempotency-Key, returning a workflowRunId immediately. Poll /api/v1/workflow-runs/:id for steps and final outputs.

SDK 0.9.0 is prepared and unpublished: workflows.create, run, wait, retry and downloadZip. Each step uses the normal plan/storage/API quota. Runs keep immutable snapshots; retries accept the failed attempt ID and preserve successful previous steps. Signed job events include workflow correlation. No branching, scheduled invocations or arbitrary HTTP steps.

File-processing quickstart

One lifecycle for every tool.

Store a source File, submit an operation, then poll or continue from a signed webhook. Developer API access requires Unlimited.

Authenticate

Use one server-side API key.

Store a File

Upload once and keep the File ID.

Process + retrieve

Run a typed job, then fetch generated Files.

SDK example

Upload → process → download → inspect lineage.

Server-side
file-processing.ts
View on npm
// Repository SDK 0.5.0; npm publication is a separate release step.
// npm install @dislify/sdk (use 0.5.0 once it is published)
import { readFile, writeFile } from "node:fs/promises"
import { DislifyClient } from "@dislify/sdk"

const client = new DislifyClient({ apiKey: process.env.DISLIFY_API_KEY! })

const source = await client.files.upload(
  new Blob([await readFile("proposal.docx")]),
  {
    fileName: "proposal.docx",
    contentType:
      "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  }
)

const submitted = await client.files.convert(source.id, { format: "pdf" })
const result = await client.processing.wait(submitted.id)

for (const output of result.generatedFiles) {
  const bytes = await client.files.download(output.id)
  await writeFile(output.name, Buffer.from(await bytes.arrayBuffer()))
}

const history = await client.files.get(result.generatedFiles[0].id)
console.log(history.parents.map((file) => file.id))
Running this from the CLI? Use node --env-file=.env app.mjs, or load dotenv/config.

For upload limits, use client.processing.compressPdf(fileId, { targetSizeBytes: 2 * 1024 ** 2, idempotencyKey: "pdf-limit-1" }) or compressImage for JPG/PNG. Choose a target or preset; unreachable targets fail without output.

Office batches return independent child job IDs. Split PDF and PDF-to-images can return multiple generated Files. Sources remain unchanged and retention follows the account plan or connected bucket.

01

Authenticate

POST /api/v1/developers/token with your API key, then keep the returned Bearer token server-side.

02

Create a source File

Prepare a signed upload with POST /api/v1/uploads, upload the bytes, then finalize it with POST /api/v1/files.

03

Submit an operation

Send owned File IDs to POST /api/v1/processing/jobs with one supported operation. The response includes job IDs and an optional batch ID.

04

Read the result

Poll GET /api/v1/processing/jobs/:id or receive a signed job event. Generated Files are durable outputs with source lineage.

05

Download safely

Read File metadata with GET /api/v1/files/:id, then request a short-lived download URL from the File download endpoint.

Processing operations

Browser tools, REST jobs, and SDK helpers share the same operation model.

42 operations

Password Protect PDF

protect_pdf

Unencrypted static PDF → Independently verified AES-256 encrypted PDF

Options

Opening password, optional distinct owner password, and advisory reader restrictions

Independent batches sharing one password. 20 MiB, 200 pages per file, up to five files per batch.

SDK
client.processing.protectPdf

PDF to Excel

pdf_to_excel

Static PDF with recoverable tables → Verified editable XLSX workbook

Options

Table selections, corrections, worksheet layout, names, headers and value interpretation

Independent batches with shared settings, or a single reviewed PDF. 20 MiB, 80 pages and 48 detected tables per source.

SDK
client.processing.pdfToExcel and processing.previewPdfExcel

PDF to Word

pdf_to_word

Static PDF with selectable text → Editable DOCX

Options

Source pages, embedded images and ruled tables

Independent batches and DOCX workflow output. 20 MiB and 20 source pages per PDF.

SDK
client.processing.inspectPdfForWord and processing.pdfToWord

Extract Images from PDF

extract_pdf_images

Static PDF → Verified JPEG or PNG files

Options

Reviewed image IDs, source SHA-256, format and repeat policy

Up to three independently reviewed PDFs, subject to plan. 20 MiB and 40 pages per PDF, up to 30 selected images.

SDK
client.processing.inspectPdfImages and processing.extractPdfImages

Compare PDFs

compare_pdf

Original and Revised static PDFs → One verified private JSON report

Options

Ordered source IDs

One ordered pair per job. 20 MiB and 40 pages per PDF.

SDK
client.processing.comparePdfs

Remove Blank PDF Pages

remove_blank_pdf_pages

Unsigned static PDF → One verified PDF per source

Options

Explicit reviewed source pages and SHA-256 from private detection

Up to five independent reviewed PDFs, subject to plan. 20 MiB and 80 pages per source.

SDK
client.processing.detectBlankPdfPages and processing.removeBlankPdfPages

PDF Scan Cleanup

clean_pdf_scan

Static image-only PDF, single-frame JPEG or PNG → One verified PDF

Options

Deskew, rotation, crop, brightness, contrast, background, despeckle and color with page overrides

Independent source jobs and compatible PDF workflows. 20 MiB, 10 pages per source, bounded pixels.

SDK
client.processing.cleanPdfScan

Spreadsheet Splitter

split_spreadsheet

CSV or XLSX → Separate CSV or XLSX files, or one XLSX workbook

Options

Worksheet, grouping column or row count, headers, selected groups and naming

Up to two independent source jobs, up to 32 groups per source. 20 MiB per source and combined output per job, 20,000 rows, 64 columns, 200,000 cells.

SDK
client.processing.splitSpreadsheet

Spreadsheet Cleaner

clean_spreadsheet

One owned UTF-8 CSV or one visible XLSX worksheet per item → One verified cleaned CSV or XLSX File per input

Options

Ordered column-scoped cleanup rules, explicit source settings, output format and optional preview digests

Independent batch, failed-only retry, ZIP and compatible deterministic workflows. 20 MiB per file, 20,000 rows, 64 columns, 200,000 cells and 20 rules within existing plan limits..

SDK
client.processing.cleanSpreadsheet(fileId, settings)

Spreadsheet Merger

merge_spreadsheets

2–8 owned UTF-8 CSV or XLSX Files in submission order → One verified CSV or XLSX File

Options

Per-file worksheet, delimiter and header row, explicit column mapping, append or separate worksheets, optional provenance

One multi-source job with all inputs recorded. Resubmit failed merges as a new job.. 20 MiB combined, up to 20,000 data rows, 64 columns and 200,000 cells, subject to existing plan limits. Workflows are excluded in V1..

SDK
client.processing.mergeSpreadsheets(fileIds, settings)

Bulk File Renamer

rename_files

Owned Files in submission order, including mixed formats → One byte-verified renamed copy per File, with original extension and MIME type

Options

Ordered literal rules and templates, numbering, manual stem overrides, reject or suffix collisions

Independent batch, stable failed-only retry, individual downloads and ZIP. Up to 100 sources within existing plan limits, 250 MiB aggregate, 180 UTF-8 filename bytes. Batch-only in V1..

SDK
client.processing.renameFiles(fileIds, { rules, idempotencyKey })

Video to HLS

video_to_hls

One SDR MP4/MOV/MKV/WebM, up to 90 seconds and 128 MiB within plan limits → Portable HLS VOD ZIP with master, rendition playlists and MPEG-TS segments

Options

Single or adaptive, original or max 1080/720/480/360 short side, 2–10 second segments, standard/high quality, keep/remove audio

Independent per file. Up to 3 renditions and 135 segments. Terminal workflow step..

SDK
client.processing.videoToHls

Video converter

convert_video

One MP4/MOV/WebM/MKV progressive SDR video, optionally one mono/stereo audio track → Selected MP4/MOV/MKV H.264/AAC or WebM VP9/Opus

Options

format; resolution original/1080/720/480 short-edge cap without upscaling; quality balanced/high/small; frameRate original/24/25/30; audio keep/remove

Independent batch/retry/ZIP and compatible video workflows. 30 minutes; 250 MiB and plan caps; even square-pixel dimensions up to 1920×1080 including portrait; 10–60 fps; no extra tracks or HDR.

SDK
client.processing.convertVideo(id, { format: 'mp4' })

Audio converter

convert_audio

One MP3, PCM WAV, M4A/AAC, FLAC, OGG/Vorbis or Ogg/Opus; mono/stereo 8–48 kHz, no artwork or video → Selected MP3, PCM16 WAV, M4A/AAC, FLAC16, OGG/Vorbis or Ogg/Opus

Options

format; lossy bitrate 64/96/128/192/256/320 kbps; sampleRate 32000/44100/48000 (Opus 48000); channels 1/2; preserveMetadata boolean (title/artist/album/genre/date only)

Independent batch/retry/ZIP; compatible audio workflows. 30 minutes; 250 MiB and plan limits; lossy-to-lossless does not restore quality.

SDK
client.processing.convertAudio(id, { format: 'flac' })

Trim video

trim_video

One MP4/MOV/WebM/MKV video, including silent video → One H.264/yuv420p MP4 with first audio track encoded as AAC/48 kHz when present

Options

Required startSeconds and endSeconds: finite seconds, up to 3 decimal places, minimum 0.1 second range within native duration

Independent batch/retry/ZIP; MP4 workflow output. 30 minutes; 250 MiB plus plan cap; even square pixels up to 1920×1080 including portrait; 10–60 fps; mono/stereo 8–48 kHz; decoded cuts, not frame-exact.

SDK
client.processing.trimVideo(id, { startSeconds: 1.25, endSeconds: 5.5 })

Trim audio

trim_audio

One MP3, M4A or WAV audio file → One 16-bit PCM WAV at 48 kHz, preserving mono/stereo

Options

Required startSeconds and endSeconds: finite seconds, up to 3 decimal places, minimum 0.1 second range within native duration

Independent batch/retry/ZIP; WAV workflow output. 30 minutes; 250 MiB plus plan cap; mono/stereo 8–48 kHz; first track; original unchanged.

SDK
client.processing.trimAudio(id, { startSeconds: 1.25, endSeconds: 5.5 })

Video to MP3

video_to_mp3

One MP4/MOV/WebM/MKV video with a supported mono/stereo audio track → One MP3 audio File

Options

bitrate: 128 | 192 | 256 | 320 kbps (192)

Independent batch/retry/ZIP; terminal workflow step. 30 minutes; 250 MiB source/output plus plan cap; first audio stream; 8–48 kHz; original unchanged.

SDK
client.processing.videoToMp3(id, { bitrate: 192 })

Extract audio

extract_audio

One MP4/MOV/WebM/MKV video with a supported mono/stereo audio track → One MP3, M4A or WAV audio File

Options

format: mp3 (default) | m4a | wav; bitrate: 128 | 192 | 256 | 320 for MP3 only (192). M4A copies compatible AAC-LC or transcodes AAC at 192 kbps; WAV is PCM 16-bit/48 kHz

Independent batch/retry/ZIP; terminal workflow step. 30 minutes; 250 MiB source/output plus plan cap; first audio stream; 8–48 kHz; original unchanged.

SDK
client.processing.extractAudio(id, { format: 'm4a' })

Watermark image

watermark_image

One still JPG / PNG / WebP → One same-format image with a text overlay

Options

text: 1–120 printable ASCII characters; fontSize: 8–512 source pixels (32); margin: 0–1024 (16); opacity: 0.05–1 (0.5); color: #RRGGBB (#000000); nine positions (bottom_right)

Independent batch/retry/ZIP; same-format workflow step. 50 MiB source/output plus plan limits; 8192px side; 20M pixels; bundled Bitstream Vera; no private metadata copied; original unchanged.

SDK
client.processing.watermarkImage(id, { text: "DRAFT" })

Crop / rotate image

crop_rotate_image

One still JPG / PNG → One same-format cropped/rotated File

Options

rotation: 0 | 90 | 180 | 270 clockwise; optional x, y, width, height integer pixels after orientation normalization and rotation; omit all crop fields for full image

Independent batch/retry/ZIP; workflow. Same pixel rectangle per image; out-of-bounds items fail individually. 50 MiB source/output plus plan limits; 8192px side; 20M pixels; no private metadata copied; JPG re-encoded at quality 95.

SDK
client.processing.cropRotateImage(id, { rotation: 90 })

Remove PDF metadata

remove_pdf_metadata

One verified static unsigned PDF per item; comments/layers/external content excluded → One newly written PDF without supported document metadata

Options

No options. Info, reachable Metadata/XMP, editing history, thumbnails and source IDs removed; original revisions discarded.

Independent batch/retry/ZIP; single-input PDF workflow step. 2,000 pages; existing plan/250 MiB bounds; visible text, image/font assets and retained functional content are not anonymized; source unchanged.

SDK
client.processing.removePdfMetadata(id, { idempotencyKey: "pdf-metadata-1" })

Add page numbers

add_pdf_page_numbers

One verified static, unsigned PDF per item → One new vector-preserving numbered PDF

Options

format: number | page_number | number_of_total | page_number_of_total; six top/bottom positions; startNumber (1–999999); pages (empty = all); fontSize (8–24pt); #RRGGBB color; opacity (0.3–1); margin (12–72pt)

Independent batch/retry/ZIP; single-input PDF workflow step. Number selected physical pages consecutively; N is the final assigned number.. Embedded Bitstream Vera; 2,000 pages; existing plan/250 MiB bounds; signed/forms/active PDFs rejected; overlays existing numbers.

SDK
client.processing.addPdfPageNumbers(id, { format: "number", position: "bottom_center", startNumber: 1, pages: [], fontSize: 12, color: "#294B3D", opacity: 1, margin: 24 })

Watermark PDF

watermark_pdf

One verified static, unsigned PDF per item → One new vector-preserving PDF with a text overlay

Options

mode: text, text, fontSize (8–96pt), opacity (0.05–0.6), rotation (-180–180), #RRGGBB color, position, pages (empty = all)

Independent batch/retry/ZIP; single-input PDF workflow step. Printable ASCII / embedded Bitstream Vera; 120 characters; 2,000 pages; existing plan/250 MiB bounds; signed/forms/active PDFs rejected; logo input deferred.

SDK
client.processing.watermarkPdf(id, { mode: "text", text: "DRAFT", fontSize: 36, opacity: 0.2, rotation: 45, color: "#294B3D", position: "center", pages: [] })

Remove background

remove_background

Still JPG / PNG / WebP; up to 12 million pixels and existing plan limits → Transparent-capable RGBA PNG at oriented source dimensions

Options

No options

Independent jobs, retry and ZIP; workflows. Local CPU inference; 50 MiB maximum source/output, 8192px per side, 12 million pixels; plan limits apply.

SDK
client.processing.removeBackground(id, { idempotencyKey: 'remove-bg-v1' })

Remove image metadata

strip_image_metadata

One still JPG / PNG / WebP → One sanitized File in the same format

Options

No options; orientation normalized; metadata removed

Independent jobs, retry and ZIP; workflows. 50 MiB source/output and plan cap; 20M pixels; 8192 px side; image queue.

SDK
client.processing.stripImageMetadata(id)

Convert image

convert_image

One still JPG / PNG / WebP → One JPG / PNG / WebP File in the selected different format

Options

format: jpg | png | webp; same-format conversion rejected

Independent jobs, retry and ZIP; workflows. 50 MiB source/output and plan cap; 20M pixels; 8192 px side; image queue.

SDK
client.processing.convertImage(id, { format: "webp" })

Resize image

resize_image

One still JPG / PNG → One same-format resized File

Options

width and/or height: 1–8192 whole pixels; OR percent: 1–400 integer; aspect-preserving fit; half-pixels round up

Independent jobs, batch retry and ZIP; workflows. 50 MiB source/output + plan cap; 20M pixels; 8192 side; no-op is an error; image queue.

SDK
client.processing.resizeImage(id, { width: 1200 })

Extract text

extract_text

Static PDF / JPG / PNG scan → One UTF-8 TXT File per source

Options

language: eng; existing PDF text first, local OCR fallback; LF and form-feed page boundaries

Independent jobs for ordered sources; shared batch/retry/ZIP; terminal workflow step. 20 MiB source; 2 MiB TXT; Free/Pro/Unlimited 3/10/20 PDF pages, 3/30/60 batch pages; OCR queue.

SDK
client.processing.extractText(id, { language: "eng" })

OCR searchable PDF

ocr_pdf

Scanned or hybrid static PDF → One searchable PDF per source

Options

language: eng (English); already-searchable pages retained

Independent jobs for ordered sources; shared batch/retry/ZIP. 20 MiB source; Free/Pro/Unlimited 3/10/20 pages per source, 3/30/60 batch pages; 300 DPI; isolated OCR queue.

SDK
client.processing.ocrPdf(id, { language: "eng" })

Image to searchable PDF

image_to_searchable_pdf

JPG / PNG still scan → One searchable PDF per source

Options

language: eng (English); EXIF orientation normalized

Independent jobs for ordered sources; shared batch/retry/ZIP. 20 MiB source; 16M pixels and 6,000 px side; Free/Pro/Unlimited 1/10/20 sources; isolated OCR queue.

SDK
client.processing.imageToSearchablePdf(id, { language: "eng" })

Office to PDF

office_to_pdf

DOCX / XLSX / PPTX → PDF per source

Options

No options

Independent jobs for ordered sources. 50 MiB per source; plan batch cap; 250 MiB combined.

SDK
client.files.convert(ids, { format: "pdf" })

Images to PDF

images_to_pdf

JPG / PNG → One PDF

Options

No options; source order is page order

Ordered sources → one job. 20M pixels per image; 40M total; Free one image, Pro 25, Unlimited 100.

SDK
client.files.convert(ids, { format: "pdf", operation: "images_to_pdf" })

Merge PDF

merge_pdf

Two or more PDFs → One PDF

Options

No options; preserve input order

Ordered sources → one job. Free 2, Pro 25, Unlimited 100 inputs; 2,000 pages; 250 MiB combined.

SDK
client.processing.mergePdf(ids)

Split / extract PDF

split_pdf

One PDF → One or more PDFs

Options

mode: extract + pages: "1,3,5-8"; ranges + ranges: ["1-3","4-6"]; every_page

One job → multiple Files. 2,000 source pages; Free/Pro/Unlimited 10/50/100 outputs.

SDK
client.processing.splitPdf(id, { mode: "extract", pages: "1,3-5" })

Organize PDF

organize_pdf

One PDF → One PDF

Options

pages: [{ page: 4, rotation: 90 }, { page: 1, rotation: 0 }]; one-based source pages; rotation 0/90/180/270

Ordered page plan → one File. 1–2,000 unique source pages; omitted pages removed.

SDK
client.processing.organizePdf(id, { pages })

PDF to JPG / PNG

pdf_to_images

One PDF → JPG / PNG per page

Options

format: jpg | png; pages: [1,3]; server sorts into source order

One job → multiple Files. 144 DPI; 4,096 px side; 12M pixels per page; 10/50/100 outputs; aggregate output cap.

SDK
client.processing.pdfToImages(id, { format: "png", pages: [1,3] })

Compress PDF

compress_pdf

One PDF → One smaller PDF

Options

preset: best_quality | balanced | smaller_file OR targetSizeBytes: integer maximum output bytes; mutually exclusive

Independent jobs for ordered sources; one File per source. Static PDF; 2,000 pages; target 16 KiB minimum and 5–95% of source; plan byte caps; strict target or safe error.

SDK
client.processing.compressPdf(id, { targetSizeBytes: 5 * 1024 * 1024 })

Compress image

compress_image

One JPG / PNG still → One smaller JPG, or PNG preserving transparency

Options

preset: best_quality | balanced | smaller_file OR targetSizeBytes: integer maximum; mutually exclusive

Independent jobs for ordered sources; one File per source. 50 MiB + plan cap; 20M pixels; 8,192 px side; target 16 KiB minimum and 5–95% of source; image queue.

SDK
client.processing.compressImage(id, { targetSizeBytes: 2 * 1024 * 1024 })

Extract PDF Tables

extract_pdf_tables

Static PDFs with selectable text → Excel workbook, CSV or CSV ZIP

Options

format: xlsx | csv | csv_zip; tableIds and edits for one PDF; firstRowHeader and combine are explicit options

One verified export per PDF; automatic detection in independent batches. 20 MiB, 80 pages, 48 tables, 30,000 cells; scanned-only PDFs require a searchable copy.

SDK
client.processing.extractPdfTables(fileId, { format: "xlsx" })

CSV to Excel

csv_to_xlsx

UTF-8 CSV → One XLSX

Options

delimiter: auto (default) | comma | semicolon | tab | pipe

Independent jobs for ordered sources; one File per source. 50 MiB and plan cap; values stored as literal text.

SDK
client.processing.csvToXlsx(id, { delimiter: "auto", idempotencyKey: "export-1" })

Excel to CSV

xlsx_to_csv

One XLSX worksheet → UTF-8 BOM / CRLF CSV

Options

sheet: exact worksheet name; delimiter: comma (default) | semicolon | tab | pipe; omit sheet only for one visible worksheet

Independent jobs for ordered sources; one File per source. 50 MiB and plan cap; cached formula values only; inspect files.worksheets(id).

SDK
client.processing.xlsxToCsv(id, { sheet: "Sales", delimiter: "comma" })

HEIC to JPG / PNG

heic_to_image

HEIC / HEIF primary still → One JPG / PNG

Options

format: jpg | png

Independent jobs for ordered sources; one File per source. 50 MiB source + plan cap; 20M pixels; 8,192 px side; SDR only; native image consumer required.

SDK
client.processing.heicToImage(id, { format: "jpg", idempotencyKey: "photo-1" })

Maximum-size compression

Submit {"fileIds":["source-id"],"operations":[{"type":"compress_pdf","targetSizeBytes":2097152}]}, or use compress_image for JPG/PNG. Choose exactly one of integer targetSizeBytes or preset (best_quality, balanced, smaller_file). Targets are at least 16 KB, 5–95% of the source and within plan/output limits. 1 MB = 1,048,576 bytes. Completion means independently verified stored bytes are at or below the target. An unreachable target or no-savings error creates no output File or output storage charge; try a larger target or preset.

Generic signed events include sanitized target/preset options, source IDs and actual generated File sizes. Failed targets have no successful output. Guests have no account webhook endpoints. SDK 0.5.0 is prepared in the repository; npm publication is a separate release step.

Limits + errors

Developer tokens require Unlimited and the correct scopes. Expect standard 4xx responses for invalid options, ownership, limits, quota, and unsupported formats. Native dispatch failures may transition an accepted job to error.

Idempotency

CSV→XLSX, XLSX→CSV, HEIC→image, Compress PDF and Compress image support Idempotency-Key. Reuse a key only for the same owner, source, and options. Other processing submissions are not retried automatically.

Signed events

Subscribe to job.queued, job.completed, and job.failed. Verify HMAC-SHA256 against the exact raw body and deduplicate by event ID. Delivery is currently best effort without automatic replay.

Current API quotas are 60 job submissions per hour and 10,000 per month for eligible accounts; operation-specific caps and normal storage retention still apply.