Skip to content

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.