Skip to content

Pdfblocks API

by pdfblocks.com

API keyHTTPSCORSDocuments & Productivity
Open documentation ↗

Overview

Generate PDF documents using API

Pdfblocks is a documents & productivity API from pdfblocks.com. Requests are authenticated with an API key. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 12 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Yes
Base URL
https://api.pdfblocks.com
Version
1.5.0
Endpoints
12
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X POST "https://api.pdfblocks.com/v1/add_password" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.pdfblocks.com/v1/add_password", {
  method: "POST",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "POST",
    "https://api.pdfblocks.com/v1/add_password",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/v1/add_passwordAdd a password to a PDF
POST/v1/add_restrictionsAdd restrictions to a PDF
POST/v1/add_watermark/imageAdd an image watermark to a PDF
POST/v1/add_watermark/textAdd a text watermark to a PDF
POST/v1/extract_pagesExtract pages from a PDF
POST/v1/merge_documentsMerge PDF documents
POST/v1/remove_pagesRemove pages from a PDF
POST/v1/remove_passwordRemove the password from a PDF
POST/v1/remove_restrictionsRemove the restrictions from a PDF
POST/v1/remove_signaturesRemove the signatures from a PDF
POST/v1/reverse_pagesReverse the pages of a PDF
POST/v1/rotate_pagesRotate pages in a PDF

Questions

Does the Pdfblocks API need an API key?

Yes. The Pdfblocks API uses API key authentication; the documentation explains how to get credentials.

Can I call the Pdfblocks API from the browser?

Yes. The Pdfblocks API sends CORS headers, so a web page can call it directly with fetch().

Does the Pdfblocks API support HTTPS?

Yes, the Pdfblocks API is served over HTTPS.

How many endpoints does the Pdfblocks API have?

Its OpenAPI description lists 12 endpoints in version 1.5.0. All of them are shown on this page.

What are alternatives to the Pdfblocks API?

Other Documents & Productivity APIs include JIRA, Notion, DocStruct, Asana, ClickUp.

Compare alternatives →

Listed from public-apis database (MIT), APIs.guru (CC0).