Making your first API call

Start your API journey with PDFMonkey! Learn how to make an API call and generate PDFs instantly. Sign up to PDFMonkey today to get started!

Sending your API Secret Key

The first step is to get your API Secret Key. To do so, head to the My Account page. You can access it using the top-left menu in the dashboard.

Your API Secret Key should be passed as an HTTP header named Authorization and be prefixed with Bearer.

Authorization: Bearer YOUR_API_SECRET_KEY

Making a test API call

To test that you can successfully connect to the API, try making the following request:

Authorization: Bearer YOUR_API_SECRET_KEY

Using the curl command the request would look like this:

curl "" \
  -H "Authorization: Bearer YOUR_API_SECRET_KEY"

You should obtain a response similar to this one:

  "current_user": {
    "id": "12345678-90ab-cdef-1234-567890abcdef",
    "auth_token": "1234567890ABCDEF1234",
    "available_documents": 300,
    "created_at": "2022-01-01T12:34:56.123+00:00",
    "current_plan": "free",
    "current_plan_interval": "month",
    "desired_name": "Jane Doe",
    "email": "",
    "lang": "en",
    "paying_customer": false,
    "trial_ends_on": "2022-01-15",
    "updated_at": "2022-01-01T12:34:56.123+00:00",
    "block_resources": true,
    "share_links": false

Next step

Once you made your first API call, you're ready to take it to the next level and try generating your first Document!

Last updated