Skip to content
ComPDF
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Authentication

ComPDFKit API uses the JSON Web Tokens method for secure authentication. For more information about this method and how we use it, take a look at the Authentication section of our API reference. For now, you can authenticate your project as easily as this:

Java
CPDFClient client = new CPDFClient(<publicKey>, <secretKey>);
PHP
$client = new CPDFClient('public_key', 'secret_key');
C#
CPDFClient client = new CPDFClient(<publicKey>, <secretKey>);
Python
client = CPDFClient(public_key, secret_key)
Swift
let client: CPDFClient = CPDFClient(publicKey: public_key, secretKey: secret_key)

This way you’ll authenticate ALL your actions with the API. Now you can execute any task to process PDF files.