API reference

Cellvert REST API

Convert PDF tables to Excel and CSV from your own applications. The API is available on Team, Business and Enterprise packs.

Introduction

The Cellvert API is organized around REST. It accepts multipart/form-data uploads, returns JSON for metadata and errors, and returns the converted file as binary content.

https://cellvert.com/api/v1

Every request must use HTTPS. Requests over plain HTTP are rejected.

Authentication

Authenticate with your access key as a Bearer token in the Authorization header. You receive your access key by email after your purchase.

Authorization: Bearer cvt_your_access_key

Keep your access key secret. Call the API from your server, never from a web page or mobile app where the key would be visible. If your key is exposed, replace it from the login page.

Rate limits

PackRequests per minute
Team30
Business120
EnterpriseCustom

When you exceed the limit, the API responds with 429 Too Many Requests. Wait for the number of seconds given in the Retry-After header, then retry.

Errors

Errors return a JSON body with a machine-readable code and a human-readable message:

{
  "error": {
    "code": "insufficient_pages",
    "message": "This file has 42 pages but your balance is 30 pages."
  }
}
StatusCodeMeaning
400invalid_requestA parameter is missing or invalid.
401invalid_keyThe access key is missing, wrong or has been replaced.
402insufficient_pagesYour balance does not cover the pages in this file.
403api_not_includedYour pack does not include API access.
413file_too_largeThe file exceeds 50 MB or 500 pages.
415unsupported_fileThe file is not a valid PDF, or it is password-protected.
422no_table_foundNo text or table could be extracted. No pages are deducted.
429rate_limitedToo many requests. See rate limits.
5xxserver_errorSomething went wrong on our side. Retry with exponential backoff. No pages are deducted.

GETGet account

GET /api/v1/account

Returns the pack and remaining page balance of the access key.

curl https://cellvert.com/api/v1/account \
  -H "Authorization: Bearer cvt_your_access_key"

Response:

{
  "plan": "team",
  "pages_remaining": 4820,
  "api": true,
  "email": "finance@example.com"
}

POSTConvert a PDF

POST /api/v1/convert

Uploads a PDF and returns the converted file in the response body. Pages are deducted only when the conversion succeeds.

Parameters (multipart/form-data)

FieldTypeDescription
filefile, requiredThe PDF to convert. Maximum 50 MB and 500 pages.
formatstringxlsx (default) or csv. A CSV file always contains all pages, one after another.
layoutstringpages (default, one sheet per page) or merge (all pages in one sheet).
ocrstringauto (default), always or never.
langstringOCR language code: eng (default), fra, deu, spa, ita, por, nld, pol, swe, dan, tur, chi_sim.
detect_numbersbooleantrue (default) converts numeric values to numbers. false keeps every value as text.

Response

On success, the API returns 200 OK with the file as the body and these headers:

HeaderDescription
Content-Typeapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet, or text/csv
Content-DispositionSuggested file name, for example attachment; filename="statement.xlsx"
X-Pages-UsedNumber of pages deducted for this conversion.
X-Pages-RemainingYour balance after this conversion.

Code examples

curl https://cellvert.com/api/v1/convert \
  -H "Authorization: Bearer $CELLVERT_KEY" \
  -F "file=@statement.pdf" \
  -F "format=xlsx" \
  -F "layout=merge" \
  -o statement.xlsx

Best practices

  • Store your access key in an environment variable or a secrets manager, never in source code.
  • Check GET /account before large jobs to make sure your balance covers them.
  • Retry 429 and 5xx responses with exponential backoff. Do not retry 4xx errors without changing the request.
  • Set a generous timeout (up to 5 minutes) for large scanned files.
  • Files sent to the API are processed in memory and deleted immediately after conversion. They are never stored or used for training.

Questions about the API or higher limits? Contact our team.