Core resources

Conversions

A Word document converted to PDF and admitted, for a preview before it is uploaded; nothing is stored. An upload of a Word document converts it the same way.

Convert document

POST/api/v1/conversions

Convert a Word document (.docx) to PDF and admit it as an upload would be, nothing stored: the editor's preview

AuthAPI key or OAuth access token (Authorization: Bearer), or a staff session

Permissionenvelopes.write · OAuth scope envelopes:write

Request body

Content type application/vnd.openxmlformats-officedocument.wordprocessingml.document · required

string

Returns

200 The admitted PDF with application/pdf.

POST/api/v1/conversions

curl

curl -X POST https://sign.example.com/api/v1/conversions \
  -H "Authorization: Bearer $OPENSEAL_API_KEY" \
  -o download.pdf

TypeScript

import { OpenSeal } from "@openseal/sdk";

const os = new OpenSeal({ baseUrl: "https://sign.example.com", apiKey: process.env.OPENSEAL_API_KEY });
const result = await os.convertDocument();

Python

import os
from openseal import OpenSeal

client = OpenSeal("https://sign.example.com", api_key=os.environ["OPENSEAL_API_KEY"])
result = client.convert_document()
Response200

The file itself (application/pdf), not JSON.

Errors this can answer
StatusCodeWhen
400 / 422CS-API-0001Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it
401CS-AUTH-0001No credential, or one that is expired or revoked (CS-AUTH-0002)
403CS-AUTH-0006The credential lacks envelopes.write
413CS-API-0006The request body is over its limit
429CS-API-0003Rate limited: wait for Retry-After seconds

Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.