Paperfuldocs

SDKs

Connect to Paperful Programmatically

Paperful SDKs provide a typed, developer-friendly interface for interacting with the API.

Use an SDK to upload documents, retrieve structured content, search papers, manage resources, and integrate Paperful into your application without working directly with raw HTTP requests.

Available SDKs

Authentication

All SDKs authenticate against the same API.

We recommend storing your API key in the PAPERFUL_API_KEY environment variable:

.env
PAPERFUL_API_KEY="pf_..."
Never commit API keys to source control or expose them in client-side applications.

SDK or REST API?

SDKs are wrappers around the Paperful REST API.

Use an SDK when you want:

  • Typed request and response objects
  • Convenient file uploads
  • Consistent error handling
  • Less HTTP boilerplate
  • Better editor autocomplete

Use the REST API directly when you are working in an unsupported language or need complete control over HTTP requests.

API Reference

Explore the underlying REST API used by every Paperful SDK.

More SDKs

Paperful's SDKs are built around the same API primitives, making it straightforward to support additional languages over time.

If your language is not supported yet, you can use the REST API directly.

On this page