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
Returns
200 The admitted PDF with application/pdf.
curl
curl -X POST https://sign.example.com/api/v1/conversions \
-H "Authorization: Bearer $OPENSEAL_API_KEY" \
-o download.pdfTypeScript
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()The file itself (application/pdf), not JSON.
Errors this can answer
| Status | Code | When |
|---|---|---|
| 400 / 422 | CS-API-0001 | Malformed request: a parameter or member is missing, unknown or out of range; errors[] points at it |
| 401 | CS-AUTH-0001 | No credential, or one that is expired or revoked (CS-AUTH-0002) |
| 403 | CS-AUTH-0006 | The credential lacks envelopes.write |
| 413 | CS-API-0006 | The request body is over its limit |
| 429 | CS-API-0003 | Rate limited: wait for Retry-After seconds |
Every error is an RFC 9457 problem with a stable code and a request_id; see Errors.