---
title: "Convert an Office file or image to PDF/A-2b"
method: POST
path: "/v1/conversions"
tags: ["Files"]
---

# Convert an Office file or image to PDF/A-2b

`POST /v1/conversions`

## Request

- Base URL: `https://sign-api.tvarka.pro`
- URL: `https://sign-api.tvarka.pro/v1/conversions`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2 (authorization code, authorization URL `https://sign-api.tvarka.pro/oauth/authorize`, token URL `https://sign-api.tvarka.pro/oauth/token`, scopes: `sign.read`, `sign.signings`)

Returns the PDF/A-2b bytes of one `.docx`, `.doc`, `.odt`, `.rtf`, `.xlsx`, `.xls`, `.ods`, `.pptx`, `.odp`, `.txt`, `.jpg`, `.jpeg` and `.png` file, ready to sign
locally or to post as a document. Nothing is stored and nothing is
billed. Multipart accepts one binary part named file, up to
100,000,000 bytes; JSON accepts up to 15 MiB decoded. Added in
v1.9.0.

## Request body

- object
  - `name` string, required
  - `content` string, byte, required

## Response `200`

The converted PDF/A-2b, as an attachment named after the source file with a `.pdf` extension.

## Other responses

- `400`: An RFC 9457 problem document.
- `401`: An RFC 9457 problem document.
- `402`: An RFC 9457 problem document.
- `403`: An RFC 9457 problem document.
- `413`: An RFC 9457 problem document.
- `422`: An RFC 9457 problem document.
- `429`: An RFC 9457 problem document.
- `503`: An RFC 9457 problem document.

---

[API](https://skmtc.dev/tvarka/apis/tvarka-sign-api.md) · [All operations](https://skmtc.dev/tvarka/apis/tvarka-sign-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tvarka/apis/tvarka-sign-api/revisions/e3fdd995c013?raw)
